* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;

  background: #ffffff;
  color: #000000;

  font-family: Arial, sans-serif;
}

body {
  cursor: none;
}

/* =========================
   INTRO OVERLAY
========================= */

.intro-overlay {
  position: fixed;
  inset: 0;

  background: rgba(255,255,255,0.9);

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 10000;

  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}

.intro-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-overlay-inner {
  width: min(400px, 80vw);

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 24px;
}

.intro-overlay p {
  margin: 0;

  text-align: center;

  color: blue;

  font-size: 14px;
  line-height: 1.5;
}

/* Progress Bar */

.progress-bar {
  width: 100%;
  height: 2px;

  background: rgba(0,0,255,0.1);

  overflow: hidden;

  position: relative;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;

  background: blue;

  transition: width 0.3s ease;
}

/* =========================
   HEADER
========================= */

.site-header {
  display: flex;
  justify-content: center;

  padding: 50px 50px 30px;
}

.site-header p {
  width: min(70vw, 900px);

  margin: 0;

  text-align: center;

  font-size: 18px;
  line-height: 1.25;
}

/* =========================
   PAGE WRAP
========================= */

.page-wrap {
  padding: 0 50px;
}

/* =========================
   GALLERY
========================= */

.gallery {
  column-count: 5;
  column-gap: 10px;
}

.item {
  break-inside: avoid;
  margin-bottom: 10px;
}

.item img,
.item video {
  width: 100%;
  height: auto;

  display: block;

  background: transparent;
}

/* =========================
   FOOTER
========================= */

.site-footer {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 10px;
  padding: 40px 20px 50px;
}

.site-footer a {
  color: #000000;
  text-decoration: none;

  transition: opacity 0.2s ease;
}

.site-footer a:hover {
  opacity: 0.5;
}

/* =========================
   LIGHTBOX
========================= */

.lightbox {
  position: fixed;
  inset: 0;

  background: rgba(255,255,255,0.9);

  display: none;
  align-items: center;
  justify-content: center;

  padding: 30px;

  z-index: 9998;
}

.lightbox.active {
  display: flex;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 70vw;
  max-height: 70vh;

  width: auto;
  height: auto;
}

/* =========================
   CUSTOM CURSOR
========================= */

.cursor {
  position: fixed;
  top: 0;
  left: 0;

  width: 42px;
  height: 42px;

  pointer-events: none;

  z-index: 9999;

  background: url('./cursor.gif') center / contain no-repeat;

  transform: translate(-9999px, -9999px);

  will-change: transform;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1500px) {

  .gallery {
    column-count: 4;
  }
}

@media (max-width: 1100px) {

  .gallery {
    column-count: 3;
  }
}

@media (max-width: 800px) {

  body {
    cursor: auto;
  }

  .cursor {
    display: none;
  }

  .site-header {
    padding: 30px 20px 20px;
  }

  .site-header p {
    width: 100%;
    font-size: 16px;
  }

  .page-wrap {
    padding: 0 20px;
  }

  .gallery {
    column-count: 2;
  }
}

@media (max-width: 560px) {

  .gallery {
    column-count: 1;
  }
}