.popup-light-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-light-overlay.open {
    opacity: 1;
    visibility: visible;
}

.popup-light-container {
    position: relative;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
}

.popup-light-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    color: #333;
    z-index: 10;
}

/* Generic content area */
.popup-light-content {
    width: 100%;
}

.popup-light-content img {
    max-width: 100%;
    height: auto;
    display: block;
}

.popup-light-content p:last-child {
    margin-bottom: 0;
}

/* Elementor content inside popup */
.popup-light-content .elementor {
    width: 100%;
}

/* Reopen Button */
.popup-light-reopen {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #ccc;
    border-left: none;
    padding: 15px 10px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    z-index: 99998;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    font-family: inherit;
    font-weight: bold;
    color: #333;
    transition: background 0.2s ease;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.popup-light-reopen:hover {
    background: #f0f0f0;
}

.popup-light-reopen-text {
    font-size: 14px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Animations */
.popup-light-container.anim-fade {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.popup-light-overlay.open .popup-light-container.anim-fade {
    opacity: 1;
}

.popup-light-container.anim-slide {
    transform: translateY(-50px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.popup-light-overlay.open .popup-light-container.anim-slide {
    transform: translateY(0);
    opacity: 1;
}

.popup-light-container.anim-zoom {
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.popup-light-overlay.open .popup-light-container.anim-zoom {
    transform: scale(1);
    opacity: 1;
}
