/* ===== Hero Section Styles ===== */
.gallery-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

/* Full-width background hero */
.gallery-hero {
  position: relative;
  width: 100%;
  height: 85vh;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 0 20px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
  font-size: 1.5rem;
  max-width: 600px;
  font-style: italic;
  color: #ffffff; /* ✅ Changed from #ffb84d (orange) to white */
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);
}


/* ===== Category Selector ===== */
.bannerSlider {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  gap: 10px;
}

.bannerSlider button {
  padding: 12px 24px;
  margin: 0 5px;
  border: none;
  background: #f0f0f0;
  cursor: pointer;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.bannerSlider button.active {
  background: #2c3e50;
  color: white;
}

.bannerSlider button:hover {
  background: #ddd;
}

.bannerSlider button.active:hover {
  background: #1a252f;
}

/* ===== Gallery Grid ===== */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 15px 0;
}

.gallery-item {
  border: 1px solid #ddd;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.gallery-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.gallery-caption {
  padding: 15px;
  text-align: center;
  font-size: 16px;
  background: white;
}

/* ===== Lightbox ===== */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.lightbox-close:hover {
  color: #ccc;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  width: auto;
}

.lightbox-image {
  max-height: 80vh;
  max-width: 100%;
  border-radius: 8px;
}

.lightbox-caption {
  color: white;
  text-align: center;
  margin-top: 20px;
  font-size: 18px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 28px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-nav.prev {
  left: -70px;
}

.lightbox-nav.next {
  right: -70px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .gallery-hero {
    height: 300px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .bannerSlider {
    flex-wrap: wrap;
  }

  .bannerSlider button {
    margin-bottom: 10px;
  }

  .grid-container {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .lightbox-nav.prev {
    left: 10px;
  }

  .lightbox-nav.next {
    right: 10px;
  }
}
/* Add these styles to your existing CSS */
.gallery-admin-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.media-preview-container {
  position: relative;
  margin: 15px 0;
}

.media-preview {
  max-height: 250px;
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.clear-preview-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gallery-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.gallery-item-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s;
}

.gallery-item-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
/* Prevent selection and force pointer-events */
.protected-media {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  pointer-events: none;
}

/* Overlay technique */
.media-protection-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
}