.custom-image-popup-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    overflow: auto; /* Menambahkan scrollbar jika gambar terlalu besar */
}

.custom-image-popup-content {
    max-width: 85%;
    max-height: 85%;
    text-align: center; /* Menengahkan konten */
    overflow: auto; /* Menambahkan scrollbar jika gambar terlalu besar */
}

.custom-image-popup-content img {
    max-width: 100%;
    max-height: 100%;
    margin: auto; /* Menengahkan gambar */
}

/* Tambahkan styling untuk elemen overlay */
.overlay {
    position: absolute;
    background: rgba(255, 255, 255, 0.8); /* Gunakan rgba untuk latar belakang semi-transparan */
    padding: 10px;
    display: none; /* Sembunyikan elemen overlay awalnya */
    /* Sesuaikan properti CSS lainnya sesuai kebutuhan Anda */
}

/* Styling untuk teks pada overlay */
.overlay-text {
    margin: 0;
}