/* ==========================================
   GALLERY SECTION
========================================== */

.gallery-section{

    width:100%;

    padding:120px 0;

    background:#ffffff;

    overflow:hidden;

}



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


.gallery-header{

    text-align:center;

    max-width:700px;

    margin:auto;

    margin-bottom:60px;

}



.gallery-header span{

    font-size:14px;

    font-weight:700;

    letter-spacing:3px;

    color:#1d6cff;

}



.gallery-header h2{

    font-size:42px;

    margin:15px 0;

    color:#111;

}



.gallery-header p{

    color:#777;

    line-height:1.7;

}





/* ==========================================
   SLIDER
========================================== */


.gallery-slider{
    width:100%;
    overflow:hidden;
    display:flex;
    justify-content:center;
}





.gallery-track{

    position:relative;

    width:100%;
    max-width:1100px;
    height:450px;

}





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


.gallery-card{

    position:absolute;

    top:50%;
    left:50%;


    width:420px;
    height:320px;


    border-radius:25px;

    overflow:hidden;


    transform:
    translate(-50%,-50%)
    scale(.8);


    opacity:.5;


    transition:
    all .8s ease;


}







.gallery-card img{

    width:100%;
    height:100%;

    object-fit:cover;

}







/* ==========================================
   FOTO TENGAH
========================================== */


.gallery-card.active{


    transform:scale(1.15);


    opacity:1;


    z-index:3;


}

/* PALING KIRI */

.gallery-card.far-left{

    transform:
    translate(calc(-50% - 700px),-50%)
    scale(.70);

    opacity:.25;

    z-index:1;

}


/* KIRI */

.gallery-card.left{

    transform:
    translate(calc(-50% - 350px),-50%)
    scale(.85);

    opacity:.6;

    z-index:2;

}


/* TENGAH */

.gallery-card.center{

    transform:
    translate(-50%,-50%)
    scale(1.15);

    opacity:1;

    z-index:5;

}


/* KANAN */

.gallery-card.right{

    transform:
    translate(calc(-50% + 350px),-50%)
    scale(.85);

    opacity:.6;

    z-index:2;

}


/* PALING KANAN */

.gallery-card.far-right{

    transform:
    translate(calc(-50% + 700px),-50%)
    scale(.70);

    opacity:.25;

    z-index:1;

}

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

.lightbox{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.85);

    display:flex;

    justify-content:center;

    align-items:center;

    z-index:9999;


    opacity:0;

    visibility:hidden;

    transition:.3s ease;

}



.lightbox.active{

    opacity:1;

    visibility:visible;

}



.lightbox img{

    max-width:90%;

    max-height:85%;

    border-radius:20px;

    object-fit:contain;

}



.close-lightbox{

    position:absolute;

    top:30px;

    right:40px;


    color:white;

    font-size:45px;

    cursor:pointer;

    line-height:1;

}

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

@media (max-width:768px){

    .gallery-section{
        padding:80px 20px;
    }

    /* HEADER */

    .gallery-header{
        margin-bottom:45px;
        padding:0 10px;
    }

    .gallery-header span{
        font-size:12px;
        letter-spacing:2px;
        margin-bottom:10px;
    }

    .gallery-header h2{
        font-size:28px;
        margin-bottom:14px;
        line-height:1.3;
    }

    .gallery-header p{
        font-size:15px;
        line-height:1.7;
    }

    /* GALLERY */

    .gallery-track{
        height:350px;
    }

    /* Ukuran foto TETAP */
    .gallery-card{
        width:240px;
        height:320px;
    }

    /* Geser lebih dekat agar muat */
    .gallery-card.left{
        transform:
        translate(calc(-50% - 130px), -50%)
        scale(.8);
    }

    .gallery-card.right{
        transform:
        translate(calc(-50% + 130px), -50%)
        scale(.8);
    }

}

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

@media (max-width:480px){

    .gallery-header h2{
        font-size:24px;
    }

    .gallery-header p{
        font-size:14px;
    }

    .gallery-card{
        width:240px;
        height:320px;
    }

    .gallery-card.left{
        transform:
        translate(calc(-50% - 90px), -50%)
        scale(.75);
    }

    .gallery-card.right{
        transform:
        translate(calc(-50% + 90px), -50%)
        scale(.75);
    }

}