.gallery-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 2rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    overflow: hidden;
  }

  .gallery-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
      radial-gradient(circle at 20% 80%, rgba(138, 43, 226, 0.05) 0%, transparent 50%),
      radial-gradient(circle at 80% 20%, rgba(255, 99, 71, 0.05) 0%, transparent 50%),
      radial-gradient(circle at 40% 40%, rgba(70, 130, 180, 0.07) 0%, transparent 50%);
  }

  .particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
  }

  .particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float-particle 20s infinite linear;
  }

  @keyframes float-particle {
    0% { transform: translate(0, 0); }
    25% { transform: translate(50px, 30px); }
    50% { transform: translate(100px, -20px); }
    75% { transform: translate(-30px, -60px); }
    100% { transform: translate(0, 0); }
  }

  .gallery-title {
    color: #333;
    text-align: center;
    margin: 3rem 0 3rem 0;
    font-size: 3.5rem;
    font-weight: 300;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
  }

  body.dark-theme .gallery-title {
    color: #e0e0e0;
    text-shadow: 0 2px 15px rgba(100, 150, 255, 0.3);
  }

  .gallery-list {
    list-style: none;
    padding: 0;
    width: 100%;
    max-width: 800px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .gallery-item {
    background: white;
    border-radius: 16px;
    padding: 1.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #66BB6A, #459E48);
  }

  body.dark-theme .gallery-item {
    background: rgba(30, 30, 30, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }

  body.dark-theme .gallery-item::before {
    background: linear-gradient(90deg, #66BB6A, #459E48);
  }

  .gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.1);
  }

  body.dark-theme .gallery-item:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.2);
  }

  .gallery-item-image {
    width: 100%;
    height: 640px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
  }

  .gallery-item-title {
    color: #333;
    margin: 0 0 0.8rem 0;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.2;
  }

  body.dark-theme .gallery-item-title {
    color: #e0e0e0;
  }

  .gallery-item-description {
    color: #666;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
  }

  body.dark-theme .gallery-item-description {
    color: #aaa;
  }

  .gallery-item-url {
    color: #007bff;
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .gallery-item-url:hover {
    color: #0056b3;
  }

  body.dark-theme .gallery-item-url {
    color: #00aaff;
  }

  body.dark-theme .gallery-item-url:hover {
    color: #007acc;
  }

  .no-items {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    padding: 3rem;
  }

  /* Адаптивность */
  @media (max-width: 768px) {
    .gallery-container {
      padding: 1rem;
    }

    .gallery-title {
      font-size: 2.5rem;
      margin: 2rem 0 2rem 0;
    }

    .gallery-list {
      grid-template-columns: 1fr;
      gap: 1.2rem;
      max-width: 95%;
    }

    .gallery-item {
      padding: 1rem;
    }

    .gallery-item-image {
      height: 180px;
    }

    .gallery-item-title {
      font-size: 1.1rem;
    }

    .gallery-item-description,
    .gallery-item-url {
      font-size: 0.8rem;
    }
  }