/* Bilder */

.images-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    justify-content: center;
    gap: 25px;
    width: 100%;
    margin: 50px auto;
}

.image-container {
    overflow: hidden;
    box-shadow: 0px 0px 23px -1px rgba(0, 0, 0,0.65);
}

.images-container img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    vertical-align: middle;
    cursor: pointer;
    transition: transform .3s;
}

.images-container img:hover {
    transform: scale(1.1);
}

@media only screen and (max-width: 500px) {
    .images-container {
        grid-template-columns: 100%;
    }
}



/* Lightbox */

#lightbox {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 5;
    user-select: none;
    -webkit-user-select: none;
}

#lightbox-overlay {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: black;
    opacity: 0.85;
}

#lightbox img {
    position: absolute;
    max-width: 80%;
    max-height: 80%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#lightbox-left {
    position: absolute;
    top: 50%;
    left: 50px;
    font-size: 100px;
    transform: translateY(-50%);
    transition: color .3s, transform .3s;
    text-shadow: 2px 0px 7px black;
}

#lightbox-right {
    position: absolute;
    top: 50%;
    right: 50px;
    font-size: 100px;
    transform: translateY(-50%);
    transition: color .3s, transform .3s;
    text-shadow: 2px 0px 7px black;
}

#lightbox-left:hover, #lightbox-right:hover {
    cursor: pointer;
    color: var(--selection-color);
    transform: translateY(-50%) scale(0.8);
}

#lightbox-count {
    position: fixed;
    left: 50%;
    bottom: 50px;
    transform: translateX(-50%);
}

#lightbox-close {
    position: fixed;
    z-index: 2;
    top: 75px;
    right: 75px;
    font-size: 25px;
    width: 50px;
    height: 50px;
}

#lightbox-close:hover {
    cursor: pointer;
}

.line1, .line2 {
    position: absolute;
    background-color: white;
    width: 50px;
    height: 5px;
    top: 22.5px;
    transition: background-color .3s, transform .3s;
    text-shadow: 2px 0px 7px black;
}

.line1 {
    transform: rotate(45deg);
}

.line2 {
    transform: rotate(-45deg);
}

#lightbox-close:hover .line1 {
    background-color: var(--selection-color);
    transform: scale(0.8) rotate(40deg);
}

#lightbox-close:hover .line2 {
    background-color: var(--selection-color);
    transform: scale(0.8) rotate(-40deg);
}

@media only screen and (max-width: 1250px) {
    #lightbox-left {
        left: 10%;
        font-size: 70px;
    }

    #lightbox-right {
        right: 10%;
        font-size: 70px;
    }

    #lightbox-close {
        top: 50px;
        right: 50px;
    }
}

@media only screen and (max-width: 750px) {
    #lightbox-left:hover, #lightbox-right:hover {
        cursor: pointer;
        color: white;
        transform: translateY(-50%) scale(1);
    }

    #lightbox-close:hover .line1, #lightbox-close:hover .line2 {
        background-color: white;
    }
}
