.hero-story {
    position: relative;
    margin: 0 auto;
}

.hero-story .video-wrapper {
    margin: 0 auto;
    position: relative;
    width: 100%;
    max-width: 100%;
}

.hero-story .plyr__video-embed {
    width: 100%;
    height: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border-radius: 4px;
}

.hero-story .plyr__poster {
    background-size: 102% !important;
    background-position: center center !important;
    border-radius: 4px;
}

.hero-story .plyr__video-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Custom orange play button */
.hero-story .plyr--video .plyr__control--overlaid {
    background-color: transparent;
    background-image: url("orange-play.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    border-radius: 0;
    width: 48px;
    height: 48px;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.hero-story .plyr--video .plyr__control--overlaid:hover {
    background-color: transparent;
    background-image: url("orange-play.svg");
    opacity: 0.8;
}

.hero-story .plyr--video .plyr__control--overlaid:focus {
    background-color: transparent;
    background-image: url("orange-play.svg");
    outline: none;
    box-shadow: none;
}

.hero-story .story-title {
    position: absolute;
    bottom: 0;
    padding: 30px 16px 16px;
    text-align: left !important;
    width: 100%;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    background: none;
    z-index: 1;
    overflow: hidden;
}

.hero-story .story-title::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.5) 71%,
        rgba(0, 0, 0, 0) 100%
    );
    mix-blend-mode: multiply;
    pointer-events: none;
}

.hero-story .story-title h5 {
    color: var(--white);
    font-size: 16px;
    font-weight: 300;
    line-height: 136%; /* 21.76px */
    letter-spacing: -0.32px;
}

/* Hide story title when video is playing */
.hero-story .story-title.video-playing {
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

/* Show story title when video is paused/stopped (default state) */
.hero-story .story-title {
    opacity: 1;
    visibility: visible;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

@media screen and (max-width: 992px) {
    .hero-story .story-title {
        display: none;
    }
}
