.presentation-trigger {
    position: relative;
    display: block;
    color: inherit;
    text-decoration: none;
}

.presentation-trigger:hover {
    color: inherit;
}

.presentation-play {
    display: flex;
    width: 40px;
    height: 40px;
    flex: none;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #1d4ed8;
    box-shadow: 0 4px 18px rgba(15, 23, 42, .24);
}

.presentation-play::after {
    content: "";
    width: 0;
    height: 0;
    margin-left: 5px;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 11px solid #fff;
}

.presentation-trigger:hover .presentation-play {
    background: #1e3a8a;
}

.presentation-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    color: #fff;
    font-size: .95rem;
    font-weight: 600;
    text-align: center;
}

.presentation-dialog {
    width: min(1100px, calc(100% - 32px), calc((100dvh - 160px) * 16 / 9));
    max-width: none;
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid #334155;
    border-radius: 16px;
    background: #0f172a;
    color: #fff;
}

.presentation-dialog:not([open]) {
    display: none;
}

.presentation-dialog::backdrop {
    background: rgba(2, 6, 23, .82);
}

.presentation-heading,
.presentation-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
}

.presentation-heading h2 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
}

.presentation-close {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    flex: none;
    padding: 8px 14px;
    border: 1px solid #94a3b8;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font: inherit;
    line-height: 1.25;
}

.presentation-close:hover {
    background: #1e293b;
}

.presentation-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    object-fit: contain;
}

.presentation-video::cue {
    font-size: clamp(13px, 1.4vw, 20px);
    background-color: rgba(15, 23, 42, .92);
}

.presentation-footer {
    justify-content: flex-end;
}

.presentation-fallback {
    padding: 12px 18px 0;
    margin: 0;
    line-height: 1.5;
}

.presentation-fallback a {
    color: #bfdbfe;
}

html.presentation-open {
    overflow: hidden;
}

@media (max-width: 575px) {
    .presentation-dialog {
        width: min(calc(100% - 16px), calc((100dvh - 144px) * 16 / 9));
        max-height: calc(100dvh - 16px);
        border-radius: 12px;
    }

    .presentation-heading,
    .presentation-footer {
        padding: 10px 12px;
    }

    .presentation-heading h2 {
        font-size: .95rem;
    }
}
