/* Media + texto: photos and videos on the left, caption, text and submenu on the right. */
.pd-media{margin-left:7.5vw;width:calc(100% - 7.5vw - 9vw - var(--sw));padding:var(--top) 0 8vw}
.pd-media>*{margin:0 0 1.1vw}
.pd-media figure,.pd-media .wp-block-image,.pd-media .wp-block-video,.pd-media .wp-block-embed{margin:0 0 1.1vw}
.pd-media video{display:block;width:100%;height:auto}
.pd-media iframe{display:block;width:100%;height:auto;aspect-ratio:16/9;border:0}
/* Music players keep their own proportions: Spotify and SoundCloud */
.pd-media iframe[src*="open.spotify.com"]{aspect-ratio:auto;height:352px;border-radius:12px}
.pd-media iframe[src*="soundcloud.com"]{aspect-ratio:auto;height:450px}
.pd-media .wp-block-gallery{gap:1.1vw;margin:0 0 1.1vw;padding:0}
.pd-media figcaption{font-size:.9em;color:var(--pd-muted);margin-top:.4em;text-align:right}

/* Every photo fits on the screen: it fills the column but is never taller than the visible area under the
   top margin, so each one can be seen whole while scrolling. A photo that is too tall is shown smaller,
   justified to the right, next to the text column. */
.pd-media img{display:block;width:100%;height:auto;max-height:calc(100vh - var(--ab) - var(--top) - 2vw);object-fit:contain;object-position:right top}
.pd-media .wp-block-gallery figure.wp-block-image{display:block;flex:none;width:100%!important;margin:0 0 1.1vw}
.pd-media .wp-block-gallery figure.wp-block-image img{flex:none;width:100%;height:auto;object-fit:contain;object-position:right top}

.pd-cap{margin-top:1.1vw;font-weight:700;line-height:1.42;text-transform:uppercase}
.pd-sidebody{position:absolute;left:0;right:0;top:calc(var(--top) - 1.75vw - 3px);max-height:calc(100vh - var(--top) - 4vw);overflow-y:auto}
.pd-sidetext{line-height:1.6}
.pd-sidetext p{margin:0 0 1em}
.pd-sidetext a{text-decoration:underline}
.pd-sub{list-style:none;margin-top:2em;text-transform:uppercase}
.pd-sub a{display:block}
.pd-sub .on a{font-weight:700}

/* Phone: the photos come first, then the caption and the text below them. Each photo fits the visible
   screen under the fixed menu strip. */
@media(max-width:800px){
.pd-media{margin:0;width:100%;padding:4vw 4vw 2vw}
.pd-media img{max-height:calc(100vh - var(--pd-min,70px) - 10vw)}
.pd-sidebody{position:static;max-height:none;margin-top:20px;padding-bottom:12vw}
}
@supports(height:100svh){
@media(max-width:800px){.pd-media img{max-height:calc(100svh - var(--pd-min,70px) - 10vw)}}
}
