/* Click-to-play YouTube for guide pages (tax strategy money pages, the
   tax strategies hub and pillar topic hubs). Same markup and rules as the
   facade in blog.css: no iframe loads until the reader presses play
   (assets/js/main.js injects it). */

.yt-facade {
    position: relative;
    aspect-ratio: 16 / 9;
    margin: 2rem 0 0.75rem;
    overflow: hidden;
    border-radius: 0.75rem;
    background: #000;
}

.yt-facade iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.yt-facade-btn {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.yt-facade-btn:focus-visible {
    outline: 3px solid var(--forest);
    outline-offset: -3px;
}

.yt-facade-thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yt-facade-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4.5rem;
    height: 3.25rem;
    transform: translate(-50%, -50%);
    border-radius: 0.75rem;
    background: rgba(17, 24, 39, 0.78);
}

.yt-facade-play::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    border-style: solid;
    border-width: 0.6rem 0 0.6rem 1rem;
    border-color: transparent transparent transparent #fff;
}

.yt-facade-btn:hover .yt-facade-play,
.yt-facade-btn:focus-visible .yt-facade-play {
    background: #c00;
}
