.gallery-detail-page {
    background: #ffffff;
    color: #0f172a;
    overflow: hidden;
}

/* HERO */

.gallery-detail-hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    background: #0f172a;
    overflow: hidden;
}

.gallery-detail-hero-bg,
.gallery-detail-overlay {
    position: absolute;
    inset: 0;
}

.gallery-detail-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .45;
}

.gallery-detail-overlay {
    background:
        radial-gradient(circle at 82% 20%, rgba(220, 38, 38, .24), transparent 32%),
        linear-gradient(90deg, rgba(15, 23, 42, .98), rgba(15, 23, 42, .78), rgba(15, 23, 42, .35));
}

.gallery-detail-hero-content {
    position: relative;
    z-index: 2;
    padding: 90px 0;
}

.gallery-detail-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
    color: rgba(255,255,255,.72);
    font-size: 14px;
}

.gallery-detail-breadcrumb a {
    color: rgba(255,255,255,.82);
    text-decoration: none;
}

.gallery-detail-breadcrumb strong {
    color: #ffffff;
}

.gallery-detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(37, 99, 235, .9);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 18px;
}

.gallery-detail-hero h1 {
    max-width: 920px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1;
    letter-spacing: -2px;
    font-weight: 900;
}

.gallery-detail-hero p {
    max-width: 760px;
    margin-top: 22px;
    color: rgba(255,255,255,.8);
    font-size: 18px;
    line-height: 1.8;
}

.gallery-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.gallery-detail-meta span {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(14px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-weight: 800;
}

.gallery-detail-meta i {
    color: #60a5fa;
    font-size: 20px;
}

/* CONTENT */

.gallery-detail-content {
    padding: 85px 0;
    background: #ffffff;
}

.gallery-detail-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 34px;
}

.gallery-detail-heading span {
    display: inline-flex;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(37, 99, 235, .08);
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 14px;
}

.gallery-detail-heading h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
    letter-spacing: -1.2px;
    font-weight: 900;
}

.gallery-detail-heading > a {
    min-height: 48px;
    padding: 0 18px;
    border-radius: 16px;
    background: #eff6ff;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 900;
    white-space: nowrap;
}

/* MASONRY */

.gallery-masonry {
    columns: 3 280px;
    column-gap: 18px;
}

.gallery-photo {
    position: relative;
    width: 100%;
    display: block;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
    border-radius: 26px;
    overflow: hidden;
    background: #e2e8f0;
    cursor: pointer;
    break-inside: avoid;
    box-shadow: 0 22px 65px rgba(15, 23, 42, .08);
}

.gallery-photo img {
    width: 100%;
    display: block;
    object-fit: cover;
    transition: .45s ease;
}

.gallery-photo:hover img {
    transform: scale(1.06);
}

.gallery-photo span {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .46);
    color: #ffffff;
    display: grid;
    place-items: center;
    opacity: 0;
    transition: .25s ease;
}

.gallery-photo span i {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    background: rgba(255,255,255,.16);
    backdrop-filter: blur(12px);
    display: grid;
    place-items: center;
    font-size: 30px;
}

.gallery-photo:hover span {
    opacity: 1;
}

.gallery-detail-empty {
    text-align: center;
    padding: 70px 30px;
    border-radius: 30px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
}

.gallery-detail-empty i {
    font-size: 56px;
    color: #1d4ed8;
}

.gallery-detail-empty h3 {
    margin: 18px 0 8px;
    color: #0f172a;
    font-size: 26px;
}

.gallery-detail-empty p {
    color: #64748b;
    line-height: 1.7;
}
/* RELATED ALBUMS */

.related-gallery {
    padding: 85px 0;
    background: #f8fafc;
}

.related-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.related-album-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 22px 65px rgba(15, 23, 42, .06);
    transition: .25s ease;
}

.related-album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 85px rgba(15, 23, 42, .1);
}

.related-album-card > div:first-child {
    height: 220px;
    background: #e2e8f0;
    overflow: hidden;
}

.related-album-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .45s ease;
}

.related-album-card:hover img {
    transform: scale(1.06);
}

.related-album-card > div:last-child {
    padding: 22px;
}

.related-album-card h3 {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 900;
}

.related-album-card p {
    color: #64748b;
    margin: 10px 0 18px;
    font-weight: 800;
}

.related-album-card a {
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* CTA */

.gallery-detail-cta {
    padding: 85px 0;
    background: #ffffff;
}

.gallery-detail-cta-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    padding: 42px;
    border-radius: 34px;
    background: linear-gradient(135deg, #1d4ed8, #0f172a);
    color: #ffffff;
    box-shadow: 0 35px 90px rgba(15, 23, 42, .15);
}

.gallery-detail-cta-card > div {
    display: flex;
    align-items: center;
    gap: 18px;
}

.gallery-detail-cta-card > div > i {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: rgba(255,255,255,.14);
    font-size: 32px;
}

.gallery-detail-cta-card h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    letter-spacing: -1px;
}

.gallery-detail-cta-card p {
    margin: 10px 0 0;
    color: rgba(255,255,255,.75);
    line-height: 1.7;
}

.gallery-detail-cta-card a {
    min-height: 52px;
    padding: 0 22px;
    border-radius: 16px;
    background: #ffffff;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 900;
    white-space: nowrap;
}

/* LIGHTBOX */

.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, .94);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.gallery-lightbox.is-open {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 86vw;
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 22px;
    box-shadow: 0 35px 90px rgba(0,0,0,.35);
}

.lightbox-caption {
    margin-top: 18px;
    text-align: center;
    color: #ffffff;
}

.lightbox-caption h3 {
    margin: 0;
    font-size: 24px;
}

.lightbox-caption p {
    margin: 8px 0 0;
    color: rgba(255,255,255,.72);
    line-height: 1.6;
}

.lightbox-close,
.lightbox-nav {
    border: 0;
    cursor: pointer;
    color: #ffffff;
    display: grid;
    place-items: center;
    transition: .25s ease;
}

.lightbox-close {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: rgba(255,255,255,.14);
    backdrop-filter: blur(12px);
    font-size: 26px;
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 58px;
    height: 58px;
    border-radius: 20px;
    background: rgba(255,255,255,.14);
    backdrop-filter: blur(12px);
    font-size: 34px;
}

.lightbox-nav.prev {
    left: 28px;
}

.lightbox-nav.next {
    right: 28px;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: #2563eb;
}
/* ANIMATIONS */

.gallery-detail-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .65s ease, transform .65s ease;
}

.gallery-detail-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .related-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-detail-cta-card,
    .gallery-detail-cta-card > div {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 760px) {
    .gallery-detail-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .gallery-masonry {
        columns: 2 220px;
    }

    .lightbox-nav {
        width: 48px;
        height: 48px;
    }

    .lightbox-nav.prev {
        left: 12px;
    }

    .lightbox-nav.next {
        right: 12px;
    }
}

@media (max-width: 560px) {
    .gallery-detail-hero {
        min-height: auto;
    }

    .gallery-detail-hero-content {
        padding: 65px 0;
    }

    .gallery-detail-hero h1 {
        font-size: 40px;
    }

    .gallery-detail-content,
    .related-gallery,
    .gallery-detail-cta {
        padding: 60px 0;
    }

    .gallery-masonry {
        columns: 1;
    }

    .related-gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-detail-cta-card {
        padding: 28px;
        border-radius: 24px;
    }
}