.contentvid {
    display: flex;
    flex-direction: column;
}

.contentvid__content {
    order: 2;
}

.contentvid__video {
    order: 1;
    figure {
        position: relative;
        width: 100%;
        height: auto;
        margin-bottom: 0;
        .contentvid__playbtn {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%,-50%);
            z-index: 1;
        }
        .contentvid__video-src {
            position: relative;
            z-index: 0;
            width: 100%;
            border-radius: 9px;
        }
    }
}

.contentvid__play-video {
    border: 0;
    background-color: transparent;
}

.contentvid__play-video.play-beat {
    cursor: pointer;
    svg {
        filter: brightness(0) saturate(100%) invert(35%) sepia(75%) saturate(2321%) hue-rotate(3deg) brightness(101%) contrast(110%);
    }
    &::before,
    &::after {
        background-color: rgba(254, 85, 6, 0.5);
    }
}

.contentvid__embed-placeholder {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.contentvid__embed-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.contentvid__embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.contentvid__fallback {
    padding: 2rem;
    text-align: center;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.contentvid__video.video-loading {
    opacity: 0.8;
}

.contentvid__video.video-playing {
    opacity: 1;
}

@media ( min-width: 768px) {
    .contentvid {
        flex-direction: row;
        column-gap: 20px;
    }

    .contentvid__content {
        order: 1;
        flex: calc(60% - 10px) 0 1;
    }
    
    .contentvid__video {
        order: 2;
        flex:  calc(40% - 10px) 0 1;
        figure {
            height: 265px;
        }
        .contentvid__video-src {
            height: 100%;
        }
    }
}

@media ( min-width: 1280px) {
    .contentvid__title {
        margin-block-start: 0;
    }
    .contentvid__content {
        flex: calc(50% - 10px) 0 1;
    }
    .contentvid__video {
        figure {
            height: 333px;
        }
        flex: calc(50% - 10px) 0 1;
    }
}