.webenomic-video-player-container {
    position: relative;
    min-height: 400px;
    height: 400px;
    box-shadow: 1px 1px 10px #c0c0c0;
    border-radius: 20px;
    transition: all 0.25s;
}

.webenomic-video-player-container iframe {
    width: 100% !important;
    height: 100% !important;
    border-radius: 20px;
    overflow: hidden;
}

.title-overlay {
    cursor: pointer;
    position: absolute;
    top: 0px;
    border-radius: 20px 20px 0px 0px;
    z-index:3;
    width: 100%;
    height: 80px;
    padding: 10px 20px;
    font-size: 24px;
    color: #fff;
    background-color: #02275980;
}

.title-overlay .subtitle {
    font-size: 18px;
}

.thumbnail-overlay {
    cursor: pointer;
    border-radius: 20px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover; /* Ensure the background image covers the container */
    background-position: center center;
    background-repeat: no-repeat;
    background-color: black; /* Fallback color if image is missing */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1;
    transition: all 0.5s;
}

.thumbnail-overlay img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.play-button {
    background-color: #33333390;
    border: none;
    cursor: pointer;
    padding: 0px 10px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.25s;
}

.play-button svg {
    width: 80px;
    height: 80px;
}

.webenomic-video-player-container:hover {
    box-shadow:1px 1px 20px rgb(173, 247, 173);
}

.thumbnail-overlay:hover > .play-button {
    background-color: #333;
}

.play-button:focus {
    outline: none;
}

@media screen and (max-width: 1280px) {
    .fusion-body .fusion-builder-column-9.video-column, 
    .fusion-body .fusion-flex-column.video-column {
        width: 75% !important;
    }
}

@media screen and (max-width: 960px) {
    .fusion-body .fusion-builder-column-9.video-column, 
    .fusion-body .fusion-flex-column.video-column {
        width: 100% !important;
    }
    .webenomic-video-player-container {
        min-height: 360px;
    }
    .title-overlay {
        font-size: 18px;
        height: 80px;
    }
    .title-overlay .subtitle {
        font-size: 16px;
    }
}