/* ==========================================================================
   Single video section
   ========================================================================== */

.layout:has(.single-video) {
    position: relative;
    /* background-image:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .16) 1px, transparent 0),
       linear-gradient(150deg, #0c2a47 0%, #14827c 118%); */
       background-color: var(--color-bg);
    background-size: 26px 26px, cover;
}

.single-video {
    max-width: 1100px;
    margin-inline: auto;
}

.single-video .field__item {
    overflow: hidden;
    border-radius: clamp(12px, 2vw, 20px);
    width: 100%;
    max-width: 960px;
    aspect-ratio: 16 / 9;   /* replaces fixed height: 230px */
    height: auto;
    box-shadow: 0 18px 50px rgba(9, 30, 50, 0.35);
}

/* Make the actual video/iframe fill its rounded frame */
.single-video .field__item iframe,
.single-video .field__item video,
.single-video .field__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}

/* Tablet */
@media (max-width: 768px) {
    .single-video .field__item {
        max-width: 100%;
        border-radius: 16px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .layout:has(.single-video) {
        padding: 2rem 1rem;
    }

    .single-video .field__item {
        border-radius: 12px;
        box-shadow: 0 10px 28px rgba(9, 30, 50, 0.3);
    }
}

.single-video-title {
    text-align: center;
    width: 100%;
}