.units-type {
  position: relative;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.units-type:hover {
  border-color: #ed0712;
  box-shadow: 0 14px 34px rgba(16,17,17,.1);
  transform: translateY(-3px);
}
.units-type:focus-within {
  outline: 3px solid #ed0712;
  outline-offset: 3px;
}
.units-type__image {
  display: block;
  background: #f4f4f3;
}
.units-type__image img {
  object-fit: contain;
  padding: 10px;
  box-sizing: border-box;
}
.units-type .arrow-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}
.units-type .arrow-link:focus-visible { outline: none; }
.unit-detail-slider {
  min-width: 0;
  background: #fff;
  color: #171919;
}
.unit-detail-slider__viewport {
  position: relative;
  height: 470px;
  overflow: hidden;
}
.unit-detail-slide {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  background: #fff;
}
.unit-detail-slide[hidden] { display: none; }
.unit-detail-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  box-sizing: border-box;
  cursor: zoom-in;
}
.unit-detail-slide figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: #171919;
  color: #fff;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.unit-detail-slider__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid #e0e2e2;
}
.unit-detail-slider__arrow {
  width: 44px;
  height: 44px;
  border: 0;
  background: #171919;
  color: #fff;
  font-size: 21px;
  cursor: pointer;
}
.unit-detail-slider__arrow:hover,
.unit-detail-slider__arrow:focus-visible { background: #ed0712; }
.unit-detail-slider__dots { display: flex; gap: 10px; }
.unit-detail-slider__dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 1px solid #171919;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
.unit-detail-slider__dots button.is-active {
  background: #ed0712;
  border-color: #ed0712;
}
.unit-lightbox {
  width: min(96vw, 1500px);
  height: 94vh;
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  background: #fff;
  color: #171919;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
}
.unit-lightbox::backdrop { background: rgba(9,10,10,.9); }
.unit-lightbox__bar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid #e0e2e2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.unit-lightbox__bar button {
  border: 0;
  background: #171919;
  color: #fff;
  min-height: 42px;
  padding: 0 16px;
  cursor: pointer;
}
.unit-lightbox__stage {
  position: relative;
  height: calc(94vh - 64px);
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 24px 84px;
  box-sizing: border-box;
}
.unit-lightbox__stage img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.unit-lightbox__arrow {
  position: fixed;
  top: 50%;
  width: 52px;
  height: 52px;
  border: 0;
  background: #171919;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}
.unit-lightbox__arrow:hover,
.unit-lightbox__arrow:focus-visible { background: #ed0712; }
.unit-lightbox__arrow--prev { left: max(3vw, 18px); }
.unit-lightbox__arrow--next { right: max(3vw, 18px); }
body:has(.unit-lightbox[open]) { overflow: hidden; }
@media (max-width: 900px) {
  .unit-detail-slider__viewport { height: 390px; }
}
@media (max-width: 600px) {
  .unit-detail-slider__viewport { height: 300px; }
  .unit-detail-slide img { padding: 10px; }
  .unit-detail-slide figcaption { left: 10px; bottom: 10px; }
  .unit-lightbox { width: 100vw; height: 100vh; }
  .unit-lightbox__stage { height: calc(100vh - 64px); padding: 18px 58px; }
  .unit-lightbox__arrow { width: 44px; height: 44px; }
  .unit-lightbox__arrow--prev { left: 7px; }
  .unit-lightbox__arrow--next { right: 7px; }
}
