/* No-JS replacements for the interactive parts of the original React site. */

/* Mobile menu: hidden checkbox toggled by the hamburger <label>. */
.menu-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.mobile-nav,
.menu-icon-close {
  display: none;
}
@media (width < 48rem) {
  .menu-toggle:checked ~ .mobile-nav {
    display: block;
  }
}
/* Desktop has no hamburger: keep the checkbox out of the tab order there. */
@media (width >= 48rem) {
  .menu-toggle {
    display: none;
  }
}
.menu-toggle:checked ~ div .menu-icon-open {
  display: none;
}
.menu-toggle:checked ~ div .menu-icon-close {
  display: block;
}
.menu-label {
  cursor: pointer;
}
.menu-toggle:focus-visible ~ div .menu-label {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Photo lightbox: each overlay is shown when its #foto-N is the URL fragment. */
.lightbox:not(:target) {
  display: none;
}
html:has(.lightbox:target) {
  overflow: hidden;
}
/* Click outside the photo closes it. z-index -1 keeps it under the photo and the
   arrow buttons (the overlay itself is a stacking context via z-50). */
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
}

/* Contact form spam trap: bots fill it, people never see it. */
.hp {
  display: none !important;
}
