/* =========================================== */
/* Responsive Floating Figures with Captions  */
/* =========================================== */

/* Left-floating figure */
.figure-left {
  float: left !important;
  width: clamp(150px, 40%, 300px);   /* responsive width: min 150px, ideal 40%, max 300px */
  margin: 0 20px 10px 0;             /* spacing around image */
  border: 1px solid #fff;
}

/* Right-floating figure */
.figure-right {
  float: right !important;
  width: clamp(150px, 40%, 300px);
  margin: 0 0 10px 20px;
  border: 1px solid #fff;
}

/* Images inside figures are responsive */
.figure-left img,
.figure-right img {
  width: 100%;
  height: auto;
  display: block;
}

/* Clear floats for next section */
.clear-floats {
  clear: both;
}

/* Caption styling */
.figure-left figcaption,
.figure-right figcaption {
  font-size: 14px;
  font-family: 'InriaSerif-Italic', serif;
  font-style: italic;
  display: block;
  margin: 0;
  padding: 5px 0 0 0;
  text-align: center;
  color: #71580e;
}

/* =========================================== */
/* Mobile-friendly stacking for small screens */
/* =========================================== */
@media (max-width: 767px) {
  .figure-left,
  .figure-right {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 15px 0 !important;
    text-align: center;
  }

  .figure-left img,
  .figure-right img {
    width: 100%;
    height: auto;
  }

  .figure-left figcaption,
  .figure-right figcaption {
    text-align: center;
  }
}