.tpl-external-video-section{
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.video-section__wrapper {
    display: flex;
    flex-direction: column;
    row-gap: 16px;
}

.tpl-external-video {
    height: 100%;
    aspect-ratio: 4 / 5;
    margin-top: 16px;
    position: relative;
}

.tpl-external-video__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 5;
    pointer-events: all;
}

.tpl-external-video-wrapper {
    position: relative;
    aspect-ratio: 4 / 5;
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: flex-end;
    background-position: center 0;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    z-index: 1;
}

.tpl-external-video__video-button {
    position: absolute;
    right: 16px;
    bottom: 16px;
    text-align: center;
    cursor: pointer;
    display: none;
    z-index: 500;
}

.tpl-external-video__video-button svg{
    width: 48px;
    height: 48px;
}

.pauseBtn {
    display: block;
}

.tpl-external-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    aspect-ratio: 4 / 5;
}

.tpl-external-video .tpl-external-video-wrapper {
    border-radius: 16px;
    justify-content: center;
}

.video-ready {
    background: linear-gradient(58deg, rgba(0, 0, 0, 0.52) 19.3%, rgba(0, 0, 0, 0.00) 50.24%), lightgray 50% / cover no-repeat;
}

.video-loading {
    animation: placeholderShimmer 1.2s ease-in-out infinite forwards;
    background: #eee;
    background: linear-gradient(to right, #e2e2e2 8%, #e7e7e7 18%, #e2e2e2 33%);
    background-size: 800px 386px;
    position: relative;
}

@media (min-width: 768px) {

    .video-button {
        right: 32px;
        bottom: 32px;
    }

    .video-section__wrapper {
        row-gap: 32px;
    }

    .tpl-external-video .tpl-external-video-wrapper {
        aspect-ratio: 16 / 9;
        border-radius: 32px;
    }

    .tpl-external-video video {
        aspect-ratio: 16 / 9;
        border-radius: 32px;
    }

    .tpl-external-video {
        aspect-ratio: 16 / 9;
        margin-top: 32px;
    }

    .tpl-external-video__video-button svg{
        width: 76px;
        height: 76px;
    }

}

@keyframes placeholderShimmer {
    0% {
        background-position: -250px 0;
    }

    100% {
        background-position: 550px 0;
    }
}