﻿/* =====================================================
   ELDIA MONTESSORI - MODERN GALLERY
===================================================== */

.eldia-gallery-hero {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(120deg, #102f55, #2563eb);
    overflow: hidden;
}

.eldia-gallery-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 850px;
    margin: auto;
}

.eldia-gallery-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 50px;
    background: rgba(255,255,255,.15);
    color: #facc15;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 22px;
}

.eldia-gallery-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 900;
    color: white;
    margin-bottom: 22px;
}

    .eldia-gallery-hero h1 span {
        color: #facc15;
    }

.eldia-gallery-hero p {
    color: #e2e8f0;
    font-size: 17px;
    line-height: 1.9;
    max-width: 720px;
    margin: 0 auto 25px;
}

.eldia-gallery-breadcrumb {
    justify-content: center;
    margin: 0;
}

    .eldia-gallery-breadcrumb a {
        color: white;
        font-weight: 800;
        text-decoration: none;
    }

    .eldia-gallery-breadcrumb .active {
        color: #facc15;
    }

    .eldia-gallery-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
        color: #cbd5e1;
    }

.gallery-hero-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.gallery-shape-one {
    width: 240px;
    height: 240px;
    background: rgba(250,204,21,.13);
    top: -110px;
    right: 8%;
}

.gallery-shape-two {
    width: 170px;
    height: 170px;
    background: rgba(251,113,133,.16);
    bottom: -80px;
    left: 10%;
}

.gallery-shape-three {
    width: 65px;
    height: 65px;
    background: rgba(34,197,94,.25);
    top: 40px;
    left: 15%;
}


/* =====================================================
   INTRODUCTION
===================================================== */

.eldia-gallery-intro {
    padding: 75px 0 50px;
    background: white;
}

.eldia-gallery-label {
    display: inline-block;
    color: #ff7900;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.eldia-gallery-intro h2 {
    color: #102f55;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 18px;
}

    .eldia-gallery-intro h2 span {
        color: #ff7900;
    }

.eldia-gallery-intro p {
    color: #64748b;
    font-size: 16px;
    line-height: 1.9;
    max-width: 720px;
}

.eldia-gallery-stats {
    display: flex;
    gap: 18px;
    justify-content: flex-end;
}

.gallery-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-radius: 20px;
    background: #f8fafc;
    min-width: 150px;
}

.gallery-stat-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 23px;
}

.stat-orange {
    background: #ffedd5;
    color: #f97316;
}

.stat-blue {
    background: #dbeafe;
    color: #2563eb;
}

.gallery-stat-item strong {
    display: block;
    color: #102f55;
    font-size: 25px;
    font-weight: 900;
}

.gallery-stat-item span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}


/* =====================================================
   GALLERY FILTERS
===================================================== */

.eldia-gallery-main {
    padding: 50px 0 90px;
    background: #fffaf3;
}

.eldia-gallery-filter-container {
    display: flex;
    justify-content: center;
    margin-bottom: 45px;
}

.eldia-gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.eldia-gallery-filter {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 22px;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    background: white;
    color: #334155;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    transition: .3s;
}

    .eldia-gallery-filter:hover {
        color: #ff7900;
        border-color: #ff7900;
    }

    .eldia-gallery-filter.active {
        background: #ff7900;
        color: white;
        border-color: #ff7900;
        box-shadow: 0 8px 20px rgba(255,121,0,.2);
    }


/* =====================================================
   MEDIA CARDS
===================================================== */

.eldia-gallery-item[hidden] {
    display: none !important;
}

.eldia-gallery-card {
    position: relative;
    display: block;
    width: 100%;
    height: 315px;
    padding: 0;
    border: none;
    border-radius: 24px;
    overflow: hidden;
    background: #e2e8f0;
    box-shadow: 0 10px 30px rgba(15,23,42,.08);
    transition: transform .3s, box-shadow .3s;
}

    .eldia-gallery-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 40px rgba(15,23,42,.15);
    }

.eldia-image-card {
    cursor: pointer;
    text-align: left;
}

.eldia-gallery-media {
    display: block;
    width: 100%;
    height: 100%;
}

.eldia-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.eldia-image-card:hover img {
    transform: scale(1.08);
}

.eldia-gallery-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    padding: 25px;
    background: linear-gradient( transparent 30%, rgba(9,32,64,.9) );
}

.eldia-gallery-card-info strong {
    display: block;
    color: white;
    font-size: 19px;
    font-weight: 900;
    margin-bottom: 6px;
}

.eldia-gallery-card-info small {
    color: #e2e8f0;
    font-size: 12px;
}

.eldia-gallery-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #facc15;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.eldia-gallery-zoom {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ff7900;
    color: white;
    font-size: 18px;
}


/* =====================================================
   VIDEO CARDS
===================================================== */

.eldia-video-card {
    background: white;
    cursor: default;
}

    .eldia-video-card .eldia-gallery-media {
        height: 245px;
        background: #102f55;
    }

    .eldia-video-card video {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        background: #102f55;
    }

.eldia-video-card-footer {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 20px;
}

.eldia-video-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffedd5;
    color: #ff7900;
}

