/**
 * ShopGen Fancy Grid — multi-layout category / image grids
 * Mobile-first, then desktop asymmetric layouts.
 */

.sg-fancy-grid {
	--sg-fg-gap: 16px;
	--sg-fg-radius: 0px;
	--sg-fg-accent: #a84524;
	--sg-fg-label-bg: #fdf2e9;
	--sg-fg-label-color: #a84524;
	--sg-fg-overlay: rgba(28, 27, 25, 0.45);
	--sg-fg-text: #1c1b19;
	--sg-fg-cream: #fdf2e9;
	width: 100%;
	box-sizing: border-box;
}

.sg-fancy-grid *,
.sg-fancy-grid *::before,
.sg-fancy-grid *::after {
	box-sizing: border-box;
}

.sg-fancy-grid--empty {
	padding: 24px;
	border: 1px dashed rgba(168, 69, 36, 0.35);
	background: var(--sg-fg-cream);
	color: #666;
	text-align: center;
}

.sg-fancy-grid__header {
	margin: 0 0 1.25rem;
	text-align: center;
}

.sg-fancy-grid__heading {
	margin: 0 0 0.35rem;
	font-size: var(--sg-fg-heading-size, clamp(1.35rem, 2.4vw, 1.85rem));
	font-weight: var(--sg-fg-heading-weight, 600);
	color: var(--sg-fg-heading-color, var(--sg-fg-text));
	letter-spacing: 0.02em;
}

.sg-fancy-grid__subheading {
	margin: 0;
	font-size: var(--sg-fg-subheading-size, 0.95rem);
	color: #6b6560;
}

.sg-fancy-grid__title,
.sg-fancy-grid__label-text,
.sg-fancy-grid__chip-text {
	font-size: var(--sg-fg-title-size, 0.82rem);
	font-weight: var(--sg-fg-title-weight, 600);
	text-transform: var(--sg-fg-title-transform, none);
	letter-spacing: var(--sg-fg-title-tracking, 0.01em);
	line-height: 1.3;
}

.sg-fancy-grid__title {
	font-size: var(--sg-fg-title-size, clamp(1.05rem, 2.2vw, 1.55rem));
	font-weight: var(--sg-fg-title-weight, 700);
	line-height: 1.15;
	letter-spacing: var(--sg-fg-title-tracking, -0.01em);
}

.sg-fancy-grid__meta {
	font-size: var(--sg-fg-meta-size, 0.78rem);
	opacity: 0.88;
	font-weight: 500;
}

.sg-fancy-grid__label {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	padding: var(--sg-fg-label-pad-y, 10px) var(--sg-fg-label-pad-x, 14px);
	background: var(--sg-fg-label-bg);
	color: var(--sg-fg-label-color);
	font-size: var(--sg-fg-title-size, 0.82rem);
	font-weight: var(--sg-fg-title-weight, 600);
	letter-spacing: var(--sg-fg-title-tracking, 0.01em);
	text-transform: var(--sg-fg-title-transform, none);
	line-height: 1.3;
}

/* —— Cards —— */
.sg-fancy-grid__grid {
	display: grid;
	gap: var(--sg-fg-gap);
	width: 100%;
}

.sg-fancy-grid__cell {
	min-width: 0;
}

