/* sitekit mirror.css: support styles for mirrored WordPress pages (tools/mirror.py + assets/js/mirror.js). */
.mx-pre { opacity: 0; }
html:not(.mx-js) .elementor-invisible { visibility: visible !important; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.mx-status { margin: 10px 0 0; font-size: 14px; }
.mx-hide { display: none !important; }
.mx-show { display: block !important; }

/* Divi mobile menu (cloned by mirror.js) */
.mobile_nav.mx-open > .et_mobile_menu { display: block !important; }
/* BeTheme responsive menu */
#Top_bar #menu.mx-open { display: block !important; }

/* slider arrows added by mirror.js */
.et_pb_slider, .et_pb_gallery_slider { position: relative; }
.mx-slider-nav { position: absolute; inset: 50% 0 auto 0; display: flex; justify-content: space-between; pointer-events: none; z-index: 20; transform: translateY(-50%); }
.mx-slider-nav button { pointer-events: auto; background: rgba(0, 0, 0, .35); color: #fff; border: 0; width: 44px; height: 44px; font-size: 30px; line-height: 40px; cursor: pointer; }
.et_pb_gallery_slider .et_pb_gallery_item:not(.et-pb-active-slide) { display: none; }

/* Swiper carousels without their JS: scroll horizontally instead */
.swiper:not(.swiper-initialized) .swiper-wrapper, .swiper-container:not(.swiper-container-initialized) .swiper-wrapper { display: flex; overflow-x: auto; gap: 10px; scroll-snap-type: x mandatory; }
.swiper:not(.swiper-initialized) .swiper-slide, .swiper-container:not(.swiper-container-initialized) .swiper-slide { flex: 0 0 auto; scroll-snap-align: start; }

/* lightbox */
.mx-lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.mx-lightbox::backdrop { background: rgba(0, 0, 0, .85); }
.mx-lightbox img { display: block; max-width: 92vw; max-height: 88vh; width: auto; height: auto; margin: 0 auto; }
.mx-lightbox button { position: fixed; background: rgba(0, 0, 0, .5); color: #fff; border: 0; font-size: 34px; width: 48px; height: 48px; cursor: pointer; }
.mx-lb-close { top: 12px; right: 12px; }
.mx-lb-prev { left: 12px; top: 50%; }
.mx-lb-next { right: 12px; top: 50%; }

@media (prefers-reduced-motion: reduce) { .mx-pre { opacity: 1; } }

/* Divi waypoint modules stay visible without JS (mirror.js adds .et-animated when they scroll into view) */
html:not(.mx-js) .et-waypoint { opacity: 1 !important; }
html:not(.mx-js) .et_animated { opacity: 1 !important; }

/* Elementor posts grid: equal thumbnails (Elementor Pro adds these classes with JS; mirror.js does the same) */
.elementor-posts-container.elementor-has-item-ratio .elementor-post__thumbnail { position: relative; overflow: hidden; }
.elementor-posts-container.elementor-has-item-ratio .elementor-post__thumbnail img { height: auto; position: absolute; top: calc(50% + 1px); left: calc(50% + 1px); transform: scale(1.01) translate(-50%, -50%); }
.elementor-posts-container.elementor-has-item-ratio .elementor-post__thumbnail.elementor-fit-height img { height: 100%; width: auto; }
/* Elementor video cover: show the pointer over the play button */
.elementor-custom-embed-image-overlay { cursor: pointer; }
/* Elementor YouTube player built by mirror.py: fill the 16:9 wrapper like Elementor's own player */
.elementor-widget-video .elementor-wrapper iframe { background-color: #000; border: none; display: flex; height: 100%; width: 100%; }

/* language switcher added by tools/i18n.py (EN | 中文) at the end of the top menu */
#top-menu li.mx-lang, .et_mobile_menu li.mx-lang { display: inline-flex; align-items: baseline; gap: 6px; }
li.mx-lang a { display: inline !important; padding-left: 0 !important; padding-right: 0 !important; opacity: .65; }
li.mx-lang a.mx-lang-on { opacity: 1; font-weight: 600; }
li.mx-lang a:hover { opacity: 1; }
li.mx-lang .mx-lang-sep { opacity: .4; }
.et_mobile_menu li.mx-lang { padding: 10px 5%; }
/* desktop: switcher sits small in the header's top-right corner, outside the menu row, so the menu never wraps */
@media (min-width: 981px) {
  #main-header .container { position: relative; }
  #top-menu li.mx-lang { position: absolute; right: 0; top: 6px; padding: 0 !important; font-size: 12px; line-height: 1; }
  #top-menu li.mx-lang a { padding-bottom: 0 !important; font-size: 12px; }
  .et-fixed-header #top-menu li.mx-lang { top: 3px; }
}
