/* Home page hero: magazine cover (lib/hero.js; design/homepage-hero-options.html, option 3).
   A dark panel in both light and dark mode: headline on the left, photo on the right fading into it. */
.cs-block-posts-layout-horizontal-type-2:has(> .fc-hero) { display: block; }

.fc-hero {
  --fc-hero-bg: #0d0d0d; /* G1 */
  position: relative;
  border-radius: var(--cs-layout-elements-border-radius, 4px);
  overflow: hidden;
  background: var(--fc-hero-bg);
  color: #fff;
}
.fc-hero__link { display: flex; align-items: flex-end; min-height: 600px; color: inherit; text-decoration: none; }
.fc-hero__link:hover, .fc-hero__link:focus { color: inherit; }

/* overflow: hidden keeps the hover zoom inside the box, so the unfaded photo never shows past the fade */
.fc-hero__media { position: absolute; top: 0; right: 0; bottom: 0; width: 62%; margin: 0; overflow: hidden; }
.fc-hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: transform .6s ease; }
.fc-hero__link:hover .fc-hero__media img { transform: scale(1.03); }
/* the photo fades into the panel, and darkens a little at the bottom */
.fc-hero__media::after {
  content: ""; position: absolute; inset: 0 0 0 -1px; pointer-events: none; /* 1px past the edge: no hairline seam */
  background:
    linear-gradient(90deg, var(--fc-hero-bg) 0%, rgba(13, 13, 13, .6) 22%, rgba(13, 13, 13, 0) 50%),
    linear-gradient(0deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0) 40%);
}

.fc-hero__body { position: relative; z-index: 1; max-width: 640px; padding: 56px; }
.fc-hero__cat {
  display: inline-block; padding: 5px 9px; border-radius: var(--cs-category-label-border-radius, 4px);
  background: #ededed; color: #0d0d0d;
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2;
}
.fc-hero__title {
  margin: 18px 0; color: #ededed;
  font-family: var(--cs-font-headings-family, inherit); font-weight: 700;
  font-size: 3.25rem; line-height: 1.1; letter-spacing: -.025em;
}
.fc-hero__link:hover .fc-hero__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.fc-hero__dek { margin: 0 0 24px; max-width: 600px; font-size: 18px; line-height: 1.55; color: #d4d4d4; }
.fc-hero__meta { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #a1a1a1; }
.fc-hero__link:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }

.fc-hero--no-image .fc-hero__link { min-height: 420px; }

@media (max-width: 1279px) {
  .fc-hero__link { min-height: 520px; }
  .fc-hero__body { padding: 40px; max-width: 560px; }
  .fc-hero__title { font-size: 2.4rem; }
}

/* phones and small tablets: photo on top, text below on the dark panel */
@media (max-width: 900px) {
  .fc-hero__link { display: block; min-height: 0; }
  .fc-hero__media { position: relative; width: 100%; aspect-ratio: 4 / 3; }
  .fc-hero__media::after { background: linear-gradient(0deg, var(--fc-hero-bg) 0%, rgba(13, 13, 13, 0) 45%); }
  .fc-hero__body { margin-top: -48px; padding: 0 20px 28px; max-width: none; }
  .fc-hero__title { font-size: 1.75rem; margin: 14px 0; }
  .fc-hero__dek { font-size: 16px; margin-bottom: 18px; }
}
@media (max-width: 599px) {
  .fc-hero__title { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .fc-hero__media img { transition: none; }
  .fc-hero__link:hover .fc-hero__media img { transform: none; }
}

/* News Feed (lib/home.js): 12 cards shown, "Load More" shows 12 more without leaving the page.
   Sized like the theme's own archive Load More button (.cs-posts-area__pagination .cs-load-more). */
.fc-feed-hidden { display: none !important; }
.fc-feed-more-wrap { margin-top: 4rem; }
.fc-feed-more {
  display: flex; justify-content: center; width: 33.333%; max-width: 100%; min-width: 150px; margin: 0 auto;
  padding: 1.25rem 2rem; line-height: 1;
}
