/*
put any CSS shared by all instances
of this component here. Also be sure to add this file
to the styleRefs array in elastic
*/
section#legacy .image-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

}

section#legacy .image-gallery__row {
    flex-direction: row;
}

section#legacy .image-gallery_column {
    flex-direction: column;
}

section#legacy .image-gallery__title {
    font-family: 'hn-bold';
    color: #4d4d4d;
    font-size: 26px;
    margin-left: 10px;
}

section#legacy .image-gallery__title-center {
    margin-left: 0;
    text-align: center;
}

section#legacy .image-gallery__title-end {
    margin-left: -10px;
    text-align: end

}
section#legacy .image-gallery .image {
    /* flex: 0 0 calc(50% - 20px); */
    margin: 10px;
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: flex-end;
    flex-wrap: wrap;
    justify-content: center;
}

section#legacy .gallery-cols-1 .image {
    flex-basis: 100%;
}

section#legacy .gallery-cols-2 .image {
    flex-basis: calc(50% - 20px);
}

section#legacy .gallery-cols-3 .image {
    flex-basis: calc(33.333% - 20px);
}

section#legacy .gallery-cols-4 .image {
    flex-basis: calc(25% - 20px);
}

section#legacy .gallery-cols-5 .image {
    flex-basis: calc(20% - 20px);
}

@media  screen and (max-width: 520px) {
    section#legacy .gallery-cols-3 .image,
    section#legacy .gallery-cols-2 .image,
    section#legacy .gallery-cols-4 .image
    .gallery-cols-5 .image,
    section#legacy .gallery-cols-5 .image
     {
        flex-basis: 100%;
        flex-grow: 1
    }
    section#legacy .image-gallery .image {
        align-items: center;
    }

}

@media screen and (max-width: 768px) {
    section#legacy .gallery-cols-3 .image, section#legacy .gallery-cols-4 .image {
        flex-basis: calc(50% - 20px);
    }
    section#legacy .image-gallery .image {
        align-items: center;
    }
}

section#legacy .image-gallery .image img {
    max-width: 100%;
}

section#legacy .image-gallery.gallery-borders .image {
    border: 2px solid #dadada;
    padding: 20px
}

section#legacy .gallery-image-caption {
    display: flex;
    align-content: center;
    margin-top: 15px;
    justify-content: center;
    font-family: 'hn-bold';
    color: #666;
}

section#legacy .image-caption-small .gallery-image-caption {
    font-size: 12px;
    margin-top: 0;
    min-height: 75px;
}
