/* Elysium site additions: containers that host JSON-rendered data, and the
   collapse rules for media boxes whose original image was never captured. */

/* --- lost images: collapse the box instead of leaving a grey block --- */
img.ely-broken { display: none !important; }
.elementor-widget-image .elementor-widget-container:not(:has(img)),
.post-media.post-image:not(:has(img)),
.listing-thumbnail:not(:has(img)) { display: none; }
.elementskit-box-header.image-box-img-center:not(:has(img)) { display: none; }

/* --- partner grid (home, "Asosiasi Partner") --- */
.ely-partner-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: 24px 30px;
}
.ely-partner-grid .ely-partner {
  flex: 0 0 auto; min-width: 140px; max-width: 220px;
  text-align: center; font-size: 15px; line-height: 1.4;
}
.ely-partner-grid .ely-partner a { text-decoration: none; color: inherit; }
.ely-partner-grid .ely-partner img { max-width: 100%; height: auto; display: block; margin: 0 auto 8px; }

/* --- person grid (struktur-dpp) --- */
.ely-person-grid { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 30px; }
.ely-person-grid .ely-person {
  flex: 1 1 220px; max-width: 280px; padding: 18px 20px;
  border: 1px solid rgba(0, 0, 0, .08); border-radius: 6px; background: #fff;
}
.ely-person-grid .ely-person img { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; margin-bottom: 10px; }
.ely-person-grid .ely-person-name { font-weight: 700; display: block; }
.ely-person-grid .ely-person-position { display: block; font-size: 14px; opacity: .75; }

/* --- branch tiles reuse the directory grid skeleton --- */
.wpbdp-listing .ely-branch-fields { margin-top: 6px; }
.wpbdp-listing .ely-branch-fields .wpbdp-field-display { margin-bottom: 4px; }
.wpbdp-listing .ely-branch-fields .field-label { font-weight: 600; margin-right: 4px; }

/* --- article references block (detail pages) --- */
.ely-refs { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(0, 0, 0, .1); }
.ely-refs h4 { font-size: 17px; margin-bottom: 10px; }
.ely-refs ol { margin: 0; padding-left: 20px; }

/* --- socmed icon lists rendered from main.socmeds --- */
.ekit_social_media li a svg, .elementor-icon-list-icon svg { width: 1em; height: 1em; vertical-align: -.125em; }
