/* Fixes for running the archived WordPress markup without its plugins. */
html { scroll-behavior: smooth; }

/* Premium Addons modal backdrop (was injected by its jQuery plugin) */
.premium-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99998;
}
.premium-modal-box-modal { z-index: 99999; }
/* The plugin's JS used to fade in and center the dialog */
.premium-modal-box-modal.show .premium-modal-box-modal-dialog {
  opacity: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 95vw;
  max-height: 90vh;
  animation: tsf-modal-in 0.3s ease-out;
}
.premium-modal-box-modal-dialog .premium-modal-box-modal-content { max-height: 90vh; overflow-y: auto; }
@keyframes tsf-modal-in {
  from { opacity: 0; margin-top: -30px; }
  to { opacity: 1; margin-top: 0; }
}
body.premium-modal-open { overflow: hidden; }

/* Gallery (reconstructed page; the original was never archived) */
.tsf-gallery { max-width: 1140px; margin: 0 auto; padding: 40px 20px 80px; }
.tsf-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.tsf-gallery figure { margin: 0; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(7, 98, 217, 0.15); }
.tsf-gallery img { display: block; width: 100%; height: 220px; object-fit: cover; }
.tsf-gallery figcaption { padding: 14px 18px; font-family: "Palanquin", sans-serif; font-size: 15px; color: #0762d9; }

/* About: Peter Dobbins has no archived photo — show a blue tile with his name */
.elementor-173 .elementor-element-16a3515 > .elementor-widget-wrap { background-color: #0762D9 !important; }
.elementor-173 .elementor-element-f21603d .premium-modal-trigger-btn { color: #FFFFFF !important; }

/* Mobile overflow fixes (desktop-only padding/margins with no mobile override) */
@media (max-width: 767px) {
  .elementor-173 .premium-modal-trigger-btn {
    padding-left: 10px !important;
    padding-right: 10px !important;
    width: 100% !important;
    max-width: 100%;
  }
  .elementor-3236 .elementor-element.elementor-element-82d09a6 { padding: 0 !important; }
  .elementor-2280 .elementor-element.elementor-element-41063f1 > .elementor-widget-container { margin-right: 0 !important; }
}
