/* Gallery Styles */

/* Hero Section */
.gallery-hero {
    background: linear-gradient(135deg, var(--primary-background, #f8f9fa) 0%, var(--secondary-background, #e9ecef) 100%);
    padding: 4rem 2rem;
    margin-bottom: 4rem;
    border-radius: 12px;
    text-align: center;
  }
  
  .gallery-hero-content {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .gallery-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary, #0d6efd), var(--secondary, #6610f2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .gallery-hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--muted-color, #868e96);
    max-width: 600px;
    margin: 0 auto;
  }
  
  /* Gallery Grid */
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  .gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--card-background-color, #fff);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    aspect-ratio: 4/3;
    display: block;
    text-decoration: none;
  }
  
  .gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  }
  
  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
  }
  
  .gallery-item:hover img {
    transform: scale(1.1);
  }
  
  /* Overlay */
  .gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.9), rgba(102, 16, 242, 0.9));
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 1.5rem;
    text-align: center;
  }
  
  .gallery-item:hover .gallery-overlay {
    opacity: 1;
  }
  
  .overlay-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
  }
  
  .gallery-item:hover .overlay-icon {
    transform: scale(1.1) rotate(90deg);
  }
  
  .overlay-icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
    stroke-width: 2;
    fill: none;
  }
  
  .overlay-text {
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
  
  .overlay-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.5rem;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .gallery-hero {
      padding: 3rem 1rem;
      margin-bottom: 2rem;
    }
  
    .gallery-grid {
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 1rem;
      padding: 0 0.5rem;
    }
  
    .overlay-icon {
      width: 50px;
      height: 50px;
    }
  
    .overlay-icon svg {
      width: 24px;
      height: 24px;
    }
  
    .overlay-text {
      font-size: 1rem;
    }
  
    .overlay-subtitle {
      font-size: 0.85rem;
    }
  }
  
  @media (max-width: 480px) {
    .gallery-grid {
      grid-template-columns: 1fr;
    }
  }
  
  /* GLightbox Custom Styling - Größeres Close-Icon */
  .gclose,
  .gnext,
  .gprev {
    width: 50px !important;
    height: 50px !important;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(10px);
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
  }
  
  .gclose:hover,
  .gnext:hover,
  .gprev:hover {
    background: rgba(0, 0, 0, 0.8) !important;
    transform: scale(1.1) !important;
  }
  
  .gclose svg,
  .gnext svg,
  .gprev svg {
    width: 24px !important;
    height: 24px !important;
    stroke-width: 3 !important;
  }
  
  .gclose {
    top: 20px !important;
    right: 20px !important;
  }
  
  /* Navigation Buttons */
  .gnext,
  .gprev {
    top: 50% !important;
    transform: translateY(-50%) !important;
  }
  
  .gnext {
    right: 20px !important;
  }
  
  .gprev {
    left: 20px !important;
  }
  
  /* Mobile Anpassungen für GLightbox */
  @media (max-width: 768px) {
    .gclose {
      width: 45px !important;
      height: 45px !important;
      top: 15px !important;
      right: 15px !important;
    }
  
    .gclose svg {
      width: 22px !important;
      height: 22px !important;
    }
  
    .gnext,
    .gprev {
      width: 45px !important;
      height: 45px !important;
    }
  
    .gnext svg,
    .gprev svg {
      width: 20px !important;
      height: 20px !important;
    }
  }