:root {
    --gallery-ink: var(--color-ink, #2b1b2d);
    --gallery-parchment: var(--color-parchment, #fbf7ef);
    --gallery-flame: var(--color-flame, #9c3b2e);
    --gallery-gold: var(--color-gold-dark, #9f7721);
    --gallery-muted: var(--color-muted-strong, #66574d);
    --gallery-max: var(--container-content, 1180px);
}

body.gallery-page {
    background: var(--gallery-parchment);
    color: var(--gallery-ink);
    font-size: 18px;
    line-height: 1.68;
}

body.gallery-page.nav-open,
body.gallery-page.gallery-modal-open {
    overflow: hidden;
}

.gallery-page :focus-visible {
    outline: 2px solid var(--gallery-flame);
    outline-offset: 4px;
}

.gallery-wrap {
    width: min(100% - 64px, var(--gallery-max));
    margin-inline: auto;
}

.gallery-skip-link {
    position: fixed;
    z-index: 3000;
    top: 12px;
    left: 12px;
    transform: translateY(-160%);
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--gallery-ink);
    color: #fff;
    text-decoration: none;
}

.gallery-skip-link:focus {
    transform: translateY(0);
}

.gallery-eyebrow {
    display: block;
	margin-bottom: 24px;
    color: var(--gallery-flame);
    font-family: "Noto Serif Devanagari", serif;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: 0;
	line-height: 1.55;
	
}

.gallery-page h1,
.gallery-page h2,
.gallery-page h3 {
    font-family: "Noto Serif Devanagari", serif;
    font-weight: 800;
    letter-spacing: 0;
}

.gallery-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(78px, 10vw, 128px) 0 clamp(64px, 8vw, 92px);
    background:
        radial-gradient(circle at 84% 18%, rgba(193, 85, 44, .14), transparent 30%),
        radial-gradient(circle at 8% 92%, rgba(152, 112, 32, .12), transparent 28%),
        linear-gradient(145deg, #fbf7ef 0%, #f3e8d9 58%, #eedbc9 100%);
    border-bottom: 1px solid rgba(152, 112, 32, .13);
}

.gallery-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: clamp(36px, 5vw, 55px);
    color: #6e6258;
    font-size: 14px;
}

.gallery-breadcrumb a {
    color: var(--gallery-flame);
    text-decoration: none;
}

.gallery-breadcrumb a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.gallery-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .72fr);
    gap: clamp(36px, 6vw, 72px);
    align-items: end;
}

.gallery-hero h1 {
    max-width: 920px;
    margin: 14px 0 0;
    color: var(--gallery-ink);
    font-size: clamp(2.7rem, 5.6vw, 5.25rem);
    line-height: 1.1;
}

.gallery-hero-grid > p {
    margin: 0;
    padding-left: 26px;
    border-left: 1px solid rgba(152, 112, 32, .36);
    color: var(--gallery-muted);
    font-family: "Noto Serif Devanagari", serif;
    font-size: clamp(1.05rem, 1.55vw, 1.28rem);
    line-height: 1.8;
}

.gallery-archive {
    padding: clamp(56px, 7vw, 86px) 0 clamp(76px, 9vw, 112px);
    background: linear-gradient(180deg, #fbf7ef 0%, #f7ecdc 54%, #fbf7ef 100%);
}

.gallery-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.gallery-toolbar h2 {
    margin: 7px 0 0;
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    line-height: 1.12;
}

.gallery-toolbar p {
    margin: 0;
    color: #75695f;
    font-weight: 800;
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 30px;
}

.gallery-filter {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 7px 15px;
    border: 1px solid rgba(36, 27, 46, .13);
    border-radius: 999px;
    background: rgba(255, 250, 241, .9);
    color: #4e443c;
    font: inherit;
    font-size: .92rem;
    font-weight: 800;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.gallery-filter:hover,
.gallery-filter:focus-visible {
    border-color: rgba(193, 85, 44, .38);
    color: var(--gallery-flame);
}

.gallery-filter.is-active {
    border-color: var(--gallery-flame);
    background: var(--gallery-flame);
    color: #fff9f1;
    box-shadow: 0 7px 18px rgba(193, 85, 44, .18);
}

.gallery-archive-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.gallery-archive-card {
    display: block;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 252, 246, .84);
    color: inherit;
    cursor: pointer;
    text-align: left;
    box-shadow: 0 14px 34px rgba(36, 27, 46, .08);
    transition: transform .2s ease, box-shadow .2s ease;
}

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

.gallery-archive-card:hover,
.gallery-archive-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(36, 27, 46, .12);
}

.gallery-archive-card figure {
    position: relative;
    min-height: 100%;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(152, 112, 32, .16);
    border-radius: 8px;
    background: #fffaf1;
}

.gallery-archive-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #eadfce;
    transition: transform .35s ease, filter .35s ease;
}

.gallery-archive-card:hover img {
    transform: scale(1.025);
    filter: saturate(1.04) contrast(1.02);
}

.gallery-archive-card figcaption {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: flex;
    justify-content: flex-start;
    pointer-events: none;
}

