/* =========================
   Embedded images: centre + readable max width + shadow
   ========================= */

.entry-content img,
.entry-content figure img,
.entry-content .wp-block-image img,
.wp-block-image img {
  display: block;
  margin: 18px auto;
  max-width: min(100%, 720px);
  height: auto;

  background: #fff;
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.16);
}

@media (min-width: 1200px) {
  .entry-content img,
  .entry-content figure img,
  .entry-content .wp-block-image img,
  .wp-block-image img {
    max-width: min(100%, 820px);
  }
}

.entry-content figure,
.entry-content .wp-block-image {
  text-align: center;
}

.entry-content figcaption,
.wp-block-image figcaption {
  text-align: center;
  margin-top: 8px;
  opacity: 0.8;
  font-size: 0.95em;
}

/* =========================
   Reading progress bar (posts only; JS updates width)
   ========================= */

#readingProgress {
  position: fixed;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 0%;
  background: #ff7a18;
  z-index: 99999;
  pointer-events: none;
}

/* =========================
   Share buttons
   ========================= */

.share-buttons {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.share-buttons .share-label {
  font-weight: 600;
  margin-right: 8px;
}

.share-buttons .share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #f2f2f2;
  border: 1px solid rgba(0,0,0,0.18);
  color: #333;
  text-decoration: none;
}

.share-buttons .share-link:hover {
  background: #ff7a18;
  border-color: #ff7a18;
  color: #fff;
}

.share-buttons .share-link i {
  font-size: 18px;
  line-height: 1;
}

/* =========================
   Header popup search (supports both class styles)
   ========================= */

.covf-popup-search {
  display: none;
}

.covf-popup-search.is-open,
body.covf-reveal-search .covf-popup-search {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 99999;
}

.covf-popup-search.is-open .search-box,
body.covf-reveal-search .covf-popup-search .search-box {
  position: relative;
  max-width: 720px;
  margin: 12vh auto 0 auto;
  padding: 0 14px;
}

/* =========================
   Footer: no background, keep theme clearfix intact
   ========================= */

.site-footer .footer-widgets {
  padding: 0 0;
}

.site-footer ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.site-footer ul li {
  margin-bottom: 6px;
}

.site-footer .footer-copyright {
  margin-top: 25px;
  margin-bottom: 5px;
  opacity: 0.85;
  text-align: center;
  font-size: 0.9em;
}

.site-footer .footer-grid {
  margin: 0 auto 0 auto;   /* centre the grid box */
  max-width: 900px;
  width: 100%;

  opacity: 0.85;
  font-size: 1rem;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;

  justify-items: center;      /* centre the content inside each column */
  text-align: left;
}

.site-footer .footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer .footer-col li {
  margin: 6px 0;
}

/* Sveltia sized images must override the general content image sizing */
.entry-content figure.cms-img img,
.entry-content .cms-img img,
.cms-img img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
}

/* Size variants */
.entry-content figure.cms-img-small img,
.cms-img-small img {
  max-width: 40% !important;
}

.entry-content figure.cms-img-medium img,
.cms-img-medium img {
  max-width: 60% !important;
}

.entry-content figure.cms-img-large img,
.cms-img-large img {
  max-width: 80% !important;
}

.entry-content figure.cms-img-full img,
.cms-img-full img {
  max-width: 100% !important;
}

.entry-content figure.cms-img-xl img,
.cms-img-xl img {
  max-width: 120% !important;
}

/* Google Form embeds */
.google-form-embed {
  max-width: 760px; /* match content width */
  margin: 30px auto;
}

.google-form-embed iframe {
  width: 100%;
  border: none;
}