
.gallery-page-body {
  background:
    radial-gradient(circle at top right, rgba(162, 70, 52, 0.12), transparent 32%),
    linear-gradient(180deg, #f8f4ef 0%, #f7f2ec 100%);
}

.gallery-story-page {
  padding-top: 34px;
  padding-bottom: 88px;
}

.gallery-story-copy {
  border-radius: 30px;
  box-shadow: 0 22px 60px rgba(31, 26, 23, 0.1);
}

.gallery-story-copy {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.94));
  border: 1px solid rgba(223, 211, 199, 0.85);
  padding: 36px;
}

.gallery-story-copy h1 {
  margin: 8px 0 18px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 0.96;
  letter-spacing: -0.01em;
}

.gallery-story-lead {
  margin: 0 0 14px;
  font-size: 1.06rem;
  color: var(--text);
}

.gallery-story-intro {
  margin: 0;
  color: var(--muted);
  max-width: 58ch;
}

.gallery-story-actions {
  margin-top: 26px;
  flex-wrap: wrap;
}

.gallery-story-copy--compact {
  max-width: 920px;
  margin: 0 auto;
}

.gallery-story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.gallery-story-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(223, 211, 199, 0.9);
  color: var(--muted);
  font-size: 0.95rem;
}



.gallery-story-section {
  padding-top: 0;
}

.gallery-story-grid {
  --gallery-tile-height: 182px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 10px 18px;
  max-width: 1420px;
  margin: 0 auto;
}

.gallery-story-grid figure,
.gallery-story-grid article {
  margin: 0;
}

.gallery-story-tile {
  position: relative;
  overflow: visible;
  flex: 0 0 auto;
}

.gallery-story-photo,
.gallery-story-note {
  border-radius: 24px;
}

.gallery-story-photo {
  min-width: 0;
  margin: 0;
}

.gallery-story-photo-button,
.gallery-story-note {
  min-height: var(--gallery-tile-height);
  height: var(--gallery-tile-height);
  box-sizing: border-box;
}

.gallery-story-photo-button {
  position: relative;
  width: 100%;
  height: var(--gallery-tile-height);
  padding: 0;
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #d8d2cc;
  box-shadow: 0 16px 34px rgba(31, 26, 23, 0.09);
  cursor: zoom-in;
}

.gallery-story-photo-button::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(16, 12, 10, 0) 0%, rgba(16, 12, 10, 0.68) 100%);
  z-index: 1;
  pointer-events: none;
}

.gallery-story-photo-button::after {
  content: none;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255,255,255,0.94);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 22px rgba(0,0,0,0.12);
}

.gallery-story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease, filter 320ms ease;
}

.gallery-story-photo:hover img {
  transform: scale(1.032);
  filter: saturate(1.03);
}

