/* Homepage bottom module: More top stories + latest feature slider */

.homepage-bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  margin-top: 22px;
}

.homepage-bottom-grid.no-list,
.homepage-bottom-grid.no-showcase {
  grid-template-columns: 1fr;
}

.homepage-bottom-grid .headline-list-wrap {
  display: flex;
  flex-direction: column;
  margin-top: 0;
  padding: 18px 18px 4px;
}

.homepage-bottom-grid .headline-list {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.homepage-feature-showcase {
  padding: 13px 18px 18px;
  background: #f6f7f9;
  border: 1px solid #e3e6ea;
  border-top: 5px solid #0878bd;
  border-radius: 3px;
}

.homepage-feature-showcase .headline-list-head {
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid #cfd5dc;
}

.homepage-feature-showcase .headline-list-head h2 {
  margin: 0;
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #444;
}

.feature-showcase-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}

.feature-showcase-controls a { margin-right: 2px; }

.feature-showcase-prev,
.feature-showcase-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  background: #fff;
  border: 1px solid #d9dde2;
  border-radius: 50%;
  color: #444;
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.feature-showcase-prev:hover,
.feature-showcase-next:hover {
  background: #0878bd;
  border-color: #0878bd;
  color: #fff;
}

.feature-showcase-slide { display: none; }
.homepage-feature-showcase:not(.is-enhanced) .feature-showcase-slide:first-child { display: block; }
.feature-showcase-slide.is-active { display: block; }

.feature-showcase-media {
  display: block;
  aspect-ratio: 16 / 9;
  margin-bottom: 12px;
  overflow: hidden;
  background: #e6e9ed;
}

.feature-showcase-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.homepage-feature-showcase:hover .feature-showcase-media img { transform: scale(1.025); }

.feature-showcase-kicker {
  margin-bottom: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #0878bd;
}

.feature-showcase-title {
  margin: 0 0 7px;
  min-height: calc(1.25em * 3);
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif !important;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #444;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feature-showcase-title a { color: inherit; text-decoration: none; }
.feature-showcase-title a:hover { text-decoration: underline; text-underline-offset: 2px; }

.feature-showcase-dek {
  margin: 0 0 8px;
  min-height: calc(1.5em * 2);
  font-size: 14px;
  line-height: 1.5;
  color: #5b6470;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feature-showcase-date {
  font-size: 11px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #5b6470;
}

.feature-showcase-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
}

.feature-showcase-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  background: #e6e9ed;
  border: 2px solid transparent;
  opacity: .68;
  cursor: pointer;
}

.feature-showcase-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-showcase-thumb.is-active,
.feature-showcase-thumb:hover {
  border-color: #0878bd;
  opacity: 1;
}

@media (min-width: 992px) {
  .homepage-bottom-grid:not(.no-showcase) .headline-thumb {
    flex: 0 0 112px;
    width: 112px;
    height: 63px;
  }
  .homepage-bottom-grid:not(.no-showcase) .headline-list .headline-title {
    font-size: 14px;
  }
  .homepage-bottom-grid:not(.no-showcase) .headline-list a {
    gap: 14px;
    padding: 12px 0;
  }
}

@media (max-width: 991px) {
  .homepage-bottom-grid {
    grid-template-columns: 1fr;
  }
  .homepage-feature-showcase {
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .homepage-feature-showcase { padding: 10px 14px 14px; }
  .homepage-feature-showcase .headline-list-head h2 { font-size: 17px; }
  .feature-showcase-title { font-size: 20px; }
  .feature-showcase-thumbs { gap: 4px; }
}

/* Right column stretches to match the stories list */
.homepage-bottom-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.homepage-bottom-side .homepage-feature-showcase {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.homepage-bottom-side .feature-showcase-slides { flex: 0 0 auto; }
