#gallery {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    height: auto;
    min-height: 150vh;
    transform-style: preserve-3d;
    z-index: -2;
}

.gallery_background {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    transform: translateZ(-10px) scale(2);
}

.gallery_background img {
    object-fit: cover;
    filter: saturate(0%);
    width: 100%;
    height: 100%;
}

.gallery-entry-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: whitesmoke;
}

.gallery-background-filter {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* höhe von gallery-entry-bar berücksichtigen */
    background: rgba(245, 245, 245, 0.7);
}

#gallery-section-main {
    height: auto;
    min-height: 130vh;
    width: auto;
    min-width: 75vw;
    margin: 100px auto auto auto;
}

#gallery_darkbox {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    background: gray;
    width: auto;
    min-width: 95%;
    height: auto;
    min-height: 90%;
    opacity: 1;
    z-index: 1;
}

#gallery_whitebox {
    display: flex;
    flex-direction: column;
    position: absolute;
    align-items: end;
    right: 0;
    bottom: 0;
    background: transparent;
    width: 95%;
    height: 93.5%;
    opacity: 1;
    z-index: 2;
}

.gallery-album-card-title {
    height: auto;
    width: 100%;
    text-transform: uppercase;
    font-size: clamp(2rem, 1.4vw, 3.5rem);
    font-weight: 200;
    color: white;
    letter-spacing: 8px;
    line-height: auto;
    pointer-events: none;
}


#gallery_whitebox_content {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    background: white;
    padding: 100px 100px;
    box-shadow: 0px 0px 1000px rgb(207, 207, 207);
}

.gallery-album-swiper-container {
    display: flex;
    position: relative;
    flex-direction: row;
    justify-content: center;
    height: 350px;
    width: 100%;
}

/*alias gallery*/
.gallery-album-preview-container {
    display: flex;
    height: calc(100% - 350px);
    background: transparent;
    flex-direction: column;
    align-items: center;
    overflow-y: scroll;
}

.swiper-button-prev-gallery-album {
    position: absolute;
    z-index: 999;
    color: gray;
    left: 0px !important;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
}

.swiper-button-next-gallery-album {
    position: absolute;
    z-index: 999;
    color: gray;
    right: 0px !important;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    font-weight: 100;
}

.swiper-button-prev-gallery-album:hover,
.swiper-button-next-gallery-album:hover {
    color: black;
    cursor: pointer;
}

#gallery-album-title {
    display: flex;
    height: 90px;
    justify-content: center;
    align-items: center;
    color: black;
    padding: 30px 0px 10px 0px;
    text-align: center;
    font-size: 3rem;
    text-transform: none;
    font-weight: 300;
}

.gallery-album-preview-container #gallery-album-preview-container-images-preview {
    width: 100%;
    height: auto;
    column-count: 7;
    /*max number of columns*/
    column-width: 100px;
    /*min-width of each column*/
    gap: 10px;
    /*gap between each column*/
}

/*#gallery-album-preview-container-images-preview alias class images*/
#gallery-album-preview-container-images-preview .gallery-image-card {
    position: relative;
    list-style: none;
    margin-bottom: 10px;
    border-radius: 4px;
    overflow: hidden;
    line-height: 0px;
}

#gallery-album-preview-container-images-preview .gallery-image-card .image-details {
    position: absolute;
    bottom: -100px;
    left: 0;
    width: 100%;
    height: auto;
    line-height: 1rem;
    backdrop-filter: blur(1px);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    padding: 5px 10px 5px 10px;
    pointer-events: none;
}

#gallery-album-preview-container-images-preview .gallery-image-card:hover .image-details {
    bottom: 0px;
    transition: all 0.5s ease;
}

#gallery-album-preview-container-images-preview .gallery-image-card .image-details .image-title {
    font-size: 0.7rem;
    color: whitesmoke;
    font-weight: 800;
}

#gallery-album-preview-container-images-preview .gallery-image-card .image-details .image-author {
    display: flex;
    font-size: 0.8rem;
    color: whitesmoke;
    font-weight: 200;
    align-items: center;
}

#gallery-album-preview-container-images-preview .gallery-image-card .image-details .image-author span {
    padding-left: 5px;
}

#gallery-album-preview-container-images-preview .gallery-image-card .image-details .image-rating {
    display: flex;
    justify-content: end;
    font-size: 12px;
    color: whitesmoke;
}

#gallery-album-preview-container-images-preview .gallery-image-card .image-details .image-rating i {
    cursor: pointer;
    font-size: 0.8rem;
}

#gallery-album-preview-container-images-preview img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    pointer-events: none;
}


.gallery-album-swiper-container-wrapper {
    width: calc(100% - 100px);
}


