.ht-gallery-page {
    --gallery-ivory: #f5f2eb;
    --gallery-paper: #fbfaf7;
    --gallery-ink: #272823;
    --gallery-muted: #73726b;
    --gallery-gold: #b88a45;
    --gallery-line: #dedad1;
    overflow: clip;
    background: var(--gallery-paper);
    color: var(--gallery-ink);
    font-family: var(--font-body, sans-serif);
}
.ht-gallery-page *, .ht-gallery-page *::before, .ht-gallery-page *::after { box-sizing: border-box; }
.gallery-wrap { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.gallery-eyebrow { margin: 0 0 14px; color: var(--gallery-gold); font-size: 10px; font-weight: 700; letter-spacing: .19em; line-height: 1.5; text-transform: uppercase; }
.ht-gallery-page h1, .ht-gallery-page h2, .ht-gallery-page h3 { color: var(--gallery-ink); font-family: var(--font-heading, Georgia, serif); font-weight: 500; }
.ht-gallery-page em { color: var(--gallery-gold); font-style: normal; }
.gallery-hero { padding: clamp(124px, 13vw, 175px) 0 72px; background: var(--gallery-ivory); }
.gallery-hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); gap: clamp(40px, 8vw, 118px); align-items: center; }
.gallery-hero__copy { position: relative; z-index: 1; }
.gallery-hero h1 { max-width: 590px; margin: 0; font-size: clamp(52px, 6vw, 82px); line-height: .99; letter-spacing: -.035em; }
.gallery-hero__copy > p:not(.gallery-eyebrow) { max-width: 430px; margin: 19px 0 0; color: var(--gallery-muted); font-size: 13px; line-height: 1.8; }
.gallery-hero__link { display: inline-flex; gap: 16px; align-items: center; margin-top: 24px; padding: 9px 0; border-bottom: 1px solid var(--gallery-gold); color: var(--gallery-ink); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-decoration: none; text-transform: uppercase; }
.gallery-hero__link span { color: var(--gallery-gold); font-size: 16px; }
.gallery-hero__visual { position: relative; margin: 0; padding: 15px 0 16px 17px; }
.gallery-hero__visual::before { position: absolute; top: 0; left: 0; width: 42%; height: 75%; background: #e5ded1; content: ''; }
.gallery-hero__visual img { position: relative; display: block; width: 100%; aspect-ratio: 1.32; object-fit: cover; }
.gallery-hero__visual figcaption { position: absolute; right: 0; bottom: 0; padding: 9px 12px; background: var(--gallery-paper); color: #6f6c64; font-size: 9px; letter-spacing: .04em; }
.gallery-hero__index { position: absolute; right: 0; bottom: -33px; color: #8c887e; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.gallery-hero__index i { padding-inline: 5px; color: var(--gallery-gold); font-style: normal; }
.gallery-section { padding: 83px 0 88px; }
.gallery-section__head { display: flex; justify-content: space-between; gap: 35px; align-items: end; margin-bottom: 28px; }
.gallery-section__head h2 { margin: 0; font-size: clamp(38px, 5vw, 61px); line-height: 1.02; letter-spacing: -.025em; }
.gallery-section__head > p { max-width: 340px; margin: 0 0 4px; color: var(--gallery-muted); font-size: 11px; line-height: 1.75; }
.gallery-toolbar { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 12px 0; border-top: 1px solid var(--gallery-line); border-bottom: 1px solid var(--gallery-line); }
.gallery-filters { display: flex; flex-wrap: wrap; gap: 5px; }
.gallery-filters button { display: inline-flex; min-height: 34px; gap: 8px; align-items: center; padding: 7px 12px; border: 1px solid transparent; background: transparent; color: #66645e; font: inherit; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.gallery-filters button span { color: #9a958b; font-size: 9px; }
.gallery-filters button:hover { border-color: #d7c9b0; }
.gallery-filters button[aria-pressed="true"] { border-color: #dfd2bc; background: #efe9df; color: #624a29; }
.gallery-toolbar > p { flex: none; margin: 0; color: #858178; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.gallery-grid { display: grid; grid-auto-flow: dense; grid-auto-rows: clamp(190px, 22vw, 275px); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; padding-top: 17px; }
.gallery-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid #e8e4dc; background: #fff; }
.gallery-card[hidden] { display: none; }
.gallery-card--feature { grid-column: span 2; grid-row: span 2; }
.gallery-card:nth-child(7n + 4) { grid-column: span 2; }
.gallery-card__image { position: relative; display: block; flex: 1; min-height: 0; overflow: hidden; background: #e8e4dc; }
.gallery-card__image::after { position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(20,21,18,.24)); content: ''; pointer-events: none; }
.gallery-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-card__image:hover img { transform: scale(1.035); }
.gallery-card__zoom { position: absolute; z-index: 1; top: 12px; right: 12px; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; background: rgba(30,31,27,.22); color: white; font-size: 16px; transition: background .2s, color .2s; }
.gallery-card__image:hover .gallery-card__zoom { background: white; color: var(--gallery-ink); }
.gallery-card__caption { display: flex; min-height: 70px; justify-content: space-between; gap: 15px; align-items: center; padding: 12px 14px; }
.gallery-card__caption > div { min-width: 0; }
.gallery-card__caption span { display: block; overflow: hidden; color: #817e76; font-size: 8px; letter-spacing: .07em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.gallery-card__caption h3 { overflow: hidden; margin: 4px 0 0; font-family: var(--font-body, sans-serif); font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.gallery-card__caption > a { display: inline-flex; flex: none; gap: 5px; align-items: center; color: #795b31; font-size: 8px; font-weight: 700; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; }
.gallery-card__caption > a:hover { text-decoration: underline; text-underline-offset: 3px; }
.gallery-card__caption > a span { color: var(--gallery-gold); font-size: 14px; }
.gallery-note { margin: 21px 0 0; color: #7b786f; font-size: 10px; line-height: 1.75; }
.gallery-note a { color: #74572e; text-underline-offset: 3px; }
.gallery-next { padding: 22px 0; border-top: 1px solid var(--gallery-line); background: #f8f6f1; }
.gallery-next__inner { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.gallery-next p { margin: 0; color: #737168; font-size: 10px; }
.gallery-next a { display: inline-flex; gap: 10px; align-items: center; color: #73562e; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.gallery-next a:hover { text-decoration: underline; text-underline-offset: 4px; }
.gallery-viewer { width: min(1120px, calc(100% - 36px)); max-width: none; max-height: calc(100% - 36px); padding: 15px; border: 1px solid rgba(255,255,255,.17); background: #20211d; color: white; }
.gallery-viewer::backdrop { background: rgba(13,14,12,.88); backdrop-filter: blur(5px); }
.gallery-viewer__bar { display: flex; justify-content: space-between; gap: 15px; align-items: center; padding: 0 0 12px; }
.gallery-viewer__bar p { margin: 0; color: rgba(255,255,255,.76); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.gallery-viewer__bar > div { display: flex; gap: 6px; }
.gallery-viewer__bar button { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(255,255,255,.34); background: transparent; color: white; font: inherit; font-size: 18px; cursor: pointer; }
.gallery-viewer__bar button:hover { border-color: var(--gallery-gold); background: var(--gallery-gold); }
.gallery-viewer figure { margin: 0; text-align: center; }
.gallery-viewer figure img { display: block; width: 100%; max-height: min(76vh, 900px); object-fit: contain; }
.gallery-viewer figcaption { padding: 10px 0 0; color: rgba(255,255,255,.62); font-size: 9px; }
.ht-gallery-page :focus-visible, .gallery-viewer :focus-visible { outline: 3px solid #c8a66f; outline-offset: 3px; }
@media (max-width: 900px) {
    .gallery-wrap { width: calc(100% - 48px); }
    .gallery-hero__inner { gap: 38px; }
    .gallery-grid { grid-auto-rows: 225px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery-card--feature { grid-column: span 2; grid-row: span 2; }
    .gallery-card:nth-child(7n + 4) { grid-column: auto; }
}
@media (max-width: 620px) {
    .gallery-wrap { width: calc(100% - 38px); }
    .gallery-hero { padding: 108px 0 53px; }
    .gallery-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .gallery-hero h1 { font-size: clamp(45px, 12vw, 64px); }
    .gallery-hero__copy > p:not(.gallery-eyebrow) { margin-top: 13px; font-size: 12px; }
    .gallery-hero__visual { margin-left: 6px; padding-left: 8px; }
    .gallery-hero__visual img { aspect-ratio: 1.3; }
    .gallery-hero__index { bottom: -23px; }
    .gallery-section { padding: 55px 0 60px; }
    .gallery-section__head { display: block; margin-bottom: 20px; }
    .gallery-section__head h2 { font-size: clamp(35px, 9.5vw, 48px); }
    .gallery-section__head > p { margin-top: 11px; }
    .gallery-toolbar { align-items: flex-start; flex-direction: column; gap: 7px; }
    .gallery-filters { width: 100%; gap: 2px; overflow-x: auto; scrollbar-width: thin; }
    .gallery-filters button { flex: none; padding: 7px 9px; font-size: 8px; }
    .gallery-grid { grid-auto-rows: auto; grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .gallery-card--feature, .gallery-card:nth-child(7n + 4) { grid-column: auto; grid-row: auto; }
    .gallery-card__image { flex: none; aspect-ratio: 1.24; }
    .gallery-card__caption { min-height: 65px; padding: 10px 11px; }
    .gallery-card__caption h3 { font-size: 11px; }
    .gallery-card__caption > a { font-size: 7px; }
    .gallery-next__inner { align-items: flex-start; flex-direction: column; gap: 9px; }
    .gallery-viewer { padding: 10px; }
    .gallery-viewer__bar button { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
    .ht-gallery-page *, .ht-gallery-page *::before, .ht-gallery-page *::after, .gallery-viewer * { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
