/* ==========================
   Gallery Page CSS
========================== */

/* Hero Section */
.gallery-hero {
  height: 100vh;
  min-height: 600px;
  background: url('../images/gallery-hero.jpeg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
  z-index: 1;
}

.gallery-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.6);
  z-index: 0;
}

.gallery-hero h1,
.gallery-hero p {
  position: relative;
  z-index: 1;
  color: #fff;
}

.gallery-hero h1 {
  font-size: 3rem;
  font-weight: 600;
  color: #fff;
}

/* Accent line under the heading */
.gallery-hero h1::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #f0a500;
  border-radius: 2px;
}

.gallery-hero p {
  font-size: 1.2rem;
  color: #fff;
  max-width: 600px;
}

/* ==============================
   Category Highlights Section
============================== */
.category-highlights {
  background-color: #f9f9f9;
}

/* TEXT SIDE */
.category-text {
  flex: 1 1 50%;
  position: relative;
  z-index: 1;
}

/* Floating shapes behind text */
.category-text::before {
  content: "";
  position: absolute;
  top: 30px;
  right: 30px;
  width: 100px;
  height: 100px;
  background: rgba(240, 165, 0, 0.15);
  border-radius: 50%;
  transform: rotate(15deg);
  pointer-events: none;
  transition: transform 0.5s ease;
}

.category-highlights .section-title {
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #222;
  position: relative;
  display: inline-block;
}

.category-highlights .section-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #f0a500;
  border-radius: 2px;
}

.highlight-box {
  background: #fff;
  transition: all 0.4s ease;
}

.highlight-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}



/* ==========================
   Gallery Main Section
========================== */
.gallery-main {
  padding: 15px 3%;
  background-color: #ffffff;
  color: #333;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

/* TEXT SIDE */
.gallery-text {
  flex: 1 1 50%;
  position: relative;
  z-index: 1;
}

/* Floating shapes behind text */
.gallery-text::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 30px;
  width: 150px;
  height: 150px;
  background: rgba(240, 165, 0, 0.15);
  border-radius: 50%;
  transform: rotate(15deg);
  pointer-events: none;
  transition: transform 0.5s ease;
}

.gallery-text::after {
  content: "";
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 120px;
  height: 120px;
  background: rgba(240, 165, 0, 0.1);
  border-radius: 50%;
  transform: rotate(-10deg);
  pointer-events: none;
  transition: transform 0.5s ease;
}

/* ==========================
   Updated Filter Buttons
========================== */
.gallery-filters {
  margin-top: 80px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.gallery-filters .btn {
  position: relative;
  overflow: hidden;
  padding: 10px 28px;
  font-size: 1rem;
  font-weight: 500;
  color: #222;
  border: 2px solid #f0a500;
  background: #fff;
  border-radius: 30px;
  transition: all 0.35s ease;
  letter-spacing: 0.3px;
}

.gallery-filters .btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #f0a500;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s ease;
  border-radius: 30px;
}

.gallery-filters .btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.gallery-filters .btn:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(240, 165, 0, 0.3);
}

.gallery-filters .btn.active {
  background: #f0a500;
  color: #fff;
  box-shadow: 0 6px 15px rgba(240, 165, 0, 0.3);
}

/* Pagination */
.gallery-pagination .pagination {
  margin-top: 40px;
}

.gallery-pagination .page-link {
  color: #222;
  border: none;
  margin: 0 5px;
  border-radius: 30px;
  padding: 10px 18px;
  font-weight: 500;
  transition: all 0.3s ease;
  background-color: #f1f1f1;
}

.gallery-pagination .page-item.active .page-link {
  background-color: #ffc107;
  color: #fff;
  border: none;
}

.gallery-pagination .page-link:hover {
  background-color: #222;
  color: #fff;
  transform: translateY(-2px);
}

.gallery-pagination .page-link.pill-btn {
  border-radius: 50px;
  padding: 10px 25px;
  font-weight: 600;
  background-color: #f1f1f1;
  color: #222;
  transition: all 0.3s ease;
}

.gallery-pagination .page-link.pill-btn:hover {
  background-color: #f0a500;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(240, 165, 0, 0.3);
}


/* ==========================
   Gallery Grid
========================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  width: 100%;
  margin-top: 40px;
  margin-bottom: 100px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 15px;
}

.gallery-item:hover img {
  transform: scale(1.05);
  z-index: 10;
  position: relative;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

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

/* ==========================
   Image Modal (Popup)
========================== */
/* Image Modal */
.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
  opacity: 0;
  z-index: 2000;
}

.image-modal.show {
  display: flex;
  opacity: 1;
}

.image-modal img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* Close and Download Buttons - Minimal clean style */
.close-btn,
.download-btn {
  position: absolute;
  top: 20px;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.2s ease;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover,
.download-btn:hover {
  color: #f0a500;
  transform: scale(1.1);
}

.close-btn {
  right: 30px;
  font-size: 38px;
  top: 15px;
}

/* ==========================
   Download Tooltip
========================== */
.download-btn {
  position: absolute;
  top: 30px;
  right: 80px;
  color: #fff;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, color 0.3s ease;
}

.download-btn:hover {
  color: #f0a500;
  transform: scale(1.1);
}

/* Tooltip */
.download-btn::after {
  content: "Download";
  position: absolute;
  top: 30px;
  right: -25px;
  color: #fff;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  white-space: nowrap;
}

.download-btn:hover::after {
  opacity: 1;
  transform: translateY(0);
}



/* ==========================
   Responsive Design
========================== */
@media (max-width: 992px) {
  .gallery-hero h1 {
    font-size: 2.5rem;
  }
  .gallery-hero p {
    font-size: 1.1rem;
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .gallery-hero h1 {
    font-size: 2rem;
  }
  .gallery-hero p {
    font-size: 1rem;
    max-width: 300px;
  }
  .gallery-filters .btn {
    padding: 7px 18px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .gallery-hero h1 {
    font-size: 1.8rem;
  }
  .gallery-hero p {
    font-size: 0.95rem;
    max-width: 250px;
  }
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  }
}
