/* Diary entries: many photos, galleries and videos stacked inside one dated entry. */
.pd-entry>*{margin:0 0 1.1vw}
.pd-entry>*:last-child{margin-bottom:0}
.pd-entry figure,.pd-entry .wp-block-image,.pd-entry .wp-block-video,.pd-entry .wp-block-embed{margin:0 0 1.1vw}
.pd-entry>figure:last-child{margin-bottom:0}
.pd-entry iframe{display:block;width:100%;aspect-ratio:16/9;height:auto;border:0}
.pd-entry p{line-height:1.5}
.pd-entry figcaption{font-size:.9em;color:var(--pd-muted);margin-top:.4em;text-align:center}

/* Every photo fits the screen: it fills the column but is never taller than the visible area under the top
   margin of the feed, so each one can be seen whole while scrolling. A photo that is too tall is shown
   smaller, centered horizontally in the photo column. */
.pd-entry img,.pd-entry video{display:block;width:100%;height:auto;max-height:calc(100vh - var(--ab) - 10.5vw - 2vw);object-fit:contain;object-position:center top}

/* Gallery block: one photo per row, full width, uncropped, each fitted to the screen */
.pd-entry .wp-block-gallery{display:block!important;margin:0 0 1.1vw!important;padding:0}
.pd-entry .wp-block-gallery .wp-block-image{width:100%!important;max-width:100%!important;flex:none!important;display:block!important;margin:0 0 1.1vw!important}
.pd-entry .wp-block-gallery .wp-block-image:last-child{margin-bottom:0!important}
.pd-entry .wp-block-gallery .wp-block-image img{width:100%!important;height:auto!important;object-fit:contain!important;object-position:center top!important}

@media(max-width:800px){
.pd-entry>*,.pd-entry figure,.pd-entry .wp-block-image,.pd-entry .wp-block-video,.pd-entry .wp-block-embed{margin-bottom:3vw}
.pd-entry .wp-block-gallery .wp-block-image{margin-bottom:3vw!important}
.pd-entry img,.pd-entry video{max-height:calc(100vh - var(--pd-min,70px) - 8vw)}
}
@supports(height:100svh){
@media(max-width:800px){.pd-entry img,.pd-entry video{max-height:calc(100svh - var(--pd-min,70px) - 8vw)}}
}
