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

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  max-width: 900px;
  margin: auto;
  padding: 20px;
  // background:radial-gradient(892px circle at 50.03% 45.55%, #c6b6a9 0%, #bfa0d9 100%)
}

header {
  margin-bottom: 80px;
}

h1 {
  font-size: 2.4rem;
  font-weight: 500;
}

h2 {
  margin-top: 60px;
  font-weight: 400;
}

nav {
  margin-top: 20px;
}

nav a {
  margin-right: 20px;
  text-decoration: none;
  color: #111;
  opacity: 0.7;
}

nav a:hover {
  opacity: 1;
}

main {
  background: rgba(255,255,255,0.0);
  max-width: 960px;    /* ← increase this to make it wider */
  width: 100%;
  margin: 0 auto; 
  padding: 30px;
  backdrop-filter: blur(4px);
  flex: 1;
}

footer {
  border-top: 1px solid #eee;
  padding-top: 20px;
  font-size: 0.9rem;
  opacity: 0.6;
}

/* Sticky footer layout */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}


/* Beginning of gallery stuff */

/* Gallery grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  padding: 2rem;
}

/* Each item */
.gallery-item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 4px;
}

.gallery-item img {
  width: 100%;
  height: 400px;
  object-fit: contain;
  display: block;
  transition: filter 0.3s ease;
}

/* Blur image on hover */
.gallery-item:hover img {
  filter: blur(4px) brightness(0.7);
}

/* Overlay text */
.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-overlay p {
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  padding: 0.5rem;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  display: flex;              /* ← always flex, not toggled */
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;       /* ← invisible and unclickable when closed */
  transition: opacity 0.3s ease;
  isolation: isolate; 
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;        /* ← clickable when open */
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 4px;
  object-fit: contain;
  transform: scale(0.85);     /* ← starts slightly small */
  transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content img {
  transform: scale(1);        /* ← grows to full size on open */
}

.lightbox-content p {
  color: white;
  margin-top: 1rem;
  font-size: 1rem;
}

.lightbox-close {
  position: absolute;
  top: -2rem;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* End of gallery stuff */

canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
}

.content {
  max-width: 900px;
  margin: auto;
  padding: 40px;
}

.site-header {

  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  z-index: 20;

  display: flex;
  justify-content: center;

  transition: transform 0.35s ease;

}

.nav-center {

  margin-top: 20px;

  padding: 10px 28px;

  display: flex;
  gap: 36px;

  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.65);

  border-radius: 30px;

  border: 1px solid rgba(0,0,0,0.08);

}

.nav-center a {

  text-decoration: none;
  color: #111;

  font-size: 0.95rem;
  letter-spacing: 0.02em;

  opacity: 0.75;
  transition: opacity 0.2s ease;

}

.nav-center a:hover {

  opacity: 1;

}

.site-header.hidden {

  transform: translateY(-120%);

}