/* =============================================
   TEAM LIGHTBOX — index.php (OUR TEAM collage)
   ============================================= */

/* Polaroid jadi clickable + efek b/w saat hover */
.polaroid {
  cursor: pointer;
}

.polaroid img {
  transition: filter 0.4s ease;
}

.polaroid:hover img {
  filter: grayscale(1);
}

.team-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

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

.team-lightbox__img-wrap {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.team-lightbox__img-wrap img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
}

.team-lightbox__img-wrap img:active {
  cursor: grabbing;
}

/* Close button */
.team-lightbox__close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}

.team-lightbox__close:hover {
  background: rgba(255,255,255,0.3);
}

/* Arrow */
.team-lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 48px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
  padding: 0;
  z-index: 10;
}

.team-lightbox__arrow:hover {
  background: rgba(255,255,255,0.3);
}

.team-lightbox__arrow--prev { left: 24px; }
.team-lightbox__arrow--next { right: 24px; }

/* Counter */
.team-lightbox__counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .team-lightbox__close {
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .team-lightbox__arrow {
    width: 42px;
    height: 42px;
    font-size: 32px;
  }

  .team-lightbox__arrow--prev { left: 10px; }
  .team-lightbox__arrow--next { right: 10px; }
}