.sg-fancy-grid__card {
	display: flex;
	flex-direction: column;
	position: relative;
	height: 100%;
	min-height: 180px;
	overflow: hidden;
	border-radius: var(--sg-fg-radius);
	border: var(--sg-fg-tile-border-w, 0) solid var(--sg-fg-tile-border-c, rgba(28, 27, 25, 0.12));
	text-decoration: none;
	color: inherit;
	background: var(--sg-fg-tile-shade, #eee);
	box-shadow: var(--sg-fg-tile-shadow, none);
	isolation: isolate;
	transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.sg-fancy-grid__card:hover,
.sg-fancy-grid__card:focus-visible {
	transform: translateY(-2px);
	box-shadow: var(--sg-fg-tile-hover-shadow, 0 12px 28px rgba(28, 27, 25, 0.12));
	outline: none;
}

.sg-fancy-grid__media {
	position: relative;
	flex: 1 1 auto;
	display: block;
	min-height: 160px;
	overflow: hidden;
	background-size: cover;
	background-position: center;
}

.sg-fancy-grid__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.55s ease;
}

.sg-fancy-grid__card:hover .sg-fancy-grid__img {
	transform: scale(1.04);
}

.sg-fancy-grid__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 160px;
	background: linear-gradient(135deg, #e8dfd4, #d4c4b0);
}

.sg-fancy-grid__shade {
	display: none;
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 1;
}

.sg-fancy-grid__body {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
}

.sg-fancy-grid__copy {
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-width: 90%;
}

/* Label bar (atelier / image 1) */
.sg-fancy-grid-style--label-bar .sg-fancy-grid__card {
	background: var(--sg-fg-label-bg);
}

.sg-fancy-grid-style--label-bar .sg-fancy-grid__media {
	flex: 1 1 auto;
	aspect-ratio: 4 / 3;
	min-height: 140px;
}

.sg-fancy-grid-style--label-bar .sg-fancy-grid__body {
	display: none;
}

.sg-fancy-grid__label-arrow {
	font-size: 0.95rem;
	line-height: 1;
	transition: transform 0.25s ease;
}

.sg-fancy-grid__card:hover .sg-fancy-grid__label-arrow {
	transform: translateX(3px);
}

/* Overlay badge (image 2) */
.sg-fancy-grid-style--overlay-badge .sg-fancy-grid__media,
.sg-fancy-grid-style--overlay-soft .sg-fancy-grid__media,
.sg-fancy-grid-style--caption-chip .sg-fancy-grid__media,
.sg-fancy-grid-style--minimal .sg-fancy-grid__media {
	position: absolute;
	inset: 0;
	min-height: 100%;
	aspect-ratio: auto;
}

.sg-fancy-grid-style--overlay-badge .sg-fancy-grid__card,
.sg-fancy-grid-style--overlay-soft .sg-fancy-grid__card,
.sg-fancy-grid-style--caption-chip .sg-fancy-grid__card,
.sg-fancy-grid-style--minimal .sg-fancy-grid__card {
	min-height: 220px;
}

.sg-fancy-grid-style--overlay-badge .sg-fancy-grid__shade {
	display: block;
	background: linear-gradient(160deg, var(--sg-fg-overlay) 0%, rgba(0, 0, 0, 0.15) 45%, rgba(0, 0, 0, 0.55) 100%);
}

.sg-fancy-grid-style--overlay-badge .sg-fancy-grid__copy {
	position: absolute;
	top: 18px;
	left: 18px;
	color: #fff;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.sg-fancy-grid__badge {
	position: absolute;
	left: 16px;
	bottom: 16px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--sg-fg-accent);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(168, 69, 36, 0.35);
}

.sg-fancy-grid__orb {
	position: absolute;
	right: 16px;
	bottom: 16px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, 0.9);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.25s ease, color 0.25s ease;
}

.sg-fancy-grid__card:hover .sg-fancy-grid__orb {
	background: #fff;
	color: var(--sg-fg-accent);
}

/* Overlay soft — bottom gradient caption */
.sg-fancy-grid-style--overlay-soft .sg-fancy-grid__shade {
	display: block;
	background: linear-gradient(to top, rgba(28, 27, 25, 0.78) 0%, rgba(28, 27, 25, 0.2) 45%, transparent 70%);
}

.sg-fancy-grid-style--overlay-soft .sg-fancy-grid__copy {
	position: absolute;
	left: 16px;
	right: 56px;
	bottom: 18px;
	color: #fff;
}

.sg-fancy-grid-style--overlay-soft .sg-fancy-grid__orb {
	bottom: 14px;
}

/* Caption chip */
.sg-fancy-grid-style--caption-chip .sg-fancy-grid__shade {
	display: block;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent 50%);
}

.sg-fancy-grid-style--caption-chip .sg-fancy-grid__copy {
	display: none;
}

