/* Only homepage video controls use these classes; shared popup styling stays unchanged. */
.homepage-corporate-video-trigger {
    appearance: none;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: inherit;
}

/* The trigger label is now a valid button span, preserving the former paragraph styling. */
.homepage-corporate-video-trigger .corporate {
    display: block;
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-size: 19.2px;
    font-style: normal;
    line-height: normal;
    margin-top: 0;
    margin-bottom: 1rem;
}

.homepage-video-popup {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    overflow: hidden;
}

.homepage-video-popup:not([open]) {
    display: none;
}

.homepage-video-popup[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.homepage-video-popup::backdrop {
    background: rgba(0, 0, 0, 0.7);
}

.homepage-video-popup .homepage-video-player {
    width: 80%;
    height: 80%;
}

.homepage-video-popup .homepage-video-player > iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.homepage-video-popup .homepage-video-close {
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    font: inherit;
    z-index: 1;
}

.homepage-video-trigger:focus-visible,
.homepage-video-popup .homepage-video-close:focus-visible,
.homepage-video-fallback:focus-visible {
    outline: 3px solid #2BA88A;
    outline-offset: 4px;
}

.homepage-video-fallback {
    display: inline-block;
    margin-top: 1rem;
    color: #fff !important;
    text-decoration: underline;
}

/* Match the existing paragraph-only mobile overrides without affecting other pages. */
@media (max-width: 374px),
       (min-width: 375px) and (max-width: 399px),
       (min-width: 400px) and (max-width: 575px),
       (min-width: 576px) and (max-width: 767px) {
    .homepage-corporate-video-trigger .corporate {
        font-size: 14px !important;
    }
}
