.hero-slider {
  background: #17232f;
  position: relative;
  overflow: hidden;
}

.hero-slider::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 23, 31, .92) 0%, rgba(14, 23, 31, .62) 50%, rgba(14, 23, 31, .2) 100%);
  z-index: 1;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity .9s ease, transform 7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-slider .hero-content {
  position: relative;
  z-index: 2;
}

.hero-controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-arrow,
.hero-dot {
  border: 1px solid rgba(255, 255, 255, .75);
  background: rgba(14, 23, 31, .55);
  color: #fff;
  cursor: pointer;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
}

.hero-arrow:hover,
.hero-arrow:focus-visible {
  background: var(--red);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  padding: 0;
}

.hero-dot.is-active {
  background: var(--red);
  border-color: var(--red);
}

.selected-work {
  padding-top: 25px;
}

.selected-work-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
}

.selected-work-grid figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: var(--ink);
  min-height: 280px;
}

.selected-work-grid .selected-work-large {
  grid-row: span 2;
  min-height: 572px;
}

.selected-work-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform .35s ease;
}

.selected-work-grid figure:hover img {
  transform: scale(1.025);
}

.selected-work-grid figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 20px 17px;
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: linear-gradient(transparent, rgba(14, 23, 31, .88));
}

@media (max-width: 1080px) {
  .selected-work-grid {
    grid-template-columns: 1.5fr 1fr;
  }

  .selected-work-grid .selected-work-large {
    grid-row: span 3;
  }
}

@media (max-width: 760px) {
  .hero-slide {
    object-position: 62% center;
  }

  .hero-slider .hero-content {
    padding-bottom: 125px;
  }

  .hero-controls {
    bottom: 22px;
  }

  .selected-work-grid {
    grid-template-columns: 1fr 1fr;
  }

  .selected-work-grid .selected-work-large {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 390px;
  }

  .selected-work-grid figure {
    min-height: 240px;
  }
}

@media (max-width: 450px) {
  .selected-work-grid {
    grid-template-columns: 1fr;
  }

  .selected-work-grid .selected-work-large {
    grid-column: auto;
    min-height: 300px;
  }

  .selected-work-grid figure {
    min-height: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .selected-work-grid img {
    transition: none;
  }
}