.sg-fancy-grid__chip {
	position: absolute;
	left: 14px;
	bottom: 14px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(253, 242, 233, 0.94);
	color: var(--sg-fg-accent);
	font-size: 0.8rem;
	font-weight: 600;
	backdrop-filter: blur(6px);
	pointer-events: none;
}

/* Minimal — hover reveal */
.sg-fancy-grid-style--minimal .sg-fancy-grid__shade {
	display: block;
	background: rgba(28, 27, 25, 0);
	transition: background 0.3s ease;
}

.sg-fancy-grid-style--minimal .sg-fancy-grid__card:hover .sg-fancy-grid__shade {
	background: rgba(28, 27, 25, 0.4);
}

.sg-fancy-grid-style--minimal .sg-fancy-grid__copy {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #fff;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.3s ease, transform 0.3s ease;
	padding: 16px;
}

.sg-fancy-grid-style--minimal .sg-fancy-grid__card:hover .sg-fancy-grid__copy {
	opacity: 1;
	transform: none;
}

/* ========== LAYOUTS — mobile first (stack / 2-col) ========== */
.sg-fancy-grid--bento-atelier .sg-fancy-grid__grid,
.sg-fancy-grid--magazine .sg-fancy-grid__grid,
.sg-fancy-grid--mosaic-feature .sg-fancy-grid__grid,
.sg-fancy-grid--hero-split .sg-fancy-grid__grid,
.sg-fancy-grid--cascade .sg-fancy-grid__grid,
.sg-fancy-grid--zigzag .sg-fancy-grid__grid,
.sg-fancy-grid--spotlight .sg-fancy-grid__grid {
	grid-template-columns: 1fr 1fr;
}

.sg-fancy-grid--bento-atelier .sg-fancy-grid__cell--3,
.sg-fancy-grid--bento-atelier .sg-fancy-grid__cell--4,
.sg-fancy-grid--magazine .sg-fancy-grid__cell--3,
.sg-fancy-grid--spotlight .sg-fancy-grid__cell--1 {
	grid-column: 1 / -1;
}

.sg-fancy-grid--bento-atelier .sg-fancy-grid__cell--3 .sg-fancy-grid__card,
.sg-fancy-grid--bento-atelier .sg-fancy-grid__cell--4 .sg-fancy-grid__card,
.sg-fancy-grid--magazine .sg-fancy-grid__cell--3 .sg-fancy-grid__card,
.sg-fancy-grid--spotlight .sg-fancy-grid__cell--1 .sg-fancy-grid__card {
	min-height: 220px;
}

