.entry-content .av-content-gallery {
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px;
    margin: 24px 0; clear: both;
}
.entry-content .av-gallery-cell {
    min-width: 0; position: relative; aspect-ratio: 4/5;
    background: #f4eff2; border-radius: 4px;
}
/* The final image fills the row, but keeps a portrait frame. */
.entry-content .av-gallery-cell:last-child:nth-child(odd) {
    grid-column: 1/-1; aspect-ratio: 4/5;
}
.entry-content .av-gallery-cell > p,
.entry-content .av-gallery-cell > figure,
.entry-content .av-gallery-cell a,
.entry-content .av-gallery-cell picture,
.entry-content .av-gallery-cell .av-content-image {
    display: block; position: relative; width: 100%!important; height: 100%; max-height: none!important;
    margin: 0!important; padding: 0; float: none; line-height: 0;
}
.entry-content .av-gallery-cell img {
    display: block; width: 100%; height: 100%; max-width: 100%; margin: 0!important;
    float: none; object-fit: cover; border-radius: 4px;
}
.av-gallery-zoom-enabled .entry-content .av-gallery-cell img { cursor: zoom-in; }
/* B2 Zooming must measure and display the uncropped original. */
.entry-content .av-gallery-cell img.av-gallery-zoom-natural {
    height: auto!important; object-fit: contain; border-radius: 0;
}
@media(max-width:768px) {
    .entry-content .av-content-gallery { gap: 6px; margin: 18px 0; }
}
@media(max-width:359px) {
    .entry-content .av-content-gallery { grid-template-columns: 1fr; }
    .entry-content .av-gallery-cell:last-child:nth-child(odd) { grid-column: auto; aspect-ratio: 4/5; }
}
