/* =========================================================
   Infinity Corridor 24 – Frontend Styles
   ========================================================= */

/* ----- Wrapper & Container ----- */
.ic24-wrapper {
  position: relative;
  width: 100%;
  height: 580px;
  background-color: #05050a;
  overflow: hidden;
  display: block;
}

.ic24-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* ----- Canvas ----- */
.ic24-canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.ic24-canvas.ic24-ready {
  opacity: 1;
}

/* ----- Vignette ----- */
.ic24-container::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    transparent 40%,
    rgba(0, 0, 0, calc(var(--ic24-vignette, 0.4) * 1)) 100%
  );
  z-index: 10;
}

/* ----- Cursor ----- */
.ic24-container {
  cursor: grab;
}

.ic24-container.ic24-dragging {
  cursor: grabbing;
}

/* ----- Lightbox ----- */
.ic24-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: ic24-lb-fadein 0.25s ease;
}

@keyframes ic24-lb-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.ic24-lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  padding: 4px 8px;
}

.ic24-lightbox__close:hover {
  opacity: 1;
}

.ic24-lightbox__media {
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ic24-lightbox__media img {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 60px rgba(0, 0, 0, 0.8);
}

.ic24-lightbox__media video {
  max-width: 90vw;
  max-height: 78vh;
  border-radius: 4px;
  box-shadow: 0 8px 60px rgba(0, 0, 0, 0.8);
  outline: none;
}

.ic24-lightbox__caption {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  text-align: center;
  max-width: 600px;
}

/* ----- Pause indicator ----- */
.ic24-paused-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 20;
}

.ic24-paused-indicator.visible {
  opacity: 1;
}

.ic24-paused-indicator::before {
  content: '▶';
  color: #fff;
  font-size: 20px;
  margin-left: 4px;
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .ic24-wrapper {
    height: 480px;
  }
}

@media (max-width: 767px) {
  .ic24-wrapper {
    height: 360px;
  }

  .ic24-lightbox__media img,
  .ic24-lightbox__media video {
    max-height: 70vh;
  }
}

@media (max-width: 480px) {
  .ic24-wrapper {
    height: 280px;
  }
}