.gallery-story-photo-caption {
  position: absolute;
  bottom: 12px;
  z-index: 2;
  display: block;
  max-width: calc(100% - 24px);
  color: rgba(255,255,255,0.96);
  font-size: 0.58rem;
  line-height: 1.26;
  font-weight: 500;
  text-wrap: balance;
  text-shadow: 0 2px 14px rgba(0,0,0,0.3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


.gallery-story-photo-caption.is-left {
  left: 12px;
  text-align: left;
}

.gallery-story-photo-caption.is-right {
  right: 12px;
  text-align: right;
}

.gallery-story-note {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 15px 18px 14px;
  align-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(248,244,239,0.94));
  border: 1px solid rgba(223, 211, 199, 0.95);
  box-shadow: 0 12px 30px rgba(31, 26, 23, 0.06);
}

.gallery-story-note .eyebrow {
  margin: -7px 0 1px;
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.gallery-story-note h2 {
  margin: 0 0 3px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.22rem, 1.46vw, 1.72rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  padding-bottom: 0.18em;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-story-note > * {
  min-width: 0;
}

.gallery-story-note p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.size-landscape {
  width: min(100%, 432px);
}


.size-medium {
  width: min(100%, 286px);
}

.size-portrait,
.size-square {
  width: min(100%, 172px);
}

.gallery-story-note.size-landscape {
  width: min(100%, 432px);
}

.gallery-story-note.size-medium {
  width: min(100%, 286px);
}

.gallery-story-note.size-square,
.gallery-story-note.size-portrait {
  width: min(100%, 208px);
  padding: 16px 16px 14px;
}

.gallery-story-note.size-square h2,
.gallery-story-note.size-portrait h2 {
  font-size: clamp(1.08rem, 1.18vw, 1.36rem);
  line-height: 1.05;
  padding-bottom: 0.08em;
  -webkit-line-clamp: 4;
}

.gallery-story-note.size-square p:last-child,
.gallery-story-note.size-portrait p:last-child {
  font-size: 0.68rem;
  line-height: 1.24;
  -webkit-line-clamp: 3;
}

.gallery-story-note.size-square .eyebrow,
.gallery-story-note.size-portrait .eyebrow {
  margin-bottom: 6px;
  font-size: 0.6rem;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: rgba(15, 12, 10, 0.92);
  backdrop-filter: blur(12px);
}

.gallery-lightbox-stage {
  display: grid;
  gap: 18px;
  max-height: calc(100vh - 48px);
}

.gallery-lightbox-figure {
  margin: 0;
  min-height: 0;
}

.gallery-lightbox-image {
  width: 100%;
  max-height: calc(100vh - 188px);
  object-fit: contain;
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  background: rgba(255,255,255,0.03);
}

.gallery-lightbox-caption {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 12px;
  color: rgba(255,255,255,0.92);
}

.gallery-lightbox-counter {
  margin: 0 0 6px;
  color: rgba(255,255,255,0.62);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-lightbox-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.gallery-lightbox-close,
.gallery-lightbox-nav,
.gallery-lightbox-thumb {
  border: 0;
  cursor: pointer;
}

.gallery-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

.gallery-lightbox-nav {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

.gallery-lightbox-nav:hover,
.gallery-lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

.gallery-lightbox-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.gallery-lightbox-thumb {
  flex: 0 0 auto;
  width: 92px;
  height: 72px;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  background: transparent;
  border: 2px solid transparent;
  opacity: 0.66;
}

.gallery-lightbox-thumb.is-active {
  border-color: rgba(255,255,255,0.88);
  opacity: 1;
}

.gallery-lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.gallery-lightbox-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .gallery-story-copy {
    padding: 28px 22px;
  }

  .gallery-lightbox {
    grid-template-columns: 1fr;
    padding: 18px 14px;
  }

  .gallery-lightbox-nav {
    display: none;
  }

  .gallery-lightbox-image {
    max-height: calc(100vh - 220px);
  }
}

@media (max-width: 1200px) {
  .gallery-story-grid {
    gap: 12px 18px;
    max-width: 1120px;
  }

  .size-landscape,
  .size-medium,
  .gallery-story-note.size-landscape,
  .gallery-story-note.size-medium {
    width: min(100%, 420px);
  }

  .size-portrait,
  .size-square {
    width: min(100%, 170px);
  }

  .gallery-story-note.size-square,
  .gallery-story-note.size-portrait {
    width: min(100%, 240px);
  }

  .gallery-story-photo-button,
  .gallery-story-note {
    min-height: 184px;
    height: 184px;
  }
}

@media (max-width: 900px) {
  .gallery-story-grid {
    gap: 16px;
  }

  .size-landscape,
  .size-medium,
  .gallery-story-note.size-landscape,
  .gallery-story-note.size-medium {
    width: min(100%, 100%);
  }

  .size-portrait,
  .size-square,
  .gallery-story-note.size-square,
  .gallery-story-note.size-portrait {
    width: calc(50% - 8px);
  }

  .gallery-story-photo-button,
  .gallery-story-note {
    height: 176px;
    min-height: 176px;
  }

  .gallery-story-photo-caption {
    font-size: 0.9rem;
    line-height: 1.32;
  }
}

@media (max-width: 640px) {
  .gallery-story-grid {
    gap: 14px;
  }

  .size-portrait,
  .size-square,
  .gallery-story-note.size-square,
  .gallery-story-note.size-portrait {
    width: 100%;
  }

  .gallery-story-photo-button,
  .gallery-story-note {
    height: 172px;
    min-height: 172px;
    border-radius: 20px;
  }

  .gallery-story-photo-caption {
    bottom: 12px;
    max-width: calc(100% - 24px);
    font-size: 0.88rem;
  }

  .gallery-story-note {
    padding: 20px 20px 18px;
  }

  .gallery-story-note h2 {
    font-size: clamp(1.32rem, 6vw, 1.9rem);
  }
}


.size-square .gallery-story-photo-caption,
.size-portrait .gallery-story-photo-caption {
  font-size: 0.54rem;
  line-height: 1.22;
  -webkit-line-clamp: 5;
  max-width: calc(100% - 20px);
}

.size-medium .gallery-story-photo-caption {
  font-size: 0.6rem;
}

.gallery-story-note.size-medium h2 {
  font-size: clamp(1.28rem, 1.5vw, 1.72rem);
}

