.entry-content::after,
.blog-single__description::after {
	content: "";
	display: table;
	clear: both;
}

.alloy-post-content {
	color: var(--dark-text-color, #2e3131);
	font-size: 17px;
	line-height: 1.75;
	text-align: left;
}

.alloy-post-content p,
.alloy-post-content ul,
.alloy-post-content ol {
	margin: 0 0 1.5rem;
}

.alloy-post-content h2 {
	font-size: clamp(1.55rem, 1.35rem + 0.7vw, 1.95rem);
	line-height: 1.3;
	margin: 2rem 0 1rem;
}

.alloy-post-content h3 {
	font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.45rem);
	line-height: 1.35;
	margin: 1.75rem 0 0.85rem;
}

.alloy-post-content h4 {
	font-size: 1rem;
	letter-spacing: 0.06em;
	margin: 1.5rem 0 0.75rem;
}

.alloy-post-content :is(h1, h2, h3, h4, h5, h6, p, li, figcaption) {
	text-align: left !important;
}

.alloy-post-content [style*="text-align: center"] {
	text-align: left !important;
}

.entry-content figure,
.entry-content .wp-caption,
.blog-single__description figure,
.blog-single__description .wp-caption {
	height: auto;
	line-height: 1.4;
	margin: 0 0 1.5rem;
	max-width: 100%;
}

.entry-content img,
.blog-single__description img {
	height: auto;
	max-width: 100%;
}

.entry-content .alignleft,
.entry-content .alignright,
.alloy-post-content .alignleft,
.alloy-post-content .alignright {
	margin-bottom: 1.25rem;
	max-width: min(42%, 320px);
}

.entry-content .alignleft,
.alloy-post-content .alignleft {
	margin-right: 1.5rem;
}

.entry-content .alignright,
.alloy-post-content .alignright {
	margin-left: 1.5rem;
}

.entry-content .wp-caption .wp-caption-text,
.alloy-post-content .wp-caption .wp-caption-text,
.entry-content figure figcaption,
.alloy-post-content figure figcaption {
	color: #5b6570;
	font-size: 0.92rem;
	line-height: 1.45;
	margin-top: 0.55rem;
	text-align: center;
}

.entry-content figure figcaption:empty,
.alloy-post-content figure figcaption:empty,
.entry-content figure:empty,
.alloy-post-content figure:empty {
	display: none;
}

.entry-content figure > a:only-child + figure,
.alloy-post-content figure > a:only-child + figure {
	margin-top: 0;
}

.alloy-image-lightbox {
	align-items: center;
	background: rgba(17, 24, 39, 0.9);
	display: none;
	inset: 0;
	justify-content: center;
	padding: 2rem;
	position: fixed;
	z-index: 999999;
}

.alloy-lightbox-open {
	overflow: hidden;
}

.alloy-image-lightbox.is-open {
	display: flex;
}

.alloy-image-lightbox__image {
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
	max-height: calc(100vh - 4rem);
	max-width: min(1200px, calc(100vw - 4rem));
	object-fit: contain;
}

.alloy-image-lightbox__close {
	background: rgba(255, 255, 255, 0.95);
	border: 0;
	border-radius: 999px;
	color: #111827;
	cursor: pointer;
	font-size: 1.2rem;
	font-weight: 700;
	height: 2.2rem;
	line-height: 1;
	position: absolute;
	right: 1rem;
	top: 1rem;
	width: 2.2rem;
}

@media (max-width: 767px) {
	.entry-content .alignleft,
	.entry-content .alignright,
	.alloy-post-content .alignleft,
	.alloy-post-content .alignright {
		float: none;
		margin-left: auto;
		margin-right: auto;
		max-width: 100%;
	}

	.alloy-image-lightbox {
		padding: 1rem;
	}

	.alloy-image-lightbox__image {
		max-height: calc(100vh - 2rem);
		max-width: calc(100vw - 2rem);
	}
}
