/* ==========================================================================
   Fotoeffe — page sections (mobile-first)
   The blocks the pages brought over from fotoeffe.it are built with (services,
   wedding, WallArt): plain editor blocks with these classes, laid out as calm sections.
   1. Page rhythm   2. Media + text   3. Cards   4. Short items   5. Columns & images
   6. Contact & booking   7. Photo hero & story facts   8. Photo galleries
   9. Places, videos & reviews   10. Articles
   ========================================================================== */

/* 1. Page rhythm: headings, kickers, intros, buttons ---------------------- */
.fe-sections .entry-content > .wp-block-heading { text-align: center; margin-top: clamp(40px, 6vw, 72px); margin-bottom: 18px; }
.fe-sections .entry-content > .wp-block-heading:first-child { margin-top: 0; }
.fe-sections .entry-content > p { text-align: left; }
.fe-sections .entry-content > .fe-intro { text-align: center; font-size: 1.08rem; color: var(--text); }
.fe-sections .entry-content > .fe-note { text-align: center; margin-top: -6px; }
.fe-sections .entry-content > .wp-block-buttons { justify-content: center; }
.fe-lead { font-size: 1.15rem; color: var(--text); }
.fe-note { color: var(--muted); }
.fe-list-plain { padding-left: 1.1em; }
.fe-kicker { margin: clamp(36px, 5vw, 64px) auto 4px !important; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.fe-sections .entry-content > .fe-kicker { text-align: center; }
.fe-split2 .fe-kicker, .fe-cols .fe-kicker { margin-top: 0 !important; text-align: left; }
.entry-content .fe-kicker + .wp-block-heading { margin-top: 0 !important; }
.entry-content .wp-block-heading a { color: inherit; text-decoration: none; }
.entry-content .wp-block-heading a:hover { color: var(--red); }
.entry-content .fe-center, .entry-content > .wp-block-buttons.fe-center { justify-content: center; margin-top: 22px; }
.entry-content > .alignwide + .wp-block-buttons { margin-top: 22px; }
.entry-content .wp-block-buttons + p { margin-top: 16px; }
.entry-content .is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong); }
.entry-content .is-style-outline .wp-block-button__link:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* 2. Media + text --------------------------------------------------------- */
.entry-content .fe-split2 { align-items: center; gap: clamp(20px, 4vw, 56px); margin-block: clamp(28px, 5vw, 56px); }
.fe-split2 .fe-split2-media img { display: block; width: auto; max-width: 100%; max-height: 380px; margin-inline: auto; object-fit: contain; border-radius: var(--radius-lg); }
.fe-split2 .fe-split2-body > :first-child { margin-top: 0 !important; }
.fe-split2 .fe-split2-body h2 { text-align: left; }
.fe-split2 .fe-feature-list { margin-block: 14px 18px; }
@media (min-width: 782px) { .fe-split2.is-reversed .fe-split2-media { order: 2; } }

