/* Gallery unified page style */
:root {
    --gallery-bg: rgba(11,11,12,.72);
    --gallery-card: rgba(255, 255, 255, .045);
    --gallery-card-strong: rgba(255, 255, 255, .07);
    --gallery-line: rgba(182,122,53,.18);
    --gallery-line-strong: rgba(182,122,53,.38);
    --gallery-gold: var(--g2, #B67A35);
    --gallery-gold-soft: var(--g4, #D09A55);
    --gallery-text: var(--t1, #ffffff);
    --gallery-muted: var(--t2, #B8B2AA);
    --gallery-dim: var(--t3, #B8B2AA);
}

 .gallery-page {
    position: relative;
    z-index: 1;
    padding: var(--zcp-page-top-gap) 0 110px;
    margin: 0 auto;
    max-width: none;
    color: var(--gallery-text);
}

.gallery-page::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 0%, rgba(182,122,53,.14), transparent 34%),
        radial-gradient(circle at 60% 30%, rgba(182,122,53,.08), transparent 36%),
        radial-gradient(circle at 18% 8%, rgba(182,122,53,.10), transparent 34%);
    z-index: -1;
}

.gallery-hero {
    width: min(1180px, calc(100% - 56px));
    min-height: auto;
    margin: 0 auto 44px;
    padding: 54px 34px 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid var(--gallery-line);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(182,122,53,.12), rgba(182,122,53,.07) 58%, rgba(112,69,31, .80)),
        rgba(112,69,31, .82);
    box-shadow: 0 32px 90px rgba(0, 0, 0, .45);
    overflow: hidden;
    position: relative;
}

.gallery-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.045), transparent);
    opacity: .55;
    pointer-events: none;
}

.gallery-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 17px;
    border: 1px solid var(--gallery-line-strong);
    border-radius: 999px;
    background: rgba(182,122,53,.075);
    color: var(--gallery-gold);
    font: 800 11px/1.2 'Cinzel', serif;
    letter-spacing: 3px;
    text-transform: uppercase;
    box-shadow: none;
    backdrop-filter: none;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.gallery-badge-icon,
.gallery-badge svg {
    width: 18px;
    height: 18px;
}

.gallery-badge i {
    display: none;
}

.gallery-hero h1 {
    margin: 0;
    font-family: 'Cinzel', serif;
    font-weight: 900;
    font-size: clamp(42px, 6vw, 78px);
    line-height: .95;
    letter-spacing: .03em;
    color: var(--gallery-gold-soft);
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    filter: none;
    text-shadow: 0 10px 34px rgba(0,0,0,.5);
    position: relative;
    z-index: 1;
}

.gallery-hero p {
    max-width: 760px;
    margin: 20px auto 0;
    color: var(--gallery-muted);
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    line-height: 1.55;
    font-weight: 600;
    letter-spacing: 0;
    position: relative;
    z-index: 1;
}

.gallery-hero-stats {
    margin: 30px auto 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 680px;
    position: relative;
    z-index: 1;
}

.gallery-hero-stats div {
    padding: 15px 14px;
    border: 1px solid rgba(182,122,53,.16);
    border-radius: 17px;
    background: rgba(0,0,0,.22);
    box-shadow: none;
}

.gallery-hero-stats strong {
    display: block;
    color: var(--gallery-gold);
    font: 900 26px/1 'Cinzel', serif;
    margin-bottom: 0;
}

.gallery-hero-stats span {
    display: block;
    margin-top: 7px;
    color: var(--gallery-dim);
    font-family: 'Cinzel', serif;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2.4px;
    text-transform: uppercase;
}

.gallery-shell {
    width: min(1180px, calc(100% - 56px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 24px;
    align-items: start;
}

.gallery-panel,
.gallery-side-card,
.gallery-view-card,
.gallery-related {
    border: 1px solid var(--gallery-line);
    background: linear-gradient(180deg, var(--gallery-card), rgba(0,0,0,.18));
    border-radius: 26px;
    box-shadow: 0 24px 70px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.055);
    backdrop-filter: blur(14px);
}

.gallery-panel {
    padding: 26px;
    min-width: 0;
}

.gallery-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.gallery-section-head span {
    display: block;
    color: var(--gallery-gold);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2.8px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.gallery-section-head h2 {
    margin: 0;
    color: var(--gallery-text);
    font-family: 'Cinzel', serif;
    font-size: clamp(22px, 2vw, 32px);
    letter-spacing: .6px;
}

.gallery-section-head em {
    flex: 0 0 auto;
    color: var(--gallery-dim);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.gallery-tools {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.035);
    color: var(--gallery-muted);
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .7px;
    transition: .22s ease;
}

.gallery-filter b {
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(0,0,0,.32);
    color: var(--gallery-gold-soft);
    font-size: 11px;
}

.gallery-filter:hover,
.gallery-filter.active {
    color: #0B0B0C;
    border-color: rgba(208,154,85,.58);
    background: linear-gradient(135deg, #B67A35, #D09A55, #B67A35);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(182,122,53,.18);
}

.gallery-filter:hover b,
.gallery-filter.active b {
    color: #D09A55;
    background: rgba(0,0,0,.36);
}

.gallery-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
}

.gallery-search input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.28);
    color: var(--gallery-text);
    font: 700 14px 'Rajdhani', sans-serif;
    outline: none;
    transition: .22s ease;
}

