
 .red-footer {
  background: linear-gradient(135deg, #d32f2f, #b71c1c);
  color: white;
  padding: 40px 0 0;
  font-family: 'Arial', sans-serif;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0 20px;
}

.footer-logo span {
  font-size: 24px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 5px 10px;
  border-radius: 4px;
}

.footer-links a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  color: white;
  font-size: 20px;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  padding: 20px;
  margin-top: 30px;
  background-color: rgba(0, 0, 0, 0.1);
  font-size: 14px;
}

/* Для иконок Font Awesome */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

/* Адаптивность */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}
/* Контейнер сетки */
        .gallery {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        
        /* Заголовок галереи */
        .gallery-title {
            text-align: center;
            margin-bottom: 30px;
            font-size: 2rem;
            color: #333;
        }
        
        /* Адаптивная сетка */
        .grid-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 20px;
        }
        
        /* Стили для элементов сетки */
        .grid-item {
            position: relative;
            overflow: hidden;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            background-color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 150px; /* Минимальная высота */
        }
        
        /* Стили для изображений */
        .grid-item img {
            width: auto;
            height: 350px;
            display: block;
            transition: transform 0.3s ease;
        }
        
        /* Эффект при наведении */
        .grid-item:hover img {
            transform: scale(1.03);
        }
        
        /* Подпись к изображению */
        .image-caption {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(255, 0, 0, 0.7);
            color: white;
            padding: 12px;
            text-align: center;
font-weight: bold;
font-size: 1rem;
            transform: translateY(100%);
            transition: transform 0.3s ease;
        }
        
        .grid-item:hover .image-caption {
            transform: translateY(0);
        }
        
        /* Дополнительные классы для разных пропорций */
        .grid-item.portrait {
            grid-row: span 2;
        }
        
        .grid-item.landscape {
            grid-column: span 2;
        }
        
        /* Адаптивность */
        @media (max-width: 768px) {
            .grid-container {
                grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            }
            
            .grid-item.landscape {
                grid-column: span 1;
            }
        }
        
        @media (max-width: 480px) {
            .grid-container {
                grid-template-columns: 1fr;
            }
        }