/* 3. Cards ---------------------------------------------------------------- */
.entry-content > .fe-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 18px; margin-block: 8px 28px; }
.fe-cards .fe-card { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0 0 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.fe-cards .fe-card:hover { box-shadow: var(--shadow); }
.fe-cards .fe-card > * { margin: 0 18px !important; max-width: none; }
.fe-cards .fe-card > .fe-card-img { margin: 0 0 4px !important; }
.fe-card-img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0 !important; background: var(--soft); }
.fe-cards--contain .fe-card-img img, .fe-card-img.is-cutout img { object-fit: contain; padding: 14px; }
.fe-cards .fe-card h3 { font-size: 1.2rem; line-height: 1.25; margin: 0; }
.fe-cards .fe-card h3 a { color: var(--ink); text-decoration: none; }
.fe-cards .fe-card h3 a:hover { color: var(--red); }
.fe-cards .fe-card p { margin: 0; font-size: .95rem; color: var(--muted); }
.fe-cards .fe-card .wp-block-buttons { margin-top: auto !important; padding-top: 6px; gap: 8px; }
.fe-cards .fe-card .wp-block-button__link { min-height: 40px; padding: 8px 16px; font-size: .9rem; }
.fe-card-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .92rem; }
.fe-card-links a { color: var(--text); }
.fe-card-sub { font-weight: 600; color: var(--ink) !important; }
.fe-cards--stories .fe-card-img img { aspect-ratio: 3 / 2; }
.fe-cards--stories .fe-card { padding-bottom: 16px; }
/* Balanced rows: three per row when the count divides better by three, a narrower pair for two */
@media (min-width: 900px) {
	.entry-content > .fe-cards:has(> :last-child:nth-child(3)),
	.entry-content > .fe-cards:has(> :last-child:nth-child(5)),
	.entry-content > .fe-cards:has(> :last-child:nth-child(6)),
	.entry-content > .fe-cards:has(> :last-child:nth-child(9)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.entry-content > .fe-cards:has(> :last-child:nth-child(2)) { grid-template-columns: repeat(2, minmax(0, 1fr)); --measure: 820px; }
}
/* Phones: two compact cards per row */
@media (max-width: 599px) {
	.entry-content > .fe-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.fe-cards .fe-card { gap: 8px; padding-bottom: 14px; border-radius: var(--radius); }
	.fe-cards .fe-card > * { margin: 0 12px !important; }
	.fe-cards .fe-card h3 { font-size: 1.02rem; }
	.fe-cards .fe-card p { font-size: .88rem; }
	.fe-cards .fe-card .wp-block-button__link { min-height: 34px; padding: 6px 12px; font-size: .82rem; }
	.fe-cards--contain .fe-card-img img, .fe-card-img.is-cutout img { padding: 8px; }
}

/* 4. Short items (icon boxes) --------------------------------------------- */
.entry-content > .fe-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; margin-block: 8px 28px; counter-reset: fe; }
.fe-features .fe-feature { margin: 0; padding: 20px 20px 22px; border-radius: var(--radius-lg); background: var(--soft); }
.fe-features .fe-feature > * { max-width: none; }
.fe-features .fe-feature h3 { font-size: 1.15rem; margin: 0 0 6px; }
.fe-features .fe-feature h3 a { color: var(--ink); }
.fe-features .fe-feature p { margin: 0; color: var(--muted); font-size: .95rem; }
.fe-features .fe-feature-img img { width: 72px; height: 72px; object-fit: contain; border-radius: 0; margin-bottom: 10px; }
.fe-features.is-numbered .fe-feature { counter-increment: fe; }
.fe-features.is-numbered .fe-feature h3::before { content: counter(fe); display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 10px; border-radius: 50%; background: var(--red); color: #fff; font: 700 .85rem var(--font-sans); vertical-align: 2px; }

/* 5. Columns of text, image rows, logos, banners -------------------------- */
.entry-content .fe-cols { gap: clamp(20px, 4vw, 48px); margin-block: 24px; }
.entry-content .fe-cols h3 { margin-top: 0; }
.entry-content > .fe-image-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; margin-block: 16px 28px; }
.fe-image-row .wp-block-image { margin: 0; }
.fe-image-row img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.entry-content > .fe-logo-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 32px; margin-block: 20px 32px; }
.fe-logo-row .wp-block-image { margin: 0; }
.fe-logo-row img { width: auto; height: 72px; object-fit: contain; border-radius: 0 !important; transition: transform .2s var(--ease); }
.fe-logo-row a:hover img { transform: translateY(-2px); }
.entry-content > .wp-block-image.alignwide img { width: auto; max-width: 100%; max-height: 420px; margin-inline: auto; display: block; object-fit: contain; border-radius: var(--radius-lg); }
.fe-banner-img img { aspect-ratio: 21 / 8; }

