/* Main Stylesheet */

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease;
}

#preloader-percent {
  font-family: 'Neue Haas Unica W1G', sans-serif;
  font-size: 16px;
  line-height: 1;
  color: #000;
}

body {
  font-family: 'Neue Haas Unica W1G', sans-serif;
  line-height: 1.2;
  font-size: 10px;
  margin: 0;
  padding: 0;
}

a {
    text-decoration: none;
    color: black;
}

a:hover {   
    text-decoration: underline;
}
a:visited {
    color: black;
}
p {
  margin: 0;
  padding: 0;
}

video {
  width: 100%;
}

.bigger {
  font-size: 24px;
}

.header-image {
  width: 100%;
  display: block;
  margin: 16px 0 0 0;
}

.header-container {
  margin: 16px 4px;
}

.header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 4px;
  margin-top: 2rem;
  margin-bottom: 4rem;
}

.header div {
  padding-right: 32px;
}

.header div span {
  display: block;
  margin-bottom: 0;
  line-height: 1.2;
}

.header div .section-title {
  display: block;
  margin-bottom: 0;
  margin-top: 0;
}

.header div .section-spacing {
  margin-top: 1.2em;
}

.header div .section-title.section-spacing {
  margin-top: 1.2em;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact > div {
  display: flex;
  flex-direction: column;
}

.contact a {
  display: block;
  padding: 0;
  break-inside: avoid;
}

img {
  width: 100%;
}

.gallery {
  column-count: 5;
  column-gap: 4px;
  margin: 0;
  padding: 4px;
  margin-bottom: 120px;
}

.gallery img,
.gallery video {
  width: 100%;
  margin-bottom: 2px;
}

.block {
  margin-bottom: 12px;
  break-inside: avoid;
}

.block p {
  margin: 0;
  padding: 0;
  font-size: 10px;
  color: #666666;
  line-height: 1.4;
}

.bottom-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 0 4px 4px 4px;
  margin-top: 0;
  width: 100%;
  box-sizing: border-box;
}

.bottom-buttons a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 640px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-size: 64px;
  font-family: 'Neue Haas Unica W1G', sans-serif;
  border-radius: 120px;
  transition: background 0.3s ease;
  text-align: center;
  box-sizing: border-box;
}

.bottom-buttons a:hover {
  background: #fc0;
  color: black;
  text-decoration: none;
}

/* Responsive Design */
@media (min-width: 1490px) {
  .header-image {
      width: 100vw;
      margin-left: calc(50% - 50vw);
      margin-right: calc(50% - 50vw);
  }

  .header {
      padding: 0 32px;
  }

  body {
      font-size: 12px;
  }
}

@media (max-width: 768px) {
  .header-container {
      margin: 10px;
  }

  .header {
      grid-template-columns: 1fr;
      row-gap: 1rem;
      font-size: 14px;
  }

  .header div {
      padding-left: 0;
      padding-right: 0;
      margin: 0;
  }

  .contact {
      grid-template-columns: 1fr 1fr;
      gap: 1rem;
  }

  .contact a {
    margin-top: 12px;
  }

  .gallery {
      column-count: 2;
      padding: 0;
  }

  .bottom-buttons {
      grid-template-columns: 1fr;
      padding: 0 4px 4px 4px;
      gap: 4px;
  }

  .bottom-buttons a {
      height: 320px;
      font-size: 32px;
      border-radius: 64px;
  }
}
