/**
 * Posts Highlight block — section chrome; post cards use .post-card from archive.css.
 */

.mtt-posts-highlight {
	--mtt-ph-gap: 1.25rem;
	padding: 60px 0;
	box-sizing: border-box;
	overflow-x: visible;
	position:relative;
}

.mtt-posts-highlight *,
.mtt-posts-highlight *::before,
.mtt-posts-highlight *::after {
	box-sizing: inherit;
}

.mtt-posts-highlight__inner {
	max-width: 1180px;
	width: 95%;
	margin: 0 auto;
	overflow-x: visible;
}

/* Header row */
.mtt-posts-highlight__header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--mtt-ph-gap);
	margin-bottom: 30px;
	position:relative;
}

.mtt-posts-highlight__header--graphic-end .mtt-posts-highlight__title-wrap {
	order: 1;
}

.mtt-posts-highlight__header--graphic-end .mtt-posts-highlight__graphic-wrap {
	order: 2;
}

.mtt-posts-highlight__header--graphic-end .mtt-posts-highlight__see-all-wrap {
	order: 3;
}

.mtt-posts-highlight__graphic-wrap {
    flex: 0 0 auto;
    max-width: 75px;
    position: absolute;
    top: -77px;
    left: -55px;
}

.mtt-posts-highlight__graphic-wrap[aria-hidden="true"] img {
	pointer-events: none;
}

.mtt-posts-highlight__graphic {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    vertical-align: middle;
}

.mtt-posts-highlight__title-wrap {
	flex: 1 1 auto;
	min-width: min(12rem, 100%);
}

.mtt-posts-highlight__title {
    margin: 0;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.1;
}

.mtt-posts-highlight__see-all-wrap {
	flex: 0 0 auto;
	margin-left: auto;
}

