body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  background-color: #000;
}

header {
  margin-top: 3em;
  text-align: center;
  color: white;
}

header h1 {
  font-size: 2em;
  font-weight: 900;
}

#container3D canvas {
  width: 100vw !important;
  height: 100vh !important;
  position: absolute;
  top: 0;
  left: 0;
}



/* ===========================
   BUTTONS (left stack)
=========================== */
.corner-stack {
  position: fixed;
  top: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.corner-btn {
  width: 80px;
  height: auto;
  cursor: pointer;
  user-select: none;
  display: block;
  transition: transform 0.2s;
}

.corner-btn:hover {
  transform: scale(1.1);
}

/* ===========================
   MODAL (backdrop + dialog)
=========================== */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2000;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}

.modal-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: min(92vw, 800px);
  max-height: 90vh;
  background: #111;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.modal-close {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 28px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* ===========================
   MODAL CONTENT (text/images)
=========================== */
#modal-content {
  color: #fff;                 /* default text colour = white */
  font-family: sans-serif;
  line-height: 1.5;
  text-align: center;
}

#modal-content img {
  max-width: 100%;
  max-height: 75vh;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

/* Links inside modal */
#modal-content a {
  color: #fff;                 /* links white */
  text-decoration: none;
}
#modal-content a:hover {
  text-decoration: underline;
}

/* Titles */
#modal-content h2,
.modal-title {
  margin-top: 0;
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
  color: #ffcc66;              /* headings yellow */
}

/* Paragraphs */
#modal-content p {
  margin: 0.6em 0;
  font-size: 1rem;
  color: #fff;
}

/* ===========================
   PROJECT LAYOUT
=========================== */
.project-grid {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
  text-align: center;
}

.project-grid figure {
  margin: 0;
  max-width: 180px;
}

.project-grid img {
  max-width: 100%;
  border-radius: 8px;
}

/* captions white */
.project-grid figcaption {
  margin-top: 0.5em;
  font-size: 1rem;
  color: #fff;
}

/* ===========================
   CONTACT BOX
=========================== */
.contact-box {
  margin-top: 1.2rem;
  text-align: center;
  color: #fff;    /* ensure contact text is white */
}