.gallery-album-card {
    display: flex;
    position: relative;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.gallery-album-card img {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    pointer-events: none;
}

.gallery-album-card-title {
    position: absolute;
    top: 0px;
    left: 0px;
    height: auto;
    text-transform: none;
    font-weight: 300;
    font-size: 1.5rem;
    letter-spacing: 3px;
    background: rgba(0, 0, 0, 0.7);
}

/*################################## HORIZONTAL ##################################*/
/*################################################################################*/

/* Bildschirmbreite kleiner 3000px und Ausrichtung horizontal */
@media screen and (orientation: landscape) and (max-width: 3000px) {

    .gallery-album-card-title {
        font-size: clamp(2rem, 1.4vw, 3.5rem);
    }

    #gallery_whitebox_content {
        padding: 70px 70px;
    }

    .gallery-album-swiper-container {
        height: 200px;
    }

    .gallery-album-preview-container {
        height: calc(100% - 390px);
    }
    
    #gallery-album-title {
        font-size: 2rem;
    }
    
    .gallery-album-card-title {
        font-size: clamp(1rem, 0.7vw, 1.5rem);
    }
}

/* Bildschirmbreite kleiner 2000px und Ausrichtung horizontal */
@media screen and (orientation: landscape) and (max-width: 2000px) {

    .gallery-album-card-title {
        font-size: clamp(1.5rem, 1.4vw, 2rem);
    }

    #gallery_whitebox_content {
        padding: 40px 40px;
    }

    .gallery-album-swiper-container {
        height: 150px;
    }

    .gallery-album-preview-container {
        height: calc(100% - 240px);
    }

    #gallery-album-title {
        font-size: 1.5rem;
    }

    .gallery-album-card-title {
        font-size: 1rem;
    }

    .swiper-button-next-gallery-album,
    .swiper-button-prev-gallery-album {
        font-size: 2rem;
    }
}

/* Bildschirmbreite kleiner 1500px und Ausrichtung horizontal */
@media screen and (orientation: landscape) and (max-width: 1500px) {

    /*.gallery-album-card-title {
        font-size: 2vh;
    }*/

    #gallery_whitebox_content {
        padding: 30px 30px;
    }

    .gallery-album-swiper-container {
        height: 150px;
    }

    .gallery-album-preview-container {
        height: calc(100% - 240px);
    }

    #gallery-album-title {
        font-size: 1.25rem !important;
    }

    .gallery-album-card-title {
        font-size: 1rem;
    }
}

/* Bildschirmbreite kleiner 1000px und Ausrichtung horizontal */
@media screen and (orientation: landscape) and (max-width: 1000px) {

    #gallery-section-main {
        width: 800px;
        min-height: 75vh;
    }

    #gallery_whitebox_content {
        padding: 20px 20px;
    }

    .gallery-album-swiper-container {
        height: 150px;
    }

    .gallery-album-preview-container {
        height: calc(100% - 240px);
    }

    .gallery-album-card-title {
        font-size: 1rem;
    }
}

/* Bildschirmbreite kleiner 800px und Ausrichtung horizontal */
@media screen and (orientation: landscape) and (max-width: 800px) {

    #gallery {
        min-height: 175vh;
    }

    #gallery-section-main {
        width: 100%;
        min-height: 150vh;
    }

    .gallery-album-card-title {
        height: auto;
        width: 100%;
        text-transform: uppercase;
        font-size: clamp(2rem, 1.4vw, 3.5rem);
        font-weight: 200;
        color: white;
        letter-spacing: 8px;
    }

    #gallery_whitebox_content {
        padding: 5%;
    }

    .gallery-album-swiper-container {
        height: 150px;
    }

    .gallery-album-preview-container {
        height: calc(100% - 240px);
    }

    .gallery-album-card-title {
        font-size: 0.8rem;
    }
}

/*################################### VERTIKAL ###################################*/
/*################################################################################*/

/* Bildschirmbreite kleiner 3000px und Ausrichtung vertikal */
@media screen and (orientation: portrait) and (max-width: 3000px) {

    #gallery-section-main {
        width: 80vw;
        min-width: 1000px;
    }

    .gallery-album-swiper-container {
        height: 200px;
    }
}

/* Bildschirmbreite kleiner 2000px und Ausrichtung vertikal */
@media screen and (orientation: portrait) and (max-width: 2000px) {

    .gallery-album-card-title {
        font-size: 1.1rem;
    }

    .swiper-button-next-gallery-album,
    .swiper-button-prev-gallery-album {
        font-size: 2rem;
    }
}

/* Bildschirmbreite kleiner 1500px und Ausrichtung vertikal */
@media screen and (orientation: portrait) and (max-width: 1500px) {

    #gallery_whitebox_content {
        padding: 70px 70px;
    }

    .gallery-album-swiper-container {
        height: 200px;
    }

    .gallery-album-preview-container {
        height: calc(100% - 290px);
    }

    #gallery-album-title {
        font-size: 1.5rem !important;
    }

}

/* Bildschirmbreite kleiner 1000px und Ausrichtung vertikal */
@media screen and (orientation: portrait) and (max-width: 1000px) {

    #gallery-section-main {
        width: 100%;
        min-width: 0;
    }

}

/* Bildschirmbreite kleiner 800px und Ausrichtung vertikal */
@media screen and (orientation: portrait) and (max-width: 800px) {

    #gallery_whitebox_content {
        padding: 5%;
    }

    .gallery-album-card-title {
        font-size: 1.1rem;
    }
}



/* Bildschirmbreite kleiner 399x und Ausrichtung vertikal oder horizontal */
@media screen and (max-width: 399px) {

    .gallery-album-swiper-container-wrapper {
        width: calc(100% - 40vw);
    }
}