.gallery-search input:focus {
    border-color: rgba(208,154,85,.46);
    box-shadow: 0 0 0 4px rgba(208,154,85,.07);
}

.gallery-search input::placeholder { color: rgba(201,189,169,.55); }

.gallery-search button,
.gallery-clear,
.gallery-back {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid rgba(208,154,85,.38);
    background: linear-gradient(135deg, #B67A35, #D09A55, #B67A35);
    color: #0B0B0C;
    text-decoration: none;
    font: 900 12px 'Cinzel', serif;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: .22s ease;
}

.gallery-search button:hover,
.gallery-clear:hover,
.gallery-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(182,122,53,.18);
}

.gallery-clear,
.gallery-back.is-soft {
    background: rgba(255,255,255,.04);
    color: var(--gallery-gold-soft);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.25);
    transition: .28s ease;
}

.gallery-card:hover {
    transform: translateY(-6px);
    border-color: rgba(208,154,85,.38);
    box-shadow: 0 26px 56px rgba(0,0,0,.33), 0 0 28px rgba(182,122,53,.08);
}

.gallery-card.is-featured {
    border-color: rgba(208,154,85,.36);
}

.gallery-featured-badge {
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 14px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(0,0,0,.62);
    border: 1px solid rgba(208,154,85,.44);
    color: var(--gallery-gold-soft);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.gallery-card-link {
    display: grid;
    color: inherit;
    text-decoration: none;
}

.gallery-card-media,
.gallery-related-media,
.gallery-view-media {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(182,122,53,.16), rgba(0,0,0,.06)),
        rgba(0,0,0,.30);
}

.gallery-card-media {
    aspect-ratio: 16 / 10;
}

.gallery-card-media::after,
.gallery-related-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.62));
    opacity: .88;
    transition: .25s ease;
}

.gallery-card:hover .gallery-card-media::after { opacity: .45; }

.gallery-card-media img,
.gallery-related-media img,
.gallery-view-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: .42s ease;
}

.gallery-card:hover .gallery-card-media img { transform: scale(1.06); }

.gallery-card-media.is-empty,
.gallery-related-media.is-empty,
.gallery-view-media.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(208,154,85,.42);
    font: 900 13px 'Cinzel', serif;
    letter-spacing: 3px;
    min-height: 170px;
}

.gallery-card-body {
    padding: 18px;
}

.gallery-card-top,
.gallery-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.gallery-card-top span,
.gallery-card-top time,
.gallery-card-foot span,
.gallery-card-foot b {
    color: var(--gallery-dim);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.gallery-card-top span { color: var(--gallery-gold); }

.gallery-card h3 {
    color: var(--gallery-text);
    font-family: 'Cinzel', serif;
    font-size: 18px;
    line-height: 1.35;
    margin: 12px 0 9px;
}

.gallery-card p {
    color: var(--gallery-muted);
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 16px;
}

.gallery-card-foot {
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.gallery-card-foot span {
    color: var(--gallery-gold-soft);
}

.gallery-empty {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 22px;
    border: 1px dashed rgba(208,154,85,.24);
    border-radius: 24px;
    background: rgba(0,0,0,.22);
}

.gallery-empty-icon {
    width: 76px;
    height: 76px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border: 1px solid rgba(208,154,85,.22);
    background: rgba(208,154,85,.07);
    font-size: 34px;
}

.gallery-empty h3 {
    margin: 0 0 8px;
    color: var(--gallery-text);
    font: 900 24px 'Cinzel', serif;
}

.gallery-empty p {
    margin: 0;
    color: var(--gallery-muted);
    max-width: 520px;
    line-height: 1.7;
}

.gallery-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.gallery-pagination a,
.gallery-pagination span {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.10);
    color: var(--gallery-muted);
    text-decoration: none;
    font-weight: 900;
}

.gallery-pagination .active,
.gallery-pagination a:hover {
    color: #0B0B0C;
    border-color: rgba(208,154,85,.48);
    background: linear-gradient(135deg, #B67A35, #D09A55);
}

.gallery-sidebar {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 110px;
}

.gallery-side-card {
    padding: 22px;
}

.gallery-side-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.gallery-side-head > span {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    border: 1px solid rgba(208,154,85,.22);
    background: rgba(208,154,85,.08);
    font-size: 20px;
}

.gallery-side-head small,
.gallery-info-card small {
    display: block;
    color: var(--gallery-dim);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.gallery-side-head strong,
.gallery-info-card strong {
    display: block;
    color: var(--gallery-text);
    font-family: 'Cinzel', serif;
    font-size: 17px;
}

.gallery-album-list,
.gallery-mini-list {
    display: grid;
    gap: 10px;
}

.gallery-album-list a,
.gallery-mini-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 13px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(0,0,0,.18);
    color: var(--gallery-muted);
    text-decoration: none;
    transition: .22s ease;
}

.gallery-album-list a:hover,
.gallery-album-list a.active,
.gallery-mini-list a:hover {
    border-color: rgba(208,154,85,.34);
    background: rgba(208,154,85,.08);
    color: var(--gallery-gold-soft);
}

.gallery-album-list b {
    min-width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(0,0,0,.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gallery-gold-soft);
    font-size: 12px;
}

.gallery-mini-list a {
    display: grid;
    justify-content: stretch;
}

.gallery-mini-list span {
    color: var(--gallery-text);
    font-weight: 800;
    line-height: 1.35;
}

.gallery-mini-list small {
    color: var(--gallery-dim);
    margin-top: 4px;
    font-weight: 700;
}

.gallery-side-note,
.gallery-info-card p {
    color: var(--gallery-muted);
    line-height: 1.7;
    margin: 0;
}

.gallery-info-card {
    background: linear-gradient(145deg, rgba(182,122,53,.12), rgba(0,0,0,.20));
}

.gallery-info-card strong {
    margin-bottom: 10px;
}

.gallery-view-page {
    max-width: none;
}

.gallery-view-hero {
    padding-top: 46px;
    padding-bottom: 40px;
}

.gallery-view-hero h1 {
    font-size: clamp(32px, 4.5vw, 62px);
    line-height: 1.05;
}

.gallery-view-shell {
    width: min(1180px, calc(100% - 56px));
    margin: 0 auto;
    display: grid;
    gap: 22px;
}

.gallery-view-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gallery-view-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr);
}

