/* Exhibitions page, Video list page, Photo list page and Shooting page (same frame). */

/* Each row is a link when the item has a page assigned. */
.ex-row{display:block;cursor:default}
.ex-row .ex-in{display:grid;grid-template-columns:1fr auto;column-gap:1.5vw;text-transform:uppercase;outline:0}
.ex-row a.ex-in{cursor:pointer}
.ex-row[hidden]{display:none!important}

/* Videos, embeds and linked images in the frame fill it like photos do. */
.ex-stage video{display:block;background:#000;object-fit:var(--ex-fit,cover);object-position:var(--ex-pos,center)}
.ex-stage [data-embed]{background:#000 center/cover no-repeat}
.ex-stage iframe{display:block;width:100%;height:100%;border:0}
.ex-stage .pd-oembed{background:#000}
.ex-stage .pd-oembed iframe{width:100%;height:100%}

/* Video list and Photo list pages: sort row, category filters and the list in one panel under the caption. */
.vl-panel{position:absolute;left:0;right:0;top:calc(var(--top) - 1.75vw - 3px)}
.vl-panel .ex-sort{position:static}
.vl-panel .ex-list{position:static;margin-top:1.3em}
.vl-panel .ex-list:first-child{margin-top:0}
.vl-filter{display:flex;flex-wrap:wrap;gap:0 1.3em;margin-top:1.3em;text-transform:uppercase}
.vl-filter button{background:none;border:0;padding:0;font:inherit;color:inherit;text-transform:uppercase;cursor:pointer}
.vl-filter button:hover,.vl-filter button.on{font-weight:700}

/* Desktop: a fixed page with no scroll. The frame is the full width of the photo column with a 16:9
   proportion (like the reference), and the photo or video fills it. If the window is too short, the
   frame shrinks in height so it never goes below the screen. */
@media(min-width:801px){
html,body{height:100%;overflow:hidden}
.ex-stage{position:fixed;top:calc(var(--ab) + var(--top));left:7.5vw;margin:0;padding:0;width:calc(100vw - 7.5vw - 9vw - var(--sw));height:min(calc((100vw - 7.5vw - 9vw - var(--sw)) * 9 / 16),calc(100vh - var(--ab) - var(--top) - 2vw));grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
.ex-stage>*{width:100%;height:100%}
.ex-stage img{object-fit:var(--ex-fit,cover);object-position:var(--ex-pos,center)}
.ex-list{max-height:calc(100vh - var(--ab) - var(--top) - 3.8em - 2vw + 3px);overflow-y:auto;scrollbar-width:thin}
/* In the panel only the list scrolls; sort row and filters stay in place. */
.vl-panel{display:flex;flex-direction:column;max-height:calc(100vh - var(--ab) - var(--top) - 2vw + 3px)}
.vl-panel .ex-list{max-height:none;min-height:0;flex:1 1 auto;overflow-y:auto}
}

@media(max-width:800px){
.ex-stage iframe{height:auto;aspect-ratio:16/9}
.ex-stage [data-embed]{aspect-ratio:16/9}
.ex-stage [data-embed] iframe{height:100%;aspect-ratio:auto}
.vl-panel{position:static;margin-top:20px}
.vl-panel .ex-list{margin-bottom:12vw}
}
