/* MMM additions on top of the carried-over Weebly "Paris" theme CSS.
   Everything here is invisible to a sighted mouse user unless noted. */

/* The page wrapper must not become a box — theme selectors expect the
   Weebly structure directly under <body>. */
.mmm-page { display: contents; }

/* Skip link: off-screen until focused. */
.mmm-skip-link { position: absolute; left: -9999px; top: 0; z-index: 10000; background: #fff; color: #000; padding: 10px 16px; font: 700 14px/1.2 Montserrat, sans-serif; }
.mmm-skip-link:focus { left: 8px; top: 8px; outline: 2px solid #ff7201; }

/* Visible keyboard focus (the theme removes outlines). Theme orange #ff7201. */
a:focus-visible, button:focus-visible, .hamburger:focus-visible { outline: 2px solid #ff7201; outline-offset: 2px; }

/* Gallery lightbox — replaces Weebly's fancybox (visible only when opened). */
.mmm-lightbox { position: fixed; inset: 0; z-index: 10001; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.85); }
.mmm-lightbox[hidden] { display: none; }
.mmm-lightbox__frame { background: #fff; padding: 10px; max-width: calc(100vw - 120px); max-height: calc(100vh - 80px); box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); }
.mmm-lightbox__frame img { display: block; max-width: calc(100vw - 140px); max-height: calc(100vh - 130px); width: auto; height: auto; }
.mmm-lightbox__count { font: 400 13px/30px "Roboto Slab", serif; color: #333; text-align: center; height: 30px; }
.mmm-lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font: 700 48px/1 Montserrat, sans-serif; padding: 8px 16px; }
.mmm-lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.mmm-lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }
.mmm-lightbox__close { right: 8px; top: 8px; font-size: 40px !important; }
.mmm-lightbox button:hover { color: #ff7201; }
body.mmm-lightbox-open { overflow: hidden; }
@media (max-width: 600px) {
  .mmm-lightbox__frame { max-width: calc(100vw - 20px); padding: 5px; }
  .mmm-lightbox__frame img { max-width: calc(100vw - 30px); }
  .mmm-lightbox__prev, .mmm-lightbox__next { top: auto; bottom: 8px; transform: none; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* <picture> wrappers added by tools/extract-pages.mjs must not form a box. */
picture.contents { display: contents; }
