.service-video-trigger {
    width: calc(100% + 56px);
    flex: none;
    padding: 0;
    border: 0;
    color: inherit;
    text-align: left;
    cursor: pointer;
    isolation: isolate;
}

.service-video-trigger:focus-visible {
    outline: 3px solid #1da7e6;
    outline-offset: -5px;
}

.service-video-trigger::after {
    z-index: 2;
    pointer-events: none;
}

.service-video-trigger > img {
    position: relative;
    z-index: 0;
}

.service-video-trigger > .service-autoplay-media {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #07141f;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    transition: opacity 260ms ease;
}

.service-video-trigger.has-autoplay-preview > .service-autoplay-media {
    opacity: 1;
}

.service-video-trigger > .service-kicker,
.service-video-trigger > .service-watch {
    z-index: 3;
}

.service-image > .service-watch {
    right: 20px;
    bottom: 17px;
    left: auto;
    padding: 7px 11px;
    background: rgba(7, 20, 31, 0.9);
    letter-spacing: 0.06em;
}

.service-video-trigger:hover .service-watch,
.service-video-trigger:focus-visible .service-watch {
    background: #087eb7;
}

body.service-video-open {
    overflow: hidden;
}

.service-video-modal {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 16px;
}

.service-video-modal[hidden] {
    display: none;
}

.service-video-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(1, 8, 13, 0.9);
    backdrop-filter: blur(8px);
}

.service-video-dialog {
    position: relative;
    width: min(1000px, calc(100vw - 32px));
    max-height: calc(100svh - 32px);
    overflow: hidden;
    border: 1px solid rgba(125, 213, 252, 0.28);
    border-radius: 14px;
    background: #07141f;
    color: #fff;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.55);
}

.service-video-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 24px 20px;
}

.service-video-heading span {
    display: block;
    margin-bottom: 3px;
    color: #7dd5fc;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.service-video-heading h2 {
    margin: 0;
    font-size: clamp(21px, 3vw, 31px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.service-video-close {
    flex: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.service-video-close:hover,
.service-video-close:focus-visible {
    border-color: #7dd5fc;
    background: #087eb7;
    outline: none;
}

.service-video-stage {
    aspect-ratio: 16 / 9;
    width: 100%;
    background: #000;
}

.service-video-stage video,
.service-video-stage iframe {
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: contain;
}

@media (max-width: 640px) {
    .service-image > .service-watch {
        right: 14px;
        bottom: 14px;
        font-size: 9px;
    }

    .service-video-heading {
        gap: 12px;
        padding: 16px;
    }

    .service-video-close {
        width: 38px;
        height: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-video-trigger > .service-autoplay-media {
        transition: none;
    }
}