.sg-fancy-grid--strip .sg-fancy-grid__grid {
	display: flex;
	gap: var(--sg-fg-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 6px;
}

.sg-fancy-grid--strip .sg-fancy-grid__cell {
	flex: 0 0 min(78vw, 280px);
	scroll-snap-align: start;
}

.sg-fancy-grid--strip .sg-fancy-grid__card {
	min-height: 260px;
}

.sg-fancy-grid--grid-2 .sg-fancy-grid__grid {
	grid-template-columns: 1fr 1fr;
}

.sg-fancy-grid--grid-3 .sg-fancy-grid__grid,
.sg-fancy-grid--grid-4 .sg-fancy-grid__grid {
	grid-template-columns: 1fr 1fr;
}

.sg-fancy-grid-style--label-bar.sg-fancy-grid--bento-atelier .sg-fancy-grid__media,
.sg-fancy-grid-style--label-bar .sg-fancy-grid__media {
	aspect-ratio: 1 / 1;
}

/*
 * Mobile 2-col: when the last item sits alone (odd count), span full width
 * so e.g. 3 cards read as 2 + 1 featured strip instead of a half-empty row.
 */
@media (max-width: 639px) {
	.sg-fancy-grid--mosaic-feature .sg-fancy-grid__cell:last-child:nth-child(odd),
	.sg-fancy-grid--hero-split .sg-fancy-grid__cell:last-child:nth-child(odd),
	.sg-fancy-grid--cascade .sg-fancy-grid__cell:last-child:nth-child(odd),
	.sg-fancy-grid--zigzag .sg-fancy-grid__cell:last-child:nth-child(odd),
	.sg-fancy-grid--grid-2 .sg-fancy-grid__cell:last-child:nth-child(odd),
	.sg-fancy-grid--grid-3 .sg-fancy-grid__cell:last-child:nth-child(odd),
	.sg-fancy-grid--grid-4 .sg-fancy-grid__cell:last-child:nth-child(odd),
	.sg-fancy-grid--bento-atelier .sg-fancy-grid__cell:last-child:nth-child(odd),
	.sg-fancy-grid--magazine .sg-fancy-grid__cell:last-child:nth-child(odd),
	.sg-fancy-grid--spotlight .sg-fancy-grid__cell:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	/* Landscape crop so the full-width tile feels intentional, not a giant square */
	.sg-fancy-grid-style--label-bar .sg-fancy-grid__cell:last-child:nth-child(odd) .sg-fancy-grid__media {
		aspect-ratio: 16 / 9;
	}

	.sg-fancy-grid-style--overlay-badge .sg-fancy-grid__cell:last-child:nth-child(odd) .sg-fancy-grid__card,
	.sg-fancy-grid-style--overlay-soft .sg-fancy-grid__cell:last-child:nth-child(odd) .sg-fancy-grid__card,
	.sg-fancy-grid-style--caption-chip .sg-fancy-grid__cell:last-child:nth-child(odd) .sg-fancy-grid__card,
	.sg-fancy-grid-style--minimal .sg-fancy-grid__cell:last-child:nth-child(odd) .sg-fancy-grid__card {
		min-height: 200px;
	}
}

/* Fancy layouts stay 2-col until desktop — same orphan fix on tablet */
@media (min-width: 640px) and (max-width: 921px) {
	.sg-fancy-grid--mosaic-feature .sg-fancy-grid__cell:last-child:nth-child(odd),
	.sg-fancy-grid--hero-split .sg-fancy-grid__cell:last-child:nth-child(odd),
	.sg-fancy-grid--zigzag .sg-fancy-grid__cell:last-child:nth-child(odd),
	.sg-fancy-grid--bento-atelier .sg-fancy-grid__cell:last-child:nth-child(odd),
	.sg-fancy-grid--magazine .sg-fancy-grid__cell:last-child:nth-child(odd),
	.sg-fancy-grid--spotlight .sg-fancy-grid__cell:last-child:nth-child(odd),
	.sg-fancy-grid--grid-2 .sg-fancy-grid__cell:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	.sg-fancy-grid-style--label-bar.sg-fancy-grid--mosaic-feature .sg-fancy-grid__cell:last-child:nth-child(odd) .sg-fancy-grid__media,
	.sg-fancy-grid-style--label-bar.sg-fancy-grid--hero-split .sg-fancy-grid__cell:last-child:nth-child(odd) .sg-fancy-grid__media,
	.sg-fancy-grid-style--label-bar.sg-fancy-grid--zigzag .sg-fancy-grid__cell:last-child:nth-child(odd) .sg-fancy-grid__media,
	.sg-fancy-grid-style--label-bar.sg-fancy-grid--grid-2 .sg-fancy-grid__cell:last-child:nth-child(odd) .sg-fancy-grid__media {
		aspect-ratio: 16 / 9;
	}
}

/* Tablet+ denser */
@media (min-width: 640px) {
	.sg-fancy-grid--grid-3 .sg-fancy-grid__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.sg-fancy-grid--grid-4 .sg-fancy-grid__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.sg-fancy-grid--cascade .sg-fancy-grid__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.sg-fancy-grid--cascade .sg-fancy-grid__cell--1,
	.sg-fancy-grid--cascade .sg-fancy-grid__cell--4 {
		grid-row: span 2;
	}

	.sg-fancy-grid--cascade .sg-fancy-grid__cell--1 .sg-fancy-grid__card,
	.sg-fancy-grid--cascade .sg-fancy-grid__cell--4 .sg-fancy-grid__card {
		min-height: 100%;
	}

	.sg-fancy-grid--zigzag .sg-fancy-grid__grid {
		grid-template-columns: 1.15fr 0.85fr 1.15fr 0.85fr;
	}

	.sg-fancy-grid--zigzag .sg-fancy-grid__cell--1 .sg-fancy-grid__card,
	.sg-fancy-grid--zigzag .sg-fancy-grid__cell--3 .sg-fancy-grid__card {
		min-height: 320px;
	}

	.sg-fancy-grid--zigzag .sg-fancy-grid__cell--2 .sg-fancy-grid__card,
	.sg-fancy-grid--zigzag .sg-fancy-grid__cell--4 .sg-fancy-grid__card {
		min-height: 240px;
		margin-top: 40px;
	}
}

/* Desktop asymmetric layouts matching references */
@media (min-width: 922px) {
	/* Atelier bento — image 1:
	   [1 Planters ][3 Vases ]
	   [2 Serveware][3 Vases ]
	   [4 Lanterns ][5 Clocks] */
	.sg-fancy-grid--bento-atelier .sg-fancy-grid__grid {
		grid-template-columns: 1.2fr 1fr;
		grid-template-rows: repeat(4, minmax(130px, 1fr));
		min-height: 680px;
	}

	.sg-fancy-grid--bento-atelier .sg-fancy-grid__cell--1 {
		grid-column: 1;
		grid-row: 1 / 2;
	}

	.sg-fancy-grid--bento-atelier .sg-fancy-grid__cell--2 {
		grid-column: 1;
		grid-row: 2 / 3;
	}

	.sg-fancy-grid--bento-atelier .sg-fancy-grid__cell--3 {
		grid-column: 2;
		grid-row: 1 / 3;
	}

	.sg-fancy-grid--bento-atelier .sg-fancy-grid__cell--4 {
		grid-column: 1;
		grid-row: 3 / 5;
	}

	.sg-fancy-grid--bento-atelier .sg-fancy-grid__cell--5 {
		grid-column: 2;
		grid-row: 3 / 5;
	}

	.sg-fancy-grid--bento-atelier .sg-fancy-grid__cell .sg-fancy-grid__card {
		min-height: 0;
		height: 100%;
	}

	.sg-fancy-grid-style--label-bar.sg-fancy-grid--bento-atelier .sg-fancy-grid__media {
		aspect-ratio: auto;
		flex: 1 1 auto;
		min-height: 0;
	}

	/* Magazine — image 2: two top + one wide */
	.sg-fancy-grid--magazine .sg-fancy-grid__grid {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: minmax(260px, 1fr) minmax(240px, 0.85fr);
		min-height: 540px;
	}

	.sg-fancy-grid--magazine .sg-fancy-grid__cell--1,
	.sg-fancy-grid--magazine .sg-fancy-grid__cell--2 {
		grid-column: auto;
	}

	.sg-fancy-grid--magazine .sg-fancy-grid__cell--3 {
		grid-column: 1 / -1;
	}

	.sg-fancy-grid--magazine .sg-fancy-grid__card {
		min-height: 100%;
		border-radius: max(var(--sg-fg-radius), 22px);
	}

	/* Mosaic feature: tall left + two right */
	.sg-fancy-grid--mosaic-feature .sg-fancy-grid__grid {
		grid-template-columns: 1.2fr 1fr;
		grid-template-rows: 1fr 1fr;
		min-height: 560px;
	}

	.sg-fancy-grid--mosaic-feature .sg-fancy-grid__cell--1 {
		grid-column: 1;
		grid-row: 1 / 3;
	}

	.sg-fancy-grid--mosaic-feature .sg-fancy-grid__cell--2 {
		grid-column: 2;
		grid-row: 1;
	}

	.sg-fancy-grid--mosaic-feature .sg-fancy-grid__cell--3 {
		grid-column: 2;
		grid-row: 2;
	}

	/* Hero split: big left + two stacked right (inverse mosaic) */
	.sg-fancy-grid--hero-split .sg-fancy-grid__grid {
		grid-template-columns: 1.35fr 1fr;
		grid-template-rows: 1fr 1fr;
		min-height: 520px;
	}

	.sg-fancy-grid--hero-split .sg-fancy-grid__cell--1 {
		grid-column: 1;
		grid-row: 1 / 3;
	}

	.sg-fancy-grid--hero-split .sg-fancy-grid__cell--2 {
		grid-column: 2;
		grid-row: 1;
	}

	.sg-fancy-grid--hero-split .sg-fancy-grid__cell--3 {
		grid-column: 2;
		grid-row: 2;
	}

	/* Spotlight: center hero + side cards */
	.sg-fancy-grid--spotlight .sg-fancy-grid__grid {
		grid-template-columns: 0.85fr 1.3fr 0.85fr;
		grid-template-rows: 1fr 1fr;
		min-height: 520px;
	}

	.sg-fancy-grid--spotlight .sg-fancy-grid__cell--1 {
		grid-column: 2;
		grid-row: 1 / 3;
	}

	.sg-fancy-grid--spotlight .sg-fancy-grid__cell--2 {
		grid-column: 1;
		grid-row: 1;
	}

	.sg-fancy-grid--spotlight .sg-fancy-grid__cell--3 {
		grid-column: 1;
		grid-row: 2;
	}

	.sg-fancy-grid--spotlight .sg-fancy-grid__cell--4 {
		grid-column: 3;
		grid-row: 1;
	}

	.sg-fancy-grid--spotlight .sg-fancy-grid__cell--5 {
		grid-column: 3;
		grid-row: 2;
	}

	.sg-fancy-grid--strip .sg-fancy-grid__grid {
		display: grid;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		overflow: visible;
	}

	.sg-fancy-grid--strip .sg-fancy-grid__cell {
		flex: none;
	}
}

/* Full-bleed when aligned full */
.sg-fancy-grid.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding-left: 20px;
	padding-right: 20px;
}

