/* Shared content measure. Change these two values for future site-wide tuning. */
:root{--ht-content-max:1320px;--ht-content-gutter:clamp(16px,2.5vw,48px)}
body :is(.ht-work-single-content,.ht-video-single-content,.ht-text-single-content,.ht-interview-single-content,.ht-press-single-content,.ht-exhibition-single-content),
body :is(.ht-static-page>.wp-block-post-content,.ht-static-page>.wp-block-post-content>.ht-static-content)>:not(.ht-static-content):not(.ht-title-banner):not(.ht-filtered-list):not(.ht-works-list):not(.ht-cds):not(.ht-recordings):not(.ht-videos):not(.ht-texts):not(.ht-interviews):not(:has(.ht-filtered-list,.ht-works-list,.ht-cds,.ht-recordings,.ht-videos,.ht-texts,.ht-interviews)){
 box-sizing:border-box!important;width:calc(100% - 2 * var(--ht-content-gutter))!important;max-width:var(--ht-content-max)!important;margin-left:auto!important;margin-right:auto!important;padding-left:0!important;padding-right:0!important;
 --wp--style--global--content-size:var(--ht-content-max);--wp--style--global--wide-size:var(--ht-content-max)
}
/* Remove a second inner constraint without changing image-specific sizing. */
body :is(.ht-work-single-content,.ht-video-single-content,.ht-text-single-content,.ht-interview-single-content,.ht-press-single-content,.ht-exhibition-single-content).is-layout-constrained>:not(.alignleft):not(.alignright):not(.alignfull){max-width:100%!important}
body :is(.ht-static-page>.wp-block-post-content,.ht-static-page>.wp-block-post-content>.ht-static-content)>.is-layout-constrained:not(.ht-title-banner):not(:has(.ht-filtered-list,.ht-works-list,.ht-cds,.ht-recordings,.ht-videos,.ht-texts,.ht-interviews))>:not(.alignleft):not(.alignright):not(.alignfull){max-width:100%!important}
/* Captions are separate dynamic fields in some templates and figcaptions in others. */
body :is(.ht-work-single-content,.ht-video-single-content,.ht-text-single-content,.ht-interview-single-content,.ht-press-single-content,.ht-exhibition-single-content,.ht-dance-single-content,.ht-festival-single-content,.ht-static-page) :is(figcaption,[class*="ht-"][class*="-field-"][class*="caption"],.ht-work-detail[class*="caption"]){
 box-sizing:border-box;background:#efefef;color:#383838;font-size:13px;line-height:1.5;text-align:center!important;padding:6px 12px;margin-top:0!important;margin-bottom:16px;margin-inline:auto;max-width:100%;
}
body :is(.ht-work-single-content,.ht-video-single-content,.ht-text-single-content,.ht-interview-single-content,.ht-press-single-content,.ht-exhibition-single-content,.ht-dance-single-content,.ht-festival-single-content,.ht-static-page) :is(figure,[class*="-field-"],.ht-work-detail):has(+:is([class*="-field-"][class*="caption"],.ht-work-detail[class*="caption"])){margin-bottom:0!important}
body :is(.ht-work-single-content,.ht-video-single-content,.ht-text-single-content,.ht-interview-single-content,.ht-press-single-content,.ht-exhibition-single-content,.ht-dance-single-content,.ht-festival-single-content,.ht-static-page) figcaption{margin-top:0!important}
body :is(.ht-work-single-content,.ht-video-single-content,.ht-text-single-content,.ht-interview-single-content,.ht-press-single-content,.ht-exhibition-single-content,.ht-dance-single-content,.ht-festival-single-content,.ht-static-page) figure:has(>figcaption)>:is(img,video,a){display:block}

/* Static-page wrappers include the wave: only their content sections get a measure. */
body .ht-static-page > .wp-block-post-content > .ht-static-content{
 box-sizing:border-box!important;width:100%!important;max-width:none!important;margin-inline:0!important;padding-inline:0!important
}
body .ht-static-page > .wp-block-post-content > .ht-static-content > .ht-title-banner{
 box-sizing:border-box!important;width:100%!important;max-width:none!important;margin-inline:0!important
}

