/* SECTION */
#gallery {
  background: #0b0b0b;
  padding: 100px 0;
  text-align: center;
}

#gallery h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 40px;
}

#gallery small {
  color: #777;
  font-size: 14px;
}

/* GALLERY SECTION */
#gallery {
  background: linear-gradient(
    to bottom,
    #0b0b0b,
    #111
  );

  padding: 100px 0;
  position: relative;

  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
}


/* FEATURED IMAGE */
.featured {
  position: relative;
  margin-bottom: 40px;
}

.featured img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  filter: brightness(0.7);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

/* MAKE IMAGE PORTRAIT */
.img-box img {
  width: 100%;
  height: 360px;        /* controls portrait height */
  object-fit: cover;    /* prevents stretching */
  transition: transform 0.5s ease;
}

/* HOVER ZOOM */
.img-box:hover img {
  transform: scale(1.1);
}

/* IMAGE CONTAINER */
.img-box {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}



/* DARK OVERLAY */
.img-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

 
/* TEXT FIX */
.overlay-text {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;           /* keeps text aligned properly */
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  z-index: 2;
}

.overlay-text span {
  background: rgba(0,0,0,0.6);
  padding: 6px 10px;
  display: inline-block;
}

.overlay-text .divider {
  width: 40px;
  height: 2px;
  background: #3a6cf4; /* blue accent */
}

/* GRID */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: grayscale(20%) brightness(0.85);
  transition: 0.4s;
}

/* HOVER EFFECT (PREMIUM FEEL) */
.gallery-grid img:hover {
  transform: scale(1.05);
  filter: grayscale(0%) brightness(1);
}

.gallery-grid img {
  width: 100%;
  height: 450px; /* taller = portrait look */
  object-fit: cover;
  border-radius: 8px;
  transition: 0.3s;
}

/* SLIDER */
.slider {
  position: relative;
  overflow: hidden;
  margin-top: 40px;
}

.slider-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
}

.slider-track img {
  width: 250px;
  height: 350px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

/* HOVER EFFECT */
.slider-track img:hover {
  transform: scale(1.05);
}

/* BUTTONS */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  border: none;
  color: white;
  font-size: 25px;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
}

.prev { left: 10px; }
.next { right: 10px; }

/* =====================
   MODAL (ZOOM IMAGE)
===================== */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
}

.modal-content {
  display: block;
  margin: auto;
  max-width: 80%;
  max-height: 80%;
  border-radius: 10px;
}

.close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}/* SLIDER */
.slider {
  position: relative;
  overflow: hidden;
  margin-top: 40px;
}

.slider-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
}

.slider-track img {
  width: 250px;
  height: 350px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

/* HOVER EFFECT */
.slider-track img:hover {
  transform: scale(1.05);
}

/* BUTTONS */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  border: none;
  color: white;
  font-size: 25px;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
}

.prev { left: 10px; }
.next { right: 10px; }

/* =====================
   MODAL (ZOOM IMAGE)
===================== */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
}

.modal-content {
  display: block;
  margin: auto;
  max-width: 80%;
  max-height: 80%;
  border-radius: 10px;
}

.close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}





/* MOBILE */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured img {
    height: 250px;
  }
}