:root {
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #07090a;
}

body {
  color: var(--color-ink);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.hero-review {
  position: fixed;
  z-index: 0;
  inset: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: #07090a;
  isolation: isolate;
}

.hero-review__media,
.hero-review__image,
.hero-review__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-review__media {
  overflow: hidden;
  background: #07090a;
}

.hero-review__image {
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
  opacity: 0;
  transition: opacity 360ms cubic-bezier(0.22, 1, 0.36, 1);
  user-select: none;
}

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

.hero-review__shade {
  z-index: 2;
  background:
    linear-gradient(180deg, rgb(0 0 0 / 36%) 0%, rgb(0 0 0 / 5%) 17%, transparent 34%),
    linear-gradient(0deg, rgb(0 0 0 / 34%) 0%, transparent 22%);
  pointer-events: none;
}

.hero-review__controls {
  position: absolute;
  z-index: 4;
  bottom: clamp(1.25rem, 3.2vh, 2.2rem);
  left: 50%;
  display: grid;
  grid-template-columns: 3rem minmax(10rem, auto) 3rem;
  align-items: stretch;
  min-height: 3.35rem;
  border-top: 1px solid rgb(255 255 255 / 25%);
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  background: rgb(5 7 8 / 52%);
  box-shadow: 0 1.25rem 4rem rgb(0 0 0 / 24%);
  color: #f4f5f4;
  backdrop-filter: blur(14px) saturate(115%);
  transform: translateX(-50%);
}

.hero-review__arrow {
  display: grid;
  place-items: center;
  min-width: 3rem;
  padding: 0;
  border: 0;
  border-right: 1px solid rgb(255 255 255 / 12%);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.hero-review__arrow:last-child {
  border-right: 0;
  border-left: 1px solid rgb(255 255 255 / 12%);
}

.hero-review__arrow:hover,
.hero-review__arrow:focus-visible {
  background: rgb(255 255 255 / 10%);
  color: #fff;
  outline: none;
}

.hero-review__arrow:focus-visible {
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 68%);
}

.hero-review__status {
  display: grid;
  grid-template-columns: auto auto;
  align-content: center;
  gap: 0.12rem 0.85rem;
  min-width: 12.5rem;
  padding: 0.58rem 1rem 0.52rem;
  line-height: 1;
}

.hero-review__status span,
.hero-review__status small {
  overflow: hidden;
  color: rgb(244 245 244 / 58%);
  font-size: 0.57rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-review__status strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.hero-review__status small {
  letter-spacing: 0.08em;
}

@media (max-width: 48rem) {
  .hero-review__image {
    object-position: var(--focus-x, 58%) center;
  }

  .hero-review__controls {
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    width: calc(100% - 2rem);
    max-width: 23rem;
    grid-template-columns: 3.25rem minmax(0, 1fr) 3.25rem;
  }

  .hero-review__status {
    min-width: 0;
    padding-inline: 0.8rem;
  }

  .hero-review__status span {
    font-size: 0.53rem;
  }

  .hero-review__status small {
    font-size: 0.52rem;
  }
}

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