/* ================================================
   GALLERY PAGE – PREMIUM STYLES v2
   ================================================ */

/* ---- HERO ---- */
.gl-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(140deg, #020a2e 0%, #082068 35%, #0b53c0 65%, #0e7fe8 90%, #00c8ff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 60px;
}

.gl-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.gl-hero-banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: glBannerZoom 30s ease-in-out infinite alternate;
}

.gl-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(2, 10, 46, 0.30) 0%,
            rgba(8, 32, 104, 0.22) 40%,
            rgba(11, 83, 192, 0.18) 70%,
            rgba(2, 10, 46, 0.45) 100%);
    z-index: 1;
}

@keyframes glBannerZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.08);
    }
}

.gl-mesh {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.gl-m1 {
    width: 450px;
    height: 450px;
    background: rgba(0, 212, 255, 0.15);
    top: -20%;
    right: -5%;
    animation: glF1 8s ease-in-out infinite alternate;
}

.gl-m2 {
    width: 300px;
    height: 300px;
    background: rgba(100, 180, 255, 0.10);
    bottom: -15%;
    left: -5%;
    animation: glF2 10s ease-in-out infinite alternate;
}

@keyframes glF1 {
    0% {
        transform: translate(0, 0) scale(1)
    }

    100% {
        transform: translate(-25px, 15px) scale(1.12)
    }
}

@keyframes glF2 {
    0% {
        transform: translate(0, 0) scale(1)
    }

    100% {
        transform: translate(15px, -10px) scale(1.08)
    }
}

.gl-grid-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, transparent 70%);
}

.gl-hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.gl-hero .breadcrumb,
.gl-hero .breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
}

.gl-hero .breadcrumb a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.gl-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 24px;
}

.gl-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.25);
    animation: glPulse 2s infinite;
}

@keyframes glPulse {

    0%,
    100% {
        box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.25)
    }

    50% {
        box-shadow: 0 0 0 8px rgba(0, 212, 255, 0)
    }
}

.gl-hero h1 {
    color: #fff;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 16px;
}

.gl-grad-text {
    background: linear-gradient(135deg, #fff, #82e4ff, #00d4ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gl-hero p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    line-height: 1.7;
    max-width: 600px;
}

/* ---- PHOTO GRID ---- */
.gl-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.gl-section-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text);
    margin: 8px 0 12px;
}

.gl-section-header p {
    font-size: 15px;
    color: var(--muted);
    max-width: 500px;
    margin: 0 auto;
}

.gl-fullwidth {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
}

.gl-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.gl-photo-item {
    border-radius: 0;
    overflow: hidden;
    background: #000;
    border: none;
    box-shadow: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gl-photo-item:hover {
    z-index: 2;
    box-shadow: 0 20px 48px rgba(11, 94, 215, 0.14);
}

.gl-photo-item img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gl-photo-item:hover img {
    transform: scale(1.06);
}

/* ---- LIGHTBOX (fullscreen image) ---- */
.gl-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.gl-lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.gl-lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 8, 35, 0.85);
    backdrop-filter: blur(12px);
}

.gl-lb-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.20);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    backdrop-filter: blur(8px);
}

.gl-lb-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.gl-lb-close svg {
    width: 22px;
    height: 22px;
}

.gl-lb-img {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 16px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.40);
    object-fit: contain;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gl-lightbox.open .gl-lb-img {
    transform: scale(1);
}

/* ---- FILTER BAR ---- */
.gl-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    padding: 16px 22px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(15, 40, 85, 0.06);
    backdrop-filter: blur(16px);
    box-shadow: 0 6px 24px rgba(10, 27, 51, 0.04);
}

.gl-filter-left {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.gl-ftab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 12px;
    background: rgba(11, 94, 215, 0.04);
    border: 1px solid rgba(11, 94, 215, 0.08);
    color: var(--muted);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.gl-ftab svg {
    width: 15px;
    height: 15px;
}

.gl-ftab:hover {
    background: rgba(11, 94, 215, 0.08);
    color: var(--primary);
}

.gl-ftab.active {
    background: var(--grad);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(11, 94, 215, 0.25);
}

.gl-count-badge {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
}

.gl-count-badge span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 10px;
    background: var(--grad);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    margin-right: 6px;
}

/* ---- GRID ---- */
.gl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Card */
.gl-card {
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(15, 40, 85, 0.06);
    backdrop-filter: blur(20px);
    box-shadow: 0 6px 24px rgba(10, 27, 51, 0.05);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gl-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 56px rgba(11, 94, 215, 0.14);
    border-color: rgba(11, 94, 215, 0.12);
}

