/* Fill every rounded gallery frame without white letterboxing. */
.gallery-grid figure{display:flex;flex-direction:column;align-items:stretch}
.gallery-grid .gallery-open,
.gallery-grid picture{display:block;width:100%;height:225px;overflow:hidden;border-radius:18px}
.gallery-grid .gallery-image{display:block;width:100%!important;height:225px!important;object-fit:cover!important;object-position:center center;background:none!important;border-radius:18px}
.gallery-grid figcaption{display:block;width:100%;margin:12px auto 0!important;padding:0 4px;text-align:center!important;text-wrap:balance}
@media(max-width:650px){
  .gallery-grid .gallery-open,
  .gallery-grid picture,
  .gallery-grid .gallery-image{height:180px!important}
}
/* Preserve the full composition for photos that should not be tightly cropped. */
.gallery-image-full{object-fit:contain;background:#f3e4dc}

