/* Sacred Heart Tattoo — project rules over the kit (build-from-plan). */

/* The home's Instagram wall is one embed spot (the Juicer.io feed fills it in WordPress): its tiles are drawn like image
   placeholders but are not image fields, so the edit layer asks for the embed once instead of six photos. */
.ph-tile { position: relative; background: var(--c-mid); display: flex; align-items: center; justify-content: center; width: 100%; overflow: hidden; }
.ph-tile .icon { width: var(--icon-lg); height: var(--icon-lg); color: var(--c-white); }
.mosaic-embed { display: block; background: none; width: var(--container); max-width: 100%; }

/* buildlib wraps Timeline – Horizontal in a padded section; the kit's block has its own page padding and fixed 4-column
   blocks, so three blocks overflow and the last is clipped. Inside a section the timeline takes no extra padding and its
   blocks share the width (build.css does the same for the four-block tracker). Kit request logged. */
.section > .timeline-h { padding-inline: 0; }
.section > .timeline-h .timeline-h__block { flex: 1 1 0; min-width: 0; }

/* ---- Components responsive.css does not reach yet (kit request): tablet ≤1024, phone ≤480, every part 12 columns at phone */
.mosaic__col { flex: 1 1 0; min-width: 0; }                          /* three masonry columns share the width at every size */
.callout__text, .contact-block .contact-row p, .comparison-simple__value { overflow-wrap: anywhere; }   /* not the footer: its columns hold the address whole */   /* an e-mail address wraps instead of running out of its card */
.field--select, .field__input { max-width: 100%; min-width: 0; }
.team-grid { display: flex; flex-direction: column; gap: 40px; }        /* rows of artist cards keep the row's own 40px between them */
.team-card__row > a { flex: 0 0 auto; display: block; }                  /* the photo link holds the photo's height */

@media (max-width: 1024px) {
  /* Timeline – Vertical Scroll: the heading above its card, no rail */
  .timeline-v { padding-inline: var(--page-pad); }
  .timeline-v::before, .timeline-v__connector { display: none; }
  .timeline-v__row { flex-direction: column; gap: 16px; }
  .timeline-v__row .intro { position: static; flex: 0 0 auto; width: 100%; }
  .timeline-v__block, .timeline-v__card { flex: 0 0 auto; width: 100%; }
  /* Banner - Content Tiles: the portrait above the name, tiles two across */
  .banner--quicknav .banner__row { flex-direction: column; height: auto; gap: var(--space-sm); }
  .banner--quicknav .banner__content { height: auto; }
  .banner--quicknav .banner__content, .banner--quicknav .banner__media { flex: 0 0 auto !important; width: 100% !important; max-width: 100%; }
  .banner--quicknav .banner__media { order: -1; height: 400px !important; }
  .banner--quicknav .spec-row { flex-wrap: wrap; }
  .banner--quicknav .spec-row .spec { flex: 1 1 45%; }
  /* Image Callout – Half Width: the image above the callout */
  .callout-row:has(.callout--half) { flex-direction: column; }
  .callout-half__media, .callout--half { flex: 0 0 auto !important; width: 100% !important; max-width: 100%; }
  .callout-half__media { height: 400px; }
}
@media (max-width: 480px) {
  .mosaic { flex-direction: column; }
  .mosaic__col { flex: 0 0 auto; width: 100%; }
  .banner--quicknav .banner__media, .callout-half__media { height: 300px !important; }
  .banner--quicknav .spec-row .spec { flex: 1 1 100%; }
}

/* ---- Rulings of 2026-10-16 (Shawn's build review) */
/* Two sections on the same background keep one section's padding between them (tools/build-pages.py tighten()). */
.section--same-bg { padding-top: 0 !important; }
/* The kit draws these components as whole sections with their own 100px top and bottom; buildlib wraps them in a padded
   section as well, so each sat inside double the space (the gap around Home's Our Vision, an artist's bio). Inside a
   section they take none of their own. Kit request logged. */
.section > .image-block, .section > .intro-split, .section > .two-col-block, .section > .contact-block { padding-block: 0; }
/* A link-more in a flex column hugs its label: stretched, its underline ran the card's full width. */
.team-card__details > .link-more, .post-list__content > .link-more, .list-grid__body > .link-more { align-self: flex-start; }
/* Artist row cards (Blog Callout – 2 Column List): the photo link holds the photo; the excerpt stops at three lines. */
.post-list__item > .post-list__media { flex: 0 0 180px; display: block; }
.post-list__item > .post-list__media .ph-image { width: 180px; height: 180px; }
.post-list__content { padding-block: 0; padding-right: 0; gap: 6px; }
.post-list__content h3, .post-list__content p { margin: 0; }
.post-list__excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.grid-row:has(> .post-list) { align-items: flex-start; }
.grid-row > .intro--narrow + .post-list { flex: 1 1 0; width: auto; min-width: 0; }
/* Fullwidth 2 Col List Grid: rows with room between them. */
.list-grid { gap: var(--space-md); }
.list-grid__body { display: flex; flex-direction: column; gap: 12px; }
.list-grid__body p { margin: 0; }

@media (max-width: 1024px) {
  .grid-row:has(> .post-list) { flex-direction: column; gap: 0; }
  .grid-row > .post-list, .grid-row > .intro--narrow { flex: 0 0 auto !important; width: 100% !important; max-width: 100%; }
  .grid-row > .intro--narrow { margin-bottom: var(--space-sm); }
  .grid-row:has(> .post-list + .post-list) > .post-list { display: contents; }   /* two lists become one, in the studio's order (each row's order) */
  .list-grid__item { flex-direction: column; gap: 12px; }
  .list-grid__head { flex: 0 0 auto; width: 100%; }
}
@media (max-width: 480px) {
  .post-list__item > .post-list__media { flex-basis: 110px; }
  .post-list__item > .post-list__media .ph-image { width: 110px; height: 110px; }
}
