.car {
  background:
    radial-gradient(ellipse 70% 75% at 71% 72%, #b7b7b7 0%, #747474 29%, #303132 53%, #111213 72%, #090a0b 100%);
}

.car:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(0,0,0,.32), transparent 21%);
}

.car > .container-xl { position: relative; z-index: 1; }
.car-glow { display: none; }
.car-shadow { bottom: 9%; opacity: .72; }

.specs { background: transparent; }
.specs div { background: linear-gradient(90deg, rgba(5,5,5,.5), rgba(5,5,5,.08)); }

.car-image img {
  -webkit-mask-image: none;
  mask-image: none;
  object-fit: contain;
}

.car-gallery {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(5, 150px);
  justify-content: space-between;
  gap: 14px;
  max-width: 820px;
  margin: 20px auto 0;
}

.gallery-shot {
  position: relative;
  height: 116px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 7px;
  background-image: url('../img/approved-mockup.png');
  background-repeat: no-repeat;
  background-size: 864px 1822px;
  box-shadow: 0 8px 18px rgba(0,0,0,.28);
  transition: transform .22s, border-color .22s;
}

.gallery-shot:hover { transform: translateY(-4px); border-color: var(--red); }
.gallery-shot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.gallery-shot span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.shot-engine { background-position: -22px -1588px; }
.shot-cockpit { background-position: -183px -1588px; }
.shot-wheel { background-position: -347px -1588px; }
.shot-rear { background-position: -514px -1588px; }
.shot-steering { background-position: -681px -1588px; }

.gallery-modal {
  width: min(92vw, 940px);
  max-width: none;
  padding: 0;
  border: 1px solid #3a3a3a;
  background: #08090a;
  color: #fff;
  box-shadow: 0 28px 90px #000;
}

.gallery-modal::backdrop { background: rgba(0,0,0,.88); backdrop-filter: blur(6px); }
.modal-frame { position: relative; padding: 42px 70px 22px; }
.modal-photo {
  width: min(100%, 600px);
  height: min(77vw, 464px);
  margin: 0 auto;
  background-image: url('../img/approved-mockup.png');
  background-repeat: no-repeat;
  background-color: #111;
  background-size: 3456px 7288px;
  border: 1px solid #444;
}
.modal-frame p { display: flex; justify-content: space-between; margin: 15px 0 0; text-transform: uppercase; color: #eee; }
.modal-frame p small { color: var(--red); letter-spacing: .12em; }
.modal-close,.modal-arrow { position: absolute; z-index: 2; border: 0; background: transparent; color: #fff; }
.modal-close { top: 4px; right: 13px; font-size: 2.2rem; }
.modal-arrow { top: 48%; transform: translateY(-50%); color: var(--red); font-size: 4rem; line-height: 1; }
.modal-prev { left: 14px; }.modal-next { right: 14px; }
.modal-close:hover,.modal-arrow:hover { color: #fff; }

@media (max-width: 991px) {
  .car-gallery { gap: 10px; overflow-x: auto; justify-content: start; grid-template-columns: repeat(5, 150px); padding-bottom: 8px; }
  .gallery-shot { height: 108px; }
}

@media (max-width: 767px) {
  .car { background: radial-gradient(ellipse at 52% 30%, #8b8b8b, #292a2b 35%, #0c0d0e 63%); }
  .car-image img { -webkit-mask-image: none; mask-image: none; }
  .car-gallery { margin-top: 28px; }
  .modal-frame { padding: 48px 38px 18px; }
  .modal-photo { height: min(72vw, 464px); background-size: 2592px 5466px; }
  .modal-arrow { font-size: 3rem; }.modal-prev{left:2px}.modal-next{right:2px}
}
