

.article-figure-special {
  text-align: center;
  margin: 30px auto;
}

.article-figure-special img {
  width: 86%;
  display: block;
  min-width: 340px;
  margin: 0px auto;
}

.article-figure-special figcaption {
  font-size: 1rem;
  color: #666;
  margin-top: 0px;
  font-style: italic;
}

/* ----- Tableau Dashboard ----- */

.wide-embed {
  width: 100%;
  margin: 80px auto;
  padding: 0 20px;
  overflow-x: auto;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

.wide-embed iframe {
  display: block;
  width: 1500px;
  height: 1050px;
  border: none;
  border-radius: 12px;
  transform-origin: top left;
}

.plotly.html-widget {
  margin-left: auto;
  margin-right: auto;
}


.article-content .html-widget {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.mobile-chart {
  display: none;
}

.desktop-chart {
  display: block;
}

/* Mobile images hidden on desktop */
.article-figure-special-two {
  display: none;
}

.article-float-figure {
  float: right;
  width: 400px;
  max-width: 100%;
  margin: 10px 0 12px 20px;
  text-align: center;
}

.article-float-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.article-float-caption {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-top: 0;
  text-align: center;
}

@media (max-width: 768px) {
  .wide-embed {
    margin: 40px auto 0;
    padding: 0;
    overflow: hidden;
  }

  .wide-embed iframe {
    width: 100%;
    height: 2150px;
    border-radius: 0;
    margin: 0;
  }

   .desktop-chart {
    display: none;
  }

  .mobile-chart {
    display: block;
    width: 100%;
  }

  .mobile-chart .html-widget {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Hide desktop image */
  .article-figure-special {
    display: none;
  }

  /* Show mobile images */
  .article-figure-special-two {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    text-align: center;
    margin: 30px auto;
  }

  .article-figure-special-two img {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    margin: 0 auto;
  }

  .article-figure-special-two figcaption {
  font-size: 1rem;
  color: #666;
  margin-top: 0px;
  font-style: italic;
  }

  .article-float-figure {
    display: block;
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 28px auto 16px;
  }

}

