.pipboy-section {
  width: min(980px, calc(100% - var(--page-gutter)));
  margin: clamp(34px, 6vw, 70px) auto;
}

.pipboy-carousel {
  position: relative;
  width: min(100%, 900px);
  margin-inline: auto;
}

/* Frame sits on top */
.pipboy-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

/* Gallery screen sits behind the frame */
.pipboy-screen {
  position: absolute;
  z-index: 4;

  left: 14.5%;
  top: 21.5%;
  width: 49%;
  height: 49%;

  overflow: hidden;
  border-radius: 22px;
  background: #061108;
}

.pipboy-screen img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;

  filter:
    sepia(0.35)
    hue-rotate(65deg)
    saturate(1.25)
    contrast(1.15)
    brightness(0.9);

  transition: opacity 0.35s ease;
}

.pipboy-screen img.is-fading {
  opacity: 0;
}

.pipboy-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(95, 255, 112, 0.08) 0px,
      rgba(95, 255, 112, 0.08) 1px,
      transparent 2px,
      transparent 5px
    ),
    radial-gradient(circle at center, transparent 45%, rgba(0, 0, 0, 0.48));
}

/* Buttons */
.pipboy-button {
  position: absolute;
  z-index: 6;
  top: 50%;
  transform: translateY(-50%);

  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(115, 255, 112, 0.55);

  color: #9cff7d;
  background: rgba(0, 0, 0, 0.65);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.pipboy-prev {
  left: 8%;
}

.pipboy-next {
  left: 58%;
}

@media (max-width: 720px) {
  .pipboy-section {
    width: 100%;
  }

  .pipboy-carousel {
    width: 125%;
    transform: translateX(-10%);
  }

  .pipboy-button {
    width: 34px;
    height: 34px;
    font-size: 1.5rem;
  }
}