.video-grid {
    display: grid;
    /* grid-template-columns: repeat(3, 1fr); */
    justify-content: center;
    align-items: center;
    gap: 2rem;
}


.video-grid .video-card {
    display: flex;
    flex-direction: column;
}

.video-card__title {
    height: 2lh;
    font-size: 1.5rem;
    color: white;
    line-height: 1.8rem;
}

.video-grid .video-card__title, .video-grid .video-card__description {
    text-align: center;
}

.video-card__title p {
    position: relative;
}

.video-card__title p span {
    padding-left: 10px;
    color: white;
    font-size: 16px;
}

.video-card__title p::before {
    content: "";
    position: absolute;
    left: 0px;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--accent-orange);
}

.layout:has(.video-grid) {
    position: relative;
    background-color: var(--main-color);
    /* background-image:
        radial-gradient(80% 100% at 85% 0%,
            rgba(28, 108, 163, 0.20) 0%, rgba(28, 108, 163, 0) 55%),
        linear-gradient(165deg, #0c2846 0%, #091d36 60%, #06172c 100%); */
            background: var(--color-bg);
}

.layout:has(.video-grid) .title {
    text-align: center;
    color: white;
}

.layout:has(.video-grid) .title::after {
    content: "";
    display: block;
    inline-size: 5rem;
    block-size: 3px;
    margin-block-start: .85rem;
    background: var(--accent-orange);
    border-radius: 2px;
    justify-self: center;
    margin-bottom: 5rem;
}

/* ==========================================================================
   Responsive
   Key issue at smaller sizes: the fixed 230px frame height. As columns
   get narrower, a 16:9 video inside a fixed-height box either letterboxes
   or crops. Below desktop we switch the frame to aspect-ratio so the
   video always fills its box exactly, at any column width.
   ========================================================================== */

@media (max-width: 1199px) {
    .video-grid {
       
        gap: 1.25rem;
        align-items: start;
    }

    .video-card__frame .field__item {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .video-grid iframe {
        width: 100%;
        height: 100%;
        min-width: 0;
    }
}

@media (max-width: 767px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .video-card__title {
        height: auto;
        min-height: 0;
        font-size: 1.25rem;
        line-height: 1.4;
        padding: 0 0.5rem;
    }

    .video-card__frame .field__item {
        border-radius: 14px;
    }
}

@media (max-width: 420px) {
    .video-card__title {
        font-size: 1.1rem;
    }
}
/* 
.video-grid .remote-video-container .video-card {
    display: grid;
    grid-template-rows: 230px 1fr; 
}

.video-grid .remote-video-container .video-card:has(.video-card__description) {
    grid-template-rows: 230px 1fr 2fr; 
} */

.video-card__description {
    color: white;
    font-style: italic;
}
