/**
 * WordPress core content classes + Fluxio block styles (front end + editor).
 */

/* Block style: quote accent bar */
.wp-block-quote.is-style-fluxio-accent-bar,
blockquote.is-style-fluxio-accent-bar {
	border-left: 4px solid #ed4609;
	padding-left: 1.25rem;
	margin-left: 0;
}

/* Wide / full alignment */
.fluxio-theme .alignwide {
	max-width: min(100%, 1200px);
	margin-left: auto;
	margin-right: auto;
}

.fluxio-theme .alignfull {
	max-width: none;
	width: 100%;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.fluxio-theme .alignleft {
	float: left;
	margin: 0.25rem 1.5rem 1rem 0;
	max-width: min(100%, 420px);
}

.fluxio-theme .alignright {
	float: right;
	margin: 0.25rem 0 1rem 1.5rem;
	max-width: min(100%, 420px);
}

.fluxio-theme .aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
	clear: both;
	text-align: center;
}

.fluxio-theme .aligncenter img,
.fluxio-theme .wp-block-image.aligncenter img {
	margin-left: auto;
	margin-right: auto;
}

/* Captions */
.fluxio-theme .wp-caption {
	max-width: 100%;
	margin-bottom: 1.25rem;
}

.fluxio-theme .wp-caption img {
	display: block;
	height: auto;
	max-width: 100%;
}

.fluxio-theme .wp-caption-text,
.fluxio-theme figcaption.wp-element-caption {
	font-size: 0.875rem;
	line-height: 1.5;
	color: #6c6c6c;
	margin-top: 0.5rem;
	text-align: center;
}

.fluxio-theme .gallery-caption {
	font-size: 0.875rem;
	color: #6c6c6c;
	padding: 0.35rem 0.5rem;
}

/* Post author highlight in comments */
.fluxio-theme .comment.bypostauthor > .fluxio-comment-item,
.fluxio-theme .bypostauthor > .comment-body {
	outline: 1px solid rgba(237, 70, 9, 0.35);
	outline-offset: 4px;
	border-radius: 4px;
}

/* Responsive embeds */
.fluxio-theme .wp-block-embed iframe,
.fluxio-theme .wp-block-embed__wrapper iframe,
.fluxio-theme .wp-has-aspect-ratio iframe {
	max-width: 100%;
}

.fluxio-theme .wp-has-aspect-ratio .wp-block-embed__wrapper {
	position: relative;
}

.fluxio-theme .wp-has-aspect-ratio .wp-block-embed__wrapper::before {
	content: "";
	display: block;
	padding-top: 56.25%;
}

.fluxio-theme .wp-has-aspect-ratio .wp-block-embed__wrapper iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

/* Post tags */
.fluxio-post-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.75rem;
	margin-top: 1.5rem;
}

.fluxio-post-tags-label {
	color: #6c6c6c;
}

.fluxio-post-tags a {
	text-decoration: none;
	color: inherit;
	border: 1px solid rgba(108, 108, 108, 0.35);
	border-radius: 999px;
	padding: 0.2rem 0.65rem;
	font-size: 0.875rem;
	transition: border-color 0.2s, color 0.2s;
}

.fluxio-post-tags a:hover {
	border-color: #ed4609;
	color: #ed4609;
}
