.gallery-page { padding-block: clamp(4rem, 8vw, 7rem) 0; }
.gallery-intro { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 3rem; padding-bottom: clamp(3rem, 6vw, 5rem); }
.gallery-intro h1 { margin: 0; font-size: clamp(3.2rem, 6.5vw, 6rem); font-weight: 650; line-height: 1.02; letter-spacing: -.065em; }
.gallery-intro-copy { max-width: 400px; padding-bottom: .35rem; }
.gallery-intro-copy p { margin-bottom: 1.25rem; color: var(--muted); font-size: 1.05rem; }
.gallery { padding-bottom: clamp(4rem, 8vw, 7rem); }
.gallery-topline { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--border); color: var(--muted); font-size: .78rem; font-weight: 600; }
.gallery-topline p { margin: 0; }
.gallery-topline p:first-child { color: var(--ink); }
.gallery-slides { margin: 0; padding: 0; list-style: none; }
.gallery-slide + .gallery-slide { margin-top: 2rem; }
.gallery-slide[hidden] { display: none; }
.gallery-slide figure { margin: 0; }
.gallery-image-frame { display: flex; align-items: center; justify-content: center; min-height: 300px; height: clamp(350px, 52vw, 690px); overflow: hidden; background: #e8e7e0; }
.gallery-image-frame img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.gallery-slide figcaption { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1rem; color: var(--muted); font-size: .8rem; }
.gallery-controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.gallery-controls[hidden], .gallery-preview[hidden] { display: none; }
.gallery-counter { margin: 0; color: var(--ink); font-size: .88rem; font-weight: 600; }
.gallery-buttons { display: flex; gap: .5rem; }
.gallery-button { min-height: 46px; padding: .65rem 1.1rem; border: 1px solid var(--border); border-radius: 4px; background: transparent; color: var(--ink); font: 600 .85rem var(--font); cursor: pointer; transition: background-color 180ms ease-out, color 180ms ease-out; }
.gallery-button:hover { background: var(--surface); }
.gallery-button-next { border-color: var(--ink); background: var(--ink); color: #fff; }
.gallery-button-next:hover { background: var(--accent); border-color: var(--accent); }
.gallery-preview { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }
.gallery-preview > p { margin-bottom: 1rem; font-size: .8rem; font-weight: 650; }
.gallery-thumbnails { display: flex; gap: .6rem; padding: .25rem .25rem .8rem; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-color: #a6a99f transparent; }
.gallery-thumbnail { flex: 0 0 92px; width: 92px; height: 68px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 3px; background: var(--surface); cursor: pointer; opacity: .7; }
.gallery-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbnail:hover { opacity: 1; }
.gallery-thumbnail[aria-current='true'] { border-color: var(--accent); opacity: 1; }
.gallery-end { display: grid; grid-template-columns: 1fr .65fr; gap: 3rem; align-items: end; padding-block: clamp(4rem, 7vw, 6rem); border-top: 1px solid var(--border); }
.gallery-end h2 { margin: 0; font-size: clamp(2.4rem, 4vw, 4rem); font-weight: 600; }
.gallery-end > div:last-child { max-width: 410px; }
.gallery-end > div:last-child p { color: var(--muted); }
@media (max-width: 760px) {
  .gallery-intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .gallery-intro h1 { font-size: clamp(3rem, 12vw, 4.5rem); }
  .gallery-intro-copy { max-width: 100%; }
  .gallery-topline { flex-wrap: wrap; }
  .gallery-image-frame { height: min(105vw, 480px); min-height: 240px; }
  .gallery-slide figcaption { font-size: .75rem; }
  .gallery-end { grid-template-columns: 1fr; gap: 1.5rem; }
  .gallery-end h2 { font-size: clamp(2.3rem, 9vw, 3.8rem); }
}
