/* ==================== Gallery Section ==================== */
.gallery {
  background-color: #f9f9f9;
  padding: 2rem;
  text-align: center;
}

.gallery .section-header {
  margin-bottom: 2rem;
}

.gallery .section-title {
  font-size: 2rem;
  position: relative;
  display: inline-block;
}

.gallery .section-title::after {
  content: "";
  display: block;
  width: 60%;
  height: 4px;
  background: #b2186d; /* accent color */
  margin: 0.5rem auto;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

.gallery-container {
  margin-bottom: 4rem;
  display: grid;
}

.gallery-heading {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1rem;
  border-left: 4px solid #b2186d;
  padding-left: 0.75rem;
  text-align: left;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  justify-content: center;
  aspect-ratio: 3:2;
}

/* Image Styles */
.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease, box-shadow 0.3s ease;
  object-fit: cover;
}

/* Hover Effects */
.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

/* Fade-in Animation */
.gallery-grid img {
  opacity: 0;
  transform: translateY(15px);
  animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Media Queries */
@media (max-width: 480px) {
  .gallery {
  padding: 2rem;
}

.gallery .section-header {
  margin-bottom: 1rem;
}

.gallery .section-title {
  font-size: 1.75rem;
}

.gallery .section-title::after {
  content: "";
  display: block;
  width: 60%;
  height: 4px;
  background: #b2186d; /* accent color */
  margin: 0.5rem auto;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.2;
}

.gallery-container {
  margin-bottom: 4rem;
}

.gallery-heading {
  font-size: 1.5rem;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Image Styles */
.gallery-grid img {
  width: 100%;
  height: auto;
}
}


/* Dell Optiplex / Desktop */
@media (min-width: 1217px) and (max-width: 1920px) {
  .gallery {
  padding: 3rem;
}

.gallery .section-header {
  margin-bottom: 1rem;
}

.gallery .section-title {
  font-size: 1.75rem;
}

.gallery .section-title::after {
  content: "";
  display: block;
  width: 60%;
  height: 4px;
  background: #b2186d; /* accent color */
  margin: 0.5rem auto;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.2;
}

.gallery-container {
  margin-bottom: 4rem;
}

.gallery-heading {
  font-size: 1.5rem;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

/* Image Styles */
.gallery-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 4:3;
}
}
