/* Additions for the static copy. The builder's own CSS stays inline in every page.
   1. fallback notices for features that cannot work statically
   2. blog list + blog post layout (the builder renders these client-side; reconstructed here) */

/* ---- static fallback note under forms */
.ebpi-form-note {
  margin: 16px 0 0;
  font-family: 'Montserrat', arial, sans-serif;
  font-size: 14px;
  line-height: 21px;
  text-align: center;
  color: rgb(164, 164, 164);
}
.ebpi-form-note a { color: rgb(247, 247, 247); text-decoration: underline; }

/* ---- blog */
.ebpi-blog {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 0 24px;
  font-family: 'Montserrat', arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: rgb(164, 164, 164);
  text-align: left;
}
.ebpi-blog a { color: rgb(247, 247, 247); }
.ebpi-blog a:hover { text-decoration: none; }
.ebpi-meta { margin: 0 0 16px; font-size: 14px; color: rgb(145, 145, 145); }

.ebpi-list { display: flex; flex-direction: column; gap: 40px; max-width: 900px; }
.ebpi-card { display: flex; gap: 24px; align-items: flex-start; background: rgb(28, 28, 28); padding: 16px; }
.ebpi-card-img { flex: 0 0 280px; display: block; }
.ebpi-card-img img { display: block; width: 100%; height: 187px; object-fit: cover; }
.ebpi-card-body { flex: 1 1 auto; min-width: 0; }
.ebpi-card-title { margin: 0 0 8px; font-family: 'Archivo Black', arial, sans-serif; font-weight: 400; font-size: 22px; line-height: 1.25; text-transform: none; }
.ebpi-card-title a { color: rgb(247, 247, 247); text-decoration: none; }
.ebpi-card-title a:hover { text-decoration: underline; }
.ebpi-excerpt { margin: 0 0 12px; }
.ebpi-more {
  display: inline-block; padding: 10px 20px; background: rgb(42, 42, 42); color: rgb(247, 247, 247);
  font-size: 14px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; text-decoration: none;
}
.ebpi-more:hover { background: rgb(60, 60, 60); }

.ebpi-post-title { margin: 0 0 8px; font-family: 'Archivo Black', arial, sans-serif; font-weight: 400; font-size: 32px; line-height: 1.2; color: rgb(247, 247, 247); text-transform: none; }
.ebpi-content p { margin: 0 0 16px; }
.ebpi-content h3, .ebpi-content h4, .ebpi-content h5 { font-family: 'Archivo Black', arial, sans-serif; font-weight: 400; color: rgb(247, 247, 247); line-height: 1.25; margin: 32px 0 12px; }
.ebpi-content h3 { font-size: 24px; }
.ebpi-content h4 { font-size: 20px; }
.ebpi-content h5 { font-size: 17px; }
.ebpi-content strong { color: rgb(247, 247, 247); }
.ebpi-content ul, .ebpi-content ol { margin: 0 0 16px; padding-left: 28px; }
.ebpi-content li { margin: 0 0 6px; }
.ebpi-fig { margin: 0 0 24px; }
.ebpi-fig img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.ebpi-back { margin: 40px 0 0; }

@media (max-width: 767px) {
  .ebpi-card { flex-direction: column; }
  .ebpi-card-img { flex-basis: auto; width: 100%; }
  .ebpi-card-img img { height: auto; aspect-ratio: 3 / 2; }
  .ebpi-post-title { font-size: 26px; }
}

/* ---- 404 page */
.ebpi-404 { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; background: rgb(22, 22, 22); font-family: 'Montserrat', arial, sans-serif; color: rgb(164, 164, 164); }
.ebpi-404 h1 { font-family: 'Archivo Black', arial, sans-serif; font-weight: 400; font-size: 39px; color: rgb(247, 247, 247); margin: 0 0 16px; text-transform: uppercase; }
.ebpi-404 a { color: rgb(247, 247, 247); }
.ebpi-404 ul { list-style: none; padding: 0; margin: 24px 0; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; }

/* ---- gallery images: the builder fades them in from opacity:0 with JS once loaded */
[data-aid^="GALLERY_IMAGE"][data-aid$="_CELL_RENDERED"] * { opacity: 1 !important; }

/* ---- gallery layout: the builder positions the cells with JS (masonry). Approximated with CSS columns. */
[id^="gallery"] { column-count: 3; column-gap: 0; }
[id^="gallery"] > [data-aid$="_CELL_RENDERED"] { display: block !important; width: auto !important; break-inside: avoid; }
[id^="gallery"] img { width: 100%; height: auto !important; }
@media (max-width: 767px) { [id^="gallery"] { column-count: 2; } }
