/* pages/blocks.css — neutral styles for the page-builder block variants that have no
   page stylesheet of their own (PLAN §4.8). Mobile-first; tokens from tokens.css. */

/* ---------- Text ---------- */
.text-narrow { max-width: 560px; }
.text-lg { font-size: 17px; }
.text-cols { column-gap: 40px; }
@media (min-width: 700px) {
  .text-cols-2, .text-cols-3, .text-cols-4 { columns: 2; }
}
@media (min-width: 1000px) {
  .text-cols-3 { columns: 3; }
  .text-cols-4 { columns: 4; }
}
.text-cols > * { break-inside: avoid; }

/* ---------- Image ---------- */
.img-fig { margin: 0; }
.img-fig img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.img-fig figcaption { margin-top: 10px; font-size: 14px; color: var(--text-muted); text-align: center; }
.img-small { max-width: 640px; }
.img-full .img-fig img { border-radius: 0; }
.img-row { display: grid; gap: 16px; }
@media (min-width: 700px) {
  .img-row-2 { grid-template-columns: repeat(2, 1fr); }
  .img-row-3 { grid-template-columns: repeat(3, 1fr); }
  .img-row-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Photo grid (grid / column variants; masonry is components.css) ---------- */
.pg-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .pg-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) {
  .pg-grid.pg-s { grid-template-columns: repeat(4, 1fr); }
  .pg-grid.pg-l { grid-template-columns: repeat(2, 1fr); }
}
.pg-grid .masonry-item { margin: 0; aspect-ratio: 1; }
.pg-grid .masonry-item img, .pg-grid .masonry-item picture { width: 100%; height: 100%; object-fit: cover; }
.pg-column { display: grid; gap: 12px; max-width: 900px; margin-inline: auto; }
.pg-column .masonry-item { margin: 0; }
.sp-s { gap: 4px; column-gap: 4px; }
.sp-s > * { margin-bottom: 4px; }
.sp-l { gap: 24px; column-gap: 24px; }
.sp-l > * { margin-bottom: 24px; }
.pg-grid.sp-s, .pg-column.sp-s { gap: 4px; }
.pg-grid.sp-l, .pg-column.sp-l { gap: 24px; }
/* Portfolio category pages: masonry follows the category's size choice; tiles without the lightbox don't zoom. */
@media (min-width: 1000px) { .masonry.pg-s { columns: 4; } .masonry.pg-l { columns: 2; } }
.pf-whole .masonry-item { background: transparent; }
.pf-whole .masonry-item img, .pf-whole .masonry-item picture { object-fit: contain; }
div.masonry-item { cursor: default; }
div.masonry-item:hover img { transform: none; }
/* Rows: every photo in a row shares one height, shown whole; --ar (width/height) is set per tile.
   The ::after filler keeps the last row from stretching. */
.pf-rows { display: flex; flex-wrap: wrap; gap: 12px; --rh: 220px; }
.pf-rows.pg-s { --rh: 150px; } .pf-rows.pg-l { --rh: 320px; }
@media (min-width: 1000px) { .pf-rows { --rh: 300px; } .pf-rows.pg-s { --rh: 200px; } .pf-rows.pg-l { --rh: 480px; } }
.pf-rows::after { content: ''; flex: 10000 1 0; }
.pf-rows .masonry-item { flex: var(--ar, 1) 1 calc(var(--ar, 1) * var(--rh)); width: auto; margin: 0; }
.pf-rows.sp-s { gap: 4px; } .pf-rows.sp-l { gap: 24px; }

/* ---------- Slider gallery ---------- */
.sg { position: relative; }
.sg-stage { position: relative; aspect-ratio: 3 / 2; max-height: 86svh; overflow: hidden; background: var(--cream-2); }
.sg-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 1.2s; }
.sg-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.sg-slide picture, .sg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sg-dots { position: absolute; z-index: 2; left: 0; right: 0; bottom: 16px; color: var(--on-photo); filter: drop-shadow(0 0 2px rgba(59,56,53,.8)); } /* over the photo or the ground beside it */
.sg-strip { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 12px var(--gutter); }
.sg-thumb { padding: 0; border: 2px solid transparent; background: none; cursor: pointer; width: 64px; height: 64px; overflow: hidden; border-radius: var(--radius); }
.sg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sg-thumb.is-active { border-color: var(--gold); }

/* ---------- Image with text (generic split + overlay; intro is home.css) ---------- */
.it-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) {
  .it-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .it-grid:not(.it-left) .it-media { order: 2; }
}
.it-grid.it-no-image { max-width: 760px; text-align: center; }
.it-media img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.it-copy h2 { margin-top: 0; }
.it-copy .btn-ghost { margin-top: 12px; }
.it-overlay { position: relative; display: grid; min-height: 420px; overflow: hidden; background: var(--cream-2); color: var(--on-photo); }
.it-overlay picture, .it-overlay-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.it-overlay::after { content: ""; position: absolute; inset: 0; background: rgba(59, 56, 53, .5); }
.it-overlay-copy { position: relative; z-index: 1; align-self: center; padding-block: 72px; }
.it-overlay-copy h2, .it-overlay-copy .rich, .it-overlay-copy .rich a:not(.btn) { color: var(--on-photo); text-shadow: var(--photo-halo); }
.it-overlay-copy .script { color: var(--on-photo-gold); text-shadow: var(--photo-halo); }

