/* Reusable video components: YouTube facade and self-hosted video frame. */
.video-embed {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--color-primary-dark);
    box-shadow: var(--shadow);
}

.video-embed__trigger {
    position: absolute;
    inset: 0;
    display: block;
    color: var(--color-white);
}

.video-embed__trigger img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease), opacity 0.3s var(--ease);
}

.video-embed__trigger::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 42, 35, 0) 40%, rgba(15, 42, 35, 0.45) 100%);
}

.video-embed__play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(250, 248, 243, 0.94);
    color: var(--color-primary);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 10px rgba(250, 248, 243, 0.25);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.video-embed__play .icon {
    width: 28px;
    height: 28px;
    margin-left: 4px;
}

.video-embed__trigger:hover img {
    transform: scale(1.04);
}

.video-embed__trigger:hover .video-embed__play,
.video-embed__trigger:focus-visible .video-embed__play {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 0 0 14px rgba(250, 248, 243, 0.3);
}

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

.video-file {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--color-primary-dark);
    box-shadow: var(--shadow);
}

.video-file video {
    width: 100%;
    height: 100%;
    background: var(--color-primary-dark);
}
