/* WordPress-only enhancements, do not restyle the original sections */
.th-video-section{max-width:1680px;margin:50px auto;padding:30px clamp(20px,4vw,65px);color:#f3f3f3;border-top:1px solid #333}.th-video-section h2{font-size:clamp(26px,4.5vw,62px);margin:12px 0 28px}.th-video-item{margin-bottom:36px}.th-video-item h3{font-size:clamp(16px,2vw,24px)}.th-video-embed{aspect-ratio:16/9;width:100%}.th-video-embed iframe{height:100%;width:100%;border:0}.th-project-main img{max-width:100%}.admin-bar .site-header-v16{top:32px}@media(max-width:782px){.admin-bar .site-header-v16{top:46px}}

/* Editable gallery: per-frame span, 3 = one third, 2 = half, 1 = full. */
.x-gallery.th-editable-gallery{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:18px!important}
.x-gallery.th-editable-gallery>figure{grid-column:span 3!important;min-width:0!important;margin:0!important}
.x-gallery.th-editable-gallery>figure.th-grid-cols-1{grid-column:span 6!important}
.x-gallery.th-editable-gallery>figure.th-grid-cols-3{grid-column:span 2!important}
.x-gallery.th-editable-gallery img{width:100%;height:auto;display:block}
@media(max-width:700px){.x-gallery.th-editable-gallery>figure{grid-column:span 6!important}}
