/*--------------------------------------------------------------
Media
--------------------------------------------------------------*/

.page-content img.wp-smiley, .entry-content img.wp-smiley, .comment-content img.wp-smiley {
  border: none;
  margin-bottom: 0;
  margin-top: 0;
  padding: 0;
}

.wp-caption {
  border: 1px solid #ccc;
  margin-bottom: 15px;
  max-width: 100%;
  img[class*="wp-image-"] {
    display: block;
    margin: 1.2% auto 0;
    max-width: 98%;
  }
}

.wp-caption-text {
  text-align: center;
}

.wp-caption .wp-caption-text {
  margin: 10px 0;
}

.site-main .gallery {
  margin-bottom: 1.5em;
}

.gallery-caption {}

.site-main {
  .gallery {
    a img {
      border: none;
      height: auto;
      max-width: 90%;
    }
    dd, figcaption {
      margin: 0;
    }
  }
  .gallery-columns-4 .gallery-item img {}
}

/* Make sure embeds and iframes fit their containers */

embed, iframe, object {
  max-width: 100%;
}