/*
Author: Silas
Page: Galerie
*/

.hero {
  position: relative;
  width: 100%;
  height: 60vh;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 50%;
  left: 10%;
  z-index: 2;
  text-align: center;
  color: #ebd8b7;
  transform: translateY(-50%);
}

.hero-overlay .title {
  font-size: 48px;
  font-weight: bold;
  text-decoration: underline;
  margin-bottom: 10px;
}

.hero-overlay .subtitle {
  font-size: 22px;
}

.content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}

.intro-section {
  text-align: center;
  margin: 60px 0 40px;
}

.intro-text h2 {
  font-size: 36px;
  color: #574002;
  margin-bottom: 20px;
}

.intro-text p {
  font-size: 20px;
  color: #8d7c5e;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
}

.filter-section {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.filter-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: 12px 30px;
  border: 2px solid #6b5c35;
  background-color: transparent;
  color: #6b5c35;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

.filter-btn:hover {
  background-color: #6b5c35;
  color: white;
}

.filter-btn.active {
  background-color: #574002;
  color: white;
  border-color: #574002;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  transition: transform 0.3s ease;
}

.gallery-item.hidden {
  display: none;
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(87, 64, 2, 0.9), transparent);
  color: white;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h3 {
  font-size: 20px;
  margin-bottom: 5px;
}

.gallery-overlay p {
  font-size: 14px;
  opacity: 0.9;
}

.custom-section {
  background-color: #ffffff;
  padding: 60px 40px;
  border-radius: 10px;
  margin: 80px 0;
  text-align: center;
}

.custom-content h2 {
  font-size: 36px;
  color: #574002;
  margin-bottom: 20px;
}

.custom-content p {
  font-size: 18px;
  color: #8d7c5e;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.custom-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto 40px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-icon {
  width: 30px;
  height: 30px;
  background-color: #6b5c35;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.feature p {
  font-size: 16px;
  color: #8d7c5e;
  margin: 0;
  text-align: left;
}

.btn-primary {
  display: inline-block;
  text-decoration: none;
  background-color: #6b5c35;
  color: rgb(255, 239, 216);
  padding: 15px 40px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #574002;
  color: rgb(255, 255, 255);
}

.process-preview {
  margin: 80px 0 40px;
  text-align: center;
}

.process-preview h2 {
  font-size: 36px;
  color: #574002;
  margin-bottom: 40px;
}

.process-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.process-image {
  text-align: center;
}

.process-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.process-image p {
  font-size: 18px;
  color: #8d7c5e;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }

  .custom-features {
    grid-template-columns: 1fr;
  }

  .feature {
    justify-content: center;
  }

  .feature p {
    text-align: center;
  }
}

@media (max-width: 600px) {
  .hero {
    height: 40vh;
  }

  .hero-overlay {
    left: 5%;
  }

  .hero-overlay .title {
    font-size: 32px;
  }

  .hero-overlay .subtitle {
    font-size: 16px;
  }

  .intro-text h2 {
    font-size: 28px;
  }

  .intro-text p {
    font-size: 16px;
  }

  .filter-buttons {
    gap: 10px;
  }

  .filter-btn {
    padding: 10px 20px;
    font-size: 14px;
  }

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

  .custom-section {
    padding: 40px 20px;
  }

  .custom-content h2,
  .process-preview h2 {
    font-size: 28px;
  }

  .custom-content p {
    font-size: 16px;
  }

  .process-images {
    grid-template-columns: 1fr;
  }

  .process-image img {
    height: 250px;
  }
}
