@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap');

/* Reset and base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  height: 100%;
  font-family: sans-serif;
  background-color: #000000;
  scroll-behavior: auto;
}

/* Add this rule to reset scroll position */
html {
  scroll-restoration: manual;
}

/* Parallax Section */
.parallax-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.parallax-image {
  background-image: url('../img/splash.jpg');
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 130%;
  /* Extra height for movement */
  /*
  object-fit: cover;
  transform: translateY(15%) scale(1.3); /* Scale up by 130% */
  */ z-index: -1;
}

.parallax-title {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  display: flex;
  flex-direction: column;
  padding-bottom: 2rem;
  align-items: center;
  color: white;
  font-size: 32px;
  background: linear-gradient(to top, black, transparent);
}

.parallax-title h1 {
  font-family: 'Figtree', sans-serif;
  font-weight: 340000;
  font-size: 3rem;
  letter-spacing: 2px;
  color: rgb(255, 255, 255);
  white-space: nowrap;
}

.parallax-title h2 {
  font-family: 'Figtree', sans-serif;
  padding: 1rem;
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.1rem;
  color: rgb(255, 255, 255);
  white-space: nowrap;
}

#container {
  margin: 0 auto;
  max-width: 1200px;
  background-color: rgb(0, 0, 0);
}

#grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-gap: 2px;
  grid-auto-flow: row;
  line-height: 0px;
}

#grid .image {
  position: relative;
  overflow: hidden;
}

#grid img {
  /* Just in case there are inline attributes */
  width: 100% !important;
  height: auto !important;
  transition: transform 0.2s ease;
  filter: grayscale(100%) brightness(0.5);
}

#grid img:hover {
  transform: scale(1.1);
  filter: grayscale(0%);
}

#grid img.feature-thumb {
  filter: grayscale(0%);
}

#grid a {
  -webkit-transition: all .5s cubic-bezier(.23, 1, .32, 1);
  transition: all .5s cubic-bezier(.23, 1, .32, 1)
}

#grid .description {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  position: absolute;
  color: white;
  bottom: 0px;
  right: 0px;
  margin: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

#grid .feature-r6m {
  position: relative;
  grid-column: 1 / span 2;
  grid-row: 2 / span 2;
  overflow: hidden;
}

#grid .feature-overdrive {
  position: relative;
  grid-column: 4 / span 2;
  grid-row: 1 / span 2;
  overflow: hidden;
}

#grid .feature-gnola {
  position: relative;
  grid-column: 3 / span 2;
  grid-row: 3 / span 2;
  overflow: hidden;
}

#grid .feature-lpp {
  position: relative;
  grid-column: 3 / span 2;
  grid-row: 7 / span 2;
  overflow: hidden;
}

#grid .feature-skyland {
  position: relative;
  grid-column: 2 / span 2;
  grid-row: 5 / span 2;
  overflow: hidden;
}

footer {
  margin: 1rem;
  height: 4rem;
  text-align: center;
  color: gray;
}

@media (max-width: 800px) {

  /*
    #grid {
        grid-template-columns:  repeat(3, 1fr);
    } */
  #grid .description {
    font-size: 0.8rem;
    margin: 0.5rem;
  }

}

#grid .description {
  font-size: 0.5rem;
  margin: 0.5rem;
}

}