/* =========================================================
   MRAI GALLERY PRO
   Premium Fullscreen Gallery System
   Mobile First
========================================================= */


#mrai-gallery-overlay {

    position: fixed;
    inset: 0;

    width:100%;
    height:100%;

    background:
    rgba(5,10,20,.82);

    backdrop-filter:
    blur(18px);

    -webkit-backdrop-filter:
    blur(18px);

    display:flex;

    align-items:center;
    justify-content:center;

    opacity:0;
    visibility:hidden;

    transition:
    opacity .35s ease,
    visibility .35s ease;

    z-index:99999;

    touch-action:none;

}


#mrai-gallery-overlay.active {

    opacity:1;
    visibility:visible;

}



#mrai-gallery-container {

    width:92%;
    height:88%;

    display:flex;

    align-items:center;
    justify-content:center;

    position:relative;

}



#mrai-gallery-image {

    max-width:100%;
    max-height:100%;

    object-fit:contain;

    border-radius:22px;

    box-shadow:
    0 30px 80px rgba(0,0,0,.45);

    transform:
    scale(.92);

    opacity:0;

    transition:
    transform .45s cubic-bezier(.2,.8,.2,1),
    opacity .45s ease;

    user-select:none;

    -webkit-user-drag:none;

}



#mrai-gallery-overlay.active #mrai-gallery-image {

    transform:
    scale(1);

    opacity:1;

}




/* Close Button */

#mrai-gallery-close {

    position:absolute;

    top:25px;
    right:25px;

    width:45px;
    height:45px;

    border-radius:50%;

    border:none;

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

    color:white;

    font-size:24px;

    cursor:pointer;

    display:flex;

    align-items:center;
    justify-content:center;

    transition:.3s;

}


#mrai-gallery-close:hover {

    transform:
    rotate(90deg)
    scale(1.1);

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

}



/* Navigation */

.mrai-gallery-btn {


    position:absolute;

    top:50%;

    transform:
    translateY(-50%);


    width:55px;
    height:55px;


    border-radius:50%;


    border:none;


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


    color:white;


    font-size:30px;


    cursor:pointer;


    display:flex;

    align-items:center;

    justify-content:center;


    transition:.3s;


}


.mrai-gallery-btn:hover {

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

}



#mrai-gallery-prev {

    left:20px;

}


#mrai-gallery-next {

    right:20px;

}





/* Counter */

#mrai-gallery-counter {


    position:absolute;

    bottom:25px;

    left:50%;

    transform:
    translateX(-50%);


    color:white;


    font-size:15px;


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


    padding:
    8px 18px;


    border-radius:50px;


    backdrop-filter:
    blur(10px);

}



/* Mobile Optimization */

@media(max-width:768px){


    #mrai-gallery-container {

        width:96%;

        height:82%;

    }



    #mrai-gallery-image {

        border-radius:16px;

    }



    #mrai-gallery-close {


        top:15px;

        right:15px;


        width:40px;

        height:40px;

    }



    .mrai-gallery-btn {


        width:42px;

        height:42px;

        font-size:22px;

    }



    #mrai-gallery-prev {

        left:8px;

    }


    #mrai-gallery-next {

        right:8px;

    }


}
