/* Gallery Page Specific Styles */

/* Gallery Header */
.gallery-header {
  background: linear-gradient(135deg, #007bf7 0%, #003366 100%);
  color: white;
  padding: 100px 10% 80px;
  text-align: center;
  margin-top: 0;
}

.gallery-hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.gallery-hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Gallery Filters */
.gallery-filters {
  padding: 40px 0;
  background: #f8f9fa;
  text-align: center;
}

.gallery-filters h2 {
  margin-bottom: 25px;
  color: #2c3e50;
  font-size: 28px;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.filter-btn {
  padding: 12px 25px;
  background: white;
  border: 2px solid #007bf7;
  color: #007bf7;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: #007bf7;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 123, 247, 0.3);
}

/* Full Gallery */
.full-gallery {
  padding: 60px 0;
  background: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  height: 280px;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

.gallery-caption h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.gallery-caption p {
  font-size: 14px;
  opacity: 0.9;
}

/* Portrait orientation specific styling */
.gallery-item.portrait {
  grid-row: span 2;
  height: 500px;
}

/* Back to Home */
.back-to-home {
  padding: 40px 0;
  background: #f8f9fa;
  text-align: center;
}

.back-to-home .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 25px;
  background: #007bf7;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.back-to-home .btn:hover {
  background: #0056b3;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 123, 247, 0.3);
}

/* Responsive Design */
@media (max-width: 968px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .gallery-item.portrait {
    height: 450px;
  }
}

@media (max-width: 768px) {
  .gallery-header {
    padding: 80px 5% 60px;
  }
  
  .gallery-hero h1 {
    font-size: 2.2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }
  
  .gallery-item {
    height: 220px;
  }
  
  .gallery-item.portrait {
    height: 400px;
  }
  
  .filter-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .filter-btn {
    width: 200px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-item {
    height: 250px;
  }
  
  .gallery-item.portrait {
    height: 400px;
  }
  
  .gallery-hero h1 {
    font-size: 1.8rem;
  }
  
  .gallery-hero p {
    font-size: 1rem;
  }
}