/* Film single-post introductory details; the editorial article keeps its own weight. */
body .ht-film-single-content :is(.ht-film-field-films_year,.ht-film-field-films_short_description,.ht-film-field-films_description){font-weight:700}

/* Native dimensions are supplied by HT Media Playback after metadata loads. */
body video.ht-video-native-size{
 box-sizing:border-box;width:var(--ht-video-native-width)!important;max-width:100%!important;height:auto!important;display:block;margin-inline:auto!important;object-fit:contain
}
/* Explicit fullscreen remains free to fill the screen. */
body video.ht-video-native-size:fullscreen{
 width:100%!important;max-width:none!important;height:100%!important;max-height:none!important;object-fit:contain
}
body :fullscreen video.ht-video-native-size{
 width:100%!important;max-width:none!important;height:100%!important;max-height:none!important;object-fit:contain
}
body video.ht-video-native-size:-webkit-full-screen{
 width:100%!important;max-width:none!important;height:100%!important;max-height:none!important;object-fit:contain
}

/* Introductory Dance details match the Film detail presentation. */
body .ht-dance-single-content :is(.ht-dance-field-dance_year,.ht-dance-field-dance_short_description,.ht-dance-field-dance_description){font-weight:700}

body .ht-festival-single-content .ht-festival-field-festivals_singlepost_image{margin:0 0 24px}
body .ht-festival-single-content .ht-festival-field-festivals_singlepost_image img{display:block;width:auto;max-width:100%;height:auto;margin-inline:auto}

/* Festival introduction before the first media element. */
body .ht-festival-single-content .ht-festival-field-festivals_short_description{font-weight:700}

/* Gallery credits remain in normal flow directly below their image. */
body .wp-block-gallery.ht-justified-gallery > figure.wp-block-image > figcaption.wp-element-caption{position:static!important;inset:auto!important;display:block!important;box-sizing:border-box;width:100%!important;max-height:none!important;margin:0!important;padding:6px 12px!important;background:#efefef!important;color:#383838!important;text-align:center!important;font-size:13px!important;overflow:visible!important;flex:auto!important}
body .ht-festival-single-content .ht-festival-field-festivals_singlepost_image{width:fit-content;max-width:100%;margin-inline:auto}
body .ht-festival-single-content .ht-festival-field-festivals_singlepost_image img{max-height:max(600px,85vh);width:auto;max-width:100%;height:auto}

/* Japan 2014: preserve explicit photo sizes and cap portraits like Exhibitions. */
body .ht-japan-content .wp-block-image.ht-japan-portrait img{width:auto!important;height:auto!important;max-width:min(100%,var(--ht-japan-photo-width,600px))!important;max-height:max(600px,85vh);margin-inline:auto;display:block}
body .ht-japan-content .wp-block-image.ht-japan-portrait{width:fit-content;max-width:100%;margin-inline:auto}

body .ht-japan-content .ht-japan-width-371{--ht-japan-photo-width:371px}
body .ht-japan-content .ht-japan-width-382{--ht-japan-photo-width:382px}
body .ht-japan-content .ht-japan-width-397{--ht-japan-photo-width:397px}
body .ht-japan-content .ht-japan-width-419{--ht-japan-photo-width:419px}
body .ht-japan-content .ht-japan-width-436{--ht-japan-photo-width:436px}
body .ht-japan-content .ht-japan-width-437{--ht-japan-photo-width:437px}
body .ht-japan-content .ht-japan-width-450{--ht-japan-photo-width:450px}
body .ht-japan-content .ht-japan-width-480{--ht-japan-photo-width:480px}
body .ht-japan-content .ht-japan-width-600{--ht-japan-photo-width:600px}

body .ht-kinder-filme-single-content :is(.ht-kinder-filme-field-kinder_filme_year,.ht-kinder-filme-field-kinder_filme_short_description){font-weight:700;text-align:center}
