﻿

#galleryMultiDescriptionBottom {
    margin-top: 50px;
}

.galleryMultiGalleryContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 50px;
}

.galleryMultiGallery {
    width: Calc(100% / 4 - 20px);
    border: 1px solid #ccc;
    box-shadow: 2px 2px 6px 0px rgba(0,0,0,0.3);
}

.galleryMultiGalleryImage img {
    vertical-align: top;
    /* Part below needed if portrait images should be cut above and below. Without this the image is only cut below*/
    object-fit: cover;
    width: 100%;
    max-height: 100%;
    aspect-ratio: 4/3;
}

.galleryMultiGallery:hover img {
    opacity: 0.65;
}

.galleryMultiGalleryDescription {
    padding: 15px;
}

.galleryMultiGallery a,
.galleryMultiGallery a:visited {
    color: #0A8137;
    text-decoration: none;
}

.galleryMultiGallery a:hover
 {
    text-decoration: none;
    color: #4FBE37;
}

@media screen and (max-width: 1279.9px) {

    .galleryMultiGallery {
        width: Calc(100% / 3 - 20px);
    }
}

@media screen and (max-width: 1023.9px) {

    .galleryMultiGallery {
        width: Calc(100% / 2 - 15px);
    }

}

@media screen and (max-width: 450px) {

    #galleryMultiGalleryContainer {
        display: block;
        gap: 0;
    }

    .galleryMultiGallery {
        width: 100%;
        margin-bottom: 30px;
    }
}


/* Detail pages */

#backToOverviewContainer
{
    margin-bottom: 20px;
}


#galleryMultiGalleryDescriptionBottom {
    margin-top: 30px;
}

figure {
    margin: 0;
}

#galleryMultiGalleryImagesContainer {
    
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.galleryMultiImageContainer {
    width: Calc(100% / 4 - (30px / 4 * 3));
    border: 1px solid #ccc;
    box-shadow: 2px 2px 6px 0px rgba(0,0,0,0.3);
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

.galleryMultiImageContainer img {
    vertical-align: top;
    /* Part below needed if portrait images should be cut above and below. Without this the image is only cut below*/
    object-fit: cover;
    width: 100%;
    max-height: 100%;
    aspect-ratio: 4/3;
}


.galleryMultiImageDescription {
    padding: 5px 10px 5px 10px;
    font-size: 16px;
    position: absolute;
    bottom: -40px;
    background-color: rgba(255,255,255,0.9);
    right: 0;
    left: 0;
    transition: all 0.3s ease-in 0s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.galleryMultiImageContainer:hover .galleryMultiImageDescription {
    bottom: 0;
}

.galleryMultiImageContainer a,
.galleryMultiImageContainer a:visited,
.galleryMultiImageContainer a:hover {
    text-decoration: none;
    color: #4C86A5;
}

@media screen and (max-width: 1279.9px) {

    .galleryMultiImageContainer {
        width: Calc(100% / 3 - (30px / 3 * 2));
    }
}

@media screen and (max-width: 1023.9px) {

    #galleryMultiGalleryImagesContainer {
        gap: 20px;
    }

    .galleryMultiImageContainer {
        width: Calc(100% / 2 - 10px);
    }
}


@media screen and (max-width: 580px) {

    #galleryMultiGalleryImagesContainer {
        gap: 0;
        display: block;
    }

    .galleryMultiImageContainer {
        width: 100%;
        margin-bottom: 30px;
    }


}



