/* ============================================================
   HIGH BROW SOCIETY — Gallery (horizontal scroll strip)
   Swipe / drag / arrow-driven horizontal scroll with snap.
   Light ivory base, bleeds off the right edge for momentum.
   ============================================================ */

.gallery {
  position: relative;
  padding-block: var(--space-2xl);
  background-color: var(--color-cream);
  overflow: hidden;
}

.gallery__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.gallery__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.02;
  letter-spacing: var(--ls-tight);
  color: var(--color-charcoal);
  margin-top: var(--space-sm);
}
.gallery__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.gallery__arrows { display: flex; gap: var(--space-sm); }
.gallery__arrow {
  width: 52px;
  height: 52px;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--color-charcoal);
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.gallery__arrow svg { width: 24px; height: 12px; }
.gallery__arrow:hover {
  background: var(--color-charcoal);
  border-color: var(--color-charcoal);
  color: var(--color-ivory);
}
.gallery__arrow:disabled { opacity: 0.3; cursor: default; }
.gallery__arrow:disabled:hover {
  background: none; color: var(--color-charcoal); border-color: var(--color-line);
}

/* --- Track --- */
.gallery__track {
  display: flex;
  gap: clamp(1rem, 0.6rem + 1.5vw, 1.75rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  /* gutter both ends so the first and last cards aren't flush to the edge */
  padding-inline: var(--gutter);
  scroll-padding-left: var(--gutter);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track:focus-visible { outline: 2px solid var(--color-champagne-deep); outline-offset: 4px; }

.gallery__item {
  position: relative;
  flex: 0 0 auto;
  width: clamp(260px, 70vw, 420px);
  scroll-snap-align: start;
}
.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, var(--color-champagne-soft), var(--color-cream));
}
.gallery__item figcaption {
  position: absolute;
  left: var(--space-sm);
  bottom: var(--space-sm);
  background: var(--color-ivory);
  color: var(--color-charcoal);
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  padding: 0.6em 1em;
}

/* --- View-all CTA card --- */
.gallery__more {
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  text-align: center;
  padding: var(--space-lg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-ivory-deep);
  color: var(--color-charcoal);
  transition: background-color var(--dur-med) var(--ease-out),
              color var(--dur-med) var(--ease-out);
}
.gallery__more-eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--color-champagne-deep);
  transition: color var(--dur-med) var(--ease-out);
}
.gallery__more-label {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: var(--ls-tight);
}
.gallery__more-arrow {
  display: block;
  margin-top: var(--space-2xs);
  color: var(--color-champagne-deep);
}
.gallery__more-arrow svg {
  width: 40px;
  height: 14px;
  transition: transform var(--dur-med) var(--ease-out);
}
.gallery__more:hover {
  background: var(--color-charcoal);
  color: var(--color-ivory);
}
.gallery__more:hover .gallery__more-eyebrow,
.gallery__more:hover .gallery__more-arrow { color: var(--color-champagne); }
.gallery__more:hover .gallery__more-arrow svg { transform: translateX(6px); }

/* --- Desktop head layout --- */
@media (min-width: 760px) {
  .gallery__head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  .gallery__controls { flex-direction: column; align-items: flex-end; gap: var(--space-md); }
  .gallery__item { width: clamp(360px, 32vw, 460px); }
}

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