.site-about-me {
  padding: 50px 0;
}
.site-about-me .container {
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}
.site-about-me img {
  max-width: 100%;
  height: auto;
}
.site-about-me-content h2 {
  margin-bottom: 20px;
}
.site-about-me-content p {
  line-height: 1.6;
}

.site-project-intro-section {
  text-align: center;
  padding: 80px 0 40px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);

  .intro-box {
    max-width: 720px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  }

  .intro-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #111;
    margin-bottom: 1rem;
  }

  .intro-description {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;

    p {
      margin-bottom: 0;
    }
  }
}

#gallery {
  padding-top: 10px; /* weniger Leerraum oben */
  background: none;
}

#gallery.container,
#gallery .container {
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

#gallery .d-flex {
  margin-top: 1.5rem; /* enger an Intro-Text */
  margin-bottom: 2rem;
}

.grid {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  /* column-count is set by JavaScript based on screen size */
  column-gap: 12px !important; /* Reduced to allow 3 columns with 4 videos */
}

.grid-item {
  break-inside: avoid;
  margin-bottom: 0.625rem; /* 10px Abstand bleibt fix */
  position: relative;
  overflow: hidden; /* Verhindert Überdecken des Rahmens */
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Transition für Verschiebung und Schatten */
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  display: inline-block;
}

/* Hover-Effekte nur auf Desktop-Geräten mit Maus */
@media (hover: hover) and (pointer: fine) {
  .grid-item:hover {
    transform: translateX(5px); /* Subtile Verschiebung nach rechts (wie in GLightbox-Beispielen) – Abstand bleibt erhalten */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); /* Schatten für Tiefe */
    z-index: 10;
  }
  
  .grid-item:hover::after {
    opacity: 1;
  }
  
  .grid-item:hover img {
    transform: scale(1.05); /* Leichter Zoom innerhalb des Containers */
  }
}

.grid-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Zoom nur für das Bild */
  object-fit: contain;
  border-radius: 2px;
}

.grid-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* Overlay für GLightbox-Stil */
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Filter Buttons */
.filter-btn {
  border-radius: 50px !important;
  padding: 12px 30px !important;
  margin: 0 10px 10px 0 !important;
  border: none !important;
  background-color: #ADD6D2 !important;
  color: #fff !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  box-shadow: none !important;
  text-decoration: none !important;
  font-family: 'Montserrat', sans-serif !important;
}

.filter-btn:hover {
  background-color: #9bc4c1 !important;
  color: #fff !important;
  transform: translateY(-2px);
}

.filter-btn.active {
  background-color: #EAA4A4 !important;
  color: #fff !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.filter-btn.active:hover {
  background-color: #d18a8a !important;
  color: #fff !important;
  border: none !important;
  outline: none !important;
}

/* Responsive Design – JavaScript controls column-count */
/* CSS only handles spacing and other properties */
@media (max-width: 768px) {
  .grid-item {
    margin-bottom: 0.625rem;
  }
  
  .filter-btn {
    padding: 10px 20px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .grid-item {
    margin-bottom: 0.625rem;
  }
  
  .filter-btn {
    padding: 8px 16px;
    font-size: 12px;
    margin: 4px;
  }
}
