.iframeContainer {
    margin: 0;
    position: relative;
    border-radius: 0;
    overflow: hidden;
    z-index: 11;
}

.iframeContainer-rounded {
    border-radius: 30px;
}

@media (min-width: 992px) {
    .iframeContainer-rounded {
        border-radius: 60px;
    }
}

.iframeContainer.playing {
    z-index: 20;
}

.iframeContainer iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 0;
}

.iframeContainer .iframeWrapper {
    position: relative;
    z-index: 8;
    height: 0;
    padding-top: 56.3%;
}

.iframeContainer.playing .iframeWrapper {
    position: relative;
    /*z-index: 12;
    */
}

.iframeContainer .iframeBg {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9;
    /* background-color: #444; */
    background-size: cover;
    background-position: center center;
    -webkit-transition: all 300ms ease;
    -moz-transition: all 300ms ease;
    -ms-transition: all 300ms ease;
    -o-transition: all 300ms ease;
    transition: all 300ms ease;
    mix-blend-mode: normal;
}

.iframeContainer.playing .iframeBg {
    top: 100%;
    right: 0%;
    bottom: 0%;
    left: 0%;
}

.playIframe {
    display: block;
    position: relative;
}

.iframeContainer .playIframe {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    -webkit-transition: all 600ms ease;
    -moz-transition: all 600ms ease;
    -ms-transition: all 600ms ease;
    -o-transition: all 600ms ease;
    transition: all 600ms ease;
    cursor: pointer;
}

.iframeContainer.playing .playIframe {
    display: none;
}

.playIframe > span {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 300ms ease;
    display: flex;
}

.playIframe > span {
    z-index: 10;
    width: 60px;
    height: 60px;
    border-radius: 100%;
    color: #fff;
    border: 3px solid #fff;
    transition: all 300ms ease;
    background: rgba(255, 255, 255, 0);
}
.playIframe:hover > span {
    background: rgba(255, 255, 255, 0.25);
}

.playIframe > span span {
    margin: auto;
}

@media (min-width: 992px) {
    .playIframe > span {
        width: 96px;
        height: 96px;
    }
}

.playIframe > span > .fa {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px;
}

.playIframe > span > .fa:before {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.playIframe > span:before,
.playIframe > span:after {
    display: block;
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    -webkit-transition: all 300ms ease;
    -moz-transition: all 300ms ease;
    -ms-transition: all 300ms ease;
    -o-transition: all 300ms ease;
    transition: all 300ms ease;
    border: 3px solid #fff;
    border-radius: 100%;
    z-index: 10;
    opacity: 0;
    display: none !important;
}

.playIframe:hover > span:before,
.playIframe:hover > span:after {
    opacity: 1;
}

.playIframe:hover > span:before {
    animation: pulseBefore 1000ms infinite ease-in-out;
}

.playIframe:hover > span:after {
    animation: pulseAfter 1000ms infinite ease-in-out;
}

@keyframes pulseBefore {
    0% {
        width: 100%;
        height: 100%;
    }
    50% {
        width: 140%;
        height: 140%;
    }
    100% {
        width: 100%;
        height: 100%;
    }
}

@keyframes pulseAfter {
    0% {
        width: 100%;
        height: 100%;
    }
    50% {
        width: 170%;
        height: 170%;
    }
    100% {
        width: 100%;
        height: 100%;
    }
}
.playIframe > span {
    display: flex;
}
.playIframe > span svg {
    display: block;
    fill: #fff;
    margin: auto;
    object-fit: contain;
    width: 50%;
    height: 50%;
}

.iframeContainer .actions {
    margin: 0 !important;
}

.iframeContainer .stopYT {
    display: flex;
    border: none;
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    padding: 0;
    background-color: var(--blue-light);
    color: #fff;
    z-index: 0;
    opacity: 0;
    transition: all 300ms ease;
    line-height: 1;
    border-radius: 100%;
    padding: 4px;
    width: 50px;
    height: 50px;
}
.iframeContainer .stopYT span {
    margin: auto;
}
.iframeContainer.playing .stopYT {
    z-index: 10;
    opacity: 1;
}

.videoModal .modal-content {
    max-width: calc(100% - 20px);
    margin: 0 auto;
    background: #000;
}
.videoModal .modal-dialog {
    max-width: 800px;
    margin: 30px auto;
}

.videoModal .modal-body {
    position: relative;
    padding: 0px;
    background: #000;
}
.videoModal .modal-body .iframeContainer {
    border-radius: 0;
}

.modal .btn-close {
    position: absolute;
    right: 0px;
    top: -40px;
    border-radius: 100%;
    background: var(--blue-light);
    display: flex;
    opacity: 1;
    width: 36px;
    height: 36px;
    z-index: 20;
    padding: 0;
}
.modal .btn-close:after {
    display: block;
    content: "\00D7";
    color: #fff;
    margin: auto;
    line-height: 1;
    font-size: 32px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: "Arial", sans-serif;
}
@media (min-width: 992px) {
    .modal .btn-close {
        top: -20px;
        right: -20px;
    }
}
