<style>

.gallery-container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
  animation: fadeInDown 0.8s ease-out;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  color: #e74c3c;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: inline-block;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: #0f1a3c;
  letter-spacing: -1px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-bottom: 60px;
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 1;
  cursor: pointer;
  animation: fadeInUp 0.8s ease-out backwards;
  width: 308px;
  height: 231px;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }

.gallery-item img {
  width: 100%;
  height: 100%!important;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.gallery-item:hover img {
  transform: scale(1.08) rotate(1deg);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 26, 60, 0.7) 0%, rgba(231, 76, 60, 0.5) 100%);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  transition: opacity 0.5s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.overlay-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: white;
  font-weight: 600;
}

/* Placeholder images with gradient backgrounds */
.placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
  font-weight: 500;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.placeholder:nth-child(1) {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.placeholder:nth-child(2) {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.placeholder:nth-child(3) {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.placeholder:nth-child(4) {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}



/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .section-header {
    margin-bottom: 48px;
  }

  .section-title {
    font-size: 36px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 40px 16px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section-title {
    font-size: 28px;
  }

  .view-all-btn {
    padding: 14px 32px;
    font-size: 14px;
  }
}
</style>
