

.gallery__head { margin-bottom: 72px; }
.gallery__note { margin: 20px 0 88px; max-width: 620px; font-size: 13.5px; text-wrap: pretty; }

.g-scroller { margin-bottom: 88px; }

.g-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}


.g-rail::-webkit-scrollbar { height: 6px; }
.g-rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }

.g-item { margin: 0; scroll-snap-align: start; }
.g-item .slot { width: 100%; }

.g-item__caption {
  margin-top: 12px;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sand);
}
.g-item__caption:empty { display: none; }


.g-scroller { position: relative; }

.g-scroller__controls {
  position: absolute;
  inset: 0 0 auto 0;
  height: var(--rail-height, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  pointer-events: none;
}


.g-scroller:not(.is-scrollable) .g-scroller__controls { display: none; }

.g-arrow {
  pointer-events: auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 2px 14px rgba(63, 42, 30, 0.16);
  transition: background 160ms ease, color 160ms ease,
              opacity 160ms ease, transform 160ms ease;
}

.g-arrow svg { width: 20px; height: 20px; display: block; }

.g-arrow:hover:not(:disabled) {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.g-arrow:active:not(:disabled) { transform: scale(0.94); }


.g-arrow:disabled {
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .g-rail { scroll-behavior: auto; }
}

@media (max-width: 600px) {
  .g-rail { grid-auto-columns: minmax(78vw, 1fr); }

  
  .g-scroller__controls { display: none; }
}


.g-rail--pairs { grid-auto-columns: minmax(420px, 1fr); }

.ba-item { margin: 0; scroll-snap-align: start; }

.ba-item__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.ba-photo__label {
  margin-top: 10px;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sand);
}

.ba-item__caption {
  margin-top: 14px;
  font-family: var(--display);
  font-size: 17px;
  color: var(--ink);
}
.ba-item__caption:empty { display: none; }

@media (max-width: 600px) {
  .g-rail--pairs { grid-auto-columns: minmax(80vw, 1fr); }
  .ba-item__pair { gap: 8px; }
}

.gallery-section + .gallery-section { margin-top: 64px; }
.gallery-section .section-label { margin-bottom: 28px; }


.g-item .slot, .ba-photo .slot { overflow: hidden; }
.g-item .slot img, .ba-photo .slot img {
  transition: transform 800ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.g-item:hover .slot img, .ba-photo:hover .slot img { transform: scale(1.05); }

@media (prefers-reduced-motion: reduce) {
  .g-item:hover .slot img, .ba-photo:hover .slot img { transform: none; }
}
