#yt-container {
    width: 65%;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    margin-top: 90px;
    margin-bottom: 7%;
    filter: drop-shadow(var(--dropshadow-glow-alt));
}

@media screen and (min-width: 900px) {
    #yt-container {
        margin-top: 150px;
    }
}

#yt-header {
    font-size: 6vw;
    text-align: center;
    margin: 0;
    margin-bottom: 3%;
    margin-right: 3%;
    margin-left: 3%;
}

#yt-inner {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr 1fr 1fr;
}

@media screen and (max-width: 900px) {
    #yt-inner {
        display: none;
    }
}

.yt-item {
    width: 100%;
    background-color: var(--container-color);
    border-radius: 15px;
    position: relative;
}

.yt-item a {
    display: block;
}

.yt-item a img {
    width: 100%;
    height: auto;
}

/* Mobile */
@media screen and (max-width: 2000px) {
    #yt-container {
        width: 80%;
    }
}

@media screen and (max-width: 1600px) {
    #yt-container {
        width: 94%;
    }
}

@media screen and (max-width: 900px) {
    #yt-container {
        width: 94%;
        margin-bottom: 0;
    }

    #yt-header {
        font-size: 12.7vw;
    }

    #yt-inner {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .yt-item {
        margin-bottom: 3%;
    }

    /* .yt-item img {
        
    } */
}

/* Link Icon mittig platzieren, ausblenden und bei hover einblenden */
@media screen and (min-width: 900px) {
    .link-icon {
        top: 50%;
        transform: translateY(-50%) translateX(-50%);
        left: 50%;
        display: none;
        mix-blend-mode:normal;
        opacity: 1;
        width: 50px;
    }

    .yt-item:hover .link-icon {
        display: unset;
    }
}

/* Hover/Active */
@media screen and (min-width: 900px) {
    .yt-item:hover {
        background-color: var(--container-color-hover);
    }
    
    .yt-item:hover img:not(.link-icon) {
        opacity: 50%;
    }
}

@media screen and (max-width: 900px) {
    .yt-slideshow-wrapper:active {
        background-color: var(--container-color-hover);
    }
    
    .yt-slideshow-wrapper:active button {
        opacity: 50%;
    }
}







/* --------------------SLIDESHOW -------------------- */

    /* ----------------------- */
/* Slideshow container */
.yt-slideshow-wrapper {
    margin-bottom: 3%;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    position: relative;
    background-color: var(--container-color);
    border-radius: 15px;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    filter: drop-shadow(var(--dropshadow-glow-alt));
}

@media screen and (min-width: 900px) {
    .yt-slideshow-wrapper {
        display: none;
    }
}

.yt-slideshow-container {
    position: relative;
    margin: auto;
    min-height: 77vw;
}

/* Hide the images by default */
.yt-mySlides {
    display: none;
    height: 77vw;
}


/* #slideshow-overflow {
    position: relative;
    width: 100%;
    overflow: hidden;
} */

/* Next & previous buttons */
@keyframes slide-indicator {
    0% {
        width: 0rem;
        height: 20rem;
        opacity: 1%;
    }

    50% {
        width: 1rem;
        height: 20rem;
        opacity: 40%;
        box-shadow: 0 0 50px 15px var(--primary-color);
    }

    100% {
        width: 0rem;
        height: 20rem;
        opacity: 1%;
    }
}

/* @keyframes slide-indicator-right {
    0% {
        width: 0rem;
        height: 5rem;
    }

    50% {
        width: 3rem;
        height: 5rem;
    }

    100% {
        width: 0rem;
        height: 5rem;
    }
} */

