/* YouTube lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-iframe-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    background: #000;
}

.lightbox-iframe-container iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    color: rgb(214, 214, 214);
    font-size: 2rem;
    border: none;
    cursor: pointer;
    z-index: 10000;
}

/* TikTok lightbox */
.tiktok-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
}

.tiktok-iframe-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tiktok-iframe-wrapper iframe {
    border: none;
    width: auto;
    height: 90vh;
    max-height: 90vh;
    max-width: 100%;
    aspect-ratio: 9 / 16;
    background: black;
    border-radius: 8px;
}

/* Mobil optimalizálás */
@media (max-width: 768px) {
    .lightbox-iframe-container {
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
    }

    .lightbox-iframe-container iframe {
        height: 100%;
    }

    .tiktok-overlay iframe {
        width: 100vw;
        height: 100vh;
    }
}