/*!
 * lightbox.css — полноэкранный просмотр фото товаров.
 * Работает в паре с lightbox.js и разметкой #photoLightbox.
 */
.photo-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
  cursor: zoom-out;
  animation: photoLightboxIn 0.15s ease-out;
}
.photo-lightbox[hidden] { display: none; }

@keyframes photoLightboxIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.photo-lightbox__img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.7);
  background: #1a1a1a;
  cursor: default;
}

.photo-lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  backdrop-filter: blur(4px);
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
  padding: 0 0 4px;   
}
.photo-lightbox__close:hover { background: rgba(255, 255, 255, 0.3); }
.photo-lightbox__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

body.photo-lightbox-open { overflow: hidden; }