/* Page-scoped layouts for galleries added/edited in 2xHEADS Visual Editor. */
.th-project-main .th-visual-gallery{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:18px!important;max-width:1680px;margin-left:auto;margin-right:auto}
.th-project-main .th-visual-gallery>figure{grid-column:span 3!important;min-width:0!important;margin:0!important;width:auto!important;max-width:100%!important}
.th-project-main .th-visual-gallery>figure[data-th-cols="1"]{grid-column:span 6!important}
.th-project-main .th-visual-gallery>figure[data-th-cols="3"]{grid-column:span 2!important}
.th-project-main .th-visual-gallery img{width:100%!important;height:auto!important;display:block}
.th-project-main .thp-added-block{max-width:1680px;margin:36px auto;padding-left:clamp(20px,4vw,65px);padding-right:clamp(20px,4vw,65px)}
.th-project-main .thp-added-block.th-visual-gallery{padding:0 clamp(20px,4vw,65px)}
.th-project-main .thp-added-image img{max-width:100%;height:auto;display:block}
.th-project-main .thp-added-video video,.th-project-main .thp-added-video iframe{width:100%;aspect-ratio:16/9;display:block;border:0}
@media(max-width:700px){.th-project-main .th-visual-gallery>figure{grid-column:span 6!important}}

/* Video inserted in an existing video-section placeholder. Preserve the original section spacing. */
.th-project-main .thp-inline-video{width:100%;margin:22px 0 0;background:#050505}
.th-project-main .thp-inline-video video,.th-project-main .thp-inline-video iframe{display:block;width:100%;max-width:100%;border:0;background:#050505}
.th-project-main .thp-inline-video video{height:auto}
.th-project-main .thp-inline-video iframe{aspect-ratio:16/9}
