/* The Modal Overlay */
.wcl-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 999999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9); /* Dark background */
}

/* Modal Content (The Image) */
.wcl-modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    animation-name: wcl-zoom;
    animation-duration: 0.3s;
}

/* Zoom Animation */
@keyframes wcl-zoom {
    from { transform: translateY(-50%) scale(0.95); opacity: 0; }
    to { transform: translateY(-50%) scale(1); opacity: 1; }
}

/* Close Button */
.wcl-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 45px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 1000000;
    cursor: pointer;
}

.wcl-close:hover,
.wcl-close:focus {
    color: #bbb;
    text-decoration: none;
}

/* Next & Previous Buttons */
.wcl-prev, .wcl-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 20px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    z-index: 1000000;
    background-color: rgba(0, 0, 0, 0.3);
}

.wcl-next {
    right: 20px;
    border-radius: 3px 0 0 3px;
}

.wcl-prev {
    left: 20px;
}

.wcl-prev:hover, .wcl-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}