/* =====================================================
   BIT ITI BALLARPUR
   PROFESSIONAL GALLERY CSS
===================================================== */


/* =====================================================
   BODY
===================================================== */

.gallery-section {

    padding: 5px 0;

    background:
        linear-gradient(
            180deg,
            #f7fbfe 0%,
            #eef6fa 100%
        );

}



/* =====================================================
   HERO
===================================================== */

.gallery-hero {

    position: relative;

    min-height: 15px;

    display: flex;

    align-items: center;

    overflow: hidden;

    background:

        linear-gradient(
            110deg,
            rgba(1,12,25,.96),
            rgba(0,82,118,.70)
        ),

        url("images/gallery/campus-1.jpg")
        center center / cover no-repeat;

}


.gallery-hero-overlay {

    position: absolute;

    inset: 0;

    background:

        radial-gradient(
            circle at 80% 40%,
            rgba(0,191,255,.18),
            transparent 40%
        );

}


.gallery-hero-content {

    position: relative;

    z-index: 2;

    max-width: 760px;

    padding: 5px 0;

    color: white;

}


.gallery-tag {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 8px 16px;

    margin-bottom: 18px;

    border-radius: 30px;

    border:
        1px solid
        rgba(255,255,255,.20);

    background:
        rgba(255,255,255,.08);

    color: #6ed8ff;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;

    backdrop-filter: blur(8px);

}


.gallery-hero h1 {

    margin: 0 0 15px;

    font-size:
        clamp(44px, 7vw, 72px);

    line-height: 1;

    font-weight: 900;

    letter-spacing: -2px;

}


.gallery-hero h1 span {

    color: #36c4ff;

}


.gallery-hero p {

    max-width: 670px;

    margin: 0;

    color:
        rgba(255,255,255,.76);

    font-size: 14px;

    line-height: 1.9;

}



/* =====================================================
   SECTION HEADING
===================================================== */

.section-heading {

    max-width: 720px;

    margin:
        0 auto 50px;

    text-align: center;

}


.section-heading span {

    color: #078ed2;

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 2px;

}


.section-heading h2 {

    margin:
        10px 0 12px;

    color: #082c43;

    font-size:
        clamp(30px, 4vw, 45px);

    line-height: 1.2;

    font-weight: 900;

}


.section-heading h2 strong {

    color: #078ed2;

}


.section-heading p {

    margin: 0;

    color: #738694;

    font-size: 13px;

    line-height: 1.7;

}



/* =====================================================
   GALLERY GRID
===================================================== */

.gallery-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;

}



/* =====================================================
   GALLERY CARD
===================================================== */

.gallery-card {

    position: relative;

    overflow: hidden;

    border-radius: 20px;

    background: #ffffff;

    cursor: pointer;

    box-shadow:

        0 10px 35px
        rgba(0,45,75,.08);

    transition:

        transform .4s ease,

        box-shadow .4s ease;

}


.gallery-card:hover {

    transform:
        translateY(-9px);

    box-shadow:

        0 22px 55px
        rgba(0,60,90,.16);

}



/* =====================================================
   CARD IMAGE
===================================================== */

.gallery-image {

    position: relative;

    height: 235px;

    overflow: hidden;

}


.gallery-image img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    transition:

        transform .7s ease,

        filter .5s ease;

}


.gallery-card:hover
.gallery-image img {

    transform:
        scale(1.09);

    filter:
        brightness(.70);

}



/* =====================================================
   IMAGE OVERLAY
===================================================== */

.image-overlay {

    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(0,113,166,.18);

    opacity: 0;

    transition:
        opacity .4s ease;

}


.gallery-card:hover
.image-overlay {

    opacity: 1;

}


.view-icon {

    width: 62px;

    height: 62px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    color: white;

    background:
        rgba(4,147,208,.95);

    box-shadow:
        0 10px 30px
        rgba(0,0,0,.25);

    font-size: 21px;

    transform:
        scale(.65);

    transition:
        transform .4s ease;

}


.gallery-card:hover
.view-icon {

    transform:
        scale(1);

}



/* =====================================================
   CARD CONTENT
===================================================== */

.gallery-content {

    padding:
        21px 22px 23px;

}


.gallery-number {

    color: #078ed2;

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 2px;

}


.gallery-content h3 {

    min-height: 48px;

    margin:
        7px 0 7px;

    color: #092b42;

    font-size: 19px;

    line-height: 1.3;

    font-weight: 850;

}


.gallery-content p {

    min-height: 43px;

    margin: 0;

    color: #758795;

    font-size: 11px;

    line-height: 1.7;

}


.gallery-link {

    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: 17px;

    color: #078ed2;

    font-size: 11px;

    font-weight: 800;

    transition:
        gap .3s ease;

}


.gallery-card:hover
.gallery-link {

    gap: 13px;

}



/* =====================================================
   MODAL
===================================================== */

.gallery-modal {

    position: fixed;

    z-index: 99999;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 25px;

    background:
        rgba(1,8,17,.95);

    backdrop-filter:
        blur(13px);

    opacity: 0;

    visibility: hidden;

    transition:

        opacity .35s ease,

        visibility .35s ease;

}


.gallery-modal.active {

    opacity: 1;

    visibility: visible;

}


