.gallery{display:flex;flex-wrap:wrap;gap:10px}.gallery .gallery_image{flex:1 1 auto;height:400px;margin:0;overflow:hidden;position:relative}.gallery .gallery_image .gallery_image-caption{background-color:#fff;bottom:0;color:#000;font-size:.875rem;left:0;line-height:1.4;margin:0;max-width:100%;padding:.375rem .75rem;position:absolute;text-align:left;z-index:1}.gallery .gallery_image a{display:block;height:100%}.gallery .gallery_image img{display:block;height:100%;-o-object-fit:cover;object-fit:cover;width:100%}@media(min-width:992px){.gallery .gallery_image:nth-child(4n+1){width:calc(60% - 6.5px)}.gallery .gallery_image:nth-child(4n+2),.gallery .gallery_image:nth-child(4n+3){width:calc(40% - 4.5px)}.gallery .gallery_image:nth-child(4n+4){width:calc(60% - 6.5px)}}@media(max-width:991.98px){.gallery .gallery_image{width:100%}}@media(max-width:767.98px){.gallery .gallery_image,.gallery .gallery_image img{height:auto}}