.gallery-archive-card figcaption span {
    max-width: 100%;
    overflow: hidden;
    padding: 6px 10px;
    border: 1px solid rgba(255, 250, 241, .34);
    border-radius: 999px;
    background: rgba(42, 28, 39, .72);
    color: #fffaf1;
    font-size: .78rem;
    font-weight: 900;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.gallery-closing {
    position: relative;
    overflow: hidden;
    padding: 88px 0;
    text-align: center;
    background: linear-gradient(145deg, #fbf7ef 0%, #f3e8d9 58%, #eedbc9 100%);
    color: var(--gallery-ink);
}

.gallery-closing::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0, rgba(193, 85, 44, .14), transparent 45%);
}

.gallery-closing-inner {
    position: relative;
    max-width: 830px;
}

.gallery-closing .gallery-eyebrow {
    color: var(--gallery-gold);
}

.gallery-closing h2 {
    margin: 12px 0 18px;
    color: var(--gallery-ink);
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.18;
}

.gallery-closing p {
    margin: 0 auto;
    color: var(--gallery-muted);
    font-family: "Noto Serif Devanagari", serif;
    font-size: 1.05rem;
    line-height: 1.78;
}

.gallery-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--gallery-flame);
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 800;
    transition: transform .2s ease, background-color .2s ease;
}

.gallery-button:hover,
.gallery-button:focus-visible {
    transform: translateY(-2px);
    background: #7f2828;
}

.gallery-lightbox {
    width: min(94vw, 1120px);
    max-width: none;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 12px;
    background: #17121d;
    color: #fff;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
}

.gallery-lightbox::backdrop {
    background: rgba(20, 15, 24, .88);
    backdrop-filter: blur(7px);
}

.lightbox-shell {
    position: relative;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 64px;
    align-items: center;
    min-height: 72vh;
    padding: 52px 12px 18px;
}

.lightbox-shell figure {
    min-width: 0;
    margin: 0;
}

.lightbox-image {
    display: block;
    width: 100%;
    max-height: 68vh;
    object-fit: contain;
    border-radius: 8px;
    background: #0e0b12;
}

.lightbox-shell figcaption {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 24px;
    row-gap: 4px;
    padding: 16px 6px 5px;
}

.lightbox-shell figcaption strong {
    color: #fffaf1;
    font-family: "Noto Serif Devanagari", serif;
    font-size: 1.25rem;
    line-height: 1.4;
}

.lightbox-caption {
    grid-column: 1;
    color: #d1c7d6;
    font-size: .95rem;
    line-height: 1.55;
}

.lightbox-counter {
    grid-column: 2;
    grid-row: 1;
    color: #e1bf6b;
    font-size: .88rem;
    font-weight: 800;
    white-space: nowrap;
}

.lightbox-close,
.lightbox-arrow {
    border: 0;
    background: transparent;
    color: #f8f1e9;
    cursor: pointer;
}

.lightbox-close {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 14px;
    width: 42px;
    height: 42px;
    font-size: 33px;
    line-height: 1;
}

.lightbox-arrow {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    font-size: 24px;
    transition: border-color .2s ease, color .2s ease;
}

.lightbox-arrow:hover,
.lightbox-arrow:focus-visible {
    border-color: #d5ae59;
    color: #d5ae59;
}

.lightbox-prev {
    justify-self: start;
}

.lightbox-next {
    justify-self: end;
}

@media (max-width: 1080px) {
    .gallery-archive-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .gallery-hero-grid,
    .gallery-toolbar {
        grid-template-columns: 1fr;
        display: grid;
        gap: 22px;
    }

    .gallery-hero-grid > p {
        max-width: 720px;
    }

    .gallery-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lightbox-shell {
        grid-template-columns: 52px minmax(0, 1fr) 52px;
    }
}

@media (max-width: 620px) {
    .gallery-wrap {
        width: min(100% - 36px, var(--gallery-max));
    }

    .gallery-hero {
        padding: 106px 0 58px;
    }

    .gallery-breadcrumb {
        margin-bottom: 32px;
    }

    .gallery-hero h1 {
        font-size: clamp(2.3rem, 11vw, 3.25rem);
    }

    .gallery-hero-grid > p {
        padding-left: 18px;
    }

    .gallery-archive-grid {
        grid-template-columns: 1fr;
    }

    .gallery-closing {
        padding: 68px 0;
    }

    .gallery-lightbox {
        width: 96vw;
        border-radius: 10px;
    }

    .lightbox-shell {
        display: block;
        min-height: 0;
        padding: 54px 12px 14px;
    }

    .lightbox-image {
        max-height: 58vh;
    }

    .lightbox-arrow {
        position: absolute;
        z-index: 2;
        top: 50%;
        width: 42px;
        height: 42px;
        background: rgba(20, 15, 24, .64);
    }

    .lightbox-prev {
        left: 18px;
    }

    .lightbox-next {
        right: 18px;
    }

    .lightbox-shell figcaption {
        display: block;
        padding: 14px 4px 4px;
    }

    .lightbox-caption,
    .lightbox-counter {
        display: block;
        margin-top: 5px;
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
        animation-duration: .001ms !important;
    }
}