.sg-fancy-grid.alignwide {
	max-width: min(1200px, 100%);
	margin-left: auto;
	margin-right: auto;
}

/* Editor canvas: keep preview interactive-looking but non-navigating */
.editor-styles-wrapper .sg-fancy-grid--editor-preview,
.sg-fancy-grid--editor-preview {
	pointer-events: none;
	user-select: none;
}

.editor-styles-wrapper .sg-fancy-grid--editor-preview .sg-fancy-grid__card:hover,
.sg-fancy-grid--editor-preview .sg-fancy-grid__card:hover {
	transform: none;
	box-shadow: none;
}
	.sg-fancy-grid__card,
	.sg-fancy-grid__img,
	.sg-fancy-grid__label-arrow,
	.sg-fancy-grid__orb,
	.sg-fancy-grid-style--minimal .sg-fancy-grid__copy {
		transition: none;
	}

	.sg-fancy-grid__card:hover .sg-fancy-grid__img {
		transform: none;
	}
}

/* Very small phones: single column for complex layouts */
@media (max-width: 419px) {
	.sg-fancy-grid--bento-atelier .sg-fancy-grid__grid,
	.sg-fancy-grid--magazine .sg-fancy-grid__grid,
	.sg-fancy-grid--mosaic-feature .sg-fancy-grid__grid,
	.sg-fancy-grid--hero-split .sg-fancy-grid__grid,
	.sg-fancy-grid--cascade .sg-fancy-grid__grid,
	.sg-fancy-grid--zigzag .sg-fancy-grid__grid,
	.sg-fancy-grid--spotlight .sg-fancy-grid__grid,
	.sg-fancy-grid--grid-2 .sg-fancy-grid__grid,
	.sg-fancy-grid--grid-3 .sg-fancy-grid__grid,
	.sg-fancy-grid--grid-4 .sg-fancy-grid__grid {
		grid-template-columns: 1fr;
	}

	.sg-fancy-grid--bento-atelier .sg-fancy-grid__cell--3,
	.sg-fancy-grid--bento-atelier .sg-fancy-grid__cell--4,
	.sg-fancy-grid--magazine .sg-fancy-grid__cell--3,
	.sg-fancy-grid--spotlight .sg-fancy-grid__cell--1 {
		grid-column: auto;
	}

	.sg-fancy-grid--zigzag .sg-fancy-grid__cell--2 .sg-fancy-grid__card,
	.sg-fancy-grid--zigzag .sg-fancy-grid__cell--4 .sg-fancy-grid__card {
		margin-top: 0;
	}
}
