/* Style untuk gambar */
.image-container {
    position: relative; /* Container harus memiliki posisi relatif */
}

/* Style untuk teks di atas gambar */
.text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    opacity: 0; /* Mulai dengan opacity 0 agar tidak terlihat */
    transition: opacity 0.3s ease; /* Efek transisi agar perubahan opacity terlihat halus */
}

.img-fluid-objek {
    transition: transform 0.3s ease;
}

.preview-link:hover .img-fluid-objek {
    transform: scale(1.1); /* Ubah angka scale sesuai kebutuhan */
}

/* --- */

.image-container {
    position: relative;
    overflow: hidden;
}

.img-fluid-objek {
    transition: transform 0.3s ease;
}

.overlay-kategori {
    position: absolute;
    top: 0;
    left: 0;
    width: 260px;
    height: 260px;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(
        0,
        0,
        0,
        0.5
    ); /* Warna overlay dengan transparansi */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.overlay i {
    color: white;
    font-size: 2rem;
}

.image-container:hover .overlay {
    opacity: 1;
}

.image-container:hover .img-fluid-objek {
    transform: scale(1.1);
}

.image-container:hover .overlay {
    opacity: 1;
}

.image-container:hover .overlay-kategori {
    opacity: 1;
}

@media (min-width: 990px) {
    /* Adjust the breakpoint as needed */
    .hide-on-desktop {
        display: none;
    }
}

@media (max-width: 990px) {
    /* Adjust the breakpoint as needed */
    .hide-on-mobile {
        display: none;
    }
}
