.page-dimmer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99998;
}

.overlay-box {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100%;
    max-width: 1020px;
    height: 640px;
    max-height: 95vh;
    transform: translate(-50%, -50%);
    background: #fff;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    z-index: 99999;
    overflow: hidden;
}

.overlay-box iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    touch-action: manipulation;
}

.overlay-close {
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    background: #000;
    color: #fff;
    font-size: 45px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
}

.clickable-image {
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s;
}

.clickable-image:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

/* Expanded fullscreen mode */
.overlay-box.expanded {
    width: 100vw;
    height: 100vh;
    max-width: 100%;
    max-height: 100%;
    top: 0;
    left: 0;
    transform: none;
}

/* Responsive tweaks for mobile */
@media (max-width: 934px) {
    .overlay-box {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        top: 0;
        left: 0;
        transform: none;
    }
}