.slide-indicator-right,
.slide-indicator-left {
    animation:         slide-indicator 3.2s normal infinite; /* IE 10+, Fx 29+ */
    animation-timing-function: ease-in-out;
    animation-delay: 2s;
    -webkit-animation:         slide-indicator 3.2s normal infinite; /* IE 10+, Fx 29+ */
    -webkit-animation-timing-function: ease-in-out;
    -webkit-animation-delay: 2s;
    -moz-animation:         slide-indicator 3.2s normal infinite; /* IE 10+, Fx 29+ */
    -moz-animation-timing-function: ease-in-out;
    -moz-animation-delay: 2s;
    -ms-animation:         slide-indicator 3.2s normal infinite; /* IE 10+, Fx 29+ */
    -ms-animation-timing-function: ease-in-out;
    -ms-animation-delay: 2s;
    -o-animation:         slide-indicator 3.2s normal infinite; /* IE 10+, Fx 29+ */
    -o-animation-timing-function: ease-in-out;
    -o-animation-delay: 2s;
    position: absolute;
    top: 60%;
    transform: translateY(-50%);
    -o-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    width: 0rem;
    height: 0rem;
    background-color: var(--primary-color);
    z-index: 1;
    border-radius: 0 100% 100% 0px / 0 50% 50% 0;
    overflow: hidden;
    transition: all .5s ease;
    -webkit-transition: all .5s ease;
    -moz-transition: all .5s ease;
    -ms-transition: all .5s ease;
    -o-transition: all .5s ease;
    filter: blur(.1rem);
}

/* Position the "next button" to the right */
.slide-indicator-right {
    right: 0;
    border-radius: 100% 0 0px 100% / 50% 0 0 50%;
}

/* Fading animation */
.fade {
    -webkit-animation-name: fade;
    -webkit-animation-duration: 0.6s;
    -moz-animation-name: fade;
    -moz-animation-duration: 0.6s;
    -ms-animation-name: fade;
    -ms-animation-duration: 0.6s;
    -o-animation-name: fade;
    -o-animation-duration: 0.6s;
    animation-name: fade;
    animation-duration: 0.6s;
}

@-webkit-keyframes fade {
    from {
        opacity: .1
    }

    to {
        opacity: 1
    }
}

@keyframes fade {
    from {
        opacity: .1
    }

    to {
        opacity: 1
    }
}

.ytbutton1 {
    background-image: url(../media/img/yt/logo_youtube_transparent.webp);
    background-repeat: no-repeat;
    background-attachment: local;
    background-size: cover;
    border: none;
    color: rgba(255, 255, 255, 0);
    background-color: rgba(45, 52, 56, 0);
    text-align: center;
    text-decoration: none;
    font-size: 20vh;
    font-weight: 500;
    display: inline-block;
    font-family: lato;
    margin: auto;
    cursor: pointer;
    transition-duration: 0.3s;
    width: 100%;
    height: 122%;
    background-size: 100%;
    background-position: 50% 0%;
    filter: drop-shadow(var(--dropshadow));
}

.ytbutton2 {
    background-image: url(../media/img/yt/logo_youtube-clips_transparent.webp);
    background-repeat: no-repeat;
    background-attachment: local;
    background-size: cover;
    border: none;
    color: rgba(255, 255, 255, 0);
    background-color: rgba(45, 52, 56, 0);
    text-align: center;
    text-decoration: none;
    font-size: 20vh;
    font-weight: 500;
    display: inline-block;
    font-family: lato;
    margin: auto;
    cursor: pointer;
    transition-duration: 0.3s;
    width: 100%;
    height: 122%;
    background-size: 100%;
    background-position: 50% 5%;
    filter: drop-shadow(var(--dropshadow));
}

.ytbutton3 {
    background-image: url(../media/img/yt/logo_youtube-trash2_transparent.webp);
    background-repeat: no-repeat;
    background-attachment: local;
    background-size: cover;
    border: none;
    color: rgba(255, 255, 255, 0);
    background-color: rgba(45, 52, 56, 0);
    text-align: center;
    text-decoration: none;
    font-size: 20vh;
    font-weight: 500;
    display: inline-block;
    font-family: lato;
    margin: auto;
    cursor: pointer;
    transition-duration: 0.3s;
    width: 100%;
    height: 122%;
    background-size: 100%;
    background-position: 50% 5%;
    filter: drop-shadow(var(--dropshadow));
}