.gallery-view-media {
    min-height: 520px;
    background-color: #0B0B0C;
}

.gallery-view-media img {
    object-fit: contain;
    background: #0B0B0C;
}

.gallery-view-content {
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gallery-view-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.gallery-view-kicker span,
.gallery-view-kicker b {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(208,154,85,.24);
    background: rgba(208,154,85,.07);
    color: var(--gallery-gold-soft);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.gallery-view-kicker b {
    color: #0B0B0C;
    background: linear-gradient(135deg, #B67A35, #D09A55);
}

.gallery-view-content h2 {
    margin: 0 0 14px;
    color: var(--gallery-text);
    font: 900 clamp(24px, 2.4vw, 38px) 'Cinzel', serif;
    line-height: 1.2;
}

.gallery-view-content p {
    margin: 0;
    color: var(--gallery-muted);
    font-size: 16px;
    line-height: 1.85;
}

.gallery-view-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 26px;
}

.gallery-view-meta div {
    padding: 15px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(0,0,0,.20);
}

.gallery-view-meta strong {
    display: block;
    color: var(--gallery-gold-soft);
    font: 900 17px 'Cinzel', serif;
    margin-bottom: 6px;
    word-break: break-word;
}

.gallery-view-meta span {
    display: block;
    color: var(--gallery-dim);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.gallery-related {
    padding: 24px;
}

.gallery-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.gallery-related-card {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 18px;
    color: inherit;
    text-decoration: none;
    background: rgba(0,0,0,.20);
    transition: .22s ease;
}

.gallery-related-card:hover {
    transform: translateY(-4px);
    border-color: rgba(208,154,85,.34);
}

.gallery-related-media {
    aspect-ratio: 16 / 9;
}

.gallery-related-card > div:last-child {
    padding: 13px;
    display: grid;
    gap: 5px;
}

.gallery-related-card strong {
    color: var(--gallery-text);
    line-height: 1.35;
}

.gallery-related-card span {
    color: var(--gallery-dim);
    font-size: 12px;
    font-weight: 800;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1180px) {
    .gallery-shell,
    .gallery-view-card {
        grid-template-columns: 1fr;
    }
    .gallery-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .gallery-info-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 980px) {
    .gallery-page {
        padding-top: var(--zcp-page-top-gap-mobile);
    }
    .gallery-hero,
    .gallery-shell,
    .gallery-view-shell {
        width: min(1180px, calc(100% - 40px));
    }
    .gallery-grid,
    .gallery-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .gallery-view-media {
        min-height: 420px;
    }
}

@media (max-width: 720px) {
    .gallery-page {
        padding-top: var(--zcp-page-top-gap-mobile);
        padding-bottom: 78px;
    }
    .gallery-hero,
    .gallery-shell,
    .gallery-view-shell {
        width: calc(100% - 28px);
    }
    .gallery-hero {
        min-height: auto;
        padding: 42px 20px 34px;
        border-radius: 24px;
    }
    .gallery-hero h1 {
        font-size: 38px;
    }
    .gallery-hero-stats,
    .gallery-grid,
    .gallery-related-grid,
    .gallery-sidebar,
    .gallery-view-meta {
        grid-template-columns: 1fr;
    }
    .gallery-section-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .gallery-panel,
    .gallery-side-card,
    .gallery-related {
        padding: 18px;
        border-radius: 20px;
    }
    .gallery-search {
        grid-template-columns: 1fr;
    }
    .gallery-search button,
    .gallery-clear,
    .gallery-back {
        width: 100%;
    }
    .gallery-view-content {
        padding: 22px;
    }
    .gallery-view-media {
        min-height: 300px;
    }
}
