/**
 * elitkras-lightbox.css — стили к /js/elitkras-lightbox.js.
 */
.elitkras-lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
.elitkras-lb-overlay.is-open { display: flex; }

html.elitkras-lb-locked { overflow: hidden; }
html.elitkras-lb-locked body { overflow: hidden; }

.elitkras-lb-stage {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.elitkras-lb-img {
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 80px);
  width: auto;
  height: auto;
  object-fit: contain;
  background: #111;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  display: block;
}

.elitkras-lb-overlay.is-loading .elitkras-lb-img {
  opacity: 0.3;
  background: #111 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10" stroke="%23ffffff" stroke-width="2" fill="none" stroke-dasharray="50.27" stroke-dashoffset="35"><animateTransform attributeName="transform" type="rotate" from="0 12 12" to="360 12 12" dur="1s" repeatCount="indefinite"/></circle></svg>') center / 48px no-repeat;
}

.elitkras-lb-btn {
  position: absolute;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: 0;
  cursor: pointer;
  font-family: Arial, sans-serif;
  line-height: 1;
  user-select: none;
  transition: background 0.15s;
  z-index: 2;
  padding: 0;
}
.elitkras-lb-btn:hover { background: rgba(0, 0, 0, 0.85); }

.elitkras-lb-prev,
.elitkras-lb-next {
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  font-size: 40px;
  border-radius: 50%;
}
.elitkras-lb-prev { left: 12px; }
.elitkras-lb-next { right: 12px; }

.elitkras-lb-close {
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  font-size: 28px;
  border-radius: 50%;
}

.elitkras-lb-caption {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.45);
  padding: 6px 14px;
  border-radius: 4px;
  max-width: calc(100vw - 40px);
  text-align: center;
  pointer-events: none;
}
.elitkras-lb-caption:empty { display: none; }

@media (max-width: 600px) {
  .elitkras-lb-overlay { padding: 10px; }
  .elitkras-lb-img {
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 60px);
  }
  .elitkras-lb-prev,
  .elitkras-lb-next {
    width: 44px;
    height: 44px;
    font-size: 30px;
  }
  .elitkras-lb-prev { left: 4px; }
  .elitkras-lb-next { right: 4px; }
}
