/* Stopgap front-end layer — clean replacements for the interactive bits that
   cannot work on static hosting (Elementor lightbox, dead search).
   Self-contained; no dependencies. See assets/stopgap.js. */

.sg-lightbox {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 12, 16, 0.88);
  padding: 24px;
  animation: sg-fade 0.18s ease-out;
}
@keyframes sg-fade { from { opacity: 0; } to { opacity: 1; } }

.sg-lightbox-inner {
  position: relative;
  max-width: min(960px, 92vw);
  width: 100%;
}
.sg-lightbox-inner img {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}
.sg-lightbox-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}
.sg-lightbox-video iframe {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.sg-lightbox-caption {
  color: #d7dbe0;
  font-size: 14px;
  text-align: center;
  margin-top: 12px;
  line-height: 1.4;
}
.sg-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: #1a1a1a;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sg-lightbox-close:hover { background: #f0f2f5; }
.sg-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #1a1a1a;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.sg-lightbox-nav:hover { background: #fff; }
.sg-lightbox-prev { left: -56px; }
.sg-lightbox-next { right: -56px; }
@media (max-width: 1100px) {
  .sg-lightbox-prev { left: 8px; }
  .sg-lightbox-next { right: 8px; }
}
body.sg-lightbox-open { overflow: hidden; }

/* Complete blog archive (replaces the randomized WP posts widget) */
.sg-archive { max-width: 860px; margin: 0 auto; padding: 8px 0 40px; }
.sg-archive-count { color: #7a828a; font-size: 14px; margin: 0 0 28px; }
.sg-year { margin-bottom: 36px; }
.sg-year-title { font-size: 26px; color: #54595f; border-bottom: 3px solid #00c4ba;
  display: inline-block; padding-bottom: 4px; margin: 0 0 14px; }
.sg-archive-list { list-style: none; margin: 0; padding: 0; }
.sg-archive-list li { padding: 10px 0; border-bottom: 1px solid #e8ebee;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.sg-post-link { color: #333a40; font-weight: 600; text-decoration: none; font-size: 16px; }
.sg-post-link:hover { color: #00a99d; text-decoration: underline; }
.sg-meta { color: #8a9199; font-size: 13px; white-space: nowrap; }
.sg-cat { color: #00a99d; }
@media (max-width: 600px) {
  .sg-archive-list li { flex-direction: column; gap: 2px; }
}
