
.media-photo-container {
    position: relative;
    overflow: hidden;
}

    .media-photo-container .wrapper {
        width: 100%;
        position: absolute;
        left: 0;
        bottom: 0;
        line-height: 1.2;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
        padding: 80px 20px 20px;
        color: #fff;
        transition: 0.3s ease;
    }

        .media-photo-container .wrapper h2 {
            font-size: 1.3125rem;
            text-transform: uppercase;
            font-weight: 700;
            margin: 0;
            transform: translateY(20px) translateZ(0px);
            transition: 0.3s cubic-bezier(0.77, 0, 0.175, 1);
        }

        .media-photo-container .wrapper p {
            margin: 0;
            font-size: 0.875rem;
            transform: translateY(20px);
            transition: 0.3s cubic-bezier(0.77, 0, 0.175, 1);
        }

    .media-photo-container:hover .wrapper h2,
    .media-photo-container:hover .wrapper p {
        transform: translateY(0);
    }

.padding-right-5px {
    padding-right: 5px;
}
.padding-left-5px {
    padding-left: 5px;
}





.home-media-section .home-media-hero-frame,
.home-media-section .home-media-hero-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #121212;
}

.home-media-section .home-media-frame {
    border: 0;
}

.home-media-section .home-media-play-main {
    width: 66px;
    height: 66px;
}

.home-media-section .home-media-play-card {
    width: 60px;
    height: 60px;
}

.home-media-section .home-media-hero-thumbnail {
    cursor: pointer;
}

.home-media-section .home-media-hero-thumbnail > img,
.home-media-section .video-thumbnail-wrapper > .thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-thumbnail-wrapper .overlay {
    background: rgba(0, 0, 0, 0.3); /* 30% black */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    border-radius: 12px;

}

.home-media-section .video-thumbnail-wrapper {
    display: block;
    width: 100%;
    overflow: hidden;
}

.home-media-section .media-photo-container {
    display: block;
    width: 100%;
}

.home-media-section .video-thumbnail-wrapper > img,
.home-media-section .media-photo-container > img {
    display: block;
}

.home-media-section .video-thumbnail-wrapper:focus-visible,
.home-media-section .media-photo-container:focus-visible {
    outline: 3px solid rgba(120, 202, 42, 0.8);
    outline-offset: 3px;
}

.home-media-section .thumbnail-overlay,
.home-media-section .media-photo-container::after {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.08) 0%,
        rgba(0, 0, 0, 0.2) 48%,
        rgba(0, 0, 0, 0.78) 100%
    );
    pointer-events: none;
}

.home-media-section .media-photo-container::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.home-media-section .media-type-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    max-width: calc(100% - 1.5rem);
    padding: 0.28rem 0.55rem;
    border-radius: 4px;
    background: rgba(70, 65, 65, 0.82);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    pointer-events: none;
    backdrop-filter: blur(6px);
}

.home-media-section .home-media-type-photo {
    background: rgba(103, 34, 144, 0.86);
}

.home-media-section .video-thumbnail-title,
.home-media-section .home-media-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 2rem 1.25rem 1rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.home-media-section .home-media-title-text {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.home-media-section .home-media-caption {
    display: block;
    pointer-events: none;
    text-decoration: none;
}

.home-media-section .video-thumbnail-wrapper .position-absolute.top-50 {
    z-index: 3;
}



.media-photo-container {
    border-radius: 0;
    overflow: hidden;
}


/* Make sure buttons scale down on smaller screens */
