/* Thumbnail always 16:9 */
.gep-wrap {
    position: relative;
    width: 100%;
    background: #000;
    overflow: hidden;
    margin: 12px 0;
    padding-top: 56.25%;
}

/* The media area fills the 16:9 container */
.gep-media {
    position: absolute;
    inset: 0;
}

/* Desktop iframe ratio */
.gep-wrap.gep-desktop-landscape .gep-iframe {
    aspect-ratio: 16 / 9;
}

.gep-wrap.gep-desktop-portrait .gep-iframe {
    aspect-ratio: 9 / 16;
}

/* Mobile iframe ratio */
@media (max-width: 768px) {
    .gep-wrap.gep-mobile-landscape .gep-iframe {
        aspect-ratio: 16 / 9;
    }

    .gep-wrap.gep-mobile-portrait .gep-iframe {
        aspect-ratio: 9 / 16;
    }
}

.gep-iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.gep-thumb {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    background: #000;
    cursor: pointer;
}

.gep-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gep-play {
    position: absolute;
    inset: auto 0 16px 0;
    margin: auto;
    width: 120px;
    padding: 10px 0;
    text-align: center;
    background: #ffcc00;
    color: #000;
    font-weight: 700;
    border-radius: 6px;
}

.gep-fullscreen {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: 0;
    padding: 6px 10px;
    cursor: pointer;
}

.gep-preview {
    width: 100%;
    border: 1px dashed #bbb;
    padding: 12px;
    text-align: center;
}

.gep-preview img {
    max-width: 100%;
    height: auto;
}

.gep-placeholder {
    color: #666;
}