.mtt-posts-highlight__see-all {
	display: inline-block;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 2px solid currentColor;
    padding-bottom: 12px;
    color: var(--dark-brown, #5E4234);
    text-align: center;
    font-family: "TT Norms Pro";
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 14px;
    font-variant: all-small-caps;
    letter-spacing: 2.1px;
}

.mtt-posts-highlight__see-all:hover {
	text-decoration: none;
}

.mtt-posts-highlight__see-all:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* Grid — gaps aligned with .archive-wrap--grid */
.mtt-posts-highlight__grid {
	display: grid;
	column-gap: 45px;
	row-gap: 30px;
	grid-template-columns: repeat(var(--mtt-ph-cols, 4), minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.mtt-posts-highlight__grid > li {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	min-width: 0;
}

/* Cards: same structure/classes as template-parts/content-archive-card.php (archive.css) */
.mtt-posts-highlight .post-card.mtt-posts-highlight__card {
	height: 100%;
	margin: 0;
}


/* Narrow sidebar: single column stack (not multi-column grid) */
.mtt-single-layout__sidebar .mtt-posts-highlight__grid,
.block-area-sidebar .mtt-posts-highlight__grid {
	display: flex;
	flex-direction: column;
	gap: 30px;
	grid-template-columns: none;
}

.mtt-single-layout__sidebar .mtt-posts-highlight__grid > li:not(:last-child),
.block-area-sidebar .mtt-posts-highlight__grid > li:not(:last-child) {
	border-bottom: 1px solid #5e4234;
	padding-bottom: 30px;
}

.mtt-single-layout__sidebar .mtt-posts-highlight__header,
.block-area-sidebar .mtt-posts-highlight__header {
	align-items: center;
	flex-direction: column;
	text-align: center;
}

.mtt-single-layout__sidebar .mtt-posts-highlight__title-wrap,
.block-area-sidebar .mtt-posts-highlight__title-wrap {
	flex: 1 1 auto;
	min-width: 0;
	text-align: center;
	width: 100%;
}

.mtt-single-layout__sidebar .mtt-posts-highlight__title,
.block-area-sidebar .mtt-posts-highlight__title {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.mtt-single-layout__sidebar .mtt-posts-highlight__title::after,
.block-area-sidebar .mtt-posts-highlight__title::after {
	background: url("../../assets/images/about-sidebar-heading-squiggle.svg") no-repeat 0 0 / contain;
	content: "";
	display: block;
	height: 11px;
	margin-left: auto;
	margin-right: auto;
    margin-top: 26px;
    width: 99px;
}

.mtt-single-layout__sidebar .mtt-posts-highlight__see-all-wrap,
.block-area-sidebar .mtt-posts-highlight__see-all-wrap {
	margin-left: 0;
}

.mtt-single-layout__sidebar .mtt-posts-highlight__graphic-wrap,
.block-area-sidebar .mtt-posts-highlight__graphic-wrap {
	left: auto;
	margin-bottom: 0.25rem;
	position: relative;
	top: auto;
}

/* Sidebar cards — Figma Recipe Card Container (867:8090): horizontal image + title + “see recipe” */
.mtt-single-layout__sidebar .mtt-posts-highlight__grid > li,
.block-area-sidebar .mtt-posts-highlight__grid > li {
	display: flex;
	min-width: 0;
	width: 100%;
}

.mtt-single-layout__sidebar .mtt-posts-highlight__grid .post-card.mtt-posts-highlight__card,
.block-area-sidebar .mtt-posts-highlight__grid .post-card.mtt-posts-highlight__card {
	align-items: center;
	flex-direction: row;
	gap: 30px;
	height: auto;
	width: 100%;
}

.mtt-single-layout__sidebar .mtt-posts-highlight__grid .post-card__media,
.block-area-sidebar .mtt-posts-highlight__grid .post-card__media {
	flex-shrink: 0;
	height: 189px;
	overflow: hidden;
	width: 150px;
	position: relative;
}

.mtt-single-layout__sidebar .mtt-posts-highlight__grid .post-card__image,
.mtt-single-layout__sidebar .mtt-posts-highlight__grid .post-card__media .image-fit,
.block-area-sidebar .mtt-posts-highlight__grid .post-card__image,
.block-area-sidebar .mtt-posts-highlight__grid .post-card__media .image-fit {
	aspect-ratio: auto;
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.mtt-single-layout__sidebar .mtt-posts-highlight__grid .post-card__body,
.block-area-sidebar .mtt-posts-highlight__grid .post-card__body {
	align-items: flex-start;
	flex: 1 1 auto;
	gap: 10px;
	justify-content: center;
	max-width: 13rem;
	min-width: 0;
}

.mtt-single-layout__sidebar .mtt-posts-highlight__grid .post-card__title,
.block-area-sidebar .mtt-posts-highlight__grid .post-card__title {
	font-size: 24px;
	font-weight: 600;
	line-height: normal;
}

.mtt-single-layout__sidebar .mtt-posts-highlight__grid .post-card__category,
.mtt-single-layout__sidebar .mtt-posts-highlight__grid .post-card__popular,
.mtt-single-layout__sidebar .mtt-posts-highlight__grid .post-card .dietary-badges,
.block-area-sidebar .mtt-posts-highlight__grid .post-card__category,
.block-area-sidebar .mtt-posts-highlight__grid .post-card__popular,
.block-area-sidebar .mtt-posts-highlight__grid .post-card .dietary-badges {
	display: none;
}

.mtt-single-layout__sidebar .mtt-posts-highlight__grid .post-card__body::after,
.block-area-sidebar .mtt-posts-highlight__grid .post-card__body::after {
	border-bottom: 2px solid var(--dark-brown, #5e4234);
	color: var(--dark-brown, #5e4234);
	content: "see recipe";
	display: inline-flex;
	font-family: "TT Norms Pro", sans-serif;
	font-size: 12px;
	font-style: normal;
	font-weight: 700;
	justify-content: center;
	letter-spacing: 2.1px;
	line-height: 14px;
	padding: 16px 0 11px;
	white-space: nowrap;
	text-transform: uppercase;
}

/*
 * Shell: wider box + horizontal padding keeps the same inner width for slides as
 * before, while the 70px side gutters (60px arrow + 10px gap) stay inside this
 * element so :hover is not lost when moving from slides toward the buttons.
 */
.mtt-posts-highlight__slider-shell {
	position: relative;
	box-sizing: border-box;
	width: calc(100% + 140px);
	margin-left: -70px;
	margin-right: -70px;
	padding-left: 70px;
	padding-right: 70px;
	overflow: visible;
}

.mtt-posts-highlight__swiper.swiper {
	overflow: hidden;
	width: 100%;
	position: relative;
}

.mtt-posts-highlight__nav-btn {
	position: absolute;
	top: 38%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	transform: translateY(-50%);
	transition: opacity 0.2s ease;
}

.mtt-posts-highlight__nav-btn:hover {
	opacity: 0.92;
}

.mtt-posts-highlight__nav-btn:focus-visible {
	outline: 2px solid #5e4234;
	outline-offset: 3px;
}

.mtt-posts-highlight__nav-btn.swiper-button-disabled {
	opacity: 0.35;
	cursor: not-allowed;
	pointer-events: none;
}

.mtt-posts-highlight__slider-shell .mtt-posts-highlight__nav--prev {
	left: 0;
}

.mtt-posts-highlight__slider-shell .mtt-posts-highlight__nav--next {
	right: 0;
}

.mtt-posts-highlight__nav--prev .mtt-posts-highlight__nav-icon {
	transform: scaleX(-1);
}

/* Show arrows only on hover / focus (devices with fine pointer); touch keeps controls visible */
.mtt-posts-highlight__slider-shell .mtt-posts-highlight__nav-btn {
	opacity: 1;
	pointer-events: auto;
}

@media (hover: hover) and (pointer: fine) {
	.mtt-posts-highlight__slider-shell .mtt-posts-highlight__nav-btn {
		opacity: 0;
		pointer-events: none;
	}

	.mtt-posts-highlight__slider-shell:hover .mtt-posts-highlight__nav-btn,
	.mtt-posts-highlight__slider-shell:focus-within .mtt-posts-highlight__nav-btn {
		opacity: 1;
		pointer-events: auto;
	}

	.mtt-posts-highlight__slider-shell:hover .mtt-posts-highlight__nav-btn.swiper-button-disabled,
	.mtt-posts-highlight__slider-shell:focus-within .mtt-posts-highlight__nav-btn.swiper-button-disabled {
		opacity: 0.35;
		pointer-events: none;
	}
}

/* 768px and below: slider without arrows (swipe only); grid layout forces 2 columns */
@media (max-width: 768px) {
	.mtt-posts-highlight__slider-shell {
		width: 100%;
		margin-left: 0;
		margin-right: 0;
		padding-left: 0;
		padding-right: 0;
	}

	.mtt-posts-highlight__slider-shell .mtt-posts-highlight__nav-btn {
		display: none;
	}

	.mtt-posts-highlight__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.mtt-posts-highlight__swiper .swiper-wrapper {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mtt-posts-highlight__slide.swiper-slide {
	height: auto;
	display: flex;
	flex-direction: column;
}

.mtt-posts-highlight__slide .post-card {
	flex: 1 1 auto;
	min-height: 0;
}

/*
 * Swiper applies transforms on ancestors; raise copy above the stretched overlay-link
 * (which would otherwise composite on top on some GPUs) while keeping taps on the overlay.
 */
.mtt-posts-highlight__swiper .post-card__body {
	position: relative;
	z-index: 2;
	pointer-events: none;
}

.mtt-posts-highlight__swiper .post-card__overlay-link {
	pointer-events: auto;
}

.mtt-posts-highlight--editor .mtt-posts-highlight__swiper {
	display: none;
}

.mtt-posts-highlight--editor .mtt-posts-highlight__grid--editor-fallback {
	display: grid;
}

.mtt-posts-highlight:not(.mtt-posts-highlight--editor) .mtt-posts-highlight__grid--editor-fallback {
	display: none;
}

.mtt-posts-highlight__editor-hint {
	margin: 0 0 1rem;
	font-size: 0.875rem;
	opacity: 0.85;
}

.mtt-posts-highlight__placeholder {
	margin: 0;
	font-size: 0.9375rem;
}

@media (prefers-reduced-motion: reduce) {
	.mtt-posts-highlight__swiper .swiper-wrapper {
		transition: none;
	}
}
@media (max-width:1240px) {
	.mtt-posts-highlight__inner {
		    max-width: 1045px;
	}
}
@media (max-width:1080px) {
	.mtt-posts-highlight__inner {
		max-width:85%;
	}
}
@media (max-width:1000px) {
	.mtt-posts-highlight__grid {
gap:20px;}
}
@media (max-width: 768px) {
	.mtt-posts-highlight__title {
		font-size:32px;
	}
	    .mtt-posts-highlight__inner {
        max-width: 95%;
    }
	.mtt-posts-highlight__graphic-wrap {
	    width: 70px;
	    left: 0;
	    top: -89px;
	}
}