/* ============================================
   IMAGE LIGHTBOX - Full screen image viewer
   ============================================ */

.lightbox {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.show {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.lightbox.show .lightbox-img {
  transform: scale(1);
}

/* Close button - hamesha viewport ke top-right corner pe.
   Pehle content ke upar -50px tha, isliye tall image pe screen se
   bahar chala jata tha aur cross dikhta nahi tha. */
.lightbox-close {
  position: fixed;
  top: 15px;
  right: 20px;
  z-index: 10001;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.lightbox-close:hover {
  background: rgba(255,0,0,0.85);
  border-color: rgba(255,255,255,0.7);
  transform: scale(1.1);
}

.lightbox-close i {
  font-size: 16px;
  font-weight: 900;
  pointer-events: none;
}

/* Navigation arrows (multiple images ke liye future-ready) */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* Clickable images - hover pe zoom ka nishan (badge) */
.clickable-image {
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.clickable-image:hover {
  transform: scale(1.03);
  filter: brightness(1.08);
}

/* Captain / sponsor photo ke upar chhota zoom icon - bataata hai
   ki photo pe click karke bada kar sakte ho */
.td-captain .tc-photo::after,
.td-sponsor .ts-photo::after {
  content: "\f00e"; /* fa-magnifying-glass-plus */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 6px; right: 6px;
  width: 34px; height: 34px;
  background: rgba(0,0,0,0.68);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 2;
}

.td-captain .tc-photo:hover::after,
.td-sponsor .ts-photo:hover::after {
  opacity: 1;
  transform: scale(1.08);
}

/* Gallery / home ke data-lightbox items - hover pe bhi zoom nishan */
[data-lightbox] {
  cursor: pointer;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .lightbox-content { max-width: 98vw; max-height: 98vh; }
  .lightbox-close { top: 12px; right: 12px; width: 38px; height: 38px; font-size: 17px; }
  .lightbox-nav { width: 40px; height: 40px; font-size: 16px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}
