/* #region markup content */

.markup-content {
	font-size: 1rem;
	clear: right;
	line-height: 1.7;
}

.markup-content p {
	margin-bottom: 1em;
}

.markup-content a {
	color: var(--theme-primary);
	text-decoration: underline;
}

.markup-content h1 {
	font-size: 2em;
	margin-bottom: 0.4em;
}

.markup-content h2 {
	font-size: 1.5em;
	margin-bottom: 0.5em;
}

.markup-content h3 {
	font-size: 1.17em;
	margin-bottom: 0.7em;
}

.markup-content h4 {
	font-size: 1.1em;
	margin-bottom: 0.8em;
}

.markup-content strong {
	font-weight: 600;
}

.markup-content em {
	font-style: italic;
}

.markup-content h1,
.markup-content h2,
.markup-content h3,
.markup-content h4 {
	font-weight: 600;
}

.markup-content h1 + ul,
.markup-content h2 + ul,
.markup-content h3 + ul,
.markup-content h4 + ul,
.markup-content h1 + ol,
.markup-content h2 + ol,
.markup-content h3 + ol,
.markup-content h4 + ol,
.markup-content h1 + p,
.markup-content h2 + p,
.markup-content h3 + p,
.markup-content h4 + p {
	margin-top: -0.7em;
}

.markup-content hr {
	margin-top: 1.2rem;
	margin-bottom: 1.2rem;
	border-bottom: 0;
}

.markup-content .marker {
	background-color: Yellow;
}

.markup-content ul,
.markup-content ul {
	padding-left: 1.5em;
	margin-bottom: 1em;
	/* list-style-position: inside; */
}

.markup-content li {
	margin-bottom: 0.5em;
}

.markup-content ul {
	list-style-type: disc;
}

.markup-content ol {
	list-style: decimal;
	padding-left: 1.3em;
}

@media (max-width: 768px) {
}

/* #endregion markup content */

/* #region blogs list page */

.blog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 2rem;
	margin-block: 2rem;
}

.blog-grid-item {
	box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.2);
	border-radius: 0.5rem;
	overflow: hidden;
	background-color: #fff;
	transition: ease 0.25s;
}

.blog-grid-item:hover {
	box-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.3), inset 0 0 0 1px var(--theme-primary);
}

.blog-grid-img {
	position: relative;
	display: block;
}

.blog-grid-img::before {
	content: "";
	padding-top: 62.5%;
	display: block;
}

.blog-grid-img img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.blog-grid-content {
	padding: 1rem;
}

.blog-grid-title {
	font-size: 1.3rem;
	font-weight: 600;
	margin-bottom: 0.3em;
	line-height: 1.3;
}

.blog-grid-title a:hover {
	color: var(--theme-primary);
}

.blog-grid-meta {
	margin-bottom: 0.5rem;
	font-size: 0.85rem;
	color: #555;
	font-weight: 500;
}

.blog-grid-desc {
	line-height: 1.3;
	font-size: 0.95rem;
}

/* #endregion blogs list page */

/* #region blog view page */

.blog-page {
	display: flex;
	gap: 2rem;
	line-height: 1.3;
	margin-block: 2rem;
}

.blog-main {
	position: relative;
	width: 70%;
}

.blog-main .blog-content::before {
	content: none;
}

.blog-extra {
	width: 30%;
	position: sticky;
	top: calc(var(--header-height) + 1rem);
	height: 100%;
}

.blog-tags {
	font-size: 0.9rem;
	color: var(--theme-secondary);
	margin-bottom: 0.5rem;
}

.blog-title {
	font-size: 2rem;
	font-weight: 500;
	margin-bottom: 0.5rem;
}

.blog-meta {
	color: var(--theme-primary);
	font-weight: 500;
}

.blog-content {
	margin-top: 1.3rem;
	position: relative;
	padding: 1.2rem;
	box-shadow: 0 0 1rem rgb(0 0 0 / 15%);
	border-radius: 0.5rem;
	background-color: #fff;
}

.blog-content::after {
	content: "";
	display: block;
	clear: both;
}

.blog-main-img {
	/* width: 40%; */
	/* width: 500px; */
	/* float: left; */
	/* margin-right: 1.7rem; */
	margin-bottom: 1.5rem;
	min-width: 50%;
	max-width: 100%;
}

.blog-main-img img {
	width: 100%;
}

.blog-share-title {
	font-weight: 500;
	font-size: 1.4rem;
}

.blog-share-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
	margin-top: 0.5rem;
}

