/* Mobile navbar fix 2026-10-23: let the fixed 102px nav grow when the menu opens, give the open menu the nav's black background, and keep the toggle button compact. Desktop (>=992px) unchanged. */
@media (max-width: 991.98px) {
  #mainNav { height: auto !important; min-height: 102px; max-height: 100vh; overflow-y: auto; }
  #mainNav > .container { min-height: 74px; }
  #mainNav .navbar-toggler { height: 44px; width: 52px; padding: 0; line-height: 1; font-size: 1.4rem; align-self: center;
    background: transparent !important; color: #fff !important; border: 2px solid #fff; display: flex; align-items: center; justify-content: center; }
  #mainNav .navbar-toggler, #mainNav .navbar-toggler i { min-height: 0 !important; }
  #mainNav .navbar-toggler i { display: block; height: auto !important; font-size: 22px; line-height: 1 !important; margin: 0; }
  #mainNav .navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(255,255,255,.35); }
  #mainNav .navbar-collapse { background: rgb(0,0,0); margin: 0 -12px; padding: 0 12px 12px; }
  #mainNav .navbar-nav .nav-link { color: #fff !important; text-align: center; padding: .85rem 0 !important; font-size: 1.05rem; letter-spacing: .05em;
    border-top: 1px solid rgba(255,255,255,.15); border-radius: 0 !important; }
  #mainNav .navbar-nav .nav-link:hover, #mainNav .navbar-nav .nav-link:focus { background: rgba(255,255,255,.08); }
}

/* Keep section headings visible below the fixed nav when jumping from menu links. */
section[id] { scroll-margin-top: 102px; }

/* Coverups & Refreshes gallery: uniform 4:5 tiles, whole before/after composite visible (no cropping). */
#coverups .coverup-thumb { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: contain; background: #fff; }

/* Desktop nav: keep the longer "Coverups & Refreshes" label on one line. */
@media (min-width: 992px) {
  #mainNav .navbar-nav .nav-link { white-space: nowrap; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  #mainNav .navbar-nav .nav-link { padding-left: .4rem !important; padding-right: .4rem !important; }
  #mainNav .navbar-nav .nav-item { margin-left: 0 !important; margin-right: 0 !important; }
}
