/* Video Hover Block */
.jw-video-hover {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    cursor: pointer;
}

.jw-video-hover-poster,
.jw-video-hover-forward,
.jw-video-hover-reverse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jw-video-hover-poster {
    z-index: 3;
    opacity: 1;
}

.jw-video-hover-forward {
    z-index: 2;
    opacity: 1;
}

.jw-video-hover-reverse {
    z-index: 4;
    opacity: 0;
}

/* Editor styles */
.jw-video-hover-editor {
    padding: 20px;
    background: #f0f0f0;
    border: 1px dashed #ccc;
    border-radius: 4px;
}

.jw-video-hover-editor h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
}

.jw-video-hover-preview {
    margin-bottom: 15px;
}

.jw-video-hover-preview img,
.jw-video-hover-preview video {
    max-width: 100%;
    max-height: 150px;
    display: block;
    margin-bottom: 5px;
}

.jw-video-hover-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 4px;
}

.jw-video-hover-section:last-child {
    margin-bottom: 0;
}
