/* Balanced, uncropped horizontal rails for the scoped generic builder galleries including WP130. */
:is(#post-967, #post-10503, #post-14728, #post-90, #post-89, #post-10105, #post-25416, #post-25427, #post-88, #post-29155, #post-130) .hyakka-builder-photo-gallery__grid {
  --builder-photo-height: 360px;
  display: flex;
  align-items: flex-start;
  gap: clamp(12px, 2vw, 20px);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 8px;
  scroll-snap-type: x mandatory;
  scrollbar-color: #75804d #f5f6f1;
  scrollbar-width: thin;
}
:is(#post-967, #post-10503, #post-14728, #post-90, #post-89, #post-10105, #post-25416, #post-25427, #post-88, #post-29155, #post-130) .hyakka-builder-photo-gallery__grid:focus-visible {
  outline: 2px solid #75804d;
  outline-offset: 3px;
}
:is(#post-967, #post-10503, #post-14728, #post-90, #post-89, #post-10105, #post-25416, #post-25427, #post-88, #post-29155, #post-130) .hyakka-builder-photo-gallery__figure {
  flex: 0 0 calc(var(--builder-photo-height) * var(--builder-photo-ratio, 1.5));
  width: calc(var(--builder-photo-height) * var(--builder-photo-ratio, 1.5));
  max-width: none;
  margin: 0;
  scroll-snap-align: start;
}
:is(#post-967, #post-10503, #post-14728, #post-90, #post-89, #post-10105, #post-25416, #post-25427, #post-88, #post-29155, #post-130) .hyakka-builder-photo-gallery__image {
  display: block;
  width: auto;
  height: var(--builder-photo-height);
  max-width: none;
  object-fit: contain;
}
:is(#post-967, #post-10503, #post-14728, #post-90, #post-89, #post-10105, #post-25416, #post-25427, #post-88, #post-29155, #post-130) .hyakka-builder-photo-gallery__caption {
  margin: .4rem 0 0;
}
:is(#post-967, #post-10503, #post-14728, #post-90, #post-89, #post-10105, #post-25416, #post-25427, #post-88, #post-29155, #post-130) .hyakka-builder-photo-gallery__controls {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 3px 0 22px;
}
:is(#post-967, #post-10503, #post-14728, #post-90, #post-89, #post-10105, #post-25416, #post-25427, #post-88, #post-29155, #post-130) .hyakka-builder-photo-gallery__controls[hidden] {
  display: none;
}
:is(#post-967, #post-10503, #post-14728, #post-90, #post-89, #post-10105, #post-25416, #post-25427, #post-88, #post-29155, #post-130) .hyakka-builder-photo-gallery__controls button {
  display: inline-flex;
  min-width: 48px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 0;
  background: transparent;
  color: #75804d;
  cursor: pointer;
  font: inherit;
}
:is(#post-967, #post-10503, #post-14728, #post-90, #post-89, #post-10105, #post-25416, #post-25427, #post-88, #post-29155, #post-130) .hyakka-builder-photo-gallery__controls button:disabled {
  color: #96988e;
  cursor: default;
}
:is(#post-967, #post-10503, #post-14728, #post-90, #post-89, #post-10105, #post-25416, #post-25427, #post-88, #post-29155, #post-130) .hyakka-builder-photo-gallery__controls button:focus-visible {
  outline: 2px solid #75804d;
  outline-offset: 2px;
}
:is(#post-967, #post-10503, #post-14728, #post-90, #post-89, #post-10105, #post-25416, #post-25427, #post-88, #post-29155, #post-130) .hyakka-builder-photo-gallery__controls svg {
  display: block;
  width: 48px;
  height: 18px;
}
:is(#post-967, #post-10503, #post-14728, #post-90, #post-89, #post-10105, #post-25416, #post-25427, #post-88, #post-29155, #post-130) .hyakka-builder-photo-gallery__controls path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
}
:is(#post-967, #post-10503, #post-14728, #post-90, #post-89, #post-10105, #post-25416, #post-25427, #post-88, #post-29155, #post-130) .hyakka-builder-photo-gallery__count {
  min-width: 58px;
  color: #75766d;
  text-align: center;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 760px) {
  :is(#post-967, #post-10503, #post-14728, #post-90, #post-89, #post-10105, #post-25416, #post-25427, #post-88, #post-29155, #post-130) .hyakka-builder-photo-gallery__grid {
    --builder-photo-height: 220px;
  }
}
@media (prefers-reduced-motion: reduce) {
  :is(#post-967, #post-10503, #post-14728, #post-90, #post-89, #post-10105, #post-25416, #post-25427, #post-88, #post-29155, #post-130) .hyakka-builder-photo-gallery__grid {
    scroll-behavior: auto;
  }
}
