/** Gedenana homepage editorial sections. */

.latest-feature__excerpt {
  margin: .65rem 0 .9rem;
  color: var(--muted, #6e6e6e);
  line-height: 1.65;
}

.latest-feature .gedenana-read-more {
  display: inline-flex;
  min-height: 42px;
  margin: 0 0 .85rem;
  padding: 9px 15px;
  align-items: center;
  gap: 9px;
  border: 2px solid var(--accent, #1976bd);
  background: var(--accent, #1976bd);
  color: #fff;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .045em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.latest-feature .gedenana-read-more::after {
  content: '\2192';
  font-size: 1rem;
  line-height: 1;
}

[dir="rtl"] .latest-feature .gedenana-read-more::after { content: '\2190'; }

.latest-feature .gedenana-read-more:hover {
  background: transparent;
  color: var(--accent, #1976bd);
  transform: translateY(-1px);
}

.latest-feature .gedenana-read-more:focus-visible {
  outline: 3px solid var(--accent, #1976bd);
  outline-offset: 3px;
}

.gedenana-featured-strip {
  margin-block-start: clamp(2.25rem, 6vw, 3.25rem);
}

.gedenana-featured-strip__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
}

.gedenana-featured-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #111;
}

.gedenana-featured-card__link {
  position: relative;
  isolation: isolate;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 210px;
  place-items: center;
  overflow: hidden;
  color: #fff;
}

.gedenana-featured-card__link::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.22) 8%, rgba(0,0,0,.4) 45%, rgba(0,0,0,.78) 100%);
  content: '';
  transition: background-color .2s ease;
}

.gedenana-featured-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.gedenana-featured-card__content {
  position: relative;
  z-index: 2;
  display: grid;
  width: 100%;
  height: 100%;
  padding: clamp(1rem, 5vw, 1.7rem);
  place-items: center;
  text-align: center;
}

.gedenana-featured-card h3 {
  max-width: 24ch;
  margin: 0;
  color: inherit;
  font-size: clamp(1.08rem, 4.7vw, 1.45rem);
  font-weight: 900;
  line-height: 1.17;
  text-wrap: balance;
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
}

.gedenana-featured-card__link:hover { color: #fff; }
.gedenana-featured-card__link:hover img { transform: scale(1.045); }
.gedenana-featured-card__link:focus-visible {
  z-index: 3;
  outline: 4px solid var(--accent, #1976bd);
  outline-offset: -4px;
}

.gedenana-featured-strip + .section {
  margin-block-start: clamp(2.25rem, 6vw, 3.25rem);
}

.story-grid:not(.layout-list) .story-card__excerpt {
  max-width: 34ch;
  margin: .75rem auto .85rem;
  color: var(--muted, #6e6e6e);
  line-height: 1.55;
  text-align: center;
}

.story-grid.layout-list .story-card__excerpt {
  margin: .4rem 0 .6rem;
  text-align: start;
}

@media (min-width: 40rem) {
  .gedenana-featured-strip__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gedenana-featured-card { aspect-ratio: 4 / 3; }
  .gedenana-featured-card h3 { font-size: clamp(1.15rem, 2.8vw, 1.4rem); }
}

@media (min-width: 64rem) {
  .gedenana-featured-strip--count-1 .gedenana-featured-strip__grid { grid-template-columns: minmax(0, 1fr); }
  .gedenana-featured-strip--count-2 .gedenana-featured-strip__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gedenana-featured-strip--count-3 .gedenana-featured-strip__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gedenana-featured-strip--count-4 .gedenana-featured-strip__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gedenana-featured-strip--count-1 .gedenana-featured-card,
  .gedenana-featured-strip--count-2 .gedenana-featured-card { aspect-ratio: 16 / 9; }
  .gedenana-featured-strip--count-3 .gedenana-featured-card { aspect-ratio: 4 / 3; }
  .gedenana-featured-strip--count-4 .gedenana-featured-card { aspect-ratio: 5 / 6; }
  .gedenana-featured-card h3 { font-size: clamp(1rem, 1.55vw, 1.35rem); }
}

@media (prefers-reduced-motion: reduce) {
  .latest-feature .gedenana-read-more,
  .gedenana-featured-card img { transition: none; }
}

@media (forced-colors: active) {
  .gedenana-featured-card__link,
  .latest-feature .gedenana-read-more { border: 2px solid ButtonText; }
}
