/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/


/* --- Typografie für Bildunterschriften (figcaption) --- */
figure figcaption {
  overflow-wrap: anywhere;   /* bricht lange Wörter/URLs */
  word-break: break-word;

  font-family: inherit;      /* übernimmt deine Standardschrift */
  font-size: 1em;            /* gleiche Größe wie Fließtext */
  font-weight: 400;          /* normal, nicht fett */
  font-style: normal;        /* nicht kursiv */
  line-height: 1.5;          /* gute Lesbarkeit */
  text-align: center;        /* mittig unter dem Bild */
  color: #000;               /* schwarzer Text */
  margin-top: 0.5em;         /* Abstand zum Bild */
}




/* --- Fix für Bilder mit Bildunterschriften (figure) ---
   Verhindert horizontales Scrollen durch zu breite Bilder oder Captions
--------------------------------------------------------- */

figure {
  max-width: 100%;       /* figure darf nie breiter als sein Container sein */
  margin: 1em 0;         /* Standard-Abstand oben/unten, nach Bedarf ändern */
}

figure img {
  max-width: 100%;       /* Bild passt sich Containerbreite an */
  height: auto;          /* Höhe bleibt proportional */
  display: block;        /* entfernt kleine Lücken durch Inline-Display */
}

figure figcaption {
  overflow-wrap: anywhere;  /* bricht lange Wörter/URLs um */
  word-break: break-word;   /* zusätzliche Sicherheit */
  text-align: center;       /* Bildunterschrift mittig (optional) */
  font-size: 0.9em;         /* etwas kleiner als Fließtext (optional) */
  color: #555;              /* dezentere Farbe (optional) */
}
