/**
 * Lightbox styles
 */
.gb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.gb-lightbox--active {
  display: flex;
}

.gb-lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(8px);
}

.gb-lightbox__content {
  position: relative;
  z-index: 1;
  width: 90vw;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gb-lightbox__image-container {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gb-lightbox__image {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  animation: gb-lightbox-fade-in 0.3s ease;
}

@keyframes gb-lightbox-fade-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.gb-lightbox__close,
.gb-lightbox__prev,
.gb-lightbox__next {
  position: absolute;
  background: rgba(248, 248, 246, 0.1);
  border: 1px solid rgba(248, 248, 246, 0.2);
  color: #f8f8f6;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.gb-lightbox__close:hover,
.gb-lightbox__prev:hover,
.gb-lightbox__next:hover {
  background: rgba(248, 248, 246, 0.2);
  border-color: rgba(248, 248, 246, 0.4);
  transform: scale(1.05);
}

.gb-lightbox__close {
  top: 24px;
  right: 24px;
}

.gb-lightbox__prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.gb-lightbox__next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.gb-lightbox__prev:hover,
.gb-lightbox__next:hover {
  transform: translateY(-50%) scale(1.05);
}

.gb-lightbox__close i,
.gb-lightbox__prev i,
.gb-lightbox__next i {
  font-size: 24px;
}

.gb-lightbox__counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 10, 10, 0.8);
  color: #f8f8f6;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(8px);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .gb-lightbox__content {
    width: 100vw;
    height: 100vh;
  }

  .gb-lightbox__close {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }

  .gb-lightbox__prev,
  .gb-lightbox__next {
    width: 40px;
    height: 40px;
  }

  .gb-lightbox__prev {
    left: 16px;
  }

  .gb-lightbox__next {
    right: 16px;
  }

  .gb-lightbox__counter {
    bottom: 16px;
    font-size: 12px;
    padding: 6px 12px;
  }
}
