/**
 * Single Sushi — Editorial layout
 * Scope: body.single-sabi_sushi
 * Pattern: image 16:9 + paragraph width = image width (1080px) + justify desktop
 */

/* ============================================================
 * Container override (1080px instead of default prose 580px)
 * ============================================================ */
body.single-sabi_sushi .sabi-page-content-inner {
  max-width: var(--container-default);
}

/* ============================================================
 * Image blocks — fixed 16:9, full container width, zero crop math
 * ============================================================ */
body.single-sabi_sushi .wp-block-image {
  margin: var(--space-section-tight) 0;
}

body.single-sabi_sushi .wp-block-image:first-child {
  margin-top: 0;
}

body.single-sabi_sushi .wp-block-image figure,
body.single-sabi_sushi figure.wp-block-image {
  margin: 0;
  width: 100%;
  aspect-ratio: var(--ratio-cinema);
  overflow: hidden;
  position: relative;
}

body.single-sabi_sushi .wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Caption — italic stone, centered below image */
body.single-sabi_sushi .wp-block-image figcaption,
body.single-sabi_sushi .wp-element-caption {
  font-family: var(--serif);
  font-size: var(--fs-caption);
  font-style: italic;
  color: var(--stone);
  text-align: center;
  margin-top: var(--space-3);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-wide);
}

/* ============================================================
 * Paragraphs — justify on desktop, left on mobile
 * Width follows container (1080px)
 * ============================================================ */
body.single-sabi_sushi .sabi-page-content-inner p {
  font-family: var(--serif);
  font-size: var(--fs-lead);
  font-weight: var(--fw-light);
  color: var(--bone-warm);
  line-height: var(--lh-relaxed);
  letter-spacing: var(--ls-tight);
  margin: 0 0 var(--space-4);
  text-align: left;
}

@media (min-width: 768px) {
  body.single-sabi_sushi .sabi-page-content-inner p {
    text-align: justify;
    hyphens: auto;
  }
}

body.single-sabi_sushi .sabi-page-content-inner p:last-child {
  margin-bottom: 0;
}

/* ============================================================
 * Block spacing rhythm
 * ============================================================ */
body.single-sabi_sushi .wp-block-image + .wp-block-paragraph,
body.single-sabi_sushi .wp-block-image + p {
  margin-top: var(--space-section-tight);
}
