/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    flex-direction: column;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 85%;
    max-height: 85%;
    border-radius: 5px;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 115px;
    font-weight: normal;
    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-size: 90px;
    transition: 0.3s;
    user-select: none;
}

.lightbox-prev {
    left: 20px;
    border-radius: 5px 0 0 5px;
}

.lightbox-next {
    right: 20px;
    border-radius: 0 5px 5px 0;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2 , 1fr); /* oder 3, je nach gewünschter Spaltenzahl */
    gap: 15px;
    width: 100%;
}

.image-grid a {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.image-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
    transform-origin: center;
}

.image-grid a:hover img {
    transform: scale(1.1);
}

    .image-grid1 {
        display: grid;
        grid-template-columns: repeat(1 , 1fr); /* oder 3, je nach gewünschter Spaltenzahl */
        gap: 15px;
        width: 100%;
    }

    .image-grid1 a {
        display: block;
        border-radius: 8px;
        overflow: hidden;
        aspect-ratio: 4 / 3;
    }

    .image-grid1 img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        cursor: pointer;
        transition: transform 0.2s ease-in-out;
        transform-origin: center;
    }

    .image-grid1 a:hover img {
        transform: scale(1.1);
    }

.lightbox-caption {
    color: #fff;
    font-size: 2em;
    text-align: center;
    margin-top: 18px;
    margin-bottom: 10px;
    font-weight: 400;
    letter-spacing: 0.03em;
}