/* ===== Gallery Text Panel ===== */
.gallery-text-panel {
  max-width: 650px;
  margin: 5px auto;
  text-align: center;
  padding: 12px 18px;
  line-height: 1.4;
  color: #ffffff;
}

.gallery-text-panel h2 {
  font-size: 2.5rem;
  margin-bottom: 5px;
}

.gallery-text-panel p {
  font-size: 1.25rem;
  margin: 6px 0;
}

/* ===== Wallpaper Gallery ===== */
#wallpaper-gallery .gallery-container {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: flex-start;
  padding: 10px 20px;
  margin: 0 auto;
  max-width: 1200px;
  box-sizing: border-box;
}

#wallpaper-gallery .gallery-image {
  width: 15%;
  max-width: 360px;
  height: auto;
  border-radius: 10px;
  display: block;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  object-fit: cover;
}

#wallpaper-gallery .gallery-image:hover,
#wallpaper-gallery .gallery-image:focus {
  transform: scale(1.04);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

/* ===== Banner Gallery (stacked vertically, wide) ===== */
#banner-gallery .gallery-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  margin: 40px auto;
  width: 90%;
  max-width: 1200px;
}

#banner-gallery .gallery-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  object-fit: cover;
}

#banner-gallery .gallery-image:hover,
#banner-gallery .gallery-image:focus {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

/* ===== Section Divider (optional) ===== */
.section-divider {
  width: 85%;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 42px auto;
}

/* ===== Responsive Breakpoints ===== */
@media screen and (max-width: 1024px) {
  #wallpaper-gallery .gallery-image {
    width: 30%;
  }
}

@media screen and (max-width: 768px) {
  .gallery-text-panel {
    margin: 18px auto;
    padding: 10px 14px;
    font-size: 0.95rem;
  }

  #wallpaper-gallery .gallery-image {
    width: 46%;
    border-radius: 8px;
  }

  #banner-gallery .gallery-container {
    width: 95%;
    gap: 15px;
  }

  #banner-gallery .gallery-image {
    border-radius: 8px;
  }
}

@media screen and (max-width: 480px) {
  #wallpaper-gallery .gallery-image {
    width: 92%;
  }

  .gallery-text-panel h2 {
    font-size: 1.25rem;
  }

  .gallery-text-panel p {
    font-size: 0.95rem;
  }
}

/* ===== Lightbox Overlay ===== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
  transition: opacity 0.3s ease;
}

/* Lightbox Image */
.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

/* Close Button */
.lightbox .close {
  position: absolute;
  top: 20px;
  right: 35px;
  font-size: 80px;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  transition: color 0.2s ease;
}

.lightbox .close:hover {
  color: #ffcc00;
}

@media screen and (max-width: 768px) {
  .lightbox-img {
    max-width: 95%;
    max-height: 70vh;
  }
}