body.gallery-modal-open {

    overflow: hidden;

}



/* =====================================================
   MODAL BOX
===================================================== */

.gallery-modal-box {

    position: relative;

    width:
        min(1050px, 94vw);

    max-height: 94vh;

    padding: 20px;

    border-radius: 22px;

    background:
        #071723;

    box-shadow:

        0 35px 100px
        rgba(0,0,0,.60);

    transform:
        scale(.93);

    transition:
        transform .35s ease;

}


.gallery-modal.active
.gallery-modal-box {

    transform:
        scale(1);

}



/* =====================================================
   MODAL HEADER
===================================================== */

.gallery-modal-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 15px;

    padding:
        0 5px;

}


.modal-number {

    color: #45c8ff;

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 2px;

}


.gallery-modal-header h2 {

    max-width: 700px;

    margin:
        4px 0 0;

    color: white;

    font-size: 23px;

    line-height: 1.25;

    font-weight: 850;

}


.gallery-counter {

    white-space: nowrap;

    color: #69d1ff;

    font-size: 11px;

    font-weight: 800;

}



/* =====================================================
   MAIN PHOTO
===================================================== */

.main-photo-container {

    height:
        min(60vh, 570px);

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    border-radius: 15px;

    background:
        #020b13;

}


.main-photo-container img {

    width: 100%;

    height: 100%;

    object-fit: contain;

    opacity: 0;

    transform:
        scale(.96);

    transition:

        opacity .35s ease,

        transform .35s ease;

}


.main-photo-container
img.photo-visible {

    opacity: 1;

    transform:
        scale(1);

}



/* =====================================================
   ARROW BUTTONS
===================================================== */

.gallery-arrow {

    position: absolute;

    top: 50%;

    width: 50px;

    height: 50px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid
        rgba(255,255,255,.18);

    border-radius: 50%;

    color: white;

    background:
        rgba(2,22,35,.80);

    cursor: pointer;

    transform:
        translateY(-50%);

    transition:
        all .3s ease;

}


.gallery-arrow:hover {

    background:
        #078ed2;

    border-color:
        #078ed2;

    transform:
        translateY(-50%)
        scale(1.08);

}


.gallery-prev {

    left: -25px;

}


.gallery-next {

    right: -25px;

}



/* =====================================================
   THUMBNAILS
===================================================== */

.gallery-thumbnails {

    display: flex;

    gap: 9px;

    overflow-x: auto;

    padding:
        15px 2px 2px;

    scrollbar-width: thin;

}


.gallery-thumbnails img {

    width: 78px;

    height: 55px;

    flex:
        0 0 auto;

    object-fit: cover;

    border:
        2px solid transparent;

    border-radius: 7px;

    opacity: .45;

    cursor: pointer;

    transition:

        opacity .3s ease,

        transform .3s ease,

        border-color .3s ease;

}


.gallery-thumbnails img:hover {

    opacity: .85;

    transform:
        translateY(-2px);

}


.gallery-thumbnails img.active {

    opacity: 1;

    border-color:
        #08a2e2;

}



/* =====================================================
   CLOSE BUTTON
===================================================== */

.gallery-close {

    position: fixed;

    z-index: 100000;

    top: 20px;

    right: 25px;

    width: 46px;

    height: 46px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid
        rgba(255,255,255,.20);

    border-radius: 50%;

    color: white;

    background:
        rgba(255,255,255,.08);

    cursor: pointer;

    transition:
        all .3s ease;

}


.gallery-close:hover {

    background:
        #078ed2;

    border-color:
        #078ed2;

    transform:
        rotate(90deg);

}



/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1000px) {


    .gallery-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .gallery-card:last-child {

        grid-column: auto;

    }


    .gallery-hero-content {

        padding:
            70px 20px;

    }

}



/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 650px) {


    .gallery-hero {

        min-height:
            15px;

    }


    .gallery-hero-content {

        padding:
            15px 15px;

    }


    .gallery-hero h1 {

        font-size: 46px;

    }


    .gallery-grid {

        grid-template-columns:
            1fr;

        gap: 18px;

    }


    .gallery-section {

        padding:
            55px 0;

    }


    .gallery-image {

        height:
            230px;

    }


    .gallery-modal {

        padding:
            10px;

    }


    .gallery-modal-box {

        width: 96vw;

        padding: 12px;

        border-radius:
            15px;

    }


    .main-photo-container {

        height:
            55vh;

    }


    .gallery-modal-header h2 {

        font-size:
            17px;

    }


    .gallery-counter {

        font-size:
            9px;

    }


    .gallery-arrow {

        width:
            40px;

        height:
            40px;

    }


    .gallery-prev {

        left: 5px;

    }


    .gallery-next {

        right: 5px;

    }


    .gallery-close {

        top: 10px;

        right: 10px;

        width:
            40px;

        height:
            40px;

    }


    .gallery-thumbnails img {

        width:
            68px;

        height:
            48px;

    }

}



/* =====================================================
   VERY SMALL MOBILE
===================================================== */

@media (max-width: 400px) {


    .gallery-hero h1 {

        font-size:
            40px;

    }


    .gallery-content h3 {

        font-size:
            18px;

    }


    .main-photo-container {

        height:
            50vh;

    }

}