﻿
/* ================================================
   JAGDAMBA DEGREE COLLEGE - PUBLIC GALLERY
   Premium Blue & Gold
================================================ */

.public-gallery-page {
    background: #fff;
}

/* ================================================
   HERO
================================================ */

.gallery-hero {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(circle at 85% 20%, rgba(214,166,58,.20), transparent 30%), linear-gradient(125deg, #0B2545 0%, #123B70 60%, #1D4E84 100%);
}

    .gallery-hero::before {
        content: "";
        position: absolute;
        width: 430px;
        height: 430px;
        right: -120px;
        top: -180px;
        border: 1px solid rgba(255,255,255,.1);
        border-radius: 50%;
    }

    .gallery-hero::after {
        content: "";
        position: absolute;
        width: 280px;
        height: 280px;
        right: 35px;
        bottom: -180px;
        border: 1px solid rgba(214,166,58,.3);
        border-radius: 50%;
    }

.gallery-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7,24,45,.2), transparent);
}

.gallery-hero-content {
    position: relative;
    z-index: 2;
    width: min(1200px, 92%);
    margin: auto;
    padding: 70px 0;
    color: #fff;
}

.gallery-hero-tag {
    display: inline-block;
    color: #E7BE59;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 17px;
}

.gallery-hero-content h1 {
    color: #fff;
    font-size: clamp(36px, 5vw, 62px);
    margin-bottom: 15px;
}

    .gallery-hero-content h1 span {
        color: #E7BE59;
    }

.gallery-hero-content p {
    color: #DFE8F3;
    max-width: 600px;
    font-size: 16px;
    margin-bottom: 0;
}

.gallery-hero-line {
    width: 70px;
    height: 4px;
    border-radius: 10px;
    background: #D6A63A;
    margin-top: 27px;
}

/* ================================================
   GALLERY MAIN
================================================ */

.gallery-main-section {
    padding: 80px 0;
}

.gallery-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 42px;
}

.gallery-section-label {
    color: #B88922;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 12px;
}

.gallery-section-heading h2 {
    font-size: clamp(30px, 4vw, 42px);
    margin-bottom: 12px;
}

    .gallery-section-heading h2 span {
        color: #B88922;
    }

.gallery-section-heading p {
    color: #68778B;
    margin: 0;
    max-width: 620px;
}

.gallery-total {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 115px;
    height: 105px;
    border-radius: 15px;
    background: #EAF2FB;
    border: 1px solid #DCE7F4;
}

.gallery-total-number {
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    font-weight: 700;
    color: #123B70;
    line-height: 1.2;
}

.gallery-total > span:last-child {
    font-size: 12px;
    color: #68778B;
    font-weight: 700;
}

/* ================================================
   GALLERY GRID
================================================ */

.public-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.public-gallery-item {
    appearance: none;
    width: 100%;
    display: block;
    text-align: left;
    border: 0;
    padding: 0;
    background: #fff;
    cursor: pointer;
    border-radius: 15px;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}

    .public-gallery-item:hover {
        transform: translateY(-6px);
        box-shadow: 0 15px 35px rgba(11,37,69,.12);
    }

.public-gallery-image-wrap {
    position: relative;
    width: 100%;
    height: 280px;
    background: #EAF2FB;
    overflow: hidden;
}

    .public-gallery-image-wrap img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .6s ease;
    }

.public-gallery-item:hover .public-gallery-image-wrap img {
    transform: scale(1.07);
}

.public-gallery-hover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(11,37,69,.70);
    color: #fff;
    opacity: 0;
    transition: opacity .3s ease;
    font-size: 13px;
    font-weight: 700;
}

.public-gallery-item:hover .public-gallery-hover {
    opacity: 1;
}

.gallery-zoom-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.6);
    color: #E7BE59;
    font-size: 28px;
}

.public-gallery-caption {
    padding: 18px 20px 20px;
    border: 1px solid #EDF1F6;
    border-top: 0;
    border-radius: 0 0 15px 15px;
}

