/* Additions for the WordPress-free AIM site. Loaded after the theme CSS. */

/* Phone menu: the old site sent it only to phones (wp_is_mobile). Here it follows the theme's own
   768px breakpoint, so a narrow desktop window and a tablet get the same menu as a phone. */
.aim-mm { display: none; }
@media only screen and (max-width: 768px) {
  .aim-mm { display: block; }
  #site-header .toggle-mobile-menu { display: none !important; }
}

/* Lightbox (replaces Magnific popup). */
.aim-lightbox { position: fixed; inset: 0; z-index: 4000000; background: rgba(11, 11, 11, .9); display: flex; align-items: center; justify-content: center; }
.aim-lightbox[hidden] { display: none; }
.aim-lightbox figure { margin: 0; max-width: calc(100% - 120px); max-height: calc(100% - 80px); text-align: center; }
.aim-lightbox img { max-width: 100%; max-height: calc(100vh - 110px); display: block; margin: 0 auto; box-shadow: 0 0 8px rgba(0, 0, 0, .6); }
.aim-lightbox figcaption { color: #ccc; font-size: 12px; line-height: 18px; padding-top: 8px; text-align: right; }
.aim-lightbox button { position: absolute; background: transparent; border: 0; color: #fff; cursor: pointer; opacity: .75; font-family: Arial, sans-serif; padding: 0 10px; }
.aim-lightbox button:hover, .aim-lightbox button:focus-visible { opacity: 1; }
.aim-lightbox button:focus-visible { outline: 2px solid #fff; }
.aim-lightbox .aim-lb-close { top: 10px; right: 10px; font-size: 40px; line-height: 44px; }
.aim-lightbox .aim-lb-prev, .aim-lightbox .aim-lb-next { top: 50%; transform: translateY(-50%); font-size: 64px; line-height: 90px; }
.aim-lightbox .aim-lb-prev { left: 6px; }
.aim-lightbox .aim-lb-next { right: 6px; }
.aim-lightbox [hidden] { display: none; }
html.aim-lb-lock, html.aim-lb-lock body { overflow: hidden; }
@media (max-width: 600px) { .aim-lightbox figure { max-width: 100%; } }

/* Carousel (replaces Owl carousel 1.x; owl-* class names keep the theme's styling). */
.aim-carousel .owl-wrapper-outer { overflow: hidden; position: relative; width: 100%; }
.aim-carousel .aim-track { display: flex; will-change: transform; }
.aim-carousel .owl-item { flex: 0 0 auto; box-sizing: border-box; }

/* Self-hosted video: the old MediaElement player scaled it to the column; the native player does the same here. */
.wp-video { width: 100% !important; max-width: 100%; }
.wp-video video { display: block; width: 100%; height: auto; background: #000; }

/* Content stays visible without JavaScript (the old site hid "appear" blocks until a script ran). */
html:not(.js_active) .wpb_animate_when_almost_visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .wpb_animate_when_almost_visible { opacity: 1 !important; animation: none !important; }
}

/* "Winter Services" added to the menu (2026-12-05): keep the eight items on one line on narrower desktops. */
@media (max-width: 1240px) {
  #site-navigation #menu-top-menu > li > a { padding-left: 11px; padding-right: 11px; letter-spacing: 1px; }
}
@media (max-width: 1080px) {
  #site-navigation #menu-top-menu > li > a { padding-left: 8px; padding-right: 8px; letter-spacing: .6px; font-size: 15px; }
}
