/* Blog — aligned with RaveYourFave brand refresh */
.blog-wrap {
	overflow: hidden;
	width: 100%;
	float: none;
	max-width: none;
	clear: both;
}
.blog-main {
	width: 78%;
	float: left;
	padding-right: 1.5rem;
	box-sizing: border-box;
	font-size: 1.05rem;
	color: var(--ryf-ink, #171417);
}
.blog-side {
	width: 20%;
	float: right;
	padding: 0.25rem 0 1rem;
	box-sizing: border-box;
	font-size: 0.9rem;
}
.blog-side h2 {
	font-family: var(--ryf-display, "Sora", sans-serif);
	font-size: 1rem;
	margin: 1.4em 0 0.5em;
	color: var(--ryf-red, #e63520);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.blog-side ul { margin: 0; padding: 0; list-style: none; }
.blog-side li { margin: 0.35rem 0; }
.blog-side a { color: var(--ryf-ink-soft, #3a3234); }
.blog-side a:hover { color: var(--ryf-red, #e63520); }

/* Index listing cards */
.blog-post {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.25rem;
	margin: 0 0 2.2em;
	padding-bottom: 1.5em;
	border-bottom: 1px solid var(--ryf-line, #e2e2e0);
}
.blog-post-media {
	flex: 0 0 160px;
	width: 160px;
}
.blog-post-media img {
	display: block;
	width: 160px;
	height: 120px;
	object-fit: cover;
	border-radius: 12px;
	background: var(--ryf-wash, #f1f1ef);
}
.blog-post-body { flex: 1 1 280px; min-width: 0; }
.blog-thumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	margin: 0.65rem 0 0.25rem;
}
.blog-entry .blog-thumbs a {
	display: block;
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	max-width: 56px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border-radius: 8px;
	line-height: 0;
}
.blog-entry .blog-thumbs img {
	width: 56px !important;
	height: 56px !important;
	max-width: none !important;
	object-fit: cover;
	border-radius: 8px;
	display: block;
	margin: 0;
}
.blog-post h2 {
	font-family: var(--ryf-display, "Sora", sans-serif);
	font-size: clamp(1.35rem, 2.4vw, 1.75rem);
	margin: 0 0 0.35em;
	line-height: 1.2;
}
.blog-post h2 a { color: var(--ryf-ink, #171417); text-decoration: none; }
.blog-post h2 a:hover { color: var(--ryf-red, #e63520); }
.blog-meta {
	color: var(--ryf-muted, #6f6466);
	font-size: 0.9em;
	margin: 0 0 0.85em;
	display: block;
}

/* Single article: stack title + body (do not use listing flex) */
.blog-single .blog-main {
	width: 100%;
	float: none;
	padding-right: 0;
	max-width: 760px;
}
.blog-single .blog-post {
	display: block;
	gap: 0;
	margin: 0 0 1.5em;
	padding-bottom: 0;
	border-bottom: 0;
}
.blog-single .blog-post h2 {
	margin: 0 0 0.4em;
	font-size: clamp(1.9rem, 3.8vw, 2.45rem);
}

/* Never show TinyMCE restaurant-unit chrome on the public blog */
.blog-entry .ryf-float-ctrl,
.blog-entry .ryf-float-ctrl__label,
.blog-entry .ryf-add-rave-btn,
.blog-entry .ryf-remove-rave-btn {
	display: none !important;
}

/* Restaurant content unit — name, floated hero + wrapping text, dish thumbnails */
.blog-rest-unit {
	margin: 0 0 3.25rem;
	padding: 0 0 2.5rem;
	border-bottom: 1px solid var(--ryf-line, #e2e2e0);
	overflow: hidden; /* clear floats within the unit */
}
.blog-rest-unit:last-child {
	border-bottom: 0;
	margin-bottom: 2rem;
	padding-bottom: 1.25rem;
}
.blog-entry .blog-rest-unit-name,
.blog-rest-unit-name {
	font-family: var(--ryf-display, "Sora", sans-serif);
	font-size: clamp(1.5rem, 2.9vw, 2rem);
	margin: 0 0 0.85rem;
	line-height: 1.2;
	clear: both;
	color: var(--ryf-red-deep, #c42a18);
}
.blog-entry .blog-rest-unit:first-child,
.blog-entry > .blog-rest-unit {
	margin-top: 0;
}
.blog-entry .blog-rest-unit-name a,
.blog-rest-unit-name a {
	color: var(--ryf-red-deep, #c42a18);
	text-decoration: none;
}
.blog-entry .blog-rest-unit-name a:hover,
.blog-rest-unit-name a:hover {
	color: var(--ryf-ink, #171417);
}
.blog-rest-unit-intro {
	margin: 0 0 1.1rem;
	/* no overflow:hidden here — allows text to wrap under the floated hero */
}
.blog-entry .blog-rest-unit-hero {
	float: left !important;
	display: block !important;
	width: 220px;
	max-width: 42%;
	margin: 0.1rem 1.2rem 0.85rem 0 !important;
	border-radius: 12px;
	overflow: hidden;
	background: var(--ryf-wash, #f1f1ef);
	line-height: 0;
	shape-outside: margin-box;
}
.blog-entry .blog-rest-unit-intro--right .blog-rest-unit-hero {
	float: right !important;
	margin: 0.1rem 0 0.85rem 1.2rem !important;
}
.blog-rest-unit-hero img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	border-radius: 12px;
	float: none !important;
	margin: 0 !important;
}
.blog-rest-unit-text {
	display: block;
	overflow: visible; /* critical: do not create a BFC that blocks wrap */
}
.blog-rest-unit-text p {
	margin: 0 0 0.85em;
}
.blog-rest-unit-text p:last-child {
	margin-bottom: 0;
}
.blog-rest-unit-dishes {
	clear: both;
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin: 2rem 0 1rem;
}
.blog-rest-unit-dishes a {
	display: block;
	flex: 0 0 auto;
	width: 88px;
	height: 88px;
	margin: 0;
	border-radius: 8px;
	overflow: hidden;
	background: var(--ryf-wash, #f1f1ef);
	line-height: 0;
}
.blog-entry .blog-rest-unit-dishes img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: cover;
	object-position: center;
	border-radius: 8px;
	float: none !important;
	margin: 0 !important;
}

/* Best-of ranked list — automatic countdown numbers (worst → best) */
.blog-bestof {
	clear: both;
	margin: 1.5rem 0 2.25rem;
}
.blog-bestof-list {
	list-style: decimal;
	margin: 0;
	padding: 0 0 0 2.4rem;
}
.blog-bestof-list > .blog-bestof-entry {
	margin: 0 0 2.75rem;
	padding: 0 0 2.1rem;
	border-bottom: 1px solid var(--ryf-line, #e2e2e0);
}
.blog-bestof-list > .blog-bestof-entry:last-child {
	margin-bottom: 0.5rem;
	padding-bottom: 0.5rem;
	border-bottom: 0;
}
.blog-bestof-list > .blog-bestof-entry::marker {
	font-family: var(--ryf-display, "Sora", sans-serif);
	font-weight: 800;
	font-size: 1.35rem;
	color: var(--ryf-red-deep, #c42a18);
}
.blog-entry .blog-bestof-entry-name,
.blog-bestof-entry-name {
	font-family: var(--ryf-display, "Sora", sans-serif);
	font-size: clamp(1.5rem, 2.9vw, 2rem);
	margin: 0 0 0.75rem;
	line-height: 1.2;
	color: var(--ryf-red-deep, #c42a18);
}
.blog-entry .blog-bestof-entry-name a,
.blog-bestof-entry-name a {
	color: var(--ryf-red-deep, #c42a18);
	text-decoration: none;
}
.blog-entry .blog-bestof-entry-name a:hover,
.blog-bestof-entry-name a:hover {
	color: var(--ryf-ink, #171417);
}
.blog-bestof-entry-text {
	margin: 0 0 1rem;
}
.blog-bestof-entry-text p {
	margin: 0 0 0.85em;
}
.blog-bestof-entry-text p:last-child {
	margin-bottom: 0;
}
.blog-bestof-entry-photos {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin: 0 0 0.85rem;
}
.blog-bestof-entry-photos a {
	display: block;
	flex: 0 0 auto;
	width: 88px;
	height: 88px;
	margin: 0;
	border-radius: 8px;
	overflow: hidden;
	background: var(--ryf-wash, #f1f1ef);
	line-height: 0;
}
.blog-entry .blog-bestof-entry-photos img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: cover;
	object-position: center;
	border-radius: 8px;
	float: none !important;
	margin: 0 !important;
}
.blog-bestof-entry-meta {
	margin: 0 0 0.85rem;
	padding: 0.55rem 0.7rem;
	border-left: 3px solid var(--ryf-line, #e2e2e0);
	background: var(--ryf-wash, #f7f1e7);
	border-radius: 0 8px 8px 0;
	font-size: 0.95rem;
	line-height: 1.45;
	color: var(--ryf-ink-soft, #3a3234);
}
.blog-bestof-entry-meta p {
	margin: 0;
}
.blog-bestof-summary {
	margin: 2rem 0 1rem;
	padding: 1.1rem 1.15rem;
	border: 1px solid var(--ryf-line, #e2e2e0);
	border-radius: 12px;
	background: #fffdf9;
}
.blog-entry .blog-bestof-summary h3,
.blog-bestof-summary h3 {
	margin: 0 0 0.55rem;
	font-size: 1.05rem;
	color: var(--ryf-ink, #171417);
}
.blog-bestof-summary + .blog-bestof-summary {
	margin-top: 1rem;
}
.blog-bestof-summary ol {
	margin: 0;
	padding-left: 1.25rem;
}
.blog-bestof-summary li {
	margin: 0.25rem 0;
}

/* Standalone photo series — same thumb treatment as dish photos */
.blog-photo-series {
	clear: both;
	margin: 1.75rem 0 2rem;
}
.blog-entry .blog-photo-series-label,
.blog-photo-series-label {
	margin: 0 0 0.65rem !important;
	font-family: var(--ryf-display, "Sora", sans-serif);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ryf-muted, #6f6466);
}
.blog-photo-series-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin: 0;
}
.blog-photo-series-grid a {
	display: block;
	flex: 0 0 auto;
	width: 88px;
	height: 88px;
	margin: 0;
	border-radius: 8px;
	overflow: hidden;
	background: var(--ryf-wash, #f1f1ef);
	line-height: 0;
}
.blog-entry .blog-photo-series-grid img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: cover;
	object-position: center;
	border-radius: 8px;
	float: none !important;
	margin: 0 !important;
}
.blog-rest-unit-raves {
	clear: both;
	margin: 0.15rem 0 0.35rem;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	font-size: 0.95rem;
	line-height: 1.45;
}
.blog-entry .blog-rest-unit-raves:not(:has(.blog-rest-unit-raves-list li)) {
	display: none;
}
.blog-rest-unit-raves-label {
	margin: 0 0 0.45rem;
	font-family: var(--ryf-display, "Sora", sans-serif);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ryf-muted, #6f6466);
}
.blog-rest-unit-raves-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: block;
}
.blog-rest-unit-raves-list li {
	list-style: none;
	margin: 0 0 0.35rem;
	padding: 0;
}
.blog-rest-unit-raves-list li:last-child {
	margin-bottom: 0;
}
.blog-rest-unit-raves-list a {
	font-weight: 700;
	color: var(--ryf-red-deep, #c42a18);
	text-decoration: none;
}
.blog-rest-unit-raves-list a:hover {
	color: var(--ryf-ink, #171417);
	text-decoration: underline;
}
@media (max-width: 640px) {
	.blog-rest-unit {
		margin-bottom: 2.5rem;
		padding-bottom: 1.75rem;
	}
	.blog-entry .blog-rest-unit-hero {
		float: left !important;
		width: 140px;
		max-width: 42%;
		margin: 0.1rem 0.9rem 0.65rem 0 !important;
	}
	.blog-entry .blog-rest-unit-intro--right .blog-rest-unit-hero {
		float: right !important;
		margin: 0.1rem 0 0.65rem 0.9rem !important;
	}
	.blog-rest-unit-dishes a,
	.blog-photo-series-grid a,
	.blog-bestof-entry-photos a {
		width: 72px;
		height: 72px;
	}
}

/* Article body */
.blog-entry {
	line-height: 1.7;
	overflow: hidden;
	font-size: 1.05rem;
	color: var(--ryf-ink-soft, #3a3234);
}
.blog-entry > *:first-child { margin-top: 0; }
.blog-entry p,
.blog-entry ul,
.blog-entry ol,
.blog-entry blockquote {
	margin: 0 0 1.15em;
}
.blog-entry h3,
.blog-entry h4 {
	font-family: var(--ryf-display, "Sora", sans-serif);
	color: var(--ryf-ink, #171417);
	margin: 1.5em 0 0.55em;
	line-height: 1.25;
}
.blog-entry a { color: var(--ryf-red-deep, #c42a18); }
.blog-entry a:hover { color: var(--ryf-ink, #171417); }

.blog-entry img {
	max-width: 100%;
	height: auto;
	display: inline-block;
	vertical-align: middle;
	border-radius: 12px;
	background: var(--ryf-wash, #f1f1ef);
	border: 0;
}
.blog-entry a:has(> img) {
	display: inline-block;
	max-width: 100%;
	line-height: 0;
	border-radius: 12px;
	overflow: hidden;
}

/* Legacy WordPress alignment — float so text can wrap */
.blog-entry a:has(> img.alignleft),
.blog-entry img.alignleft,
.blog-entry .alignleft {
	float: left;
	margin: 0.15em 1.1em 0.85em 0;
	clear: none;
	max-width: min(100%, 320px);
}
.blog-entry a:has(> img.alignright),
.blog-entry img.alignright,
.blog-entry .alignright {
	float: right;
	margin: 0.15em 0 0.85em 1.1em;
	clear: none;
	max-width: min(100%, 320px);
}
.blog-entry a:has(> img.alignleft) img.alignleft,
.blog-entry a:has(> img.alignright) img.alignright {
	float: none;
	display: block;
	margin: 0;
	max-width: 100%;
	height: auto;
}
.blog-entry img.aligncenter,
.blog-entry .aligncenter,
.blog-entry a.aligncenter {
	display: block;
	float: none;
	margin: 1.25em auto;
	clear: both;
}
.blog-entry img.alignnone,
.blog-entry .alignnone {
	display: block;
	float: none;
	margin: 1.15em 0;
}

/* Wide full/large images without float classes span the column */
.blog-entry img.size-full:not(.alignleft):not(.alignright),
.blog-entry img.size-large:not(.alignleft):not(.alignright) {
	float: none;
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	margin: 1.35em 0;
	clear: both;
}
.blog-entry a:has(> img.size-full:not(.alignleft):not(.alignright)),
.blog-entry a:has(> img.size-large:not(.alignleft):not(.alignright)) {
	display: block;
	float: none;
	width: 100%;
	margin: 1.35em 0;
	clear: both;
	max-width: none;
}

/* Floated full/large still wrap text, but stay reasonably sized */
.blog-entry img.alignleft.size-full,
.blog-entry img.alignleft.size-large,
.blog-entry a:has(> img.alignleft.size-full),
.blog-entry a:has(> img.alignleft.size-large) {
	float: left;
	width: auto;
	max-width: min(100%, 360px);
	clear: none;
}

.blog-entry img.size-medium {
	max-width: min(100%, 300px);
	height: auto;
}
.blog-entry img.size-thumbnail {
	max-width: 150px;
}

/* Adjacent medium photos as one floated group (text wraps beside) */
.blog-float-cluster {
	float: left;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0.75rem;
	max-width: min(100%, 640px);
	margin: 0.15em 1.15em 1em 0;
	clear: none;
}
.blog-float-cluster a,
.blog-float-cluster img {
	float: none !important;
	display: block !important;
	margin: 0 !important;
	clear: none !important;
	max-width: none !important;
}
.blog-float-cluster a {
	flex: 0 1 auto;
	line-height: 0;
	border-radius: 12px;
	overflow: hidden;
	background: var(--ryf-wash, #f1f1ef);
}
.blog-float-cluster img {
	width: auto !important;
	max-width: min(48vw, 300px) !important;
	max-height: 220px;
	height: auto !important;
	object-fit: cover;
	border-radius: 12px;
}

.blog-clear {
	clear: both;
	display: block;
	height: 0;
	margin: 0 0 0.35em;
	overflow: hidden;
}

.blog-caption,
.blog-entry .wp-caption {
	max-width: 100%;
	margin: 1.25em 0;
	text-align: center;
	font-size: 0.9em;
	color: var(--ryf-muted, #6f6466);
	line-height: 1.4;
}
.blog-caption img,
.blog-entry .wp-caption img {
	display: block;
	margin: 0 auto 0.5em;
	float: none;
}
.blog-caption.alignleft,
.blog-entry .wp-caption.alignleft {
	float: left;
	margin: 0.2em 1.15em 1em 0;
	text-align: left;
}
.blog-caption.alignright,
.blog-entry .wp-caption.alignright {
	float: right;
	margin: 0.2em 0 1em 1.15em;
	text-align: left;
}

/* Clustered photos → responsive gallery (fills row when space allows) */
.blog-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
	gap: 1rem;
	margin: 1.35em 0 1.55em;
	clear: both;
}
.blog-gallery a,
.blog-gallery img {
	float: none !important;
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	height: 100% !important;
	margin: 0 !important;
	clear: none !important;
}
.blog-gallery a {
	position: relative;
	overflow: hidden;
	border-radius: 12px;
	background: var(--ryf-wash, #f1f1ef);
	aspect-ratio: 1 / 1;
	box-sizing: border-box;
}
.blog-gallery img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	border-radius: 12px;
}


.blog-nav { overflow: hidden; margin: 1.5em 0; }
.blog-nav .older { float: left; }
.blog-nav .newer { float: right; }
.blog-empty { padding: 2em 0; color: var(--ryf-muted, #6f6466); }

@media (max-width: 800px) {
	.blog-main,
	.blog-side {
		float: none;
		width: 100%;
		padding-right: 0;
	}
	.blog-post-media,
	.blog-post-media img {
		width: 100%;
		max-width: 100%;
		height: auto;
		aspect-ratio: 16 / 10;
	}
	.blog-entry img.alignleft,
	.blog-entry img.alignright,
	.blog-entry .alignleft,
	.blog-entry .alignright,
	.blog-entry a:has(> img.alignleft),
	.blog-entry a:has(> img.alignright),
	.blog-caption.alignleft,
	.blog-caption.alignright,
	.blog-float-cluster {
		float: none;
		display: block;
		margin: 1.1em auto;
		max-width: 100%;
	}
	.blog-float-cluster {
		display: flex;
		justify-content: center;
	}
	.blog-float-cluster img {
		max-width: min(46vw, 280px) !important;
	}
	.blog-gallery {
		grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
		gap: 0.85rem;
	}
}
@media (max-width: 520px) {
	.blog-gallery {
		grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
		gap: 0.75rem;
	}
}

/* Image lightbox */
.blog-entry img,
.blog-gallery a,
.blog-photo-series-grid a {
	cursor: zoom-in;
}
html.blog-lightbox-open {
	overflow: hidden;
}
.blog-lightbox[hidden] {
	display: none !important;
}
.blog-lightbox {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}
.blog-lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 12, 12, 0.82);
	cursor: zoom-out;
}
.blog-lightbox-dialog {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(1100px, 100%);
	max-height: calc(100vh - 2rem);
}
.blog-lightbox-figure {
	margin: 0;
	max-width: 100%;
	max-height: calc(100vh - 2rem);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.65rem;
}
.blog-lightbox-img {
	display: block;
	max-width: min(100%, 1100px);
	max-height: calc(100vh - 5.5rem);
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 12px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
	background: #111;
}
.blog-lightbox-caption {
	margin: 0;
	padding: 0 1rem;
	color: #f4f1ef;
	font-size: 0.92rem;
	text-align: center;
	max-width: 40rem;
	line-height: 1.4;
}
.blog-lightbox-counter {
	position: absolute;
	left: 50%;
	bottom: -0.15rem;
	transform: translate(-50%, 100%);
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.04em;
}
.blog-lightbox-close,
.blog-lightbox-nav {
	appearance: none;
	border: 0;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	cursor: pointer;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, transform 0.15s ease;
}
.blog-lightbox-close:hover,
.blog-lightbox-nav:hover {
	background: rgba(255, 255, 255, 0.22);
}
.blog-lightbox-close {
	position: absolute;
	top: -0.25rem;
	right: -0.25rem;
	width: 2.5rem;
	height: 2.5rem;
	font-size: 1.6rem;
	line-height: 1;
	z-index: 2;
}
.blog-lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 2.75rem;
	height: 2.75rem;
	font-size: 1.35rem;
	z-index: 2;
}
.blog-lightbox-prev { left: 0.15rem; }
.blog-lightbox-next { right: 0.15rem; }
.blog-lightbox-nav[hidden] { display: none !important; }
@media (max-width: 700px) {
	.blog-lightbox {
		padding: 0.5rem;
	}
	.blog-lightbox-prev { left: 0; }
	.blog-lightbox-next { right: 0; }
	.blog-lightbox-close {
		top: 0.35rem;
		right: 0.35rem;
		background: rgba(0, 0, 0, 0.45);
	}
	.blog-lightbox-counter {
		position: static;
		transform: none;
		margin-top: 0.35rem;
	}
	.blog-lightbox-dialog {
		flex-direction: column;
	}
}