.blog-share-link {
	width: 2.2rem;
	height: 2.2rem;
	display: grid;
	place-items: center;
	background-color: var(--theme-primary);
	color: var(--theme-primary-alt);
	border-radius: 5rem;
	border: 2px solid var(--theme-alt);
	font-size: 1.3rem;
	transition: ease 0.25s;
}

.blog-share-link i {
	display: block;
	line-height: 1.5;
}

.blog-share-link:hover {
	background-color: var(--theme-primary-bg-light);
	color: var(--theme-primary);
}

.blog-list-banner-title {
	/* text-align: center; */
	font-weight: 500;
	font-size: 1.6rem;
	margin-bottom: 0.7rem;
}

.blog-list {
	display: grid;
	/* grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); */
	gap: 1.2rem;
	/* margin-bottom: 2rem; */
	padding: 1.2rem;
	box-shadow: 0 0 1rem rgb(0 0 0 / 15%);
	border-radius: 0.5rem;
}

.blog-list .blog-grid-item {
	display: flex;
}

.blog-list .blog-grid-img {
	flex: 0 0 30%;
}

.blog-list .blog-grid-content {
	flex: 1;
	padding: 0.5rem 0.75rem;
}

.blog-list .blog-grid-title {
	font-size: 1rem;
	/* line-clamp: 2; */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	line-clamp: 2;
	box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

.blog-list .blog-grid-meta {
	margin-bottom: 0;
}

@media (max-width: 760px) {
	.blog-page {
		flex-direction: column;
	}

	.blog-main,
	.blog-extra {
		width: 100%;
	}
}

@media print {
	.blog-content {
		padding: 0;
		box-shadow: none;
	}

	.blog-extra,
	.header-banner,
	.brand-header,
	.main-header {
		display: none !important;
	}

	.blog-main {
		width: 100%;
	}

	.blog-page {
		margin: 0;
	}
}

/* #endregion blog view page */

/* #region gallery */

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 30px;
	align-items: stretch;
	margin-top: var(--section-gap);
}

.gallery-grid-sm {
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 20px;
}

.gallery-card {
	/* padding: 10px; */
	box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.2);
	border-radius: 0.5rem;
	overflow: hidden;
	background-color: #fff;
	text-align: center;
	transition: ease 0.25s;
}

.gallery-card:hover {
	box-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.3), inset 0 0 0 1px var(--theme-primary);
}

.gallery-card-img {
	position: relative;
	z-index: 0;
}

.gallery-media-img {
	/* margin-bottom: 0; */
}

.gallery-card-img::before {
	content: "";
	display: block;
	width: 100%;
	padding-top: 75%;
}

.video-grid .gallery-card-img::before {
	padding-top: 56.25%;
}

.gallery-card-img img,
.gallery-card-img iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gallery-card-body {
	padding: 1rem;
}

.gallery-caption {
	font-weight: 500;
	font-size: 1rem;
	line-height: 1.5;
	/* line clamp 3 */
	/* margin-top: 0.5rem; */
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	line-clamp: 3;
	box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

.gallery-caption:empty {
	display: none;
}

.gallery-desc {
	margin-top: 0.5rem;
}

.sl-overlay {
	background-color: #000;
}

.sl-wrapper .sl-close {
	font-size: 2.8em;
	top: 15px;
	right: 15px;
}

.sl-wrapper .sl-navigation button,
.sl-wrapper .sl-counter,
.sl-wrapper .sl-close {
	color: var(--theme-fore-color);
}

.sl-wrapper .sl-image .sl-caption {
	text-align: center;
	position: relative !important;
	background-color: #333 !important;
	max-height: 25vh;
	min-height: 2lh;
	overflow: auto;
	display: block !important;
	z-index: 1 !important;
	opacity: 1 !important;
	transition: ease 0.3s transform;
}

.sl-wrapper .sl-image {
	position: relative;
	transform: translateX(0);
	height: auto !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	overflow: hidden;
	background-color: #fff;
	box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.2);
}

.sl-wrapper .sl-image img {
	max-height: 75vh;
	object-fit: contain;
	transition: ease 0.25s transform;
	transform-origin: center;
	mask-image: radial-gradient(circle, black 100%, transparent 100%); /* Mask for overflow */
	overflow: hidden;
}

.sl-wrapper .sl-image img:not([data-translate-x="0"]) {
	object-fit: contain;
	width: 100%;
	height: 100%;
	clip-path: inset(0 0 0 0);
}

.sl-wrapper .sl-image img:active {
	transition: none;
}

.sl-wrapper .sl-image img:not([data-translate-x="0"]) + .sl-caption {
	/* transform: translateY(50%) !important; */
	/* margin-bottom: 5%; */
}

@media (max-width: 768px) {
}

/* #endregion gallery */
