.classified-gallery > .classified-extra-image:nth-child(2):last-child {
  grid-column: 1 / -1;
}

.classified-gallery img {
  cursor: zoom-in;
}

.classified-gallery img:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid var(--lime);
  outline-offset: -4px;
}

.classified-lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(8, 24, 23, .96);
  color: #fff;
  overflow: hidden;
}

.classified-lightbox[open] {
  display: grid;
  place-items: center;
}

.classified-lightbox::backdrop {
  background: rgba(8, 24, 23, .96);
}

.classified-lightbox-image {
  display: block;
  max-width: calc(100vw - 130px);
  max-height: calc(100dvh - 70px);
  object-fit: contain;
}

.classified-lightbox-close,
.classified-lightbox-arrow {
  position: fixed;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: #173f3c;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .2);
}

.classified-lightbox-close {
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  font-size: 1.7rem;
}

.classified-lightbox-arrow {
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  font-size: 2rem;
}

.classified-lightbox-prev {
  left: 20px;
}

.classified-lightbox-next {
  right: 20px;
}

.classified-lightbox-counter {
  position: fixed;
  bottom: 16px;
  left: 50%;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  transform: translateX(-50%);
  font-size: .82rem;
  font-weight: 800;
}

@media (max-width: 700px) {
  .classified-lightbox-image {
    max-width: 100vw;
    max-height: calc(100dvh - 90px);
  }

  .classified-lightbox-arrow {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .classified-lightbox-prev {
    left: 18px;
  }

  .classified-lightbox-next {
    right: 18px;
  }
}
