/* Editable text follows the existing Artweb layout and typography. */
.site-main [data-yatbt-field] { overflow-wrap: anywhere; }
.artweb-content-gallery { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 1rem; margin-block: 2rem; }
.artweb-content-gallery img { width: 100%; height: auto; border-radius: 12px; }

[data-yatbt-section][hidden] { display: none !important; }

/* Editable lists use automatic placement, including zero, one and extra cards. */
.home-color-showcase__grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)); }
.artweb-editable-card { position:relative; min-height:340px; background:#1557c0; color:white; }
.artweb-editable-card:nth-child(5n+2) { background:#087ea4; }
.artweb-editable-card:nth-child(5n+3) { background:#e63768; }
.artweb-editable-card:nth-child(5n+4) { background:#5b47c6; }
.artweb-editable-card:nth-child(5n+5) { background:#9b603d; }
.artweb-editable-card > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.artweb-editable-card:has(>img)::after { content:""; position:absolute; inset:0; background:linear-gradient(transparent,rgba(0,0,0,.7)); }
.artweb-editable-card .home-color-showcase__card-title { z-index:1; }
.home-work-hero__card-copy > span { display:block; font-size:12px; }
.home-project-card__title small { display:block; font-size:12px; }

.artweb-card-caption { display:block; padding:14px 0; font-weight:600; }
.artweb-card-caption small { display:block; font-weight:400; }
