.mharty-plus-blog-grid-wrapper.mhc_css_grid .mhc_blog_grid {
	display: grid;
	gap: 30px;
	height: auto !important;
}

.mharty-plus-blog-grid-wrapper.mhc_css_grid_2 .mhc_blog_grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mharty-plus-blog-grid-wrapper.mhc_css_grid_3 .mhc_blog_grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mharty-plus-blog-grid-wrapper.mhc_css_grid_4 .mhc_blog_grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mharty-plus-blog-grid-wrapper.mhc_css_grid .mhc_blog_grid .mhc_post {
	float: none !important;
	margin: 0 !important;
	position: static !important;
	transform: none !important;
	width: auto !important;
}

@media only screen and (min-width: 981px) {
	.mharty-plus-blog-horizontal-columns-2.mhc_blog_horizantal {
		display: grid;
		gap: 30px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mharty-plus-blog-horizontal-columns-2.mhc_blog_horizantal > .mhc_post {
		clear: none !important;
		margin-bottom: 0;
		width: auto !important;
	}
}

@media only screen and (max-width: 980px) {
	.mharty-plus-blog-grid-wrapper.mhc_css_grid .mhc_blog_grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media only screen and (max-width: 767px) {
	.mharty-plus-blog-grid-wrapper.mhc_css_grid .mhc_blog_grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

.mharty-plus-filterable-portfolio .mharty-plus-portfolio-excerpt {
	clear: both;
	margin-top: 10px;
}

.mharty-plus-filterable-portfolio .mharty-plus-portfolio-tags {
	clear: both;
	padding-top: 8px;
}

.mharty-plus-filterable-portfolio .mharty-plus-portfolio-excerpt + .mharty-plus-portfolio-tags {
	padding-top: 10px;
}

.mharty-plus-filterable-portfolio .mharty-plus-portfolio-read-more {
	display: inline-block;
	margin-top: 10px;
}

.mharty-plus-filterable-portfolio .mhc_more_link .mharty-plus-portfolio-read-more {
	margin-top: 12px;
}

.mharty-plus-filterable-portfolio .mharty-plus-portfolio-excerpt p:last-child,
.mharty-plus-fullwidth-portfolio .mharty-plus-portfolio-excerpt p:last-child {
	padding-bottom: 0;
}

.mharty-plus-fullwidth-portfolio .mharty-plus-portfolio-excerpt {
	box-sizing: border-box;
	clear: both;
	display: -webkit-box;
	line-height: 1.6;
	max-height: 4.8em;
	overflow: hidden;
	padding: 5px 12%;
	position: relative;
	text-align: center;
	width: 100%;
	z-index: 5;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

/* When the overlay is disabled, preserve the image dimensions calculated by
 * the Composer and place the enabled project information below it.
 */
.mharty-plus-fullwidth-portfolio .mharty-plus-portfolio-image-link {
	display: block;
	height: 100%;
	width: 100%;
}

.mharty-plus-fullwidth-portfolio.mharty-plus-overlay-off.mharty-plus-dimensions-ready:not(.mharty-plus-featured-image-off).mhc_fullwidth_portfolio_carousel .mhc_portfolio_items,
.mharty-plus-fullwidth-portfolio.mharty-plus-overlay-off.mharty-plus-dimensions-ready:not(.mharty-plus-featured-image-off).mhc_fullwidth_portfolio_carousel .mhc_portfolio_item {
	height: var(--mharty-plus-card-height) !important;
	min-height: 0 !important;
}

.mharty-plus-fullwidth-portfolio.mharty-plus-overlay-off.mharty-plus-dimensions-ready:not(.mharty-plus-featured-image-off).mhc_fullwidth_portfolio_carousel .mhc_portfolio_image {
	height: var(--mharty-plus-image-height) !important;
	min-height: 0 !important;
}

.mharty-plus-fullwidth-portfolio.mharty-plus-overlay-off.mharty-plus-dimensions-ready:not(.mharty-plus-featured-image-off).mhc_fullwidth_portfolio_grid .mhc_portfolio_items {
	display: grid;
}

.mharty-plus-fullwidth-portfolio.mharty-plus-overlay-off.mharty-plus-dimensions-ready:not(.mharty-plus-featured-image-off).mhc_fullwidth_portfolio_grid .mhc_portfolio_items.columns-1 {
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

.mharty-plus-fullwidth-portfolio.mharty-plus-overlay-off.mharty-plus-dimensions-ready:not(.mharty-plus-featured-image-off).mhc_fullwidth_portfolio_grid .mhc_portfolio_items.columns-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mharty-plus-fullwidth-portfolio.mharty-plus-overlay-off.mharty-plus-dimensions-ready:not(.mharty-plus-featured-image-off).mhc_fullwidth_portfolio_grid .mhc_portfolio_items.columns-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mharty-plus-fullwidth-portfolio.mharty-plus-overlay-off.mharty-plus-dimensions-ready:not(.mharty-plus-featured-image-off).mhc_fullwidth_portfolio_grid .mhc_portfolio_items.columns-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mharty-plus-fullwidth-portfolio.mharty-plus-overlay-off.mharty-plus-dimensions-ready:not(.mharty-plus-featured-image-off).mhc_fullwidth_portfolio_grid .mhc_portfolio_items.columns-5 {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mharty-plus-fullwidth-portfolio.mharty-plus-overlay-off.mharty-plus-dimensions-ready:not(.mharty-plus-featured-image-off).mhc_fullwidth_portfolio_grid .mhc_portfolio_items.columns-6 {
	grid-template-columns: repeat(6, minmax(0, 1fr));
}

.mharty-plus-fullwidth-portfolio.mharty-plus-overlay-off.mharty-plus-dimensions-ready:not(.mharty-plus-featured-image-off).mhc_fullwidth_portfolio_grid .mhc_portfolio_item {
	float: none;
	height: auto !important;
	min-height: 0 !important;
	width: auto !important;
}

.mharty-plus-fullwidth-portfolio.mharty-plus-overlay-off.mharty-plus-dimensions-ready:not(.mharty-plus-featured-image-off).mhc_fullwidth_portfolio_grid .mhc_portfolio_image {
	height: var(--mharty-plus-image-height) !important;
	min-height: 0 !important;
}

.mharty-plus-fullwidth-portfolio .mharty-plus-portfolio-details {
	box-sizing: border-box;
	padding: 18px 20px 20px;
	text-align: center;
	width: 100%;
}

.mharty-plus-fullwidth-portfolio .mharty-plus-portfolio-details h3 {
	margin: 0;
	padding: 0 0 6px;
}

.mharty-plus-fullwidth-portfolio .mharty-plus-portfolio-details .post-meta {
	padding-bottom: 0;
}

.mharty-plus-fullwidth-portfolio.mhc_bg_layout_dark .mharty-plus-portfolio-details,
.mharty-plus-fullwidth-portfolio.mhc_bg_layout_dark .mharty-plus-portfolio-details h3,
.mharty-plus-fullwidth-portfolio.mhc_bg_layout_dark .mharty-plus-portfolio-details a,
.mharty-plus-fullwidth-portfolio.mhc_bg_layout_dark .mharty-plus-portfolio-details p {
	color: #fff;
}

.mharty-plus-fullwidth-portfolio .mharty-plus-portfolio-measure-details {
	display: block !important;
	height: auto !important;
	left: 0;
	min-height: 0 !important;
	pointer-events: none;
	position: absolute !important;
	top: 0;
	visibility: hidden !important;
	z-index: -1;
}

.mharty-plus-fullwidth-portfolio.mharty-plus-featured-image-off {
	--mharty-plus-no-image-height: 88px;
}

/* The original Composer forces all full-width portfolio items to a 4:3
 * height. Keep that behaviour for image cards, but let image-free cards use
 * their content height. Carousel cards are equalised by the companion script.
 */
.mharty-plus-fullwidth-portfolio.mharty-plus-featured-image-off.mhc_fullwidth_portfolio_carousel .mhc_portfolio_items,
.mharty-plus-fullwidth-portfolio.mharty-plus-featured-image-off.mhc_fullwidth_portfolio_carousel .mhc_portfolio_item,
.mharty-plus-fullwidth-portfolio.mharty-plus-featured-image-off.mhc_fullwidth_portfolio_carousel .mharty-plus-portfolio-no-image {
	height: var(--mharty-plus-no-image-height) !important;
	min-height: 0 !important;
}

/* Use CSS Grid for image-free grid layouts. The Composer keeps updating its
 * columns-N class on resize, so the grid remains responsive while each row
 * naturally adopts the height of its tallest card.
 */
.mharty-plus-fullwidth-portfolio.mharty-plus-featured-image-off.mhc_fullwidth_portfolio_grid .mhc_portfolio_items {
	display: grid;
}

.mharty-plus-fullwidth-portfolio.mharty-plus-featured-image-off.mhc_fullwidth_portfolio_grid .mhc_portfolio_items.columns-1 {
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

.mharty-plus-fullwidth-portfolio.mharty-plus-featured-image-off.mhc_fullwidth_portfolio_grid .mhc_portfolio_items.columns-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mharty-plus-fullwidth-portfolio.mharty-plus-featured-image-off.mhc_fullwidth_portfolio_grid .mhc_portfolio_items.columns-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mharty-plus-fullwidth-portfolio.mharty-plus-featured-image-off.mhc_fullwidth_portfolio_grid .mhc_portfolio_items.columns-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mharty-plus-fullwidth-portfolio.mharty-plus-featured-image-off.mhc_fullwidth_portfolio_grid .mhc_portfolio_items.columns-5 {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mharty-plus-fullwidth-portfolio.mharty-plus-featured-image-off.mhc_fullwidth_portfolio_grid .mhc_portfolio_items.columns-6 {
	grid-template-columns: repeat(6, minmax(0, 1fr));
}

.mharty-plus-fullwidth-portfolio.mharty-plus-featured-image-off.mhc_fullwidth_portfolio_grid[data-no-image-height-mode="auto"] .mhc_portfolio_item {
	float: none;
	height: auto !important;
	min-height: 0 !important;
	width: auto !important;
}

.mharty-plus-fullwidth-portfolio.mharty-plus-featured-image-off.mhc_fullwidth_portfolio_grid[data-no-image-height-mode="auto"] .mharty-plus-portfolio-no-image {
	height: 100% !important;
	min-height: 0 !important;
}

.mharty-plus-fullwidth-portfolio.mharty-plus-featured-image-off.mhc_fullwidth_portfolio_grid[data-no-image-height-mode="custom"] .mhc_portfolio_item,
.mharty-plus-fullwidth-portfolio.mharty-plus-featured-image-off.mhc_fullwidth_portfolio_grid[data-no-image-height-mode="custom"] .mharty-plus-portfolio-no-image {
	height: var(--mharty-plus-no-image-height) !important;
	min-height: 0 !important;
}

.mharty-plus-fullwidth-portfolio.mharty-plus-featured-image-off.mhc_fullwidth_portfolio_grid[data-no-image-height-mode="custom"] .mhc_portfolio_item {
	float: none;
	width: auto !important;
}

.mharty-plus-fullwidth-portfolio .mharty-plus-portfolio-no-image {
	align-items: center;
	box-sizing: border-box;
	display: flex;
	justify-content: center;
	min-height: 0;
	padding: 24px 20px;
}

.mharty-plus-fullwidth-portfolio.mhc_bg_layout_light .mharty-plus-portfolio-no-image {
	background-color: #f4f4f4;
}

.mharty-plus-fullwidth-portfolio.mhc_bg_layout_dark .mharty-plus-portfolio-no-image {
	background-color: #222;
}

.mharty-plus-fullwidth-portfolio .mharty-plus-portfolio-no-image .meta {
	height: auto;
	opacity: 1;
	position: relative;
	right: auto;
	top: auto;
	width: 100%;
	z-index: 3;
}

.mharty-plus-fullwidth-portfolio .mharty-plus-portfolio-no-image .meta > a {
	display: block;
	width: 100%;
}

.mharty-plus-fullwidth-portfolio .mharty-plus-portfolio-no-image h3 {
	margin-top: 0;
	padding-inline: 20px;
}

/* Off-screen clone used only while calculating the natural card height. */
.mharty-plus-fullwidth-portfolio .mharty-plus-portfolio-measure-card {
	display: flex !important;
	height: auto !important;
	left: 0;
	min-height: 0 !important;
	pointer-events: none;
	position: absolute !important;
	top: 0;
	visibility: hidden !important;
	z-index: -1;
}

/* Tabs Plus */
.mharty-plus-tabs .mhc_tabs_controls {
	margin-bottom: 20px !important;
}

.mharty-plus-tabs .mhc_tabs_controls a {
	align-items: center;
	display: flex;
	gap: 8px;
}

.mharty-plus-tabs .mharty-plus-tab-title-icon {
	flex: 0 0 auto;
	font-size: 1em;
	height: 1em;
	line-height: 1;
	width: 1em;
}

.mharty-plus-tabs .mharty-plus-tab-layout {
	align-items: center;
	direction: ltr;
	display: flex;
	gap: 30px;
	width: 100%;
}

.mharty-plus-tabs .mharty-plus-tab-body {
	flex: 1 1 60%;
	min-width: 0;
}

.mharty-plus-tabs .mharty-plus-tab-media {
	flex: 0 1 40%;
	max-width: 40%;
	min-width: 0;
}

.mharty-plus-tabs .mharty-plus-tab-media-right .mharty-plus-tab-body,
.mharty-plus-tabs .mharty-plus-tab-media-left .mharty-plus-tab-media {
	order: 1;
}

.mharty-plus-tabs .mharty-plus-tab-media-right .mharty-plus-tab-media,
.mharty-plus-tabs .mharty-plus-tab-media-left .mharty-plus-tab-body {
	order: 2;
}

.mharty-plus-tabs .mharty-plus-tab-no-media {
	display: block;
}

.rtl .mharty-plus-tabs .mharty-plus-tab-body,
.rtl .mharty-plus-tabs .mharty-plus-tab-media {
	direction: rtl;
}

.mharty-plus-tabs .mharty-plus-tab-media img,
.mharty-plus-tabs .mharty-plus-tab-media video,
.mharty-plus-tabs .mharty-plus-tab-media iframe {
	display: block;
	height: auto;
	max-width: 100%;
	width: 100%;
}

.mharty-plus-tabs .mharty-plus-tab-video iframe {
	aspect-ratio: 16 / 9;
}

.mharty-plus-tabs .mharty-plus-tab-button-wrap {
	margin-top: 20px;
}

.mharty-plus-tabs .mharty-plus-tab-button {
	border: 0;
	display: inline-block;
	line-height: 1.4;
	padding: 10px 22px;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.mharty-plus-tabs .mharty-plus-tab-button:hover,
.mharty-plus-tabs .mharty-plus-tab-button:focus {
	opacity: 0.85;
}

@media only screen and (max-width: 767px) {
	.mharty-plus-tabs .mharty-plus-tab-layout {
		align-items: stretch;
		flex-direction: column;
		gap: 20px;
	}

	.mharty-plus-tabs .mharty-plus-tab-media,
	.mharty-plus-tabs .mharty-plus-tab-body {
		flex-basis: auto;
		max-width: 100%;
		order: 2;
		width: 100%;
	}

	.mharty-plus-tabs .mharty-plus-tab-media {
		order: 1;
	}
}
