@keyframes slide-across {
  from { transform: translateX(-10vw); }
  to   { transform: translateX(100vw); }
}

@keyframes slide-back {
  from { transform: translateX(100vw); }
  to   { transform: translateX(-10vw); }
}

.train-divider-top,
.train-divider-bottom {
  position: relative;
  display: flex;
  z-index: 1;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.train-divider-top {
  animation: slide-across 6s linear infinite;
  width: clamp(80px, 10%, 200px);
  height: clamp(40px, 25%, 150px);
  margin-top: -5vh;
  margin-bottom: -5vh;
}

.train-divider-bottom {
  animation: slide-back 4s linear infinite;
  width: clamp(60px, 5%, 120px);
  height: clamp(30px, 10%, 80px);
  margin-top: -3.5vh;
  margin-bottom: 1vh;
  transform: scaleX(-1);
}

/* Trying to respect small screens */
@media (max-width: 480px) {
  .train-divider-top {
    width: 15%;
    height: 15%;
  }
  .train-divider-bottom {
    width: 8%;
    height: 8%;
  }
}

.map-div {
	background-image: url('../assets/backgrounds/concrete_background_dithered-image.png');
	background-size: cover;
	background-position: center;
}

.travel-content {
	background-color: rgba(255, 255, 255, 0.2);
	padding: 0px 0px 5px 5px;
}

.travel-content h1 {
	-webkit-text-fill-color: black;
}

.travel-content p {
	font-size: 20px;
	-webkit-text-fill-color: black;
}

.map-element {
	background-color: rgba(255, 255, 255, 0.2);
	padding: 5px;
	max-width: 45vw;
	font-size: 14px;
	margin: 0 auto;
}

.map-element > div {
	position: relative;
	padding: 0 0 67% 0;
	height: 0;
	overflow: hidden;
}

.map-element iframe {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}


.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 300px));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
	padding-bottom: 50px;
}

.category {
  border-radius: 2px;
  border: 1px solid rgba(0,0,0, 1);
  padding: 15px;
  display: flex;
  flex-direction: column;
}

.category h2 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.5rem;
  padding-bottom: 5px;
}

.stack img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: transform 0.2s;
	object-fit: cover;
}

.stack img:hover {
  transform: scale(1.02);
}

.stack img:not(:first-child) {
  margin-top: calc(-400px + var(--progress, 0) * 610px);
  z-index: 1;
}