.card-gallery {
  position: relative;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  background: #eee9e1;
}
.card-gallery .modern-build-image {
  width: 100%;
  margin: 0;
  background: #eee9e1;
}
.card-gallery .modern-build-image::after { content: none; }
.card-gallery--active .modern-build-image { touch-action: pan-y pinch-zoom; }
.card-gallery .modern-build-image img[hidden] { display: none !important; }
.card-gallery__arrow,
.card-gallery__dots,
.card-gallery__counter {
  position: absolute;
  z-index: 1;
  color: #fff;
  background: rgba(30,30,27,.87);
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.card-gallery__arrow {
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 34px;
  height: 38px;
  padding: 0;
  border-radius: 10px;
  cursor: pointer;
  touch-action: manipulation;
}
.card-gallery__arrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border: solid currentColor;
  border-width: 0 1.8px 1.8px 0;
  transform: translateX(-2px) rotate(-45deg);
}
.card-gallery__prev { left: 10px; }
.card-gallery__next { right: 10px; }
.card-gallery__prev::before { transform: translateX(2px) rotate(135deg); }
.card-gallery__arrow:hover { background: #ab501b; }
.card-gallery__dots {
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  padding: 0 5px;
  border-radius: 20px;
}
.card-gallery__dot {
  display: grid;
  place-items: center;
  width: 22px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}
.card-gallery__dot::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 5px;
  background: #d4cec5;
}
.card-gallery__dot[aria-current="true"]::before { width: 14px; background: #ff9d50; }
.card-gallery__arrow:focus-visible,
.card-gallery__dot:focus-visible { outline: 2px solid #ffac68; outline-offset: -3px; }
.card-gallery__counter {
  left: 10px;
  top: 10px;
  padding: 3px 8px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
@media (pointer: coarse) {
  .card-gallery__arrow { width: 42px; height: 44px; }
  .card-gallery__dot { width: 24px; height: 30px; }
}
@media (prefers-reduced-motion: no-preference) {
  .card-gallery__arrow { transition: background-color .15s; }
  .card-gallery__dot::before { transition: width .16s, background-color .16s; }
}
