.page-memories {
  background-color: #f4efe6;
  color: #2b2825;
  padding: 4rem 1.5rem 8rem 1.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.memories-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.memories-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: center;
}

.memories-slider {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 1rem 1.5rem 3rem 1.5rem;
  scroll-snap-type: x mandatory;
  width: 100%;
  justify-content: flex-start;
  scroll-padding: 0 1.5rem;
  -webkit-overflow-scrolling: touch;
}

/* Центрирование карточек на широких экранах */
@media (min-width: 1100px) {
  .memories-slider {
    justify-content: center;
  }
}

.memory-card {
  flex: 0 0 340px;
  scroll-snap-align: center;
  background: #ffffff;
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04);
  transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s ease;
}

.memory-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.memory-tag {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Дизайнерская рамка для фотографий */
.memory-frame {
  height: 230px;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  position: relative;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.05);
}

/* С стиль для реального изображения */
.memory-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Арт-заглушки в стиле цифрового журнала (пока нет фото) */
.photo-art {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-size: cover;
}

.art-1 {
  background: linear-gradient(135deg, #e3d5ca 0%, #d5bdaf 50%, #d4a373 100%);
}

.art-2 {
  background: linear-gradient(135deg, #ccd5ae 0%, #e9edc9 50%, #fefae0 100%);
}

.art-3 {
  background: linear-gradient(135deg, #f4a261 0%, #e76f51 50%, #2a9d8f 100%);
}

.photo-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #2b2825;
}

.memory-detail {
  display: block;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-muted);
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
  padding-top: 1rem;
}