/*
 * Responsive article/project video blocks.
 *
 * This file is loaded automatically by /includes/site-header.php.
 *
 * Standard width:
 *     Uses the normal article block width (up to 920px).
 *
 * Wide / Full Width:
 *     Uses the complete width available inside the article panel.
 */

.article-block--video {
    width: min(100%, 920px);
    max-width: 920px;
    margin: 0 auto;
}

.article-block--video.article-block--style-wide {
    width: 100%;
    max-width: none;
}

.article-video-frame {
    position: relative;
    overflow: hidden;

    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;

    border: 1px solid var(--line);
    background: #000;

    box-shadow:
        0 0 22px rgba(0, 0, 0, 0.42),
        0 0 16px rgba(25, 217, 255, 0.08);
}

.article-video-iframe {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;
    background: #000;
}

.article-video-caption {
    margin-top: 9px;

    color: var(--text-dim);

    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
}

.article-block--video.article-block--style-accent,
.article-block--video.article-block--style-muted {
    padding: 14px;
}

@media (max-width: 640px) {
    .article-block--video,
    .article-block--video.article-block--style-wide {
        width: 100%;
        max-width: none;
    }

    .article-block--video.article-block--style-accent,
    .article-block--video.article-block--style-muted {
        padding: 9px;
    }
}
