.dra-video-hero {
    --dra-video-hero-height: 100vh;
    --dra-video-hero-overlay: 0.42;
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: var(--dra-video-hero-height);
    overflow: hidden;
    background: #111;
    color: #fff;
}

.dra-video-hero__media,
.dra-video-hero__loader,
.dra-video-hero__shade {
    position: absolute;
    inset: 0;
}

.dra-video-hero__media {
    z-index: -3;
    background: #111;
}

.dra-video-hero__video,
.dra-video-hero__player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 640ms ease;
}

.dra-video-hero__video {
    object-fit: cover;
}

.dra-video-hero__player {
    height: calc(100% + 76px);
    border: 0;
    pointer-events: none;
}

.dra-video-hero__video.is-active,
.dra-video-hero__player.is-active {
    opacity: 1;
}

.dra-video-hero__loader {
    z-index: -2;
    display: grid;
    place-items: center;
    background: rgba(9, 11, 13, 0.88);
    opacity: 0;
    pointer-events: none;
    transition: opacity 260ms ease;
}

.dra-video-hero__loader::after {
    content: "";
    width: 34px;
    height: 34px;
    border: 3px solid rgba(255, 255, 255, 0.28);
    border-top-color: #fff;
    border-radius: 50%;
    animation: dra-video-hero-spin 760ms linear infinite;
}

.dra-video-hero.is-buffering .dra-video-hero__loader {
    opacity: 1;
}

.dra-video-hero__shade {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, calc(var(--dra-video-hero-overlay) + 0.16)) 0%, rgba(0, 0, 0, var(--dra-video-hero-overlay)) 48%, rgba(0, 0, 0, calc(var(--dra-video-hero-overlay) * 0.45)) 100%),
        rgba(0, 0, 0, calc(var(--dra-video-hero-overlay) * 0.35));
}

.dra-video-hero__inner {
    width: min(1440px, calc(100% - 160px));
    margin: 0 auto;
    padding: 120px 0 clamp(96px, 12vh, 140px);
}

.dra-video-hero__heading {
    max-width: min(55%, 1080px);
}

.dra-video-hero__heading {
    margin: 0;
    font-size: clamp(2.55rem, 5vw, 5.6rem);
    font-weight: 750;
    line-height: 0.98;
    letter-spacing: 0;
    overflow: hidden;
}

.dra-video-hero__heading-text {
    display: inline-block;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 520ms ease, transform 520ms ease;
}

.dra-video-hero__heading-text.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.dra-video-hero__caption {
    position: absolute;
    top: 40px;
    left: max(80px, calc((100vw - 1440px) / 2));
    right: auto;
    z-index: 1;
    max-width: min(42%, 620px);
    margin: 0;
    color: #fff;
    letter-spacing: 0;
    pointer-events: none;
    text-align: left;
}

.dra-video-hero .dra-video-hero__caption {
    font-size: 24px;
}

@media (min-width: 768px) {
    .dra-video-hero .dra-video-hero__caption {
        font-size: 24px;
    }
}

.dra-video-hero__caption:not(.has-project) {
    display: none;
}

.dra-video-hero__caption-project {
    display: inline-block;
    position: relative;
    padding-bottom: 10px;
    --dra-video-hero-caption-progress: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 420ms ease, transform 420ms ease;
}

.dra-video-hero__caption-project::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--e-global-color-accent, #e53935);
    transform: scaleX(var(--dra-video-hero-caption-progress));
    transform-origin: left center;
}

.dra-video-hero__caption-project.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.dra-video-hero__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    width: 100%;
    margin-top: 48px;
}

.dra-video-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 0;
}

.dra-video-hero .dra-video-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid #fff !important;
    border-radius: 44px;
    background: #fff !important;
    color: #111 !important;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.dra-video-hero .dra-video-hero__button:visited,
.dra-video-hero .dra-video-hero__button > span {
    color: #111 !important;
}

