/* Hollywood Rebound: Homepage v2 modules */

.hr-home {
  padding-bottom: 56px;
}

.hr-hero {
  padding-top: 28px;
  padding-bottom: 28px;
  text-align: center;
}

.hr-hero-image-wrap {
  position: relative;
  margin: 0 auto;
  width: min(60vw, 780px);
  /* Keep homepage hero consistently framed (magazine cover feel) */
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.hr-hero-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  /* Sensible fallback when no focal point is set */
  object-position: 50% 30%;
}

.hr-hero-title {
  margin: 18px auto 0;
  max-width: min(65vw, 900px);
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 400;
  line-height: 1.15;
}

.hr-hero-title-link {
  color: inherit;
  text-decoration: none;
}

.hr-hero-title-link:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.hr-module {
  margin-top: 28px;
}

.hr-module-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(0,0,0,0.12);
  padding-top: 18px;
  margin-bottom: 18px;
}

.hr-module-title {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
}

.hr-module-link {
  text-decoration: none;
}

.hr-module-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hr-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.hr-tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hr-tile-image-link {
  display: block;
}

.hr-tile-image,
.hr-tile-image--placeholder {
  width: 100%;
  /* Homepage tiles should have a consistent editorial frame */
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

/* Sensible fallback when no focal point is set */
.hr-tile-image {
  object-position: 50% 30%;
}

.hr-tile-image--placeholder {
  background: rgba(0,0,0,0.08);
}

.hr-tile-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hr-tile-tag {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  opacity: 0.75;
}

.hr-tile-tag:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hr-tile-title {
  font-size: 22px;
  line-height: 1.15;
  font-weight: 600;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .hr-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hr-hero-image-wrap { width: min(82vw, 780px); }
}

@media (max-width: 640px) {
  .hr-tiles {
    grid-template-columns: 1fr;
  }
  .hr-module-title { font-size: 26px; }
  .hr-tile-title { font-size: 20px; }

  /* keep consistent measure on mobile too */
  .hr-hero-title { max-width: 30ch; }
}

/* --------------------------------------------------
   HR Homepage Hero Headline
   Consistent line-length on desktop + mobile
   (placed AFTER media queries so it wins)
-------------------------------------------------- */

.hr-hero-title {
  max-width: 30ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* HR homepage: make only the visible hero image clickable (not the side whitespace) */
.hr-hero-image-link{
  display: inline-block;
  line-height: 0;
}
