/* EPREL Image Centering & Zoom */
.eprel-image-container {
    text-align: center;
    width: 100%;
    margin-bottom: 15px;
}

.eprel-image-zoomable {
    width: 320px !important;
    max-width: 100%;
    cursor: zoom-in;
    transition: transform 0.2s ease-in-out;
    display: inline-block;
}

.eprel-image-zoomable:hover {
    transform: scale(1.02);
}

/* Modal Overlay */
.eprel-lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.eprel-lightbox-overlay.active {
    display: flex; 
}

/* Modal Content (Image) */
.eprel-lightbox-img {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    animation: eprelLightboxZoom 0.3s;
    object-fit: contain;
}

@keyframes eprelLightboxZoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

/* Close Button */
.eprel-lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1051;
    transition: 0.3s;
}

.eprel-lightbox-close:hover {
    color: #bbb;
}

/* Responsive */
@media only screen and (max-width: 700px){
    .eprel-lightbox-img {
        width: 100%;
    }
}
