/*--------------------------------------------------------------
# Gallery Page
--------------------------------------------------------------*/
.gallery-page {
    position: relative;
    display: block;
    padding: 120px 0 110px;
}

.gallery-page .row {
    --bs-gutter-x: 10px;
}

.gallery-page .container {
    max-width: 1572px;
}

.gallery-page__single {
    position: relative;
    display: block;
    margin-bottom: 10px;
}

.gallery-page__img {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    z-index: 1;
}

.gallery-page__img:before {
    content: "";
    position: absolute;
    top: 0;
    bottom: -2px;
    left: 0;
    right: 0;
    background-color: var(--finris-black);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    -webkit-transform-origin: top center;
    transform-origin: top center;
    -webkit-transform: scaleY(0) translateZ(100px);
    transform: scaleY(0) translateZ(100px);
    -webkit-transition: opacity 500ms ease, visibility 500ms ease, -webkit-transform 700ms ease;
    transition: opacity 500ms ease, visibility 500ms ease, -webkit-transform 700ms ease;
    transition: opacity 500ms ease, visibility 500ms ease, transform 700ms ease;
    transition: opacity 500ms ease, visibility 500ms ease, transform 700ms ease, -webkit-transform 700ms ease;
    z-index: 2;
}

.gallery-page__single:hover .gallery-page__img:before {
    opacity: .20;
    visibility: visible;
    -webkit-transform: scaleY(1) translateZ(0px);
    transform: scaleY(1) translateZ(0px);
}

.gallery-page__img-box {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    z-index: 1;
}

.gallery-page__img img {
    width: 100%;
    border-radius: 8px;
}

.gallery-page__icon {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    z-index: 2;
}

.gallery-page__icon a {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    color: var(--finris-white);
    -webkit-transform: scale(0);
    transform: scale(0);
    opacity: 0;
    -webkit-transition: all 500ms ease;
    transition: all 500ms ease;
    z-index: 2;
}


.gallery-page__single:hover .gallery-page__icon a {
    -webkit-transform: scale(1);
    transform: scale(1);
    transition-delay: 500ms;
    opacity: 1;
}

.gallery-page__icon a:hover {
    color: var(--finris-base);
}

/* ========================================================= */
/* CSS Kustom Galeri Modal */
/* ========================================================= */

/* 1. Pengaturan Grid Kontainer (4 Kolom) */
.gallery-grid-4 {
    display: grid;
    /* Membuat 4 kolom sama lebar */
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    /* Jarak antar item */
    padding: 10px;
    justify-items: center;
    /* Memusatkan gambar di dalam grid cell */
}

/* 2. Styling Gambar Lingkaran */
.circular-gallery-image {
    /* Ukuran Fix */
    width: 120px;
    height: 120px;

    /* Membuat Lingkaran */
    border-radius: 50%;

    /* Memastikan gambar mengisi area tanpa distorsi (cropping) */
    object-fit: cover;

    /* Opsi: Tambahkan border untuk estetika */
    border: 3px solid #ccc;
    transition: transform 0.3s ease;
    /* Efek hover opsional */
}

.circular-gallery-image:hover {
    transform: scale(1.05);
    border-color: #007bff;
    /* Warna border saat hover */
}

/* 3. Responsivitas untuk Grid */
@media (max-width: 992px) {

    /* Tablet: 3 Kolom */
    .gallery-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }

    .circular-gallery-image {
        width: 100px;
        /* height: 100px; */
    }
}

@media (max-width: 576px) {

    /* Ponsel: 2 Kolom */
    .gallery-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .circular-gallery-image {
        width: 80px;
        /* height: 80px; */
    }
}