.srm-lightbox-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 2147483647;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.85);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.srm-lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.srm-lightbox-slide {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 90vh;
}
.srm-lightbox-slide img {
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.srm-lightbox-spinner {
  position: absolute;
  top: 50%; left: 50%;
  width: 40px; height: 40px;
  margin: -20px 0 0 -20px;
  border: 4px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: srm-spin 0.7s linear infinite;
}
@keyframes srm-spin {
  to { transform: rotate(360deg); }
}

.srm-lightbox-close {
  position: absolute;
  top: 10px; right: 10px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  z-index: 10;
  padding: 4px 10px;
}
.srm-lightbox-close:hover { opacity: 1; }

.srm-lightbox-prev,
.srm-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  z-index: 10;
  padding: 12px 16px;
  border-radius: 4px;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.srm-lightbox-prev:hover,
.srm-lightbox-next:hover { opacity: 1; }
.srm-lightbox-prev { left: 10px; }
.srm-lightbox-next { right: 10px; }

.srm-lightbox-counter {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  color: #ccc;
  font-size: 14px;
  background: rgba(0,0,0,0.5);
  padding: 4px 12px;
  border-radius: 12px;
  z-index: 10;
}

@media (max-width: 768px) {
  .srm-lightbox-slide img {
    max-height: 50vh;
  }
  .srm-lightbox-prev,
  .srm-lightbox-next {
    top: auto;
    bottom: 70px;
    transform: none;
    font-size: 28px;
    padding: 16px 24px;
  }
  .srm-lightbox-close {
    font-size: 44px;
    padding: 8px 16px;
    top: 8px;
    right: 8px;
  }
  .srm-lightbox-counter {
    bottom: 20px;
    font-size: 16px;
    padding: 6px 16px;
  }
}
