/* Hand-written refinements of the public pages, loaded after the vendored
   Tailwind build (static/src/output.css), which stays unchanged. */

/* Navigation: hover and current-page states. */
#navigation a,
#navigation .gallery-group > button,
#language_selector a,
#mobile_navigation a[hreflang] {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}
#navigation a:hover,
#navigation .gallery-group:hover > button,
#navigation .gallery-group:focus-within > button,
#language_selector a:hover,
#language_selector a[aria-current="page"],
#mobile_navigation a[hreflang][aria-current="page"] {
  text-decoration-line: underline;
}

/* Desktop gallery dropdown: one line per gallery, text aligned with its
   group label, roomier rows. */
#navigation .galleries {
  margin-left: -1rem;
  padding: 0.5rem 1rem;
  white-space: nowrap;
  line-height: 2;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.08);
}

/* On a cover photo the dropdown is a dark, translucent panel that belongs
   to the photo instead of a white box on top of it. */
.cover-header #navigation .galleries {
  background-color: rgb(20 20 20 / 0.5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  box-shadow: none;
}

/* Cover header: keep white text legible on light and busy photos. */
.cover-header {
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.35), 0 0 16px rgb(0 0 0 / 0.3);
}
.cover-header #mobile_navigation,
.cover-header #brand.text-black {
  text-shadow: none;
}

/* Cover intro text: smaller and off the screen edges below desktop, so the
   photo still shows. */
@media (max-width: 1023px) {
  .cover-intro {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    margin-top: 6rem;
    margin-bottom: 6rem;
    font-size: 1.75rem;
    line-height: 1.5;
  }
}

/* Mobile menu: hidden gallery panels must not widen the page, language
   links get finger-sized targets, and the menu icon reads on white. */
#mobile_navigation {
  overflow: hidden;
}
#mobile_navigation a[hreflang] {
  padding: 0.5rem 0.75rem;
}
#nav-icon span {
  background: #444;
}
#nav-icon.light-nav span {
  background: #fff;
}
#nav-icon.light-nav.open span {
  background: #000;
}
#nav-icon::after {
  content: "";
  position: absolute;
  inset: -8px -4px;
}

/* Photos show a quiet placeholder while they load. */
#content img.aspect-landscape,
#content img.aspect-portrait,
#content a[data-gallery] img {
  background-color: #f3f4f6;
}