/* 6. Contact block (form + map or contacts) and bookings ------------------ */
.entry-content .fe-contact-block { gap: clamp(24px, 4vw, 56px); margin-block: clamp(32px, 5vw, 64px) 16px; padding: clamp(20px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--soft); }
.entry-content > .fe-contact-block--solo { --measure: 760px; }
.fe-contact-block--solo > * { max-width: none; }
.fe-contact-block h2 { margin-top: 0 !important; text-align: left; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.fe-contact-block .fe-where-map iframe { height: clamp(280px, 38vw, 420px); }
.fe-contact-block .fe-contact-side .fe-where-map { margin-top: 12px; }
.fe-contact-line { font-size: 1.1rem; font-weight: 700; margin-block: 0 6px; }
.fe-contact-line a { color: var(--ink); text-decoration: none; }
.fe-contact-line a:hover { color: var(--red); }
.fe-contact-lines { list-style: none; padding: 0; font-weight: 700; font-size: 1.1rem; }
.entry-content > .fe-booking { --measure: 820px; margin-block: 8px 32px; }
.fe-booking > h2 { text-align: center; }
.fe-booking > .fe-note { text-align: center; }

/* 7. Photo hero and story facts (wedding pages) --------------------------- */
.entry-content > .fe-hero--photo { position: relative; display: grid; align-items: end; min-height: clamp(340px, 62vh, 600px); margin: 0 0 clamp(24px, 4vw, 48px); padding: 0; overflow: hidden; color: #fff; isolation: isolate; border: 0; background: var(--dark); }
.fe-hero--photo .fe-hero-bg { position: absolute; inset: 0; margin: 0; z-index: -2; }
.fe-hero--photo .fe-hero-bg img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.fe-hero--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10, 10, 10, .72) 0%, rgba(10, 10, 10, .25) 45%, rgba(10, 10, 10, 0) 70%); }
.fe-hero--photo .fe-hero-text { width: min(var(--container) - 2 * var(--gutter), 100% - 2 * var(--gutter)); margin: 0 auto; padding-block: clamp(28px, 6vw, 64px); }
.fe-hero--photo .fe-hero-text > * { max-width: 40rem; margin-inline: 0; }
.fe-hero--photo .fe-hero-kicker { margin: 0 0 6px; font-weight: 600; letter-spacing: .02em; color: rgba(255, 255, 255, .9); }
.fe-hero--photo .fe-hero-title { margin: 0; color: #fff; font-size: clamp(2.3rem, 1.4rem + 4vw, 4.2rem); line-height: 1.05; text-align: left !important; }
.fe-hero--photo .fe-hero-lead { margin: 14px 0 0; font-size: clamp(1.02rem, .95rem + .4vw, 1.2rem); color: rgba(255, 255, 255, .92); }
.entry-content > .fe-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; margin-block: 0 12px; }
.fe-facts .fe-fact { margin: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.fe-facts .fe-fact > * { max-width: none; }
.fe-fact-label { margin: 0 0 2px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.fe-fact-value { margin: 0; font-weight: 700; color: var(--ink); }
/* Phones: a taller hero, and the facts as one compact list */
@media (max-width: 599px) {
	.entry-content > .fe-hero--photo { min-height: 420px; }
	.entry-content > .fe-facts { gap: 0; border: 1px solid var(--line); border-radius: var(--radius); }
	.fe-facts .fe-fact { border: 0; border-radius: 0; padding: 12px 16px; }
	.fe-facts .fe-fact + .fe-fact { border-top: 1px solid var(--line); }
}

/* 8. Photo galleries (a click opens the photo full screen) ---------------- */
.entry-content > .wp-block-gallery.fe-photos { --wp--style--unstable-gallery-gap: 10px; gap: 10px; margin-block: 8px 24px; }
.wp-block-gallery.fe-photos .wp-block-image img { border-radius: var(--radius-sm); }
@media (max-width: 599px) { .wp-block-gallery.fe-photos.has-nested-images figure.wp-block-image:not(#individual-image) { width: calc(50% - 5px); } }
@media (min-width: 1000px) { .wp-block-gallery.fe-photos--wall.has-nested-images figure.wp-block-image:not(#individual-image) { width: calc(25% - 7.5px); } }

/* 9. Places, videos and reviews ------------------------------------------- */
.entry-content > .fe-places { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.fe-places .fe-places-group { margin: 0; padding: 22px 22px 18px; border-radius: var(--radius-lg); background: var(--soft); }
.fe-places .fe-places-group > * { max-width: none; }
.fe-places h3 { margin: 0 0 10px; font-size: 1.2rem; }
.fe-place-list { list-style: none; padding: 0; margin: 0; }
.fe-place-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.fe-place-list li:last-child { border-bottom: 0; }
.entry-content > .fe-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; }
.fe-videos .fe-video { margin: 0; }
.fe-videos .fe-video > * { max-width: none; }
.fe-videos .wp-block-embed { margin: 0 0 8px; }
.fe-videos .wp-block-embed iframe { border-radius: var(--radius); }
.fe-videos h3 { margin: 0; font-size: 1.15rem; }
.entry-content > .fe-reviews { display: block; columns: 3 280px; column-gap: 14px; margin-block: 8px 0; }
.fe-reviews .fe-review { break-inside: avoid; margin: 0 0 14px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.fe-reviews .fe-review > * { max-width: none; }
.fe-review-text { margin: 0 0 10px; font-size: .95rem; }
.fe-review-text::before { content: "“"; display: block; height: 20px; font: 600 2.4rem/1 var(--font-display); color: var(--red); }
.fe-review-name { margin: 0; font-size: .9rem; }

/* 10. Articles (wedding blog) --------------------------------------------- */
.fe-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.entry-content > .fe-posts { margin-block: 8px 24px; }
.fe-post { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .25s var(--ease); }
.fe-post:hover { box-shadow: var(--shadow); }
.fe-post-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.fe-post-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0 !important; }
.fe-post-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px 18px 18px; }
.fe-post-title { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.2; color: var(--ink); }
.fe-post-excerpt { font-size: .93rem; color: var(--muted); }
.fe-post-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: .9rem; font-weight: 600; color: var(--red); }
.fe-post-more .icon { width: 16px; height: 16px; }
.single-article-cover { margin: 0 auto 28px !important; }
.single-article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); }
.single-article-back { margin-top: 40px !important; }
