/* Hermanos Popup — basis. Bewaar klantaanpassingen buiten de pluginmap. */
html.hermanos-popup-open { overflow: hidden !important; }
dialog.hermanos-popup {
  --hp-font: inherit;
  --hp-width: 600px;
  --hp-background: #ffffff;
  --hp-color: #202124;
  --hp-overlay: rgb(0 0 0 / 65%);
  --hp-radius: 16px;
  --hp-padding: clamp(20px, 5vw, 36px);
  --hp-gap: 20px;
  --hp-size: 17px;
  --hp-line-height: 1.55;
  --hp-align: left;
  --hp-title-size: clamp(24px, 5vw, 34px);
  --hp-title-weight: 700;
  --hp-title-color: var(--hp-color);
  --hp-image-height: 320px;
  --hp-image-fit: contain;
  --hp-image-radius: 8px;
  --hp-button-background: #202124;
  --hp-button-color: #ffffff;
  --hp-button-radius: 8px;
  --hp-button-padding: 12px 24px;
  --hp-button-width: fit-content;
  --hp-button-weight: 700;
  --hp-close-background: transparent;
  --hp-close-color: var(--hp-color);
  --hp-shadow: 0 24px 90px rgb(0 0 0 / 30%);
  --hp-focus: #2563eb;
  position: fixed;
  inset: 0;
  width: min(var(--hp-width), calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--hp-radius);
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--hp-background);
  color: var(--hp-color);
  box-shadow: var(--hp-shadow);
  font-family: var(--hp-font);
  font-size: var(--hp-size);
  line-height: var(--hp-line-height);
  text-align: var(--hp-align);
  outline: none;
}
dialog.hermanos-popup:not([open]) { display: none; }
dialog.hermanos-popup::backdrop { background: var(--hp-overlay); }
.hermanos-popup *, .hermanos-popup *::before, .hermanos-popup *::after { box-sizing: border-box; }
.hermanos-popup .hermanos-popup__panel { padding: 0; margin: 0; }
.hermanos-popup .hermanos-popup__toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  padding: 8px 8px 0;
  background: var(--hp-background);
}
#hermanos-popup.hermanos-popup button.hermanos-popup__close {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--hp-close-background) !important;
  color: var(--hp-close-color) !important;
  box-shadow: none !important;
  text-shadow: none !important;
  outline: none !important;
  filter: none !important;
  font-family: Arial, sans-serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}
#hermanos-popup.hermanos-popup button.hermanos-popup__close::before,
#hermanos-popup.hermanos-popup button.hermanos-popup__close::after { content: none !important; }
#hermanos-popup.hermanos-popup button.hermanos-popup__close span {
  color: inherit !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
/* A small square keyboard indicator, without a circular ring on automatic opening. */
#hermanos-popup.hermanos-popup button.hermanos-popup__close:focus-visible {
  outline: 2px solid var(--hp-focus) !important;
  outline-offset: -6px !important;
}
.hermanos-popup .hermanos-popup__content {
  display: flex;
  flex-direction: column;
  gap: var(--hp-gap);
  padding: 0 var(--hp-padding) var(--hp-padding);
  overflow-wrap: anywhere;
}
.hermanos-popup .hermanos-popup__media { margin: 0; padding: 0; }
.hermanos-popup img.hermanos-popup__image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: var(--hp-image-height);
  object-fit: var(--hp-image-fit);
  border: 0;
  border-radius: var(--hp-image-radius);
  margin: 0;
}
.hermanos-popup .hermanos-popup__title {
  margin: 0;
  padding: 0;
  font: inherit;
  font-size: var(--hp-title-size);
  line-height: 1.2;
  font-weight: var(--hp-title-weight);
  color: var(--hp-title-color);
  text-align: inherit;
}
.hermanos-popup .hermanos-popup__text { color: inherit; font: inherit; margin: 0; padding: 0; }
.hermanos-popup .hermanos-popup__text p { color: inherit; font: inherit; margin: 0 0 1em; }
.hermanos-popup .hermanos-popup__text > :last-child { margin-bottom: 0; }
.hermanos-popup .hermanos-popup__text a { color: inherit; text-decoration: underline; }
.hermanos-popup .hermanos-popup__text ul, .hermanos-popup .hermanos-popup__text ol { padding-inline-start: 1.4em; margin: 0 0 1em; }
.hermanos-popup a.hermanos-popup__button {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--hp-button-width);
  max-width: 100%;
  min-height: 44px;
  padding: var(--hp-button-padding);
  margin: 0;
  border: 0;
  border-radius: var(--hp-button-radius);
  background: var(--hp-button-background);
  color: var(--hp-button-color);
  font: inherit;
  font-weight: var(--hp-button-weight);
  text-decoration: none;
  text-align: center;
}
.hermanos-popup .hermanos-popup__button:hover { filter: brightness(.9); }
.hermanos-popup :focus-visible { outline: 3px solid var(--hp-focus); outline-offset: 3px; }
@media (max-width: 480px) {
  dialog.hermanos-popup { --hp-padding: 20px; --hp-gap: 16px; --hp-size: 16px; --hp-image-height: 240px; }
}
/* Geen verplichte animaties: respecteert ook bezoekers die beweging vermijden. */
