.tx-ni-youtube-gallery{

}

.tx-ni-youtube-gallery .youtubeElement .playerWrapper{
    margin-bottom: 0;
    position: relative;
}
.tx-ni-youtube-gallery  .singleDescription{
    margin-top: 10px;
    display: inline-block;
}

.tx-ni-youtube-gallery .description{
    padding: 20px 30px;
    background-color: #ec8a01;
    position: absolute;
    width: 100%;
    z-index: 100;
    bottom: -15px;
}
.tx-ni-youtube-gallery .description .element{
    color: #fff;
    display: inline-block;
}

.previewImages{
    background-color: #fffcf7;
    display: flex;
    padding: 30px 20px 20px 20px;
    align-items: start;
}

.previewImages > *{
    margin-right: 10px;
    cursor: pointer;
}

.previewImage{
    position: relative;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}
.previewImage.active,
.previewImage:hover{
    border-top: 5px solid #ea8a23;
    border-bottom: 5px solid #ea8a23;
}

.previewImage:hover:before{
    position: absolute;
    content: " ";
    width: 0;
    height: 0;
    -webkit-transform:rotate(360deg);
    border-style: solid;
    border-width: 15px 13px 0 13px;
    border-color: #ec8a01 transparent transparent transparent;
    left:30%;
    top:-20px;
}
.full .previewImage:hover:before{
    left:42%;
}

/* plyr Anpassungen Modern Browser*/
:root {
	--plyr-color-main: #ea8a23;
}

.plyr input[type=range]:active::-webkit-slider-thumb {
    background: #ea8a23;
}
.plyr input[type=range]:active::-moz-range-thumb {
    background: #ea8a23;
}
.plyr--video .plyr__controls button.tab-focus:focus,
.plyr--video .plyr__controls button:hover,
.plyr--audio .plyr__controls button.tab-focus:focus,
.plyr--audio .plyr__controls button:hover,
.plyr__control--overlaid,
.plyr--video .plyr__control:hover{
    background-color: #ea8a23;
}

.plyr--video .plyr__controls{
    background: linear-gradient(rgba(0,0,0,0),rgba(123, 123, 123, 0.5))
}

.tx-ni-youtube-gallery .visually-hidden{
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.youtubeStage{
    position: relative;
    container-type: inline-size;
    aspect-ratio: 16 / 9;
    background-color: #000;
}
.youtubeStage .youtubePoster{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.youtubeStage .plyr{
    position: absolute;
    inset: 0;
    height: 100%;
}
.youtubeStage.is-playing .youtubePoster,
.youtubeStage.is-playing .youtubePlayButton{
    display: none;
}

.youtubePlayButton{
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    padding: 0 0 0 4px;
    color: #fff;
    background-color: var(--plyr-color-main);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: transform .2s ease-out;
}
.youtubePlayButton:hover,
.youtubePlayButton:focus-visible{
    transform: translate(-50%, -50%) scale(1.08);
}
.youtubePlayButton:focus-visible{
    outline: 3px solid #fff;
    outline-offset: 3px;
}
.youtubeStage.is-asking .youtubePlayButton{
    display: none;
}

.videoConsent{
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 12px;
    padding: 72px 40px 40px;
    color: #fff;
    /* 0.55 is the least darkening that keeps white text at WCAG AA on a white image */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.85));
    backdrop-filter: blur(6px);
    animation: videoConsentIn .25s ease-out;
}
.videoConsent[hidden]{
    display: none;
}
.videoConsent p{
    margin: 0;
    color: inherit;
}
.videoConsentTitle{
    font-family: MinionProMedium, serif;
    font-size: 1.75rem;
    line-height: 1.2;
}
.videoConsentText{
    max-width: 46ch;
    font-size: 1rem;
    line-height: 1.5;
}
.videoConsentAccept{
    margin-top: 8px;
    padding: 12px 22px;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    background-color: var(--plyr-color-main);
    border: 0;
    border-radius: 4px;
    cursor: pointer;
}
.videoConsentAccept:hover,
.videoConsentAccept:focus-visible{
    background-color: #c96f0f;
}
.videoConsentMore,
.videoConsentClose{
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    cursor: pointer;
}
.videoConsentMore{
    font-size: 1rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.videoConsentMore:hover,
.videoConsentMore:focus-visible{
    text-decoration-thickness: 2px;
}
.videoConsentClose{
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5);
}
.videoConsentClose:hover,
.videoConsentClose:focus-visible{
    background-color: rgba(0, 0, 0, 0.85);
}
.videoConsentAccept:focus-visible,
.videoConsentMore:focus-visible,
.videoConsentClose:focus-visible{
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@container (max-width: 640px){
    .videoConsent{
        gap: 8px;
        padding: 64px 20px 20px;
    }
    .videoConsentTitle{
        font-size: 1.25rem;
    }
    .videoConsentText{
        font-size: .875rem;
    }
}

@keyframes videoConsentIn{
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}
