.machine-card:has(img) {
  cursor: zoom-in;
}

.machine-lightbox {
  width: min(1200px, calc(100vw - 40px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 12px;
  border: 0;
  background: #0b1025;
  box-shadow: 0 24px 80px rgba(5, 9, 27, .68);
}

.machine-lightbox::backdrop {
  background: rgba(5, 9, 27, .88);
  backdrop-filter: blur(8px);
}

.machine-lightbox figure {
  display: grid;
  gap: 10px;
  margin: 0;
}

.machine-lightbox img {
  display: block;
  width: 100%;
  max-height: calc(100dvh - 128px);
  object-fit: contain;
}

.machine-lightbox figcaption {
  color: #fff;
  font: 700 13px/1.4 Manrope, sans-serif;
  letter-spacing: .02em;
}

.machine-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 50%;
  background: rgba(10, 15, 35, .82);
  color: #fff;
  font: 28px/1 Arial, sans-serif;
  cursor: pointer;
}

.machine-lightbox-close:hover,
.machine-lightbox-close:focus-visible {
  border-color: #fff;
  background: #334586;
}

@media (max-width: 640px) {
  .machine-lightbox {
    width: calc(100vw - 24px);
    padding: 8px;
  }

  .machine-lightbox-close {
    top: 14px;
    right: 14px;
  }
}
