body {
  background-color: black;
  font-family: "diatype";
  overflow: hidden;
  overscroll-behavior: none;
}

@font-face {
  font-family: "diatype";
  src: url(/assets/fonts/Diatype/ABCDiatype-Light.woff);
  font-weight: 300; /* Light */
}

@font-face {
  font-family: "diatype";
  src: url(/assets/fonts/Diatype/ABCDiatype-Medium.woff);
  font-weight: 500; /* Medium */
}

@font-face {
  font-family: "diatype";
  src: url(/assets/fonts/Diatype/ABCDiatype-Black.woff);
  font-weight: 900; /* Black/Bold */
}

b,
strong {
  font-weight: 900;
}

a:focus,
a:active,
a:visited {
  outline: none !important;
  box-shadow: none !important;
}

/* Overlay gradient */
#gradient-overlay {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 4;
  opacity: 0.8;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    black 0%,
    transparent 30%,
    transparent 70%,
    black 100%
  );
}

/* Scroll button */
#scroll-next-btn {
  position: fixed;
  right: 1rem;
  bottom: 2rem;
  z-index: 5;
  width: 3rem;
  padding: 1rem 2rem;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  border-radius: 5px;
  transition: transform 0.1s ease-in-out;
}

#scroll-next-btn:hover {
  transform: scale(1.2);
  transition: 0.3s ease-in-out;
}

body:has(.collection-link.active) #scroll-next-btn {
  display: none;
}

/* Landing gallery */
#landingpage-gallery {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 3;
  width: 100vw;
  scroll-behavior: smooth;
  height: 100vh;
  scroll-snap-type: x mandatory;
  background-color: rgb(29, 29, 29);
  overflow: hidden;
  transition: 0.2s ease-in-out;
}

#landingpage-gallery-scroll {
  display: flex;
  width: auto;
  height: 100vh;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#landingpage-gallery-scroll::-webkit-scrollbar {
  display: none;
}

.landingpage-entry {
  width: 100%;
  height: 100vh;
  width: 75vw;
  scroll-snap-align: center;
  position: relative;
  cursor: pointer;
}

.landingpage-entry-title {
  position: absolute;
  left: 20%;
  top: 0%;
  width: 60%;
  height: 100%;
  transform: translateY(-5%);
  text-align: center;
  z-index: 20;
  font-size: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 1s;
  text-transform: uppercase;
  font-family: "diatype";
  font-weight: 900; /* Black/Bold */
  color: red;
  line-height: 100%;
}

.landingpage-entry img {
  height: 100vh;
  width: 75vw !important;
  object-fit: cover;
  width: auto;
  transition: transform 0.3s ease-in-out, padding 0.5s cubic-bezier(1, 0, 0, 1),
    opacity 0.4s ease-in-out;
}

.landingpage-entry:hover .landingpage-entry-title {
  opacity: 1;
}

/* About container */
#about-container {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100%;
  margin-top: 200vh;
  padding-top: 0;
  overflow-y: auto;
  z-index: 10;
  scroll-behavior: smooth;
  transition: margin 0.6s ease-in-out;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#about-container.open {
  margin-top: 0;
}

#about-container::-webkit-scrollbar {
  display: none;
}

#about-container #about-page *:not(.about-record-list) {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
}

#about-container.open
  #about-page
  *:not(.about-record-list, .close-article-page, .close-article-page img) {
  opacity: 1;
  transition-delay: 0.2s;
  transform: translateY(0);
}

/* Article container */
#article-container {
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  max-width: 100vw;
  overflow-y: auto;
  padding-top: 0;
  padding-bottom: 5%;
  border-radius: 0.5rem;
  transform: translateY(100vh) !important;
  transition: transform 0.5s ease-in-out;
  z-index: 11;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#article-container::-webkit-scrollbar {
  display: none;
}

#article-container.show {
  opacity: 1;
  transform: translateY(0vh) !important;
}

#article-background-overlay {
  width: 100vw;
  height: 100vh;
  background-color: black;
  position: fixed;
  opacity: 0.8;
  left: 0;
  top: 0;
  z-index: 10;
  display: none;
}

/* Shared article/about styles */
article,
#about-page {
  width: 100vw;
  background-color: white;
  border-radius: 0.5rem;
  min-height: 90vh;
  margin-top: 2rem;
  overflow: hidden;
  scroll-margin-top: 2rem;
  box-shadow: black 1px 1px 50px;
}

article a,
#about-page a {
  color: black;
}

article * {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
}

article.in-view * {
  opacity: 1;
  transform: translateY(0);
}

/* Unified close button */
#close-about-page,
.close-article-page {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 1.2rem;
  right: 1.5rem;
  width: 2rem;
  height: 2rem;
  background-color: transparent;
  color: black;
  font-weight: bold;
  border-radius: 1rem;
  border: 0.09rem solid black;
  cursor: pointer;
  z-index: 200;
  font-weight: 300;
  font-size: 1rem;
  transition: 0s ease-in-out !important;
}
#close-about-page:hover,
.close-article-page:hover {
  background-color: white;
  border: black;
  filter: invert(1);
  transition: 0s !important;
}

.close-article-page img {
  transition: 0s !important;
  width: 100%;
  height: 100%;
  transform: translateY(0) !important;
}

/* Fullscreen view */
#fullscreen-view {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow-y: auto;
  background-color: black;
  display: none;
  z-index: 200;
  pointer-events: all;
  scroll-snap-type: y mandatory;
}

#fullscreen-view img {
  max-height: 100vh;
  width: 100%;
  height: 100vh;
  object-fit: contain;
  opacity: 0;
  display: block;
  margin-bottom: 1.5rem;
  cursor: zoom-out;
  scroll-snap-align: start;
  transition: 0.6s ease-in-out;
}

/* Load next area */
.loadNext {
  height: 10vh;
  width: 100vw;
}

#scrollToEssayBtn-Mobile {
  opacity: 0;
}

/* Mobile responsiveness */
@media (max-width: 1080px) {
  #scrollToEssayBtn-Mobile {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  #close-about-page,
  .close-article-page {
    top: 3vw;
    right: 3vw;
    width: 6.3vw;
    height: 6.3vw;
    border-radius: 3.4vw;
    font-size: 3.4vw;
  }

  .landingpage-entry-title {
    font-size: 2.6rem;
    opacity: 1;
  }

  /* Scroll button */
  #scroll-next-btn {
    width: 2.2rem;
    padding: 1vw;
    opacity: 1;
  }

  .landingpage-entry,
  .landingpage-entry img {
    width: 100vw !important;
  }
}