.gallery-photo-number {
    color: #B88922;
    font-size: 10px;
    letter-spacing: 1.5px;
    font-weight: 800;
    display: block;
    margin-bottom: 6px;
}

.public-gallery-caption h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #123B70;
    margin: 0;
}

/* ================================================
   EMPTY GALLERY
================================================ */

.gallery-empty {
    text-align: center;
    background: #F5F8FC;
    border: 1px dashed #CAD8E9;
    border-radius: 18px;
    padding: 60px 20px;
}

.gallery-empty-icon {
    font-size: 45px;
    margin-bottom: 15px;
}

.gallery-empty h3 {
    margin-bottom: 10px;
    color: #123B70;
}

.gallery-empty p {
    margin-bottom: 0;
    color: #68778B;
}

/* ================================================
   LIGHTBOX
================================================ */

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    visibility: hidden;
    opacity: 0;
    transition: opacity .25s ease, visibility .25s ease;
}

    .gallery-lightbox.show {
        visibility: visible;
        opacity: 1;
    }

.gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4,12,25,.94);
}

.gallery-lightbox-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1250px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

.gallery-lightbox-content {
    width: 100%;
    min-width: 0;
    text-align: center;
}

    .gallery-lightbox-content img {
        display: block;
        max-width: 100%;
        max-height: 78vh;
        width: auto;
        height: auto;
        object-fit: contain;
        margin: auto;
        border-radius: 8px;
        box-shadow: 0 20px 60px rgba(0,0,0,.4);
    }

.gallery-lightbox-caption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    max-width: 1000px;
    margin: 20px auto 0;
    color: #fff;
    text-align: left;
}

    .gallery-lightbox-caption h3 {
        color: #fff;
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 17px;
        font-weight: 700;
        margin: 0;
    }

    .gallery-lightbox-caption span {
        color: #E7BE59;
        font-size: 13px;
        font-weight: 800;
        white-space: nowrap;
    }

.gallery-lightbox-close {
    position: absolute;
    z-index: 5;
    top: -20px;
    right: -10px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.1);
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transition: .3s;
}

    .gallery-lightbox-close:hover {
        background: #D6A63A;
        color: #0B2545;
        transform: rotate(90deg);
    }

.gallery-lightbox-nav {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.10);
    color: #fff;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: .3s;
}

    .gallery-lightbox-nav:hover {
        background: #D6A63A;
        color: #0B2545;
        border-color: #D6A63A;
    }

body.gallery-lightbox-open {
    overflow: hidden;
}

/* ================================================
   RESPONSIVE
================================================ */

@media (max-width: 992px) {

    .public-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .public-gallery-image-wrap {
        height: 250px;
    }

    .gallery-lightbox-container {
        gap: 12px;
    }

    .gallery-lightbox-nav {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 600px) {

    .gallery-hero {
        min-height: 260px;
    }

    .gallery-hero-content {
        padding: 55px 0;
    }

        .gallery-hero-content h1 {
            font-size: 38px;
        }

        .gallery-hero-content p {
            font-size: 14px;
        }

    .gallery-main-section {
        padding: 50px 0;
    }

    .gallery-section-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 30px;
    }

    .gallery-total {
        width: 100%;
        height: auto;
        flex-direction: row;
        gap: 12px;
        padding: 12px;
    }

    .gallery-total-number {
        font-size: 26px;
    }

    .public-gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .public-gallery-image-wrap {
        height: 240px;
    }

    .gallery-lightbox {
        padding: 12px;
    }

    .gallery-lightbox-container {
        gap: 8px;
    }

    .gallery-lightbox-nav {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .gallery-lightbox-close {
        top: -35px;
        right: 0;
        width: 40px;
        height: 40px;
    }

    .gallery-lightbox-content img {
        max-height: 70vh;
    }

    .gallery-lightbox-caption {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-top: 12px;
    }

        .gallery-lightbox-caption h3 {
            font-size: 14px;
        }
}