/* Thumb */
.gl-card-thumb {
    position: relative;
    aspect-ratio: 4/3;
    background: linear-gradient(145deg, rgba(11, 94, 215, 0.03) 0%, rgba(0, 179, 255, 0.06) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gl-ph {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(11, 94, 215, 0.18);
}

.gl-ph svg {
    width: 48px;
    height: 48px;
    opacity: 0.5;
}

/* Badge */
.gl-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 14px;
    border-radius: 10px;
    background: var(--grad);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(11, 94, 215, 0.30);
    z-index: 2;
}

.gl-badge-green {
    background: linear-gradient(135deg, #0a8f3e, #10c962);
    box-shadow: 0 4px 12px rgba(10, 143, 62, 0.30);
}

.gl-badge-purple {
    background: linear-gradient(135deg, #6c3ed0, #9465e5);
    box-shadow: 0 4px 12px rgba(108, 62, 208, 0.30);
}

/* Hover overlay */
.gl-card-ov {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 15, 50, 0.1) 0%, rgba(5, 15, 50, 0.65) 100%);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 1;
}

.gl-card:hover .gl-card-ov {
    opacity: 1;
}

.gl-card-zoom {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    transform: translateY(8px);
}

.gl-card:hover .gl-card-zoom {
    transform: translateY(0);
}

.gl-card-zoom svg {
    width: 18px;
    height: 18px;
}

.gl-card-zoom:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.45);
    transform: scale(1.04);
}

/* Card body */
.gl-card-body {
    padding: 18px 20px;
}

.gl-card-body h3 {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 6px;
    color: var(--text);
}

.gl-card-body p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}

/* ---- LIGHTBOX ---- */
.gl-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.gl-lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.gl-lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 8, 35, 0.75);
    backdrop-filter: blur(12px);
}

.gl-lb-panel {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 560px;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(15, 40, 85, 0.08);
    backdrop-filter: blur(24px);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.25);
    transform: scale(0.9) translateY(24px);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gl-lightbox.open .gl-lb-panel {
    transform: scale(1) translateY(0);
}

.gl-lb-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    backdrop-filter: blur(8px);
}

.gl-lb-close:hover {
    background: rgba(0, 0, 0, 0.5);
}

.gl-lb-close svg {
    width: 18px;
    height: 18px;
}

.gl-lb-visual {
    aspect-ratio: 16/10;
    background: linear-gradient(145deg, rgba(11, 94, 215, 0.04) 0%, rgba(0, 179, 255, 0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gl-lb-visual .gl-ph svg {
    width: 64px;
    height: 64px;
}

.gl-lb-body {
    padding: 24px 28px;
}

.gl-lb-cat {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 8px;
    background: var(--grad);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 12px;
}

.gl-lb-body h3 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 10px;
    color: var(--text);
}

.gl-lb-body p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
    margin: 0 0 18px;
}

.gl-lb-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    background: var(--grad);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(11, 94, 215, 0.25);
    transition: all 0.3s ease;
}

.gl-lb-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(11, 94, 215, 0.35);
}

.gl-lb-action svg {
    width: 16px;
    height: 16px;
}

/* ---- CTA ---- */
.gl-cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(140deg, #020a2e 0%, #082068 35%, #0b53c0 65%, #0e7fe8 90%);
    padding: 72px 0;
}

.gl-cta-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.gl-cta-m1 {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.14);
    top: -30%;
    right: -5%;
    filter: blur(80px);
    animation: glF1 8s ease-in-out infinite alternate;
}

.gl-cta-m2 {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(120, 180, 255, 0.10);
    bottom: -20%;
    left: -5%;
    filter: blur(80px);
    animation: glF2 10s ease-in-out infinite alternate;
}

.gl-cta-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.gl-cta h2 {
    color: #fff;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 900;
    margin: 0 0 12px;
}

.gl-cta p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 28px;
}

.gl-cta-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.gl-btn-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 28px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff 0%, #e8f4ff 100%);
    color: #0b47a8;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gl-btn-main:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.gl-btn-main svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s;
}

.gl-btn-main:hover svg {
    transform: translateX(4px);
}

.gl-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 28px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16px);
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gl-btn-outline:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-3px);
}

.gl-btn-outline svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s;
}

.gl-btn-outline:hover svg {
    transform: translateX(4px);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 980px) {
    .gl-hero {
        padding: 120px 0 48px;
        min-height: 60vh;
    }

    .gl-photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gl-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gl-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .gl-count-badge {
        text-align: center;
    }
}

@media (max-width: 560px) {
    .gl-hero {
        padding: 0 0 36px;
        min-height: auto;
        flex-direction: column;
    }

    .gl-hero-bg {
        position: relative;
        width: 100%;
        aspect-ratio: 16/9;
    }

    .gl-hero-banner-img {
        object-fit: contain;
        animation: none;
    }

    .gl-hero-content {
        padding-top: 28px;
    }

    .gl-hero h1 {
        font-size: 26px;
    }

    .gl-grid {
        grid-template-columns: 1fr;
    }

    .gl-photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gl-filter-left {
        gap: 6px;
    }

    .gl-ftab {
        padding: 7px 12px;
        font-size: 12px;
    }

    .gl-lb-panel {
        width: 95%;
        border-radius: 20px;
    }

    .gl-cta-btns {
        flex-direction: column;
    }

    .gl-cta-btns .gl-btn-main,
    .gl-cta-btns .gl-btn-outline {
        width: 100%;
        justify-content: center;
    }
}