img {
	height: auto; /* Make sure images are scaled correctly. */
	max-width: 100%; /* Adhere to container width. */
}

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

.page-content img,
.entry-content img,
.entry-content-wrapper img,
.comment-content img,
.widget img,
.wp-block-image:not(.is-style-rounded) img {
	border-radius: 5px;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

.wp-caption {
	margin: 1em 0 1.5em;
	max-width: 100%;

	img[class*="wp-image-"] {
		@include center-block;
	}

	.wp-caption-text {
		color: $color__text-summary;
		font-size: 0.9rem;
		margin: 0.5em 0;
	}
}

/* Ensure center-aligned captions center-align properly. */
.wp-caption.aligncenter {
		margin-left: auto;
		margin-right: auto;
}

/* Give some padding to floated elements, to prevent them butting up against text. */
.wp-caption.alignleft {
		margin-right: 20px;
}

.wp-caption.alignright {
		margin-left: 20px;
}

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

/*--------------------------------------------------------------
## Galleries
--------------------------------------------------------------*/
@import "galleries";
