.auction-gallery {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  height: 620px;
}

.auction-gallery__thumbs,
.auction-gallery__main {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-width: 0;
}

.auction-gallery__thumb,
.auction-gallery__slide {
  display: block;
  border: 0;
  padding: 0;
  background: #eef1f2;
  overflow: hidden;
  cursor: pointer;
}

.auction-gallery__thumb {
  box-sizing: border-box;
  height: auto;
  border: 2px solid transparent;
  border-radius: 17px;
  opacity: 0.58;
  transition: opacity 0.2s, border-color 0.2s;
}

.auction-gallery__thumb.swiper-slide-thumb-active {
  border-color: #ff2929;
  opacity: 1;
}

.auction-gallery__thumb img,
.auction-gallery__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.auction-gallery__thumb img {
  border-radius: 14px;
}

.auction-gallery__thumbs {
  padding-right: 2px;
  cursor: grab;
}

.auction-gallery__thumbs:active {
  cursor: grabbing;
}

.auction-gallery__slide {
  border-radius: 24px;
}

.auction-gallery__slide img {
  object-fit: contain;
}

.auction-gallery__arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: rgba(18, 35, 49, 0.35);
  transform: translateY(-50%);
  cursor: pointer;
}

.auction-gallery__arrow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 11px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}

.auction-gallery__arrow--prev { left: 18px; }
.auction-gallery__arrow--next { right: 18px; }
.auction-gallery__arrow--prev::after { left: calc(50% + 2px); transform: translate(-50%, -50%) rotate(-135deg); }
.auction-gallery__arrow--next::after { left: calc(50% - 2px); transform: translate(-50%, -50%) rotate(45deg); }

.auction-lightbox {
  position: fixed;
  z-index: 99999;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 84px;
  background: #fff;
}

.auction-lightbox.is-open { display: flex; }
.auction-lightbox img { display: block; width: 100%; height: 100%; max-width: 1600px; max-height: calc(100vh - 48px); object-fit: contain; }
.auction-lightbox__close { position: absolute; z-index: 2; top: 18px; right: 25px; width: 48px; height: 48px; border: 0; background: rgba(255,255,255,.9); border-radius: 50%; color: #122331; font-size: 42px; line-height: 1; cursor: pointer; }
.auction-lightbox__arrow { position: absolute; z-index: 2; top: 50%; width: 52px; height: 52px; border: 1px solid #d7dde1; border-radius: 50%; background: rgba(255,255,255,.94); transform: translateY(-50%); cursor: pointer; box-shadow: 0 6px 24px rgba(18,35,49,.12); }
.auction-lightbox__arrow::after { content: ''; position: absolute; top: 50%; left: 50%; width: 12px; height: 12px; border-top: 2px solid #122331; border-right: 2px solid #122331; }
.auction-lightbox__arrow--prev { left: 20px; }
.auction-lightbox__arrow--next { right: 20px; }
.auction-lightbox__arrow--prev::after { left: calc(50% + 2px); transform: translate(-50%,-50%) rotate(-135deg); }
.auction-lightbox__arrow--next::after { left: calc(50% - 2px); transform: translate(-50%,-50%) rotate(45deg); }
.auction-lightbox-open { overflow: hidden; }

@media (max-width: 767px) {
  .auction-gallery { grid-template-columns: 1fr; height: auto; }
  .auction-gallery__main { height: 430px; grid-row: 1; }
  .auction-gallery__thumbs { height: 82px; grid-row: 2; }
}

@media (max-width: 480px) {
  .auction-gallery__main { height: 340px; }
  .auction-gallery__thumbs { height: 68px; }
  .auction-lightbox { padding: 70px 10px 18px; }
  .auction-lightbox__arrow { width: 44px; height: 44px; }
  .auction-lightbox__arrow--prev { left: 8px; }
  .auction-lightbox__arrow--next { right: 8px; }
}
