body {
  margin: 0;
  padding: 15px;
  padding-top: 0px;
  background-color: #f0f0f0;
}

h1 {
font-family: neue-haas-grotesk-display, sans-serif;
font-style: normal;
font-weight:400;
font-size: 22pt;
}

h2 {
  font-family: neue-haas-grotesk-display, sans-serif;
  font-style: normal;
  font-weight: 60;
  font-size: 15pt;
}

nav h4 {
  margin: 0 0 0 auto;
}

nav h2 {
  flex-basis: 100%;
}

/* nav {
  position: fixed;
  top: -10px;
  left: 10px;
  z-index: 1000;
  max-width: 900px;
} */

h3 {
  font-family: neue-haas-grotesk-display, sans-serif;
  font-style: normal;
  font-weight: 60;
  font-size: 22pt;
  line-height: 1.3;
  margin-bottom: 0px;
}

h4 {
  font-family: neue-haas-grotesk-display, sans-serif;
  font-style: normal;
  font-weight: 60;
  font-size: 12pt;
}

.page-info {
  position: absolute;
  top: 20px;
  right: 20px;
  margin: 0;
  z-index: 1000;
}

h4 a {
  text-decoration: none;
  color: inherit;
}

a[href^="http://"],
a[href^="https://"] {
  color: inherit;
  text-decoration: none;
}

a[href^="http://"]:hover,
a[href^="https://"]:hover,
a[href^="http://"]:active,
a[href^="https://"]:active,
a[href^="http://"]:focus,
a[href^="https://"]:focus,
a[href^="http://"]:visited,
a[href^="https://"]:visited {
  color: inherit;
  text-decoration: none;
}

p {
  font-family: neue-haas-grotesk-display, sans-serif;
  font-style: normal;
  font-weight: 60;
  font-size: clamp(24px, 8vw, 70pt);
  text-align: center;
}

p1 {
  font-family: neue-haas-grotesk-display, sans-serif;
  font-style: italic;
  font-weight: 60;
  font-size: 10pt;
  text-align: center;
}

/* .tintal-video {
  display: block;
  width: min(90vw, 1005px);
  height: auto;
  margin: 24px auto 0;
  border: 0;
  outline: none;
  background: transparent;
} */

.visual-word {
  font-family: neue-haas-grotesk-display, sans-serif;
  font-style: normal;
  font-weight: 60;
}

.visual-word sup {
  font-size: 0.7em;
  vertical-align: super;
}

.everywhere {
  font-family: neue-haas-grotesk-display, sans-serif;
  font-style: normal;
  font-weight: 60;
}

.everywhere sub {
  font-size: 0.7em;
  vertical-align: sub;
}

.hidden-text {
  color: black;
  opacity: 0.012;
}

body:hover .hidden-text {
  opacity: 1;
}

.word {
  opacity: 0.012;
  transition: opacity 0.2s ease, color 0.2s ease, text-shadow 0.2s ease;
  cursor: pointer;
}

body:hover .word:hover {
  opacity: 1;
  color: #000000;
}

@media (max-width: 768px) {
  body:hover .hidden-text,
  body:hover .word,
  body:hover .word:hover,
  .hidden-text,
  .word {
    opacity: 1;
    color: #000000;
  }

  body,
  body *,
  h1,
  h2,
  h3,
  h4,
  p,
  a,
  .hidden-text,
  .hidden-text a,
  .word,
  .word:hover {
    color: #000000 !important;
    text-shadow: none !important;
    transition: none !important;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 0.5fr));
  gap: 7px;
  width: 100%;
  align-items: start;
}

.gallery img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
  cursor: zoom-out;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Remove underline for links inside the hidden text and prevent hover underline */
.hidden-text a {
  text-decoration: none;
  color: inherit;
}

.hidden-text a:hover,
.hidden-text a:active,
.hidden-text a:focus {
  text-decoration: none;
  color: inherit;
}

@media (max-width: 768px) {
  body,
  body *,
  h1,
  h2,
  h3,
  h4,
  p,
  a,
  .hidden-text,
  .hidden-text a,
  .word,
  .word:hover {
    color: #000000;
  }

  body {
    padding: 10px;
    padding-top: 0;
  }

  .top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .page-info {
    position: static;
    margin: 0;
    text-align: right;
  }

  .gallery {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  p {
    font-size: clamp(20px, 7vw, 40px);
    line-height: 1.1;
  }

  h1,
  h3 {
    font-size: 18pt;
    line-height: 1.2;
  }

  h2 {
    font-size: 13pt;
  }
}
