/* ===== HERO SLIDESHOW ===== */
.gallery-hero-slideshow {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.slideshow-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease;
  animation: kenBurns 10s ease-in-out infinite;
}

.slide.active {
  opacity: 1;
}

@keyframes kenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.slideshow-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1;
}

.gallery-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.gallery-hero-subtitle {
  font-size: 1.1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #D4AF37;
  margin-bottom: 10px;
}

.gallery-hero-title{
    color: #fff;
    font-weight: 700;
    text-shadow:
        0 3px 10px rgba(0,0,0,.45),
        0 6px 25px rgba(0,0,0,.35);
}

.gallery-hero-text {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== SHARED GALLERY STYLES ===== */
.gallery-section-py { padding: 80px 0; }
.gallery-section { background-color: #fff; }
.section-description { font-size: 1rem; color: #6c757d; max-width: 650px; margin: 0 auto; }

/* ===== IMAGE LINK ===== */
.gallery-image-link {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  display: block;
}

.gallery-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-image-link:hover img {
  transform: scale(1.05);
}

.gallery-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #fff;
  font-size: 2rem;
}

.gallery-image-link:hover .gallery-img-overlay {
  opacity: 1;
}

/* ===== COURSE SECTION ===== */
.course-featured {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  border: 2px solid #D4AF37;
}

.course-featured-img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.course-thumb {
  height: 220px;
  object-fit: cover;
}

/* ===== TOURNAMENT SECTION ===== */
.tournament-poster-featured {
  max-width: 600px;
  margin: 0 auto 20px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  border: 2px solid #D4AF37;
}

.poster-img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.player-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.player-grid .gallery-image-link {
  aspect-ratio: 4/3;
}

.player-grid img {
  height: 100%;
  object-fit: cover;
}

/* ===== FACILITY CARDS ===== */
.facility-card-new {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.facility-card-new:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.facility-card-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.facility-card-info {
  padding: 20px;
}

.facility-card-info h5 {
  font-weight: 600;
  color: #1B5E20;
  margin-bottom: 8px;
}

.facility-card-info h5 i {
  color: #D4AF37;
}

.facility-card-info p {
  font-size: 0.9rem;
  color: #6c757d;
  margin: 0;
}

/* ===== LIGHTBOX ===== */
.lightbox-content {
  background: rgba(0,0,0,0.95);
  border: none;
  height: 100vh;
}

.lightbox-body {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 60px;
}

.lightbox-image {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s;
}

.lightbox-close:hover { background: rgba(255,255,255,0.3); }

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.3s;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.3); }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .gallery-hero-title { font-size: 2.5rem; }
  .course-featured-img { height: 300px; }
  .player-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .gallery-hero-title { font-size: 2rem; }
  .gallery-hero-slideshow { height: 70vh; min-height: 400px; }
  .course-featured-img { height: 250px; }
  .course-thumb { height: 150px; }
  .player-grid { grid-template-columns: repeat(2, 1fr); }
  .facility-card-img { height: 200px; }
  .lightbox-body { padding: 20px; }
}