/* Common styles for all pages */
body {
  margin: 0;
  padding: 0;
  background: #000;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: #fff;
}

/* Header container */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: #111; /* Slightly lighter than body background for contrast */
  z-index: 150;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px; /* Increased right padding */
  box-sizing: border-box;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}


/* Navigation styles */
nav {
  text-align: right;
  z-index: 100;
  margin-right: 20px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 200;
  letter-spacing: 3px;
  text-transform: lowercase;
  margin-left: 30px;
  font-size: 20px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  display: inline-block;
}

nav a:hover {
  opacity: 1;
}

.active {
  opacity: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}


/* Mobile menu with checkbox hack */
#menu-toggle {
  display: none; /* Hide the checkbox */
}

.menu-button {
  display: none;
  z-index: 200;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  padding: 5px;
  margin-right: 20px;
}

.menu-button span {
  display: block;
  position: relative;
  width: 100%;
  height: 4px;
  background-color: white;
  margin: 8px 0;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 150;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.mobile-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 200;
  letter-spacing: 3px;
  text-transform: lowercase;
  font-size: 24px;
  margin: 15px 0;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.mobile-menu a:hover, .mobile-menu a.active {
  opacity: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* CSS-only hamburger menu toggle using checkbox hack */
#menu-toggle:checked ~ .mobile-menu {
  display: flex;
}

#menu-toggle:checked ~ .menu-button span:nth-child(1) {
  transform: translateY(12px) rotate(45deg);
}

#menu-toggle:checked ~ .menu-button span:nth-child(2) {
  opacity: 0;
}

#menu-toggle:checked ~ .menu-button span:nth-child(3) {
  transform: translateY(-12px) rotate(-45deg);
}

/* Responsive styles */
@media (max-width: 768px) {
  nav {
    display: none;
  }
  
  .menu-button {
    display: block;
  }
  
  .home-link {
    z-index: 200;
  }
}

/* Gallery styles */
.gallery-container {
  max-width: 1200px;
  margin: 120px auto 0; /* Increased top margin to account for fixed header */
  padding: 0 20px;
}

.gallery-grid {
  column-count: 3;
  column-gap: 20px;
}

@media (max-width: 900px) {
  .gallery-grid {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    column-count: 1;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-bottom: 20px;
  break-inside: avoid;
  background-color: rgba(255, 255, 255, 0.05);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.placeholder-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.3);
  font-weight: 200;
  letter-spacing: 2px;
  text-align: center;
  font-size: 14px;
}

.gallery-message {
  grid-column: 1 / -1;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 200;
  letter-spacing: 2px;
  font-size: 16px;
  padding: 40px 20px;
  margin: 20px 0;
}

.home-link {
  color: #fff;
  text-decoration: none;
  font-weight: 200;
  letter-spacing: 3px;
  text-transform: lowercase;
  font-size: 20px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  margin-left: 20px;
}

.home-link:hover {
  opacity: 1;
}

h1 {
  text-align: center;
  font-weight: 200;
  letter-spacing: 5px;
  text-transform: lowercase;
  font-size: 24px;
  opacity: 0.9;
  margin: 100px 0 20px; /* Add top margin to account for fixed header */
}

/* Content container for pages like links */
.content-container {
  max-width: 800px;
  margin: 120px auto 0;
  padding: 0 20px;
}

/* Links list styling */
.links-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
}

.link-item {
  color: #fff;
  text-decoration: none;
  font-weight: 200;
  letter-spacing: 3px;
  text-transform: lowercase;
  font-size: 18px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  padding: 15px 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.05);
  min-width: 200px;
  text-align: center;
}

.link-item:hover {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.4);
  background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 600px) {
  .content-container {
    margin-top: 100px;
    padding: 0 15px;
  }
  
  .link-item {
    font-size: 16px;
    padding: 12px 20px;
    min-width: 150px;
  }
}