.ic-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 999999;
  display: flex;
  touch-action: none;
}

.ic-lightbox__container {
  position: relative;
  margin: auto;
  max-width: 90vw;
  max-height: 90vh;
}

.ic-lightbox__image {
  max-width: 90vw;
  max-height: 85vh;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  transform-origin: center center;
}

.ic-lightbox__spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: ic-lightbox-spin 1s linear infinite;
}

@keyframes ic-lightbox-spin {
  to { transform: translate(-50%,-50%) rotate(360deg) }
}

.ic-lightbox__title {
  color: white;
  text-align: center;
  padding: 15px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.7);
}

.ic-lightbox__counter {
  position: absolute;
  top: 30px;
  left: 30px;
  color: white;
  background: rgba(0,0,0,0.7);
  padding: 10px;
  border-radius: 5px;
}

.ic-lightbox__btn {
  background: rgba(255,255,255,0.1);
  border: 2px solid white;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: background 0.3s;
  position: fixed;
}

.ic-lightbox__btn:hover {
  background: rgba(255,255,255,0.2);
}

.ic-lightbox__btn--prev {
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.ic-lightbox__btn--next {
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.ic-lightbox__btn--close {
  right: 30px;
  top: 30px;
  width: 50px;
  height: 50px;
}