
/* Cover video wrapper */
.wp-block-cover.cover-video-post {
    position: relative;
    width: 100%;
}

/* Vùng chứa video + overlay */
.video-wrapper {
    position: absolute;
    inset: 0;
}

.video-element {
    width: 100%;
    height: 100%;
}

.video-element iframe,
.video-element video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay = featured image + play icon */
.video-overlay {
    position: absolute;
    inset: 0;
    cursor: pointer;
    z-index: 5;
    display: block;
    transition: opacity 0.3s;
}

/* Featured image */
.video-overlay img.video-overlay-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    /* Luôn tối */
    filter: brightness(0.55) !important;
}

/* Text hiển thị trên overlay */
.video-title {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: white;
    text-align: center;
    width: 80%;
    max-width: 900px;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.25;
    pointer-events: none; /* không cản click play */
    transition: opacity 0.3s ease;
}



/* PLAY ICON — pseudo-element */
.video-overlay::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    inset: 0;
    margin: auto;

    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg' stroke='%23ffffff'%3E%3Cg stroke-width='0'%3E%3C/g%3E%3Cg stroke-linecap='round' stroke-linejoin='round'%3E%3C/g%3E%3Cg%3E%3Cpath d='M10 16V8L16 12L10 16Z' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.2'%3E%3C/path%3E%3Ccircle cx='12' cy='12' r='10' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.2'%3E%3C/circle%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    transition: transform 0.25s;
}

/* Hover: icon lớn nhẹ */
.video-overlay:hover::after {
    transform: scale(1.1);
}



.res-video-post {
        padding: 0px;
    }
.res-video-post .wp-block-cover {
        min-height: fit-content;
    }
    
    
/* Tablet */
@media (max-width: 1024px) {

    .video-title {
        font-size: 25px;
    }
}

/* Mobile */
@media (max-width: 700px) {

    .video-title {
        display: none;
    }
    
}
