.dz-sold-primary-photo,
.dz-sold-thumbnail {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.dz-sold-primary-photo:focus-visible,
.dz-sold-thumbnail:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.dz-sold-thumbnails {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dz-sold-thumbnail {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: pointer;
}

.dz-sold-thumbnail[aria-pressed="true"] {
  outline: 3px solid currentColor;
  outline-offset: -3px;
}

.dz-sold-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .dz-sold-thumbnails {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.dz-sold-lightbox[hidden] {
  display: none !important;
}

.dz-sold-lightbox-prev[hidden],
.dz-sold-lightbox-next[hidden] {
  display: none;
}

.dz-sold-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(9 18 22 / 96%);
  color: #fff;
}

.dz-sold-lightbox-stage {
  display: grid;
  grid-template-columns: 48px minmax(0, auto) 48px;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.dz-sold-lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
}

.dz-sold-lightbox-figure img {
  display: block;
  max-width: calc(100vw - 128px);
  max-height: calc(100dvh - 112px);
  object-fit: contain;
}

.dz-sold-lightbox-figure figcaption {
  font-size: 14px;
  font-weight: 600;
}

.dz-sold-lightbox-close,
.dz-sold-lightbox-prev,
.dz-sold-lightbox-next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 50%;
  background: rgb(9 18 22 / 75%);
  color: #fff;
  cursor: pointer;
}

.dz-sold-lightbox-close svg,
.dz-sold-lightbox-prev svg,
.dz-sold-lightbox-next svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dz-sold-lightbox-close:hover,
.dz-sold-lightbox-prev:hover,
.dz-sold-lightbox-next:hover {
  background: rgb(255 255 255 / 20%);
}

.dz-sold-lightbox-close:focus-visible,
.dz-sold-lightbox-prev:focus-visible,
.dz-sold-lightbox-next:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.dz-sold-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
}

@media (max-width: 479px) {
  .dz-sold-lightbox-stage {
    gap: 4px;
  }
}
