/* Fixes for the archive pages after removing the WordPress plugin scripts. */

/* PDF agendas now open in the browser's own viewer */
.pdf-frame { width: 100% !important; height: 1100px; max-width: 100%; border: 0; display: block; }
@media (max-width: 767px) { .pdf-frame { height: 75vh; } }
.pdf-link { display: inline-block; padding: 10px 22px; background: #0b7d3e; color: #fff; border-radius: 4px; text-decoration: none; }


/* Gallery: show all thumbnails, no pagination */
.bwg-thumbnails { flex-wrap: wrap; }

/* Contact form helpers */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-msg { width: 100%; margin-top: 12px; font-size: 14px; line-height: 1.4; }
.form-msg.success { color: #0b7d3e; }
.form-msg.error { color: #c0392b; }
form[data-ajax-form] button[disabled] { opacity: .6; cursor: wait; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 100000; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.88); }
.lb.open { display: flex; }
.lb img { max-width: 90vw; max-height: 88vh; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lb button { position: absolute; background: none; border: 0; color: #fff; font-size: 46px; line-height: 1; cursor: pointer; padding: 10px 18px; opacity: .85; }
.lb button:hover { opacity: 1; }
.lb-close { top: 10px; right: 14px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb.single .lb-prev, .lb.single .lb-next { display: none; }

[data-link] { cursor: pointer; }

/* Elementor background videos (sized by JS before; CSS now) */
.elementor-background-video-container { opacity: 1 !important; }
.elementor-background-video-hosted { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; }

/* Photo Gallery thumbnails were revealed by JS */
.bwg-thumbnails, .bwg-thumbnails .bwg-item, .bwg-thumbnails .bwg-item * { visibility: visible !important; }
[id^="ajax_loading_"], [id^="loading_div_"], .bwg_spider_ajax_loading { display: none !important; }
.bwg-standard-thumbnails .bwg-item { width: 20%; }
.bwg-standard-thumbnails .bwg-item1 { padding-top: 56.2% !important; }
.bwg-standard-thumbnails .bwg-item2 img { width: 100%; height: 100% !important; max-width: 100% !important; object-fit: cover; }
@media (max-width: 900px) { .bwg-standard-thumbnails .bwg-item { width: 33.333%; } }
@media (max-width: 560px) { .bwg-standard-thumbnails .bwg-item { width: 50%; } }

/* Premium shape-divider placeholders: WordPress JS moved these (hidden) into their section;
   left at page level they only widen the page on tablets. They are invisible on the live site. */
.elementor > .premium-shape-divider__shape-container,
.e-con-inner > .premium-shape-divider__shape-container { display: none !important; }
