/*Infinite scrolling text adapted from Winterwind Inc. https://youtu.be/WFzquzZic2o*/
.scroll {
  white-space: nowrap;
  position: relative;
  z-index: 1;
}
.scroll div {
  display: flex;
  gap: 2em;
}
.scroll h1 {
  color: white;
}
.r-to-l {
  animation: r-to-l 15s infinite linear;
}
@keyframes r-to-l {
  from {
    transform: translateX(0%);
  }
  to {
    transform: translateX(-50%);
  }
}
.l-to-r {
  animation: l-to-r 15s infinite linear;
}
@keyframes l-to-r {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0%);
  }
}
/*End of code adaptation*/
/* Slideshow slide styles adapted from Codegrid https://youtu.be/WyRkeIM0MgM?list=PL8bX3D8aBEpnS3nVvSHiPqxX_HvBYCTcL */
.slider {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  user-select: none;
}
.slide-track {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
}
.slide {
  flex-shrink: 0;
  width: 350px;
  height: 500px;
  margin: 0 10px;
  position: relative;
  top: 60%;
  transform: translateY(-60%);
  overflow: visible;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.slide-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
  flex: 1;
}
.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  user-select: none;
}
.slide-overlay {
  position: absolute;
  bottom: -2.5rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.1s ease;
  opacity: 0;
}
.slide:hover .slide-overlay {
  opacity: calc(1 - var(--slider-moving, 1));
}
.album-title {
  font-size: 2rem;
  font-family: "Instrument Serif";
  color: white;
}
.album-arrow {
  width: 24px;
  height: 24px;
}
.album-arrow svg {
  stroke: #ffffff;
  stroke-width: 2;
}
/* End of code adaptation */

@media (max-width: 1024px) {
  .slide-overlay {
    opacity: 1;
    pointer-events: none;
  }
  .slide:hover .slide-overlay {
    opacity: 1;
  }
  .album-title {
    font-size: 1.4rem;
  }
}
/* Generated using ChatGPT to account for portrait orientation */
@media (max-width: 800px) and (orientation: portrait) {
  .slider {
    top: 10vh;
    height: 70vh;
  }
}

.masonry-gallery {
  column-count: 5;
  column-gap: 10px;
  margin-top: 45vh;
  overflow: hidden;
}
.masonry-gallery img {
  width: 100%;
  margin-bottom: 10px;
  break-inside: avoid;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.masonry-gallery img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 1024px) { 
  .masonry-gallery {
    column-count: 4;
    margin-top: 30vh;
  }
  .albums h1 {
    font-size: 8rem;
  }
  .albums h2 {
    font-size: 5rem;
    top: 20vh;
  }
}
@media (max-width: 600px) {
  .masonry-gallery {
    column-count: 3;
  }
  .albums h1 {
    font-size: 7rem;
    top: 7vh;
  }
  .albums h2 {
    font-size: 3rem;
  }
  .lightbox-content img {
    max-width: 95%;
    max-height: 60vh;
  }
}
/* Lightbox CSS debugged using ChatGPT */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    cursor: pointer;
}
.lightbox-overlay.active {
    display: flex;
}
/*.lightbox-close {*/
/*    position: absolute;*/
/*    top: 40px;*/
/*    right: 20px;*/
/*    color: #fff;*/
/*    font-size: 2em;*/
/*    cursor: pointer;*/
/*    background: none;*/
/*    border: none;*/
/*}*/
/*.lightbox-nav {*/
/*    position: absolute;*/
/*    top: 50%;*/
/*    transform: translateY(-50%);*/
/*    color: #fff;*/
/*    font-size: 2em;*/
/*    cursor: pointer;*/
/*    background: none;*/
/*    border: none;*/
/*    padding: 0.5em;*/
/*}*/
/*.lightbox-nav.next {*/
/*    right: 60px;*/
/*}*/
/*.lightbox-nav.prev {*/
/*    left: 60px;*/
/*}*/
.lightbox-caption {
    color: #fff;
    text-align: center;
    padding: 1em;
    font-size: 1em;
    font-family: "Plus Jakarta Sans";
}
.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    object-fit: contain;
}

/*Code adapted from Coding2Go-https://youtu.be/U8smiWQ8Seg and CSSnippets-https://youtu.be/HmaQwuKUYTc*/
.container {
  width: 90vw;
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
}
.bottom-margin {
  margin-bottom: 32px;
}
.timeline-component {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  position: relative;
}
.timeline-item {
  grid-column-gap: 0;
  grid-row-gap: 0;
  grid-template-rows: auto;
  grid-template-columns: 1fr 180px 1fr;
  grid-auto-columns: 1fr;
  padding-top: 80px;
  padding-bottom: 80px;
  display: grid;
  position: relative;
}
.timeline-left {
  text-align: right;
  justify-content: flex-end;
  align-items: stretch;
}
.timeline-centre {
  justify-content: center;
  display: flex;
}
.timeline-date {
  color: white;
  letter-spacing: -0.03em;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.2;
  position: sticky;
  top: 50vh;
}
.timeline-txt {
  color: white;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.3;
}
.timeline-circle {
  background-color: #efca7b;
  border-radius: 100%;
  width: 15px;
  min-width: 15px;
  max-width: 15px;
  height: 15px;
  min-height: 15px;
  max-height: 15px;
  position: sticky;
  top: 50vh;
  box-shadow: 0 0 0 8px #181000;
}
.timeline-progress {
  z-index: 0;
  background-color: #414141;
  width: 3px;
  height: 100%;
  position: absolute;
}
.timeline-progress-bar {
  z-index: 1;
  background: #a2e7e9;
  background: -webkit-linear-gradient(
    to bottom,
    #a2e7e9,
    #50bb9b,
    #2c6655
  );
  background: linear-gradient(
    to bottom,
    #a2e7e9,
    #50bb9b,
    #2c6655
  );
  width: 3px;
  height: 50vh;
  position: fixed;
  inset: 0 auto 50vh;
}
.section-timeline {
  /*z-index: -3;*/
  background-color: #201300;
  position: relative;
}
.section-timeline h2 {
  color: #50bb9b;
}
.overlay-fade-top {
  background-image: linear-gradient(#201300, #0a0a0a00);
  height: 80px;
  position: absolute;
  inset: 0% 0% auto;
}
.overlay-fade-bottom {
  background-image: linear-gradient(to top, #201300, #0a0a0a00);
  height: 80px;
  position: absolute;
  inset: auto 0% 0%;
}
@media screen and (max-width: 767px) {
  .prj-page {
    padding: 30% 0 0 0;
  }
  .timeline-item {
    grid-template-columns: 64px 1fr;
    width: 100%;
  }
  .timeline-left {
    text-align: left;
    grid-area: 1 / 2 / 2 / 3;
  }
  .timeline-centre {
    justify-content: flex-start;
    grid-area: 1 / 1 / 3 / 2;
  }
  .timeline-right {
    grid-area: span 1 / span 1 / span 1 / span 1;
  }
  .timeline-date {
    margin-bottom: 24px;
    font-size: 36px;
  }
  .timeline-txt {
    font-size: 20px;
  }
  .timeline-progress {
    left: 6px;
  }
}
/*End of code adaptation*/