/*
Theme Name: Valeria Ferone
Theme URI: https://valeriaferone.com
Description: One-page portfolio for Valeria Ferone. Child theme of Twenty Twenty-Five, based on the Figma design.
Author: Valeria Ferone
Template: twentytwentyfive
Version: 1.1.7
Requires at least: 6.6
Text Domain: valeriaferone
*/

/* ---------- Image rows: same height, natural widths (like Figma) ---------- */
.vf-row { --vf-h: min(411px, 28.5vw); }
.vf-row.is-style-vf-row-m { --vf-h: min(593px, 41vw); }
.vf-row.is-style-vf-row-l { --vf-h: min(771px, 53.5vw); }

.vf-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  gap: 16px !important;
  align-items: flex-start;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.vf-row > .wp-block-image {
  margin: 0 !important;
  flex: 1 1 0;
  min-width: 0;
  width: auto !important;
}
.vf-row > .wp-block-image img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  contain-intrinsic-size: none !important;
}

/* ---------- Project block ---------- */
.vf-project { margin-block-end: 24px; }
.vf-project > .vf-caption,
.vf-caption { margin-block-start: 0 !important; margin-block-end: 0 !important; font-size: 16px; }
.vf-project { margin-block-end: 80px; }
.vf-project > .vf-caption { margin-block-start: 20px !important; }
.vf-cv + .vf-caption { margin-block-start: 40px !important; }
.vf-caption strong { font-weight: 400; }

/* ---------- About / CV ---------- */
.vf-cv p { margin: 0 0 1.25em; }
.vf-cv strong { font-weight: 400; }

/* ---------- Phones ---------- */
@media (max-width: 700px) {
  .vf-row { gap: 8px !important; flex-wrap: wrap !important; }
  .vf-row > .wp-block-image { flex: 0 0 100% !important; }
  .vf-intro { font-size: 20px !important; }
}

/* ---------- About portrait ---------- */
.vf-about { align-items: flex-start !important; }
.vf-portrait img { width: 476px; max-width: 100%; height: auto; }
.vf-about + .vf-caption { margin-block-start: 40px !important; }
@media (max-width: 781px) { .vf-portrait img { width: 100% !important; } }

/* ---------- Spacing (25 Nov) ---------- */
.vf-intro { margin-block-end: 0 !important; }
.vf-intro + .vf-project { margin-block-start: 80px !important; }
.vf-project { margin-block-end: 62px !important; }
.vf-project + .vf-project { margin-block-start: 0 !important; }
.vf-project:has(+ .vf-about) { margin-block-end: 240px !important; }
.vf-project + .vf-about { margin-block-start: 0 !important; }
@media (max-width: 700px) {
  .vf-project:has(+ .vf-about) { margin-block-end: 144px !important; }
}
