/* Reset and base styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #fff;
  color: #222;
  line-height: 1.6;
  /* Blueprint grid background using SVG data URI */
  background-image: url('data:image/svg+xml;utf8,<svg width="80" height="80" viewBox="0 0 80 80" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="0" y="0" width="80" height="80" fill="white"/><path d="M 80 0 L 0 0 0 80" stroke="%23b0b0b0" stroke-width="1"/><path d="M 40 0 L 40 80" stroke="%23e0e0e0" stroke-width="1"/><path d="M 0 40 L 80 40" stroke="%23e0e0e0" stroke-width="1"/></svg>');
  background-size: 80px 80px;
}

header.hero-section {
  position: relative;
  width: 100%;
  /* height: 100vh; /* disabled for OpenSauce slow wifi */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}
.hero-overlay {
  position: static;
  width: 40%;
  background: none;
  z-index: auto;
  text-align: center;
  margin-top: 2em;
  margin-bottom: 1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero-overlay h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 0.5em;
}
.hero-overlay p {
  margin-top: 0.5em;
  font-size: 1.5rem;
}
model-viewer {
  z-index: 1;
  width: 100%;
  height: 100%;
  max-height: 60vh;
}

main {
  width: 90%;
  max-width: 1100px;
  margin: 2em auto;
}

section {
  margin-bottom: 3em;
}

.video-section h2,
.gallery-section h2,
.email-section h2 {
  margin-bottom: 1em;
  font-size: 2rem;
  text-align: center;
}

.video-section iframe {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5em;
  margin-top: 1em;
}
.gallery-grid img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  object-fit: cover;
  aspect-ratio: 4/3;
}

.email-section form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
  max-width: 400px;
  margin: 0 auto;
}
.email-section input[type="email"] {
  padding: 0.8em 1em;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
  background: #232526;
  color: #f5f5f5;
}
.email-section button {
  padding: 0.8em 2em;
  border: none;
  border-radius: 6px;
  background: #00bfae;
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}
.email-section button:hover {
  background: #009e8e;
}
.form-message {
  font-size: 0.95em;
  color: #00bfae;
  min-height: 1.2em;
}

footer {
  text-align: center;
  padding: 2em 0 1em 0;
  color: #aaa;
  font-size: 1em;
}

/* Update hero-overlay text color for contrast */
.hero-overlay h1, .hero-overlay p {
  color: #1a237e;
}

/* Lightbox modal styles */
.lightbox-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30, 34, 50, 0.85);
  backdrop-filter: blur(2px);
}
.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.4);
  background: #fff;
  display: block;
  margin: 0 auto;
}
.lightbox-close {
  position: absolute;
  top: 2.5vh;
  right: 4vw;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  z-index: 1001;
  user-select: none;
  transition: color 0.2s;
}
.lightbox-close:hover {
  color: #00bfae;
}

.lightbox-caption {
  margin-top: 1.2em;
  color: #1a237e;
  font-size: 1.15rem;
  text-align: center;
  max-width: 80vw;
  text-shadow: none;
  font-family: inherit;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  padding: 1em 2em;
  margin-bottom: 1em;
  display: block;
}

@media (max-width: 700px) {
  .hero-overlay h1 { font-size: 2rem; }
  .hero-overlay p { font-size: 1.1rem; }
  main { width: 98%; }
  .gallery-grid { gap: 0.7em; }
} 