*[class^="blocGalleryH"] {
    text-align: center;
}

.blocGalleryHidden {
    display: none;
}

.blocGalleryContainer {
    width: 75%;
    -ms-box-orient: horizontal;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -moz-flex;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-flex-flow: row wrap;
    flex-flow: row wrap;
    -webkit-align-items: center;
    align-items: center;
    margin: 3rem auto;
}

.blocGallery {
    display: block;
    margin: 0.5rem 0.5rem;
    height: fit-content;
}

.blocGalleryIMG {
    width: auto;
    height: 75vh;
    border-radius: 1.25rem;
    visibility: visible;
}

.blocGalleryRichTXT {
    text-align: center;
    padding: 0.25rem 0.5rem;
    background-color: #fff;
    margin: 1.5rem auto;
    visibility: visible;
    width: 75%;
}

.blocGalleryRichTXT * {
    margin: 0;
}

.blocGalleryEnlarge {
    scroll-margin-top: 1rem;
    position: absolute;
    text-align: center;
    z-index: 20;
    visibility: hidden;
    padding: 1rem;
    width: auto;
}

.blocGalleryBackground {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
}

@media only screen and (max-width: 720px) {
    .blocGalleryContainer {
        padding: 0;
        justify-items: center;
        width: 100%;
    }
    .blocGalleryIMGThumbnails {
        width: 100%;
        height: auto;
    }

    .blocGalleryIMG {
        width: 75vw;
        height: auto;
    }

    .blocGalleryRichTXT {
        width: 75vw;
        max-width: unset;
    }

    .blocGallery {
        display: grid;
        width: 45%;
    }
}