/* ---------- Text links / list (stack, columns, split) ---------- */
.tl-list { list-style: none; margin: 0; padding: 0; }
.tl-list li { padding: 6px 0; }
.tl-list a { text-decoration: none; }
.tl-list a:hover { color: var(--text-link); }
.tl-body { margin: 4px 0 0; font-size: 14px; color: var(--text-muted); }
.tl-stack { max-width: 560px; margin-inline: auto; }
.tl-flow-h { font-family: var(--font-sans); font-size: 13px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--charcoal); margin: 0 0 30px; }
.tl-flow { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 44px; row-gap: 4px; max-width: 980px; margin-inline: auto; }
.tl-flow li { padding: 8px 0; }
.tl-cols { column-gap: 48px; text-align: left; }
@media (min-width: 700px) { .tl-cols { columns: 2; } }
@media (min-width: 1000px) { .tl-cols { columns: 3; } }
.tl-cols li { break-inside: avoid; }
.tl-split { display: grid; gap: 32px; }
@media (min-width: 900px) { .tl-split { grid-template-columns: 1fr 2fr; } .tl-split .tl-cols { columns: 2; } }

/* ---------- Testimonials (stack variant) ---------- */
.t-stack .t-quote { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.t-stack blockquote { margin: 0 0 14px; font-family: var(--font-serif); font-size: 20px; }
.t-stack figcaption { display: flex; gap: 12px; align-items: center; justify-content: center; }
.t-stack .t-photo img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }

/* ---------- FAQ columns ---------- */
.faq-cols { display: grid; gap: 28px; }
@media (min-width: 700px) { .faq-cols { grid-template-columns: repeat(2, 1fr); } }
.faq-col h3 { margin: 0 0 8px; }

/* ---------- Quote ---------- */
.quote-block .t-mark { display: block; font-family: var(--font-serif); font-size: 64px; line-height: .6; color: var(--text-gold-lg); }
.quote-block .bq { margin: 12px auto 0; max-width: 680px; font-family: var(--font-serif); font-size: clamp(22px, 3vw, 28px); line-height: 1.4; }
.quote-block .bq-attr { margin-top: 14px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); }

/* ---------- Video ---------- */
.video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--cream-2); border-radius: var(--radius); overflow: hidden; }
.video-full .video-frame { border-radius: 0; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-small { max-width: 640px; }
.video-caption { margin-top: 10px; font-size: 14px; }

/* ---------- Contact form block ---------- */
.cf-wrap { max-width: 760px; }
.cf-intro { margin-bottom: 28px; }

/* ---------- Spacer / divider / buttons / social ---------- */
.spacer-s { height: 24px; }
.spacer-m { height: 56px; }
.spacer-l { height: 112px; }
.divider { border: 0; border-top: 1px solid var(--gold-pale); margin: 0 auto; }
.divider-narrow { max-width: 120px; }
.divider-regular { max-width: 420px; }
.divider-wide { max-width: none; }
.social-block .social-row { justify-content: center; }

/* ---------- Publications (magazine covers; whole cover shown, never cropped) ---------- */
.pub-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pub-l { grid-template-columns: 1fr; }
@media (min-width: 480px) { .pub-l { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 700px) {
  .pub-s { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .pub-m { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .pub-l { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 40px 28px; }
}
.pub-cover { position: relative; display: block; aspect-ratio: 8.25 / 10.75; background: var(--cream-2, #f3f3f1); border-radius: var(--radius-sm); overflow: hidden; }
.pub-cover picture, .pub-cover img { display: block; width: 100%; height: 100%; }
.pub-cover img { object-fit: contain; }
a.pub-cover:hover img, a.pub-cover:focus-visible img { opacity: .9; }
.pub-await { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); padding: 9px 6px; text-align: center; background: rgba(255, 255, 255, .85); color: #2D2D2D; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.pub-mine .pub-cover { outline: 3px solid var(--gold); outline-offset: 3px; }
.pub-badge { position: absolute; top: 8px; left: 8px; background: var(--gold); color: var(--on-gold); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 4px 8px; border-radius: var(--radius-sm); }
.pub-meta { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; }
.pub-meta .eyebrow { font-size: 11px; }
.pub-issue { font-size: 13px; color: var(--text-muted); }
.pub-title { font-size: 17px; margin: 2px 0 0; font-style: italic; font-weight: 400; color: var(--text-heading); }
.pub-model { font-size: 14px; }
.pub-date { font-size: 13px; color: var(--text-muted); }
.pub-top { margin-bottom: 56px; padding-bottom: 48px; border-bottom: 1px solid var(--gold-pale); }

/* Feature links, "Caption below the photo": photo, then title, spaced-caps subtitle and an arrow on the page background. */
.fl-below-grid { display: grid; gap: 40px 30px; }
@media (min-width: 600px) { .fl-below-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .fl-below-grid { grid-template-columns: repeat(3, 1fr); } }
.fl-below { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; color: inherit; text-decoration: none; }
.fl-below-photo { display: block; width: 100%; aspect-ratio: 10 / 13; overflow: hidden; background: var(--cream-2); margin-bottom: 18px; }
.fl-below-photo picture, .fl-below-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.fl-below:hover .fl-below-photo img { transform: scale(1.03); }
.fl-below h3 { margin: 0; font-size: clamp(26px, 2.6vw, 34px); font-weight: 400; }
.fl-below-sub { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--text-muted); }
.fl-below-arrow { margin-top: 14px; display: inline-flex; transition: transform .3s var(--ease); }
.fl-below:hover .fl-below-arrow { transform: translateX(4px); }
.fl-below:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
