/* ABC Gravity Font Declaration */
@font-face {
    font-family: "ABC Gravity";
    src: url("../fonts/ABCGravityVariable-Trial.woff2") format("woff2");
    font-weight: 100 900;
    font-stretch: 50% 200%;
    font-style: normal;
    font-display: swap;
}


.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.overlay.hidden {
  display: none !important;
}

.overlay h1 {
  color: rgb(0, 0, 0);
  font-family: "ABC Gravity", "Arial Black", sans-serif;
  font-weight: 600;
  font-stretch: 70%;
  font-size: 6rem;
  text-transform: uppercase;
  text-align: left;
  margin-top: 1rem;
  position: fixed;
  z-index: 10001;
  display: flex;
  align-items: start;
  justify-content: start;
  text-shadow: rgb(255, 255, 255) 0 0 2rem ;
  transform: translateY(4vh);
}

.overlay::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 20vh;
  background: linear-gradient(to bottom, white 0%, white 50%, transparent 100%);
  z-index: 10000;
  pointer-events: none;
}

.overlay-description {
  position: absolute;
  bottom: 10vh; /* 1rem distance from bottom of viewport */
  left: 50%;
  transform: translateX(-50%);
  width: 50vw;
}

.overlay p {
  font-family: "Suisse Intl", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
  margin-bottom: 1rem;
  padding: 0.1rem ;
  line-height: 1.1;
  background-color: white;

}

.overlay-images {
  position: absolute;
  top: 0; 
  width: 80vw;
  display: block;
  text-align: center;
  top: 90vh;
}

.overlay-images.visible {
  opacity: 1;
}

.overlay img {
  display: block;
  width: 80vw;
  height: auto;
  margin: 4rem auto;
  max-height: 100vh;
  object-fit: contain;
}

.overlay video {
  display: block;
  width: 80vw;
  max-height: 100vh;
  margin: 4rem auto;
  max-height: 100vh;
  object-fit: contain;
  /* Remove any default video controls */
  outline: none;
  border: none;
  /* Ensure smooth playback */
  -webkit-playsinline: true;
  -moz-playsinline: true;
  /* Force loop behavior */
  pointer-events: none;
  user-select: none;
}

/* 320px, 360px, 480px, 768px, 1024px, 1400px, 1920px */
@media (max-width: 1920px) {}

@media (max-width: 1400px) {}

@media (max-width: 1024px) {
  .overlay h1 {
    font-size: 5rem;
    margin: 0.5rem;
    padding: 0.5rem;
  }
}


@media (max-width: 790px) {
  .overlay h1 {
    font-size: 4rem;
    margin: 0.5rem;
    padding: 0.5rem;
  }
  
  .overlay-description {
    bottom: 5vh;
    width: 100vw;
  }
  
  .overlay p {
    font-size: 0.75rem;
    padding: 0.5rem;
  }

  .overlay-images {
    display: block;
    margin: 0 auto;
    width: 90vw;
    text-align: center;
  }
  
  .overlay img {
    width: 90vw;
    max-height: 100vh;
    object-fit: contain;
    margin: 2rem auto;
    display: block;
  }
  
  .overlay video {
    width: 90vw;
    max-height: 100vh;
    object-fit: contain;
    margin: 2rem auto;
    display: block;
  }
}

@media (max-width: 480px) {
  .overlay h1 {
    font-size: 3.75rem;
    margin: 0.5rem;
    padding: 0.5rem;
  }
}

@media (max-width: 360px) {
  .overlay h1 {
    font-size: 3.5rem;
    margin: 0.5rem;
    padding: 0.5rem;
  }
}

@media (max-width: 320px) {
  .overlay h1 {
    font-size: 3rem;
    margin: 0.5rem;
    padding: 0.5rem;
  }
}










.overlay:not(.hidden) {
  animation: overlayFadeIn 0.3s ease forwards;
}

@keyframes overlayFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}