/* Additions layered on top of the original Buildy stylesheet.
   The scroll marquee (.photo-grid-track) and the hover colour reveal
   (.color-reveal) come from index-Dzc1AL6K.css untouched — this file only
   supplies what the React runtime used to render. */

/* --------------------------------------------- subtitle under the name */
/* Cormorant Garamond is narrow with hairline strokes, which is what makes
   these three lines hard to read over a photograph. Libre Baskerville is a
   wide, sturdy serif: every letter is physically broader, with heavier stems,
   at the same optical weight. */
@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap");

.subtitle-title {
  font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0.045em;
  line-height: 1.55;
}

/* ---------------------------------------------------------- mobile nav */

/* Home page: flat link row becomes a hamburger below 768px. */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.25s ease;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 1px;
  background: #fff;
  transition: background 0.25s ease;
}

.nav-toggle span {
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

.nav-toggle:hover {
  border-color: #00e5cc;
}

.nav-toggle:hover span,
.nav-toggle:hover span::before,
.nav-toggle:hover span::after,
body.nav-open .nav-toggle span,
body.nav-open .nav-toggle span::before,
body.nav-open .nav-toggle span::after {
  background: #00e5cc;
}

@media (max-width: 767px) {
  /* Keep the button on a solid header bar so it never sits on a photograph. */
  nav.nav-backdrop-soft {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: #0a0a0a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }

  .nav-toggle {
    display: inline-flex;
    position: static;
    align-self: flex-end;
  }

  .home-nav-links {
    display: none !important;
  }

  body.nav-open .home-nav-links {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 1.15rem;
    padding: 1.25rem 0 0.35rem;
    text-align: center;
  }

  body.nav-open nav.nav-backdrop-soft {
    background: #0a0a0a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  }
}
@media (max-width: 767px) {
  body.nav-open header nav {
    display: flex !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 1.15rem;
    padding: 1.5rem 1.5rem 1.75rem;
    background: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    letter-spacing: 0.25em;
    font-size: 0.75rem;
    z-index: 60;
  }
}

/* ----------------------------------------------------------- lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  background: rgba(0, 0, 0, 0.92);
  animation: lightboxFadeIn 0.25s ease-out;
  cursor: zoom-out;
}

.lightbox figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  cursor: default;
  animation: lightboxImageIn 0.3s ease-out;
}

.lightbox img {
  max-width: 92vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: #000;
}

.lightbox figcaption {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: #00e5cc;
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.lightbox__close:hover {
  border-color: #00e5cc;
  color: #00e5cc;
}

/* ------------------------------------------------------- form feedback */
.form-status {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
  margin-top: 0.75rem;
}

.form-status--ok {
  color: #00e5cc;
}

.form-status--error {
  color: #f0a0a0;
}

button[disabled] {
  opacity: 0.6;
  cursor: progress;
}
