/* Общие */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-overlay {
  background-color: rgba(0, 0, 0, .7);
}

.timeline-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 20px;
}

.timeline-item:before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #b91c1c;
}

.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.fade-in {
  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.exhibit-card {
  transition: transform .3s ease;
}

.exhibit-card:hover {
  transform: translateY(-5px);
}

.hero-content {
  min-height: 100vh;
}

.section {
  scroll-margin-top: 80px;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hero-card img {
  object-position: top;
  object-fit: contain !important;
}

/* История — фон */
.history-parallax {
  background: repeating-linear-gradient(0deg,
      #f7f7f2,
      #f7f7f2 40px,
      #f0f0eb 41px);
  background-attachment: fixed;
  background-size: cover;
}


/* Модалки */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.open {
  display: flex;
}

.modal-card {
  max-width: 900px;
  max-height: 80vh;
  overflow: auto;
}

/* Карта */
.map-wrap {
  position: relative;
  width: 100%;
  height: 24rem;
}

.ymaps-2-1-79-map {
  border-radius: 0.5rem;
}

/* --- Не переносить год: немного уменьшаем шрифт на малых экранах --- */
@media (max-width: 420px) {
  .hero-dates .date {
    font-size: 1rem;
  }

  /* было text-xl ~1.25rem */
}

.mobile-break {
  display: inline;
}

/* На мобильных делаем перенос */
@media (max-width: 640px) {
  .mobile-break {
    display: block;
  }
}