/* General Styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #000;
  color: white;
  scroll-behavior: smooth;
}

header {
  padding: 1rem;
  text-align: center;
  background-color: #111;
  font-size: 1.5rem;
}

/* Splash Page Layout */
body.splash-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  text-align: center;
}

.splash-page header {
  background-color: transparent;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.splash-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem auto;
  padding: 1rem 2rem;
  max-width: 90%;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 8px;
}

.splash-nav a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1.2rem;
  border: 1px solid white;
  border-radius: 5px;
  transition: background 0.3s ease;
  white-space: nowrap;
}

.splash-nav a:hover {
  background: white;
  color: black;
}


/* Gallery Styles */
.fullscreen-gallery section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fullscreen-gallery img {
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.fullscreen-gallery img:hover {
  transform: scale(1.02);
}

/* Modal Styles */
.modal {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  background: rgba(0, 0, 0, 0.9);
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10000;
  flex-direction: column;
  padding: 1rem;
}

.modal.hidden {
  display: none;
}

.modal-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  margin-bottom: 1rem;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: white;
  cursor: pointer;
  z-index: 10001;
}

/* Navigation Arrows for Modal */
.nav {
  position: absolute;
  top: 50%;
  font-size: 3rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  user-select: none;
  padding: 1rem;
  transform: translateY(-50%);
  z-index: 10001;
}

.nav.left {
  left: 30px;
}

.nav.right {
  right: 30px;
}

.random-image-container {
  margin-bottom: 2rem;
}

.random-image-container img {
  max-width: 80vw;
  max-height: 60vh;
  border: 2px solid white;
  border-radius: 10px;
  object-fit: contain;
}

header {
  position: relative; /* needed for absolute positioning inside */
  padding: 1rem;
  background-color: #111;
  text-align: center;
  font-size: 1.5rem;
  color: white;
}

/* Your name in top-left inside header */
.site-branding {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 1.1rem;
  font-weight: bold;
  user-select: none;
  color: white;
  cursor: default;
  white-space: nowrap;
  z-index: 10;
}



/* Responsive Adjustments */
@media (max-width: 768px) {
  header {
    font-size: 1.2rem;
  }

  .modal-img {
    max-height: 70vh;
  }

  .close {
    font-size: 2rem;
    top: 15px;
    right: 15px;
  }

  .nav {
    font-size: 2rem;
    padding: 0.3rem;
  }

  .splash-nav a {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
  }
}

@media (max-width: 480px) {
  .modal-img {
    max-width: 95vw;
    max-height: 60vh;
  }
}
