/*
 * Love Drive Magazine — sticky editorial feature
 * Isolated from the existing .home-archive-grid / homepage-archive.js system.
 *
 * If the site header is fixed, set --home-feature-sticky-top to its actual
 * rendered height (for example: 72px). Header CSS was not included in the
 * supplied source, so the safe default is 0px.
 */
:root {
  --home-feature-sticky-top: 0px;
}

.home-feature-section {
  width: 100%;
  margin: 0;
  padding: 0;
}

.home-feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  width: 100%;
  gap: 0;
}

/*
 * The right-hand archive grid establishes the section's natural height.
 * The left feature is sticky only within this layout, so it releases at
 * the bottom edge of the section without a fixed section height.
 */
.home-feature-main {
  position: sticky;
  top: var(--home-feature-sticky-top);
  align-self: start;
  min-width: 0;
  height: calc(100vh - var(--home-feature-sticky-top));
  height: calc(100svh - var(--home-feature-sticky-top));
  overflow: hidden;
  background: #e9e7e1;
}

.home-feature-main-card {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 420px;
  overflow: hidden;
  color: #fff;
  background: #e9e7e1;
  text-decoration: none;
}

.home-feature-main-card:hover {
  text-decoration: none;
}

.home-feature-main-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 38%,
    rgba(0, 0, 0, 0.12) 58%,
    rgba(0, 0, 0, 0.72) 100%
  );
  pointer-events: none;
}

.home-feature-main-image {
  position: absolute;
  inset: 0;
  width: 100%;

  object-fit: cover;
}

.home-feature-main-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  margin-top: auto;
  padding: clamp(20px, 3vw, 48px);
  color: #fff;
}

.home-feature-main-copy .home-feature-kicker, .home-feature-main-copy .home-feature-date {
  font-family: 'LL Bradford', serif;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-style: italic;
}


.home-feature-main-title {
  max-width: 900px;
  margin: 0px 0;
  color: #fff;
  font-family: "AvantGarde", sans-serif;
  font-size: clamp(28px, 4vw, 68px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-align: left;
  width: 100%;
  text-transform: uppercase;
}

.home-feature-main-excerpt {
  max-width: 620px;
  margin: 0px 0 0;
  color: #fff;
  font-family: "AvantGarde", sans-serif;
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.05;
}

.home-feature-side-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  min-width: 0;
  gap: 0;
  padding: 0;
}
/* Single-column version for the side grid */
.home-feature-side-grid.single {
  grid-template-columns: 1fr;
}
.home-feature-card {
  display: block;
  min-width: 0;
  height: 100%;
  border: 1px solid #e0e0e0;
  color: inherit;
  background: #fff;
  text-decoration: none;
  transition: border-color 0.3s ease;
}

.home-feature-card:hover {
  border-color: #999;
  text-decoration: none;
}

.home-feature-card-image-wrap {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f9f9f9;
}

.home-feature-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-feature-card-copy {
  display: flex;
  flex-direction: column;
  padding: 14px;
}

.home-feature-card-title {
  margin: 0;
  font-family: "AvantGarde", sans-serif;
  font-size: clamp(13px, 1.1vw, 18px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.home-feature-card-excerpt {
  font-family: 'AvantGarde';
  font-size: clamp(12px, 1.4vw, 11px);
  font-weight: 800;
  letter-spacing: 0px;
  margin: 1px 0 6px 0;
  line-height: 12px;
}


.home-feature-card-meta {
  margin: 0;
  font-family: 'LL Bradford', serif;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-style: italic;
}


.home-feature-card-meta span + span::before {
  content: "/";
  margin: 0 7px;
  color: #888;
}

.home-feature-status {
  margin:6px 20px;
  font-family: "AvantGarde", sans-serif;
  font-size: 12px;
}

.home-feature-status[hidden] {
  display: none;
}

.home-feature-empty {
  padding: 24px;
  font-family: "AvantGarde", sans-serif;
  font-size: 13px;
}

/* Disable sticky behavior on tablets and phones; keep the section in flow. */
@media (max-width: 768px) {
  .home-feature-layout {
    display: block;
  }

  .home-feature-main {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
  }

  .home-feature-main-card {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .home-feature-main-copy {
    padding: 22px;
  }

  .home-feature-main-title {
    font-size: clamp(28px, 8vw, 48px);
  }

  .home-feature-side-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-feature-card-copy {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .home-feature-side-grid {
    grid-template-columns: 1fr;
  }

  .home-feature-card-image-wrap {
    aspect-ratio: 5 / 4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-feature-card {
    transition: none;
  }
}



:root {
  --home-feature-sticky-top: 72px;
}

.home-feature-main {
  position: sticky;
  top: 72px;
  align-self: start;
  height: calc(100vh - 72px);
}

/* Mobile: disable sticky editorial layout */
@media (max-width: 768px) {
  .home-feature-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .home-feature-main {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    align-self: stretch;
    width: 100%;
  }

  .home-feature-side-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

.home-feature-layout.reverse {
  display: grid;
  grid-template-columns: 1fr 2fr; /* 1 part left (supporting), 2 parts right (big post) */

  align-items: start;
}
/* 2. Mobile override: Force it to stack vertically on small screens */
@media (max-width: 768px) {
  .home-feature-layout.reverse {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
}