.gallery{--gallery-columns:3;--gallery-rows:2;--gallery-gap:.5rem;display:grid;grid-template-columns:repeat(var(--gallery-columns),1fr);gap:var(--gallery-gap)}@media (min-width:576px){.gallery{--gallery-gap:1rem}}.gallery img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.gallery-preview{grid-column:span var(--gallery-columns)}.gallery-preview img{-o-object-position:top center;object-position:top center}.gallery--rows-1{--gallery-rows:1}.gallery--rows-2{--gallery-rows:2}.gallery--rows-3{--gallery-rows:3}.gallery--rows-4{--gallery-rows:4}.gallery--rows-5{--gallery-rows:5}.gallery--perRow-2{--gallery-columns:2}.gallery--perRow-3{--gallery-columns:3}.gallery--perRow-4{--gallery-columns:4}.gallery--compact{--gallery-gap:.5rem}.gallery--compact a,.gallery--compact img{border-radius:0}.gallery--compact.gallery .card{--bs-card-border-radius:0}.gallery--compact>:first-child{border-top-left-radius:1rem}.gallery--compact.gallery--perRow-2>:nth-last-child(2){border-bottom-left-radius:1rem}.gallery--compact.gallery--perRow-2>:last-child:is(:nth-child(n+2)){border-bottom-right-radius:1rem}.gallery--compact.gallery--perRow-2.gallery--grid>:nth-child(2){border-top-right-radius:1rem}.gallery--compact.gallery--perRow-3>:nth-last-child(3){border-bottom-left-radius:1rem}.gallery--compact.gallery--perRow-3>:last-child:is(:nth-child(n+3)){border-bottom-right-radius:1rem}.gallery--compact.gallery--perRow-3.gallery--grid>:nth-child(3){border-top-right-radius:1rem}.gallery--compact.gallery--perRow-4>:nth-last-child(4){border-bottom-left-radius:1rem}.gallery--compact.gallery--perRow-4>:last-child:is(:nth-child(n+4)){border-bottom-right-radius:1rem}.gallery--compact.gallery--perRow-4.gallery--grid>:nth-child(4){border-top-right-radius:1rem}.gallery--compact.gallery--preview>:first-child{border-top-right-radius:1rem}