/* ========================================
   REFLECTION GALLERY WITH PROGRESSIVE BLUR
   Stunning full-viewport gallery with reflection effect
   ======================================== */

.reflection-gallery-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  height: auto;
  overflow: hidden;
  background: radial-gradient(circle at center, #35125e 0%, #0f021f 100%);
  margin: 0;
  padding: 0;
}

/* Thumbnail Navigation */
.reflection-gallery-section .thumbs {
  position: absolute;
  z-index: 20000;
  bottom: 2vmin;
  width: 90vw;
  text-align: center;
  left: 5vw;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.reflection-gallery-section .thumbs label {
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 5px;
  min-width: 10vmin;
  aspect-ratio: 4/3;
  display: inline-flex;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-sizing: border-box;
  cursor: pointer;
  opacity: 1;
  position: relative;
  transition: all 0.3s ease;
}

.reflection-gallery-section .thumbs label:hover {
  opacity: 0.8;
  box-shadow: 0 0 0 2px #fff;
}

/* Checkmark circle */
.reflection-gallery-section .thumbs label::before {
  content: "";
  position: absolute;
  width: 17px;
  height: 17px;
  border-radius: 100%;
  background: #4b08a1;
  top: 4px;
  right: 4px;
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.reflection-gallery-section .thumbs label input {
  position: absolute;
  z-index: -1;
  opacity: 0;
}

/* Active thumbnail */
.reflection-gallery-section .thumbs label:has(input:checked) {
  box-shadow: 0 0 0 3px #fff;
  transition: all 0.25s ease 0s;
  opacity: 1 !important;
}

/* Checkmark */
.reflection-gallery-section .thumbs label:has(input:checked)::after {
  content: "";
  position: absolute;
  border: 2px solid #fff;
  width: 6px;
  height: 4px;
  right: 9px;
  top: 9px;
  border-width: 0 0 3px 3px;
  border-radius: 1px;
  transform: rotate(-45deg);
}

/* Thumbnail images */
.reflection-gallery-section .thumbs label:has(#img1) .thumb-img {
  background-image: url('/assets/img/portfolio/club-2.JPG');
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.reflection-gallery-section .thumbs label:has(#img2) .thumb-img {
  background-image: url('/assets/img/portfolio/ACA-1.jpg');
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.reflection-gallery-section .thumbs label:has(#img3) .thumb-img {
  background-image: url('/assets/img/portfolio/club-1.jpg');
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.reflection-gallery-section .thumbs label:has(#img4) .thumb-img {
  background-image: url('/assets/img/portfolio/ACA-2.jpg');
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.reflection-gallery-section .thumbs label:has(#img5) .thumb-img {
  background-image: url('/assets/img/portfolio/AEC-1.jpg');
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.reflection-gallery-section .thumbs label:has(#img6) .thumb-img {
  background-image: url('/assets/img/portfolio/club-6.jpg');
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.reflection-gallery-section .thumbs label:has(#img7) .thumb-img {
  background-image: url('/assets/img/portfolio/ACA-3.jpg');
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.reflection-gallery-section .thumbs label:has(#img8) .thumb-img {
  background-image: url('/assets/img/portfolio/club-3.jpg');
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.reflection-gallery-section .thumbs label:has(#img9) .thumb-img {
  background-image: url('/assets/img/portfolio/club-4.jpg');
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.reflection-gallery-section .thumbs label:has(#img10) .thumb-img {
  background-image: url('https://res.cloudinary.com/dccibzcxp/image/upload/v1768140217/Afro%20Language%20lab/EB-4_xwmccq.jpg');
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.reflection-gallery-section .thumbs label:has(#img11) .thumb-img {
  background-image: url('https://res.cloudinary.com/dccibzcxp/image/upload/v1768153007/Afro%20Language%20lab/IMG_7888_agt47h_cyeogd.jpg');
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

/* Main gallery container - changes based on selected image */
.reflection-gallery-section:has(input#img1:checked) .gallery-container {
  --bg-image: url('/assets/img/portfolio/club-2.JPG');
}

.reflection-gallery-section:has(input#img2:checked) .gallery-container {
  --bg-image: url('/assets/img/portfolio/ACA-1.jpg');
}

.reflection-gallery-section:has(input#img3:checked) .gallery-container {
  --bg-image: url('/assets/img/portfolio/club-1.jpg');
}

.reflection-gallery-section:has(input#img4:checked) .gallery-container {
  --bg-image: url('/assets/img/portfolio/ACA-2.jpg');
}

.reflection-gallery-section:has(input#img5:checked) .gallery-container {
  --bg-image: url('/assets/img/portfolio/AEC-1.jpg');
}

.reflection-gallery-section:has(input#img6:checked) .gallery-container {
  --bg-image: url('/assets/img/portfolio/club-6.jpg');
}

.reflection-gallery-section:has(input#img7:checked) .gallery-container {
  --bg-image: url('/assets/img/portfolio/ACA-3.jpg');
}

.reflection-gallery-section:has(input#img8:checked) .gallery-container {
  --bg-image: url('/assets/img/portfolio/club-3.jpg');
}

.reflection-gallery-section:has(input#img9:checked) .gallery-container {
  --bg-image: url('/assets/img/portfolio/club-4.jpg');
}

.reflection-gallery-section:has(input#img10:checked) .gallery-container {
  --bg-image: url('https://res.cloudinary.com/dccibzcxp/image/upload/v1768140217/Afro%20Language%20lab/EB-4_xwmccq.jpg');
}

.reflection-gallery-section:has(input#img11:checked) .gallery-container {
  --bg-image: url('https://res.cloudinary.com/dccibzcxp/image/upload/v1768153007/Afro%20Language%20lab/IMG_7888_agt47h_cyeogd.jpg');
}


/* Gallery Section Title */




/* Gallery Container - 90% Width, Centered */

#gallery {
  padding: 4rem 2rem 5rem;
}
.reflection-gallery-section .gallery-container {
  position: relative;
  margin: 0 auto 4rem auto;
  border: 2px solid rgb(253, 252, 255);
  width: 90%;
  max-width: 1400px;
  height: 80vh;
  background: var(--bg-image, url('/assets/img/portfolio/ACA-2.jpg')) no-repeat center center;
  background-size: cover;
  transition: all 0.735s ease;
  z-index: 10;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
}



/* Dark overlay for better contrast */
.reflection-gallery-section .gallery-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.3) 0%,
      rgba(0, 0, 0, 0.1) 50%,
      rgba(0, 0, 0, 0.5) 100%);
  z-index: 1;
  pointer-events: none;
}


/* Carousel Controls */
.carousel-controls {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 1400px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 25;
  pointer-events: none;
}

.carousel-btn {
  pointer-events: all;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.carousel-btn:active {
  transform: scale(0.95);
}

.carousel-btn i {
  font-size: 24px;
}

.play-pause-btn {
  background: rgba(75, 8, 161, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.play-pause-btn:hover {
  background: rgba(75, 8, 161, 1);
}

.prev-btn {
  margin-left: -25px;
}

.next-btn {
  margin-right: -25px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .reflection-gallery-section .thumbs {
    gap: 4px;
    bottom: 1vmin;
  }

  .reflection-gallery-section .thumbs label {
    min-width: 8vmin;
  }
  
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .carousel-btn i {
    font-size: 20px;
  }
  
  .prev-btn {
    margin-left: -20px;
  }
  
  .next-btn {
    margin-right: -20px;
  }
}