/* ==================================================
   GALLERY CSS – FIXED & CLEAN
   ================================================== */

/* ================= GALLERY SECTION ================= */
.gallery-section {
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: center;
}

/* ================= CAROUSEL ================= */
.carousel-container {
  max-width: 1100px;
  margin: 30px auto;
}

/* MAIN IMAGE – TRUE HD */
.carousel-main {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;

  /* HARD LOCK 16:9 */
  aspect-ratio: 16 / 9;

  background: #000;
  border-radius: 16px;
  overflow: hidden;
}

.carousel-main img {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: contain;   /* NO CROPPING */
  object-position: center;
}




/* NAV BUTTONS */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  font-size: 22px;
  cursor: pointer;
  z-index: 10;
  transition: 0.3s ease;
}

.nav-btn:hover {
  background: var(--accent);
  color: var(--secondary);
}

.nav-btn.prev { left: 15px; }
.nav-btn.next { right: 15px; }

/* ================= THUMBNAILS ================= */
.carousel-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.carousel-thumbnails img {
  width: 90px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.6;
  border: 3px solid transparent;
  transition: 0.3s;
}

.carousel-thumbnails img.active {
  opacity: 1;
  border-color: var(--primary);
  transform: scale(1.05);
}

.carousel-thumbnails img:hover {
  opacity: 1;
}

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

.lightbox img {
  max-width: 95%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 12px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

/* ================= PREVIEW GRID ================= */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.grid-4 .image-box {
  height: 220px;
  overflow: hidden;
  border-radius: 12px;
}

.grid-4 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  .carousel-thumbnails img {
    width: 70px;
    height: 50px;
  }
}

@media (max-width: 576px) {
  .grid-4 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .carousel-main {
    aspect-ratio: 16 / 9;
    min-height: unset;
    height: auto;
  }
}

