.journey-title {
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 4rem);
  text-shadow: 0 3px 8px rgba(0,0,0,0.6);
  background: rgba(0,0,0,0.35);
  padding: .5rem 1rem;
  border-radius: 8px;
  z-index: 10;
  justify-self: center;
  align-self: center;
  position: absolute;  
}

/*Gallery Styles*/

.gallery-wrap {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: white;
}

.gallery {
  position: relative;
  width: 100%;
  height: 100%;
  flex: none;
}

.gallery__item {
  background-position: 50% 50%;
  background-size: cover;
  flex: none;
  position: relative;
}

.gallery__item img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.gallery--bento {
  display: grid;
  gap: 1vh;
  grid-template-columns: repeat(3, 32.5vw);
  grid-template-rows: repeat(4, 23vh);
  justify-content: center;
  align-content: center;
}

.gallery--final.gallery--bento {
  grid-template-columns: repeat(3, 100vw);
  grid-template-rows: repeat(4, 49.5vh);
  gap: 1vh;
}

.gallery--bento .gallery__item:nth-child(1) {
  grid-area: 1 / 1 / 3 / 2;
}

.gallery--bento .gallery__item:nth-child(2) {
  grid-area: 1 / 2 / 2 / 3;
}

.gallery--bento .gallery__item:nth-child(3) {
  grid-area: 2 / 2 / 4 / 3;
}

.gallery--bento .gallery__item:nth-child(4) {
  grid-area: 1 / 3 / 3 / 3;
}

.gallery--bento .gallery__item:nth-child(5) {
  grid-area: 3 / 1 / 3 / 2;
}

.gallery--bento .gallery__item:nth-child(6) {
  grid-area: 3 / 3 / 5 / 4;
}

.gallery--bento .gallery__item:nth-child(7) {
  grid-area: 4 / 1 / 5 / 2;
}

.gallery--bento .gallery__item:nth-child(8) {
  grid-area: 4 / 2 / 5 / 3;
}

.section {
  padding: 2rem 5rem;
}



/*Styles for the Horizontal Scroller Section*/

#horizontal .content {
  flex: 0 0 100vw;
  height: 100vh;
  box-sizing: border-box;
}

#horizontal {
    overflow-x: hidden;
    position: relative;
    height: 100vh;
}

#horizontal .content:nth-child(1) {
    background-color: #008CC7;
}


#horizontal .content:nth-child(2) {
    background-color: #008CC7;
}


#horizontal .content:nth-child(3) {
    background-color: #008CC7;
}

/*Content Flex*/

.left__2024 {
    flex: 1;
    display: flex;
    justify-content: center;
}

.right__2024 {
    font-weight: 500;
    font-size: 1.2rem;
    flex: 1;
    text-align: left;
    /*padding: 0 2rem;*/
}

.left__2025 {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.right__2025 {
  font-weight: 500;
  font-size: 1.2rem;
  flex: 1;
  text-align: left;
  padding: 0 2rem;
}

@media (max-width: 767px) {
  .left__2025 {
    align-items: center;
    align-self: center;
    justify-content: center;
  }
  .right__2025 {
    font-size: 0.95rem;
    padding: 0;
    text-align: left;
  }
}

.journey__photo {
  max-width: 100%;
  height: auto;
  max-height: 400px;
  border-radius: 8px;
}

.right__2025 img {
  max-width: 200px;
}

.horizontal__2024 {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.horizontal__2025 {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

@media (max-width: 767px) {
  .horizontal__2024 {
    flex-direction: column;
    padding: 1.5rem 1rem;
  }
  .horizontal__2025 {
    flex-direction: column;
    padding: 1.5rem 1rem;
  }

  .journey__photo {
    max-height: 200px;
  }
}


@media (max-width: 400px) {
  .content {
    overflow-y: hidden;
  }
  
  .horizontal__2024 {
    flex-direction: column;
    padding: 1.5rem 1rem;
  }
  .horizontal__2025 {
    flex-direction: column;
    padding: 1.5rem 1rem;
  }
  .horizontal__2026 {
    flex-direction: column;
    padding: 1.5rem 1rem;
  }

  .right__2025 {
    font-size: 0.8rem ;
  }

  .journey__photo {
    max-height: 200px;
  }
}

/* Socials Link */
#socials:link,
#socials:visited {
    background-color: #1398c9;
    color: white;
    padding: 14px 25px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border-radius: 12px;
    transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease, filter .18s ease;
    transform-origin: center;
}

#socials:hover,
#socials:active,
#socials:focus-visible {
    background-color: #37c8e5;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.18);
    filter: brightness(1.06) saturate(1.05);
}

/*Image Fade Ins*/

.horizontal__2026 {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.left__2026 {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 767px) {
  .left__2026 {
    align-items: center;
    align-self: center;
    justify-content: center;
  }
}

.right__2026 {
  font-weight: 500;
  font-size: 1.2rem;
  flex: 1;
  text-align: left;
  padding: 0 2rem;
}

@media (max-width: 400px){
  .right__2026 {
    font-size: 0.8rem ;
  }
}

.image-container {
  position: relative;
  overflow: hidden;
  height: fit-content;
  display: flex;
  background-image: url(media/2026__images/img__fade__in.png);
  background-size: contain;
  background-repeat: no-repeat;
}

.image1 {
  /*position: absolute;*/
  width: 100%;
  object-fit: cover;
  max-width: 400px;
  height: auto;
  max-height: 400px;
  border-radius: 8px;
  opacity: 1;

}

/*Horizontal Tracking Styles*/

#horizontal .horizontal-track {
  display: flex;
  flex-wrap: nowrap;      /* prevent wrapping */
  will-change: transform; /* smoother transforms */
  height: 100%;
}

/*DEBUGGING -  Stability Fix*/


.left__2025, .right__2025, .left__2026, .right__2026 {
  float: none;
}
