.issue-hero {
  position: relative;
  height: 100vh;
  color: #fff;
  margin-bottom: 2rem;
}
.issue-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}
.issue-hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-color, #000);
  opacity: calc(var(--overlay-opacity, 35) / 100);
}
.issue-hero__inner {
  position: relative;
  max-width: var(--wp--style--global--wide-size, 1100px);
  margin: 0 auto;
  padding: 0 2rem 4rem 2rem;
  height: 100%;
  display: flex;
  align-items: flex-end;
}
.issue-hero__content {
  width: 60%;
  text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.6);
}
.issue-hero__title a {
  color: #fff;
  text-decoration: none;
}
.issue-hero__kicker,
.issue-hero__title,
.issue-hero__excerpt,
.issue-hero__meta {
  color: #fff;
}
.layout-left .issue-hero__inner {
  text-align: left;
}
.layout-center .issue-hero__inner {
  text-align: center;
}
.layout-right .issue-hero__inner {
  text-align: right;
  margin-left: auto;
  margin-right: 0;
}
.layout-right .issue-hero__content {
  margin-left: auto;
}
.layout-center .issue-hero__content {
  margin-left: auto;
  margin-right: auto;
}
.issue-hero__kicker {
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.issue-hero__kicker a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.issue-hero__kicker a:hover,
.issue-hero__kicker a:focus {
  color: #f5821f;
  text-decoration: underline;
}
.issue-hero__title {
  font-size: clamp(2rem, 6vw, 2.5rem);
  line-height: 1.05;
  margin: 0.25rem 0 1rem;
}
.issue-hero__excerpt {
  max-width: 60ch;
  font-size: clamp(15px, 1.3vw, 19px);
  opacity: 0.95;
}
.issue-hero__meta {
  opacity: 0.95;
  display: inline-flex;
  font-size: 0.875rem;
  gap: 0.5rem;
  align-items: center;
}

.issue-hero__avatar {
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}

/* Mobile adjustments */
@media (max-width: 782px) {
  .issue-hero {
    height: 100vh;
  }
  .issue-hero__inner {
    padding: 0 2rem 2rem 2rem;
  }
  .issue-hero__content {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
}

/* Header overlay adjustments when hero is active */
body.has-hero-issue .bn-header-bar-pre-scroll {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  z-index: 5;
}

body.has-hero-issue .bn-primary-row {
  display: none;
}
.newspack-front-page .site-content {
  margin-top: 0;
}

/* Full-width hero section - breaks out of content flow */
.site-content > .issue-hero {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Constrain content after hero to max-width and center */
.site-content > .issue-hero ~ * {
  max-width: var(--wp--style--global--wide-size, 1100px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Target WordPress block editor content wrappers */
.site-content > .issue-hero ~ .wp-block-group:not(.alignfull):not(.alignwide),
.site-content > .issue-hero ~ .entry-content {
  max-width: var(--wp--style--global--wide-size, 1100px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Scroll indicator */
.issue-hero__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
  border: 0px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  padding: 0;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0;
  animation:
    fadeInUp 0.5s ease 0.3s forwards,
    moveDownBounce 0.5s ease-in-out 0.3s infinite;
}

.issue-hero__scroll-indicator:hover,
.issue-hero__scroll-indicator:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 1);
  transform: translateX(-50%) translateY(4px);
  outline: none;
}

.issue-hero__scroll-indicator:active {
  transform: translateX(-50%) translateY(2px);
}

.issue-hero__scroll-indicator svg {
  width: 40px;
  height: 40px;
  fill: rgba(255, 255, 255, 0.9);
  transition: fill 0.3s ease;
}

.issue-hero__scroll-indicator:hover svg,
.issue-hero__scroll-indicator:focus svg {
  fill: rgba(255, 255, 255, 1);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes moveDownBounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* Hide scroll indicator when scrolled past hero */
.issue-hero.scrolled-past .issue-hero__scroll-indicator {
  opacity: 0;
  pointer-events: none;
}

/* Responsive adjustments for scroll indicator */
@media (max-width: 782px) {
  .issue-hero__scroll-indicator {
    width: 40px;
    height: 40px;
    bottom: 1.5rem;
  }

  .issue-hero__scroll-indicator svg {
    width: 18px;
    height: 18px;
  }

  @keyframes moveDownBounce {
    0%,
    100% {
      transform: translateX(-50%) translateY(0);
    }
    50% {
      transform: translateX(-50%) translateY(6px);
    }
  }
}
