* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: bold;
  text-transform: lowercase;
}

html, body {
  height: 100%;
  background: #fff;
  overflow-x: hidden;
}

/* Enter screen */
#enter-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  z-index: 20;
  transition: opacity 1s ease;
}
#enter-btn {
  font-size: 1.5rem;
  cursor: pointer;
}

/* Intro logo */
#logo-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  opacity: 0;
  z-index: 15;
  transition: opacity 1.5s ease;
  pointer-events: none;
}
#logo-screen img {
  display: block;
  max-width: 300px;
}

/* Persistent header logo */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding: 1rem 0;
  background: transparent;
  z-index: 5;
  opacity: 0;
  transition: opacity 1s ease;
}
#site-header img {
  display: block;
  max-width: 160px;
}

/* Gallery */
#gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 190px 0 60px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}
.gallery-item {
  max-width: 90%;
  cursor: pointer;
}

/* Detail view */
.detail-view {
  position: fixed;
  inset: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 130px 1rem 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
  z-index: 8;
}
.back-btn {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}
.detail-photos {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  width: 100%;
  max-width: 600px;
  max-height: 78vh;
}
.detail-photo {
  scroll-snap-align: center;
  max-height: 78vh;
  width: 100%;
  object-fit: contain;
  flex-shrink: 0;
}
.detail-dots {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ccc;
}
.dot.active {
  background: #000;
}
.detail-description {
  margin-top: 1rem;
  text-align: center;
  line-height: 1.6;
}

/* Visible / hidden states (JS always sets exactly one) */
.visible {
  opacity: 1 !important;
  pointer-events: auto !important;
}
.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}
