/* ==========================================================================
   Product screenshot frames and the click-to-enlarge lightbox
   (public/js/home-lightbox.js). Used by index.html and features.html.
   ========================================================================== */

.home-shot {
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-light);
}

.home-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.home-shot img[role="button"] {
  cursor: zoom-in;
  transition: opacity 0.15s ease;
}

.home-shot img[role="button"]:hover {
  opacity: 0.9;
}

.home-shot img[role="button"]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.home-lightbox {
  max-width: none;
  max-height: none;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 2.5rem;
  border: none;
  background: transparent;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.home-lightbox[open] {
  display: flex;
}

.home-lightbox::backdrop {
  background: rgba(2, 6, 23, 0.88);
}

.home-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.home-lightbox-close {
  position: fixed;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-medium);
  background: rgba(15, 23, 42, 0.85);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.home-lightbox-close:hover,
.home-lightbox-close:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
}

.home-lightbox-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .home-lightbox {
    padding: 3.5rem 0.5rem 1rem;
  }
}
