.wp-block--youtube-lightbox{
    margin-bottom: 60px;
}
.yt-thumbnail {
    position: relative;
    cursor: pointer;
    overflow: hidden; /* ensures image doesn’t overflow when scaling */
    border: 1px solid #d3d3d3;;
}
.yt-thumbnail img {
    cursor: pointer;
    max-width: 100%;
    height: auto;
    transition: transform 0.35s ease-in-out; /* smooth zoom */
}

.yt-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.yt-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 80%;
}
.yt-iframe-container{
    width: 900px;
    height: 505px;
    max-width: 100%;
    margin: 0 auto;
}
.yt-iframe-container iframe {
    width: 100%;
    height: 100%;
}

.yt-close {
    position: absolute;
    top: -30px;
    right: 0;
    font-size: 28px;
    color: white;
    cursor: pointer;
}

.yt-thumbnail svg {
    position: absolute;
    width: 25%;
    height: 25%;
    content: '"';
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    cursor: pointer;
    transition: transform 0.35s ease-in-out, filter 0.35s ease-in-out; /* smooth pop and shadow */
}

.yt-thumbnail .outer_circle {
    stroke-width: 3;
    stroke-dasharray: 410;
    stroke-dashoffset: 0;
    stroke-linecap: square;
    transition: all .4s ease-out;
}

.yt-thumbnail:hover .outer_circle {
    stroke-dashoffset: 410;
    transition: stroke .6s .3s ease-out, stroke-dashoffset .3s ease-out
}

.yt-thumbnail:hover .inner-circle {
    fill: #BF2428;
    transition: fill .2s .1s ease-out;

}

.yt-thumbnail:hover .play {
    fill: white;
    transition: fill .3s .2s ease-out;
}


/* Overlay effect */
.yt-thumbnail::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0); /* transparent initially */
    transition: all 0.2s ease-in-out; /* smooth fade */
    z-index: 1; /* sits above the image */
}


/* Hover dark overlay */
.yt-thumbnail:hover::before {
    background: rgba(0, 0, 0, 0.5); /* semi-transparent black */
}

.yt-thumbnail:hover svg {
    transform: translate(-50%, -50%) scale(1.1); /* optional slight pop */
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8)); /* subtle glow */
}
