/*==================================================
  GALERI.CSS
  Halaman Galeri KPMIBMR
==================================================*/


/*==================================================
  HERO
==================================================*/

.hero-galeri{

    background:
    linear-gradient(rgba(11,107,58,.85),rgba(11,107,58,.85)),
    url("../img/hero-galeri.jpg");

    background-size:cover;

    background-position:center;

    padding:120px 0;

    text-align:center;

    color:#fff;

}

.hero-galeri h1{

    font-size:52px;

    font-weight:800;

    margin-bottom:18px;

}

.hero-galeri p{

    width:700px;

    max-width:100%;

    margin:auto;

    font-size:18px;

    line-height:1.8;

}


/*==================================================
  CONTENT
==================================================*/

.galeri-page{

    background:#f5f7fa;

    padding:70px 0 100px;

}


/*==================================================
  FILTER
==================================================*/

.filter-galeri{

    display:flex;

    gap:20px;

    align-items:center;

    flex-wrap:wrap;

    margin-bottom:50px;

}

.search-box{

    flex:1;

    min-width:280px;

    position:relative;

}

.search-box i{

    position:absolute;

    top:50%;

    left:20px;

    transform:translateY(-50%);

    color:#777;

}

.search-box input{

    width:100%;

    height:55px;

    border:none;

    outline:none;

    border-radius:50px;

    background:#fff;

    padding-left:55px;

    box-shadow:0 10px 25px rgba(0,0,0,.08);

    font-size:15px;

}

.filter-galeri select{

    width:230px;

    height:55px;

    border:none;

    outline:none;

    border-radius:50px;

    background:#fff;

    padding:0 18px;

    box-shadow:0 10px 25px rgba(0,0,0,.08);

}

.btn-filter{

    height:55px;

    padding:0 30px;

    border:none;

    border-radius:50px;

    background:#0b6b3a;

    color:#fff;

    font-weight:600;

    cursor:pointer;

    transition:.3s;

}

.btn-filter:hover{

    background:#084b29;

}



/*==================================================
  GRID GALERI
==================================================*/

.galeri-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(310px,1fr));

    gap:30px;

}


/*==================================================
  CARD GALERI
==================================================*/

.galeri-card{

    position:relative;

    overflow:hidden;

    border-radius:22px;

    background:#fff;

    box-shadow:0 15px 30px rgba(0,0,0,.10);

    cursor:pointer;

    transition:.35s;

}

.galeri-card:hover{

    transform:translateY(-8px);

    box-shadow:0 25px 45px rgba(0,0,0,.18);

}

.galeri-card img{

    width:100%;

    height:280px;

    display:block;

    object-fit:cover;

    transition:.5s;

}

.galeri-card:hover img{

    transform:scale(1.08);

}


/*==================================================
  OVERLAY
==================================================*/

.galeri-overlay{

    position:absolute;

    inset:0;

    display:flex;

    flex-direction:column;

    justify-content:space-between;

    padding:25px;

    background:linear-gradient(

        rgba(0,0,0,.05),

        rgba(0,0,0,.75)

    );

    opacity:0;

    transition:.35s;

}

.galeri-card:hover .galeri-overlay{

    opacity:1;

}


/*==================================================
  INFORMASI
==================================================*/

.galeri-info{

    margin-top:auto;

}

.galeri-info h3{

    color:#fff;

    font-size:22px;

    margin-bottom:12px;

    line-height:1.4;

}

.galeri-info p{

    color:#fff;

    margin-bottom:8px;

    display:flex;

    align-items:center;

    gap:8px;

    font-size:15px;

}

.galeri-info span{

    color:#fff;

    display:flex;

    align-items:center;

    gap:8px;

    font-size:14px;

}


/*==================================================
  ZOOM ICON
==================================================*/

.zoom-icon{

    position:absolute;

    top:20px;

    right:20px;

    width:55px;

    height:55px;

    border-radius:50%;

    background:rgba(255,255,255,.20);

    backdrop-filter:blur(8px);

    display:flex;

    align-items:center;

    justify-content:center;

}

.zoom-icon i{

    color:#fff;

    font-size:22px;

}



/*==================================================
  EMPTY DATA
==================================================*/

.empty-data{

    grid-column:1/-1;

    background:#fff;

    padding:80px 40px;

    border-radius:25px;

    text-align:center;

    box-shadow:0 15px 35px rgba(0,0,0,.08);

}

.empty-data i{

    font-size:70px;

    color:#0b6b3a;

    margin-bottom:20px;

}

.empty-data h2{

    font-size:30px;

    color:#16324f;

    margin-bottom:15px;

}

.empty-data p{

    color:#666;

    font-size:17px;

}


/*==================================================
  LIGHTBOX
==================================================*/

#lightbox{

    position:fixed;

    inset:0;

    display:none;

    justify-content:center;

    align-items:center;

    background:rgba(0,0,0,.92);

    z-index:9999;

    padding:40px;

}

#lightboxImage{

    max-width:90%;

    max-height:90%;

    border-radius:18px;

    box-shadow:0 25px 60px rgba(0,0,0,.40);

    animation:zoomFoto .3s ease;

}

#closeLightbox{

    position:absolute;

    top:25px;

    right:40px;

    font-size:50px;

    color:#fff;

    cursor:pointer;

    transition:.3s;

}

#closeLightbox:hover{

    transform:rotate(90deg);

}

@keyframes zoomFoto{

    from{

        transform:scale(.8);

        opacity:0;

    }

    to{

        transform:scale(1);

        opacity:1;

    }

}


/*==================================================
  RESPONSIVE
==================================================*/

@media(max-width:992px){

    .hero-galeri{

        padding:90px 0;

    }

    .hero-galeri h1{

        font-size:42px;

    }

    .galeri-grid{

        grid-template-columns:repeat(2,1fr);

    }

}

@media(max-width:768px){

    .hero-galeri{

        padding:70px 0;

    }

    .hero-galeri h1{

        font-size:32px;

    }

    .hero-galeri p{

        font-size:16px;

    }

    .filter-galeri{

        flex-direction:column;

        align-items:stretch;

    }

    .filter-galeri select{

        width:100%;

    }

    .btn-filter{

        width:100%;

    }

    .galeri-grid{

        grid-template-columns:1fr;

    }

    .galeri-card img{

        height:240px;

    }

}

@media(max-width:480px){

    .hero-galeri h1{

        font-size:28px;

    }

    .hero-galeri p{

        font-size:15px;

    }

    .galeri-card img{

        height:220px;

    }

    .empty-data{

        padding:60px 25px;

    }

}