.magazine-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 300px;
  margin: 0;
  border-radius: 0;
  background: #edf0e4;
  color: var(--ink);
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #1b252b;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity .75s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide.is-broken {
  opacity: 0;
}

.magazine-hero.has-images {
  color: #fff;
  background: #1b252b;
}

.magazine-hero.has-images::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,rgba(9,16,23,.85),rgba(9,16,23,.47) 62%,rgba(9,16,23,.38));
}

.hero-content {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 0;
  min-height: 300px;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hero-top .section-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  line-height: 1.5;
}

.hero-top .section-label::before {
  background: #9db759;
}

.hero-search {
  width: 330px;
  flex-shrink: 0;
  max-width: 100%;
}

.hero-search input:not([type=hidden]),.hero-search button {
  height: 42px;
  font-size: 13px;
}

.hero-search input {
  background: rgba(255,255,255,.94);
  color: #181a1b;
  border-color: rgba(255,255,255,.8);
}

.hero-search input::placeholder {
  color: #666d63;
}

.hero-search button {
  padding: 8px 16px;
  background: #d3ef72;
  color: #181a1b;
  border-color: #d3ef72;
}

.hero-search button:hover {
  background: #e0f794;
}

.hero-copy h1 {
  font-size: 58px;
  line-height: 1.06;
  letter-spacing: -2px;
  margin: 26px 0 12px;
  font-weight: 700;
}

.hero-copy h1 em {
  font-family: Georgia,serif;
  font-weight: 400;
}

.hero-copy p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 530px;
  margin: 0;
  color: #66705c;
}

.has-images .hero-copy p {
  color: #e0e7db;
}

.has-images .hero-copy h1 {
  text-shadow: 0 2px 18px #0003;
}

.hero-pause {
  position: absolute;
  right: 0;
  bottom: 20px;
  padding: 5px 9px;
  font-size: 10px;
  border: 1px solid #ffffff80;
  background: #10202a80;
  color: white;
  border-radius: 3px;
}

.hero-pause:hover {
  background: #10202acc;
}

.hero-library {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 20px;
}

.hero-library-item {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.hero-library-item>img {
  width: 100%;
  height: 135px;
  display: block;
  object-fit: cover;
}

.hero-library-item>div {
  padding: 18px;
}

.hero-library-item form {
  margin-top: 10px;
}

.hero-admin-columns {
  margin-bottom: 35px;
}

@media(max-width:1450px) {
  .hero-content {
    max-width: 1250px;
    padding-left: 35px;
    padding-right: 35px;
  }

  .hero-pause {
    right: 35px;
  }
}

@media(max-width:1000px) {
  .hero-copy h1 {
    font-size: 48px;
  }

  .hero-top {
    gap: 14px;
  }

  .hero-top .section-label {
    max-width: 300px;
    font-size: 9px;
  }

  .hero-library {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media(max-width:650px) {
  .magazine-hero {
    min-height: 318px;
  }

  .hero-content {
    padding: 24px 20px;
    min-height: 318px;
  }

  .hero-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero-top .section-label {
    max-width: 100%;
    font-size: 8px;
    letter-spacing: 1px;
  }

  .hero-search {
    width: 100%;
  }

  .hero-copy h1 {
    font-size: 36px;
    letter-spacing: -1.3px;
    margin: 20px 0 10px;
  }

  .hero-copy p {
    font-size: 12px;
    max-width: 95%;
    padding-bottom: 15px;
  }

  .hero-pause {
    right: 20px;
    bottom: 10px;
    font-size: 9px;
  }

  .hero-library {
    grid-template-columns: 1fr;
  }
}

@media(prefers-reduced-motion:reduce) {
  .hero-slide {
    transition: none;
  }
}