.eldia-video-card-footer strong {
    display: block;
    color: #102f55;
    font-size: 14px;
    font-weight: 900;
}

.eldia-video-card-footer small {
    color: #64748b;
    font-size: 12px;
}


/* =====================================================
   EMPTY STATE
===================================================== */

.eldia-gallery-empty {
    padding: 65px 20px;
    text-align: center;
}

    .eldia-gallery-empty[hidden] {
        display: none;
    }

.eldia-gallery-empty-icon {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    border-radius: 50%;
    background: #ffedd5;
    color: #ff7900;
    font-size: 40px;
}

.eldia-gallery-empty h3 {
    color: #102f55;
    font-size: 24px;
    font-weight: 900;
}

.eldia-gallery-empty p {
    color: #64748b;
    margin-bottom: 25px;
}

.eldia-gallery-reset {
    border: 0;
    border-radius: 50px;
    background: #ff7900;
    color: white;
    padding: 13px 25px;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.eldia-gallery-results {
    text-align: center;
    margin-top: 40px;
    color: #64748b;
    font-size: 14px;
}

    .eldia-gallery-results strong {
        color: #102f55;
    }


/* =====================================================
   LIGHTBOX
===================================================== */

.eldia-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 70px 75px;
    background: rgba(5,15,35,.97);
}

    .eldia-gallery-lightbox.active {
        display: flex;
    }

.eldia-lightbox-content {
    max-width: 1100px;
    max-height: 100%;
    overflow: auto;
    text-align: center;
}

    .eldia-lightbox-content img {
        display: block;
        max-width: 100%;
        max-height: 70vh;
        width: auto;
        height: auto;
        margin: auto;
        border-radius: 12px;
        object-fit: contain;
    }

.eldia-lightbox-caption {
    padding-top: 20px;
}

    .eldia-lightbox-caption h3 {
        color: white;
        font-size: 22px;
        font-weight: 900;
    }

    .eldia-lightbox-caption p {
        color: #cbd5e1;
        font-size: 14px;
    }

    .eldia-lightbox-caption span {
        color: #facc15;
        font-size: 13px;
        font-weight: 800;
    }

.eldia-lightbox-close,
.eldia-lightbox-arrow {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: white;
    cursor: pointer;
}

    .eldia-lightbox-close:hover,
    .eldia-lightbox-arrow:hover {
        background: #ff7900;
    }

.eldia-lightbox-close {
    top: 20px;
    right: 25px;
}

.eldia-lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.eldia-lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

body.eldia-lightbox-open {
    overflow: hidden;
}


/* =====================================================
   ADMISSION CTA
===================================================== */

.eldia-gallery-admission {
    padding: 80px 0;
    background: white;
}

.eldia-gallery-admission-box {
    padding: 65px;
    border-radius: 30px;
    background: linear-gradient(120deg, #2563eb, #102f55);
    color: white;
}

    .eldia-gallery-admission-box > .row {
        position: relative;
    }

    .eldia-gallery-admission-box span {
        color: #facc15;
        font-size: 12px;
        font-weight: 900;
        letter-spacing: 2px;
    }

    .eldia-gallery-admission-box h2 {
        color: white;
        font-size: 36px;
        font-weight: 900;
        line-height: 1.3;
        margin: 15px 0;
    }

    .eldia-gallery-admission-box p {
        color: #e2e8f0;
        font-size: 16px;
        line-height: 1.8;
    }

.eldia-gallery-admission-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 25px;
    border-radius: 50px;
    background: white;
    color: #102f55;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    transition: .3s;
}

    .eldia-gallery-admission-btn:hover {
        color: #ff7900;
        transform: translateY(-3px);
    }


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 991px) {

    .eldia-gallery-hero {
        padding: 75px 0;
    }

    .eldia-gallery-stats {
        justify-content: flex-start;
    }

    .eldia-gallery-admission-box {
        padding: 45px;
    }
}

@media (max-width: 767px) {

    .eldia-gallery-hero {
        padding: 60px 0;
    }

        .eldia-gallery-hero p {
            font-size: 15px;
        }

    .eldia-gallery-intro {
        padding: 55px 0 30px;
    }

    .eldia-gallery-main {
        padding: 40px 0 65px;
    }

    .eldia-gallery-stats {
        flex-wrap: wrap;
    }

    .eldia-gallery-filter {
        padding: 11px 15px;
        font-size: 12px;
    }

    .eldia-gallery-card {
        height: 290px;
    }

    .eldia-video-card .eldia-gallery-media {
        height: 220px;
    }

    .eldia-gallery-lightbox {
        padding: 70px 12px;
    }

    .eldia-lightbox-arrow {
        width: 35px;
        height: 35px;
        top: auto;
        bottom: 15px;
        transform: none;
    }

    .eldia-lightbox-prev {
        left: 20px;
    }

    .eldia-lightbox-next {
        right: 20px;
    }

    .eldia-gallery-admission-box {
        padding: 35px 25px;
        text-align: center;
    }

        .eldia-gallery-admission-box h2 {
            font-size: 27px;
        }
}

@media (prefers-reduced-motion: reduce) {

    .eldia-gallery-card,
    .eldia-gallery-filter,
    .eldia-image-card img {
        transition: none;
    }
}
