figure, article{display:block;}
.galleries {
    width:100%;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    padding-top: 1.5rem;
    background-color: #f3fafc;
}
.galleries-item a {
    color:#293a77;
}
.galleries-item a:hover{
    text-decoration: none;
    color:#293a77;
}
.galleries-item {
    margin-bottom: 2rem;
}
.galleries-item_thumb {
    padding-top: 65%;
    position: relative;
    overflow: hidden;
}
.galleries-item_thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    display:block;
}
.galleries-item_title {
    text-align: center;
    white-space: nowrap;
    padding: 3rem 1.5rem;
    margin-bottom: 0;
}

.o-h4 {
    font-size: calc(22px + 10*(100vw - 500px)/1500);
}
.gallery-name{
    width: 100%;
    text-align: center;
    color:#293a77;
}
.gallery-items{
    display: grid;
    width:99%;
    grid-template-columns: repeat(5,1fr);
    grid-gap: 1rem;
}
.gallery-item_thumb {
    padding-top: 56.25%;
    position: relative;
}
.gallery-item_thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    transition: transform 1s ease;
}
.gallery-item_thumb:hover img{
    transform: scale(1.1);
}
.galerie-link a{
    color: #be1f2c;
    -webkit-transition: all 0.2s;
    -moz-transition: all 0.2s;
    transition: all 0.2s;
    line-height: 1.9;
    font-size: 1rem;
}
.galerie-link a:hover{
    color: #be1f2c;
    text-decoration: none;
}

/* The Modal (background) */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 10px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: #293a77;
}

/* Modal Content */
.modal-content {
    position: relative;
    text-align: center;
    margin: auto;
    padding: 0;
    max-width: 95vw;
    background-color:transparent!important;
}

/* The Close Button */
.close {
    color: #fff;
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 50px;
    font-weight: bold;
    z-index: 3;
    text-shadow: 0 1px 0 #fff;
    opacity: 1;
}

.close:hover,
.close:focus {
color: #999;
text-decoration: none;
cursor: pointer;
}

/* Hide the slides by default */
.mySlides {
    display: none;
    height: 98vh;
    align-items: center;
    justify-content: center;
}

.mySlides img{
    box-sizing: border-box;
    padding: 30px;
    max-height: 80vh;
    width: auto;
    max-width: 80vw;
}

/* Next & previous buttons */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: #fff!important;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}
.prev{
    left:0px!important;
}
.next{
    right:0px!important;
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}


/* Number text (1/3 etc) */
.numbertext {
    color: #fff;
    font-weight:bold;
    font-size: 26px;
    padding: 8px 12px;
    position: absolute;
    top: 10px;
    left: 10px;
}
.gallerietext{
    color: #fff;

    font-size: 30px;
    padding: 8px 12px;
    position: absolute;
    top: 5px;
    left: calc(50% - 75px);
}
/* Caption text */
.caption-container {
    text-align: center;
    background-color: #293a77;
    padding: 2px 16px;
    color: #fff;
    position: absolute;
    top: 60px;
    left: calc(50% - 75px);
}
.active {
    opacity: 0.8;
}

img.hover-shadow {
    transition: 0.3s;
}

.hover-shadow:hover {
    box-shadow: 0px  0px 0px 0px rgba(0, 0, 0, 0);
}
@media (max-width: 600px) {
    .galleries {
        grid-template-columns: repeat(1,1fr);
    }
}
@media (max-width: 500px) {
    .galleries {
        grid-template-columns: repeat(1,1fr);
    }
}

@media (max-width: 400px) {
    .galleries {
        grid-template-columns: repeat(1,1fr);
    }
}