.dra-video-hero .dra-video-hero__button:hover,
.dra-video-hero .dra-video-hero__button:focus {
    border-color: var(--e-global-color-accent, #e53935) !important;
    background: var(--e-global-color-accent, #e53935) !important;
    color: #fff !important;
}

.dra-video-hero .dra-video-hero__button:hover > span,
.dra-video-hero .dra-video-hero__button:focus > span {
    color: #fff !important;
}

.dra-video-hero .dra-video-hero__button--secondary {
    border-color: #fff !important;
    border-width: 2px;
    background: transparent !important;
    color: #fff !important;
}

.dra-video-hero .dra-video-hero__button--secondary:visited,
.dra-video-hero .dra-video-hero__button--secondary > span {
    color: #fff !important;
}

.dra-video-hero .dra-video-hero__button--secondary:hover,
.dra-video-hero .dra-video-hero__button--secondary:focus {
    border-color: #fff !important;
    background: #fff !important;
    color: var(--e-global-color-accent, #e53935) !important;
}

.dra-video-hero .dra-video-hero__button--secondary:hover > span,
.dra-video-hero .dra-video-hero__button--secondary:focus > span {
    color: var(--e-global-color-accent, #e53935) !important;
}

.dra-video-hero-empty {
    padding: 16px;
    border: 1px solid #dcdcde;
    background: #fff;
    color: #1d2327;
}

@keyframes dra-video-hero-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (min-width: 1025px) {
    .dra-video-hero {
        min-height: 100vh;
    }

    .dra-video-hero__inner {
        width: calc(100% - 40px);
        margin-right: auto;
        margin-left: auto;
        padding-top: 120px;
        padding-bottom: 80px;
    }

    .dra-video-hero__heading {
        max-width: min(55%, 1080px);
    }

    .dra-video-hero__caption {
        position: static;
        max-width: min(42%, 680px);
        margin: 0 0 0 auto;
        text-align: right;
    }

    .dra-video-hero__caption-project {
        line-height: 1.1;
        transform: translateY(10px);
    }

    .dra-video-hero__caption-project::after {
        transform-origin: left center;
    }

    .dra-video-hero__caption-project.is-visible {
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .elementor-widget-shortcode:has(.dra-video-hero),
    .elementor-widget-shortcode:has(.dra-video-hero) > .elementor-widget-container {
        margin-top: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
    }

    .dra-video-hero {
        min-height: min(700px, 82vh);
    }

    .dra-video-hero__inner {
        width: min(100% - 32px, 1160px);
        padding: 72px 0 56px;
    }

    .dra-video-hero__heading,
    .dra-video-hero__actions {
        max-width: min(720px, 100%);
    }

    .dra-video-hero .dra-video-hero__caption {
        font-size: 24px;
    }

    .dra-video-hero__footer {
        display: block;
        margin-top: 48px;
    }

    .dra-video-hero__caption {
        top: 18px;
        left: 16px;
        max-width: calc(100% - 32px);
    }
}

@media (max-width: 767px) {
    .dra-video-hero {
        min-height: min(680px, 82vh);
    }

    .dra-video-hero__shade {
        background:
            linear-gradient(180deg, rgba(0, 0, 0, calc(var(--dra-video-hero-overlay) * 0.72)) 0%, rgba(0, 0, 0, calc(var(--dra-video-hero-overlay) + 0.18)) 100%),
            rgba(0, 0, 0, calc(var(--dra-video-hero-overlay) * 0.4));
    }

    .dra-video-hero__inner {
        width: min(100% - 32px, 1160px);
        padding: 64px 0 48px;
    }

    .dra-video-hero__heading {
        max-width: 100%;
    }

    .dra-video-hero__heading {
        font-size: clamp(2.35rem, 13vw, 4.2rem);
    }

    .dra-video-hero .dra-video-hero__caption {
        font-size: 18px;
    }

    .dra-video-hero__actions {
        gap: 10px;
    }

    .dra-video-hero__caption {
        top: 16px;
    }

    .dra-video-hero__button {
        min-height: 46px;
        padding: 0 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dra-video-hero__video,
    .dra-video-hero__player,
    .dra-video-hero__loader,
    .dra-video-hero__caption-project,
    .dra-video-hero__heading-text {
        transition: none;
    }

    .dra-video-hero__loader::after {
        animation: none;
    }
}
