.nicolau-restaurant-gallery {
	--nicolau-restaurant-gallery-bg: var(--nicolau-color-cream, #f6f3e4);
	--nicolau-restaurant-gallery-ink: var(--nicolau-restaurant-color-darker, var(--nicolau-color-green-dark, #022e22));
	--nicolau-restaurant-gallery-accent: var(
		--nicolau-restaurant-color,
		var(--nicolau-color-green-soft, #70a990)
	);
	--nicolau-restaurant-gallery-soft: var(
		--nicolau-restaurant-color-pale,
		var(--nicolau-color-green-light, #e0ede1)
	);
	--nicolau-restaurant-gallery-font-sans: var(--nicolau-font-sans, sans-serif);
	--nicolau-restaurant-gallery-font-heading: var(--nicolau-font-heading, sans-serif);
	--nicolau-restaurant-gallery-font-script: var(--nicolau-font-script, "Instrument Serif", serif);
	--nicolau-gallery-title-start-scale: 1;
	--nicolau-gallery-mask-opacity: 1;
	--nicolau-gallery-mosaic-opacity: 1;
	--nicolau-gallery-mosaic-scale: 1.02;
	--nicolau-gallery-mosaic-y: 18px;
	--nicolau-gallery-max-scale: 6.4;
	--nicolau-gallery-count: 9;
	--nicolau-gallery-gap: clamp(8px, 1vw, 14px);
	--nicolau-gallery-pad-x: clamp(16px, 4.5vw, 72px);
	--nicolau-gallery-radius: clamp(14px, 1.5vw, 24px);
	--nicolau-gallery-word-size: 220px;
	--nicolau-gallery-word-letter-spacing: 0;
	--nicolau-gallery-script-size: clamp(42px, 6.4vw, 92px);
	--nicolau-gallery-script-offset: clamp(58px, 8vw, 98px);

	position: relative;
	overflow: clip;
	color: var(--nicolau-restaurant-gallery-ink);
	background: transparent;
}

.nicolau-restaurant-gallery,
.nicolau-restaurant-gallery * {
	box-sizing: border-box;
}

.nicolau-restaurant-gallery__mask-layer {
	backface-visibility: hidden;
	will-change: opacity;
}

.nicolau-restaurant-gallery__first-fold {
	backface-visibility: hidden;
	will-change: transform, opacity;
}

.nicolau-restaurant-gallery__heading {
	position: absolute;
	overflow: hidden;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.nicolau-restaurant-gallery__scene {
	position: relative;
	min-height: 210vh;
	min-height: 210svh;
	background:
		radial-gradient(circle at 18% 20%, color-mix(in srgb, var(--nicolau-restaurant-gallery-soft) 52%, transparent) 0 18%, transparent 34%),
		linear-gradient(180deg, var(--nicolau-restaurant-gallery-bg) 0%, #fffaf0 100%);
}

.nicolau-restaurant-gallery__sticky {
	position: sticky;
	top: 0;
	overflow: hidden;
	height: 100vh;
	height: 100svh;
	min-height: 620px;
	background:
		radial-gradient(circle at 18% 20%, color-mix(in srgb, var(--nicolau-restaurant-gallery-soft) 52%, transparent) 0 18%, transparent 34%),
		linear-gradient(180deg, var(--nicolau-restaurant-gallery-bg) 0%, #fffaf0 100%);
}

.nicolau-restaurant-gallery__first-fold {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.88fr);
	grid-template-rows: repeat(2, minmax(0, 1fr));
	gap: var(--nicolau-gallery-gap);
	padding: clamp(92px, 14svh, 158px) var(--nicolau-gallery-pad-x) 0;
	opacity: var(--nicolau-gallery-mosaic-opacity);
	transform: translate3d(0, var(--nicolau-gallery-mosaic-y), 0) scale(var(--nicolau-gallery-mosaic-scale));
	transform-origin: center bottom;
}

.nicolau-restaurant-gallery__flow {
	position: relative;
	z-index: 3;
	height: auto;
	padding: var(--nicolau-gallery-gap) var(--nicolau-gallery-pad-x) clamp(70px, 9vw, 136px);
	background: linear-gradient(
		180deg,
		var(--nicolau-restaurant-gallery-bg, var(--nicolau-color-cream, #f6f3e4)) 0%,
		var(--nicolau-restaurant-color-soft, #e0ede1) 100%
	);
}

.nicolau-restaurant-gallery__mosaic {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	grid-auto-rows: minmax(132px, 20vh);
	grid-auto-flow: row dense;
	gap: var(--nicolau-gallery-gap);
	width: 100%;
	margin: 0;
}

.nicolau-restaurant-gallery__instagram {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	max-width: min(100%, 520px);
	margin: clamp(44px, 7vw, 92px) auto 0;
	padding: 0 12px;
	text-align: center;
}

.nicolau-restaurant-gallery__instagram-heart {
	display: block;
	width: clamp(34px, 5vw, 54px);
	height: auto;
	margin: 0 0 6px;
}

.nicolau-restaurant-gallery__instagram-label {
	margin: 0;
	font-family: var(--nicolau-restaurant-gallery-font-script);
	font-size: clamp(34px, 5vw, 64px);
	font-style: italic;
	font-weight: 400;
	line-height: 0.95;
	letter-spacing: 0;
	color: var(--nicolau-restaurant-gallery-ink);
}

.nicolau-restaurant-gallery__instagram-link {
	display: inline-block;
	max-width: 100%;
	font-family: var(--nicolau-restaurant-gallery-font-sans);
	font-size: clamp(22px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.05em;
	overflow-wrap: anywhere;
	text-decoration: none;
	color: var(--nicolau-restaurant-gallery-accent);
}

.nicolau-restaurant-gallery__instagram-link:hover,
.nicolau-restaurant-gallery__instagram-link:focus {
	color: var(--nicolau-restaurant-gallery-ink);
	text-decoration: none;
}

.nicolau-restaurant-gallery__item {
	position: relative;
	display: grid;
	place-items: center;
	overflow: hidden;
	min-width: 0;
	min-height: 0;
	margin: 0;
	background: rgba(var(--nicolau-color-green-dark-rgb, 2, 46, 34), 0.08);
	border-radius: var(--nicolau-gallery-radius);
	box-shadow: 0 22px 64px rgba(var(--nicolau-color-green-dark-rgb, 2, 46, 34), 0.14);
}

.nicolau-restaurant-gallery__first-fold .nicolau-restaurant-gallery__item--slot-1 {
	grid-column: 1;
	grid-row: 1 / span 2;
}

.nicolau-restaurant-gallery__first-fold .nicolau-restaurant-gallery__item--slot-2 {
	grid-column: 2;
	grid-row: 1;
}

.nicolau-restaurant-gallery__first-fold .nicolau-restaurant-gallery__item--slot-3 {
	grid-column: 2;
	grid-row: 2;
}

.nicolau-restaurant-gallery--count-4 .nicolau-restaurant-gallery__mosaic .nicolau-restaurant-gallery__item--slot-4 {
	grid-column: 1 / span 6;
	grid-row: 1 / span 2;
}

.nicolau-restaurant-gallery--count-5 .nicolau-restaurant-gallery__mosaic .nicolau-restaurant-gallery__item--slot-4 {
	grid-column: 1 / span 3;
	grid-row: 1 / span 2;
}

.nicolau-restaurant-gallery--count-5 .nicolau-restaurant-gallery__mosaic .nicolau-restaurant-gallery__item--slot-5 {
	grid-column: 4 / span 3;
	grid-row: 1 / span 2;
}

.nicolau-restaurant-gallery--count-6 .nicolau-restaurant-gallery__mosaic .nicolau-restaurant-gallery__item--slot-4,
.nicolau-restaurant-gallery--count-7 .nicolau-restaurant-gallery__mosaic .nicolau-restaurant-gallery__item--slot-4,
.nicolau-restaurant-gallery--count-8 .nicolau-restaurant-gallery__mosaic .nicolau-restaurant-gallery__item--slot-4,
.nicolau-restaurant-gallery--count-9 .nicolau-restaurant-gallery__mosaic .nicolau-restaurant-gallery__item--slot-4 {
	grid-column: 1 / span 3;
	grid-row: 1 / span 2;
}

.nicolau-restaurant-gallery--count-6 .nicolau-restaurant-gallery__mosaic .nicolau-restaurant-gallery__item--slot-5,
.nicolau-restaurant-gallery--count-7 .nicolau-restaurant-gallery__mosaic .nicolau-restaurant-gallery__item--slot-5,
.nicolau-restaurant-gallery--count-8 .nicolau-restaurant-gallery__mosaic .nicolau-restaurant-gallery__item--slot-5,
.nicolau-restaurant-gallery--count-9 .nicolau-restaurant-gallery__mosaic .nicolau-restaurant-gallery__item--slot-5 {
	grid-column: 1 / span 3;
	grid-row: 3 / span 2;
}

.nicolau-restaurant-gallery--count-6 .nicolau-restaurant-gallery__mosaic .nicolau-restaurant-gallery__item--slot-6,
.nicolau-restaurant-gallery--count-7 .nicolau-restaurant-gallery__mosaic .nicolau-restaurant-gallery__item--slot-6,
.nicolau-restaurant-gallery--count-8 .nicolau-restaurant-gallery__mosaic .nicolau-restaurant-gallery__item--slot-6,
.nicolau-restaurant-gallery--count-9 .nicolau-restaurant-gallery__mosaic .nicolau-restaurant-gallery__item--slot-6 {
	grid-column: 4 / span 3;
	grid-row: 1 / span 4;
}

.nicolau-restaurant-gallery--count-7 .nicolau-restaurant-gallery__mosaic .nicolau-restaurant-gallery__item--slot-7 {
	grid-column: 1 / span 6;
	grid-row: 5 / span 2;
}

.nicolau-restaurant-gallery--count-8 .nicolau-restaurant-gallery__mosaic .nicolau-restaurant-gallery__item--slot-7 {
	grid-column: 1 / span 3;
	grid-row: 5 / span 2;
}

.nicolau-restaurant-gallery--count-8 .nicolau-restaurant-gallery__mosaic .nicolau-restaurant-gallery__item--slot-8 {
	grid-column: 4 / span 3;
	grid-row: 5 / span 2;
}

.nicolau-restaurant-gallery--count-9 .nicolau-restaurant-gallery__mosaic .nicolau-restaurant-gallery__item--slot-7 {
	grid-column: 1 / span 2;
	grid-row: 5 / span 2;
}

.nicolau-restaurant-gallery--count-9 .nicolau-restaurant-gallery__mosaic .nicolau-restaurant-gallery__item--slot-8 {
	grid-column: 3 / span 2;
	grid-row: 5 / span 2;
}

.nicolau-restaurant-gallery--count-9 .nicolau-restaurant-gallery__mosaic .nicolau-restaurant-gallery__item--slot-9 {
	grid-column: 5 / span 2;
	grid-row: 5 / span 2;
}

.nicolau-restaurant-gallery__image,
.nicolau-restaurant-gallery__video {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 100%;
	object-fit: cover;
	object-position: center center;
}

.nicolau-restaurant-gallery__video {
	pointer-events: none;
	-webkit-user-select: none;
	user-select: none;
}

.nicolau-restaurant-gallery__video::-webkit-media-controls,
.nicolau-restaurant-gallery__video::-webkit-media-controls-enclosure,
.nicolau-restaurant-gallery__video::-webkit-media-controls-panel,
.nicolau-restaurant-gallery__video::-webkit-media-controls-play-button {
	display: none !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.nicolau-restaurant-gallery__mask-layer {
	position: absolute;
	inset: 0;
	z-index: 2;
	opacity: var(--nicolau-gallery-mask-opacity);
	pointer-events: none;
}

.nicolau-restaurant-gallery__title {
	position: absolute;
	inset: 0;
}

.nicolau-restaurant-gallery__mask-picture,
.nicolau-restaurant-gallery__mask-artwork {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

.nicolau-restaurant-gallery__mask-picture {
	background: transparent;
}

.nicolau-restaurant-gallery__mask-artwork--mobile {
	display: none;
}

.nicolau-restaurant-gallery__word {
	position: absolute;
	top: 50%;
	left: 50%;
	display: none;
	width: max-content;
	max-width: 92vw;
	font-family: var(--nicolau-restaurant-gallery-font-heading);
	font-size: var(--nicolau-gallery-word-size);
	font-weight: 900;
	line-height: 0.86;
	letter-spacing: var(--nicolau-gallery-word-letter-spacing);
	text-transform: uppercase;
	color: transparent;
	opacity: 0;
	transform: translate(-50%, -54%);
}

.nicolau-restaurant-gallery__script {
	position: absolute;
	top: calc(50% + var(--nicolau-gallery-script-offset));
	left: 50%;
	display: none;
	width: max-content;
	max-width: 88vw;
	font-family: var(--nicolau-restaurant-gallery-font-script);
	font-size: var(--nicolau-gallery-script-size);
	font-style: italic;
	font-weight: 400;
	line-height: 0.95;
	letter-spacing: 0;
	text-align: center;
	color: var(--nicolau-restaurant-gallery-ink);
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.36);
	transform: translateX(-50%);
}

@media (max-width: 1024px) {
	.nicolau-restaurant-gallery {
		--nicolau-gallery-max-scale: 5.2;
		--nicolau-gallery-word-size: 186px;
	}

	.nicolau-restaurant-gallery__scene {
		min-height: 195vh;
		min-height: 195svh;
	}

	.nicolau-restaurant-gallery__sticky {
		min-height: 580px;
	}

}

@media (max-width: 768px) {
	.nicolau-restaurant-gallery {
		--nicolau-gallery-max-scale: 3.45;
		--nicolau-gallery-gap: 10px;
		--nicolau-gallery-pad-x: 18px;
		--nicolau-gallery-radius: 18px;
		--nicolau-gallery-word-size: clamp(72px, 22vw, 124px);
		--nicolau-gallery-script-size: clamp(34px, 12vw, 58px);
		--nicolau-gallery-script-offset: 48px;
	}

	.nicolau-restaurant-gallery__scene {
		min-height: 170vh;
		min-height: 170svh;
	}

	.nicolau-restaurant-gallery__sticky {
		min-height: 620px;
	}

	.nicolau-restaurant-gallery__first-fold {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: minmax(0, 1.4fr) minmax(0, 1fr);
		padding: clamp(86px, 13svh, 124px) var(--nicolau-gallery-pad-x) 22px;
	}

	.nicolau-restaurant-gallery__first-fold .nicolau-restaurant-gallery__item--slot-1 {
		grid-column: 1 / span 2;
		grid-row: 1;
	}

	.nicolau-restaurant-gallery__first-fold .nicolau-restaurant-gallery__item--slot-2 {
		grid-column: 1;
		grid-row: 2;
	}

	.nicolau-restaurant-gallery__first-fold .nicolau-restaurant-gallery__item--slot-3 {
		grid-column: 2;
		grid-row: 2;
	}

	.nicolau-restaurant-gallery__flow {
		padding: var(--nicolau-gallery-gap) var(--nicolau-gallery-pad-x) 72px;
	}

	.nicolau-restaurant-gallery__mosaic {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-rows: minmax(132px, 24vh);
		width: 100%;
	}

	.nicolau-restaurant-gallery__mosaic .nicolau-restaurant-gallery__item {
		grid-column: auto !important;
		grid-row: span 1 !important;
	}

	.nicolau-restaurant-gallery--count-4 .nicolau-restaurant-gallery__mosaic .nicolau-restaurant-gallery__item--slot-4 {
		grid-column: 1 / span 2 !important;
		grid-row: 1 / span 2 !important;
	}

	.nicolau-restaurant-gallery--count-5 .nicolau-restaurant-gallery__mosaic .nicolau-restaurant-gallery__item--slot-5 {
		grid-column: 1 / span 2 !important;
		grid-row: 1 / span 2 !important;
	}

	.nicolau-restaurant-gallery--count-5 .nicolau-restaurant-gallery__mosaic .nicolau-restaurant-gallery__item--slot-4 {
		grid-column: 1 / span 2 !important;
		grid-row: 3 !important;
	}

	.nicolau-restaurant-gallery--count-6 .nicolau-restaurant-gallery__mosaic .nicolau-restaurant-gallery__item--slot-4 {
		grid-column: 1 !important;
		grid-row: 1 !important;
	}

	.nicolau-restaurant-gallery--count-6 .nicolau-restaurant-gallery__mosaic .nicolau-restaurant-gallery__item--slot-5 {
		grid-column: 2 !important;
		grid-row: 1 !important;
	}

	.nicolau-restaurant-gallery--count-6 .nicolau-restaurant-gallery__mosaic .nicolau-restaurant-gallery__item--slot-6 {
		grid-column: 1 / span 2 !important;
		grid-row: 2 / span 2 !important;
	}

	.nicolau-restaurant-gallery--count-7 .nicolau-restaurant-gallery__mosaic .nicolau-restaurant-gallery__item--slot-4,
	.nicolau-restaurant-gallery--count-8 .nicolau-restaurant-gallery__mosaic .nicolau-restaurant-gallery__item--slot-4,
	.nicolau-restaurant-gallery--count-9 .nicolau-restaurant-gallery__mosaic .nicolau-restaurant-gallery__item--slot-4 {
		grid-column: 1 / span 2 !important;
		grid-row: 1 / span 2 !important;
	}

	.nicolau-restaurant-gallery--count-7 .nicolau-restaurant-gallery__mosaic .nicolau-restaurant-gallery__item--slot-5,
	.nicolau-restaurant-gallery--count-8 .nicolau-restaurant-gallery__mosaic .nicolau-restaurant-gallery__item--slot-5,
	.nicolau-restaurant-gallery--count-9 .nicolau-restaurant-gallery__mosaic .nicolau-restaurant-gallery__item--slot-5 {
		grid-column: 1 !important;
		grid-row: 3 !important;
	}

	.nicolau-restaurant-gallery--count-7 .nicolau-restaurant-gallery__mosaic .nicolau-restaurant-gallery__item--slot-7,
	.nicolau-restaurant-gallery--count-8 .nicolau-restaurant-gallery__mosaic .nicolau-restaurant-gallery__item--slot-7,
	.nicolau-restaurant-gallery--count-9 .nicolau-restaurant-gallery__mosaic .nicolau-restaurant-gallery__item--slot-7 {
		grid-column: 2 !important;
		grid-row: 3 !important;
	}

	.nicolau-restaurant-gallery--count-7 .nicolau-restaurant-gallery__mosaic .nicolau-restaurant-gallery__item--slot-6,
	.nicolau-restaurant-gallery--count-8 .nicolau-restaurant-gallery__mosaic .nicolau-restaurant-gallery__item--slot-6,
	.nicolau-restaurant-gallery--count-9 .nicolau-restaurant-gallery__mosaic .nicolau-restaurant-gallery__item--slot-6 {
		grid-column: 1 / span 2 !important;
		grid-row: 4 / span 2 !important;
	}

	.nicolau-restaurant-gallery--count-8 .nicolau-restaurant-gallery__mosaic .nicolau-restaurant-gallery__item--slot-8 {
		grid-column: 1 / span 2 !important;
		grid-row: 6 !important;
	}

	.nicolau-restaurant-gallery--count-9 .nicolau-restaurant-gallery__mosaic .nicolau-restaurant-gallery__item--slot-8 {
		grid-column: 1 !important;
		grid-row: 6 !important;
	}

	.nicolau-restaurant-gallery--count-9 .nicolau-restaurant-gallery__mosaic .nicolau-restaurant-gallery__item--slot-9 {
		grid-column: 2 !important;
		grid-row: 6 !important;
	}
	
	.nicolau-restaurant-gallery__instagram-link{
		font-size: clamp(22px, 9vw, 58px)
	}

}

@media (max-width: 600px) {
	.nicolau-restaurant-gallery {
		--nicolau-gallery-title-start-scale: 1;
		--nicolau-gallery-max-scale: 2.85;
		--nicolau-gallery-pad-x: 14px;
		--nicolau-gallery-word-size: clamp(74px, 22vw, 88px);
		--nicolau-gallery-script-size: clamp(28px, 9.5vw, 42px);
		--nicolau-gallery-script-offset: clamp(36px, 11vw, 46px);
	}

	.nicolau-restaurant-gallery__mask-artwork--desktop {
		display: none;
	}

	.nicolau-restaurant-gallery__mask-artwork--mobile {
		display: block;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nicolau-restaurant-gallery__scene {
		min-height: auto;
	}

	.nicolau-restaurant-gallery__sticky {
		position: relative;
		display: flex;
		flex-direction: column;
		height: auto;
		min-height: 0;
		overflow: visible;
		padding: clamp(70px, 10vw, 120px) clamp(18px, 5vw, 56px) 0;
	}

	.nicolau-restaurant-gallery__first-fold {
		position: relative;
		inset: auto;
		order: 2;
		width: 100%;
		min-height: 76vh;
		margin: 0 auto;
		padding: 0;
		opacity: 1;
		transform: none;
	}

	.nicolau-restaurant-gallery__mask-layer {
		position: relative;
		inset: auto;
		order: 1;
		margin: 0 auto clamp(34px, 6vw, 70px);
		opacity: 1;
		transform: none;
	}

	.nicolau-restaurant-gallery__title {
		position: relative;
		inset: auto;
		transform: none;
	}

	.nicolau-restaurant-gallery__mask-picture {
		display: none;
	}

	.nicolau-restaurant-gallery__word {
		position: relative;
		top: auto;
		left: auto;
		display: block;
		width: auto;
		max-width: 100%;
		color: var(--nicolau-restaurant-gallery-accent);
		opacity: 1;
		text-align: center;
		transform: none;
	}

	.nicolau-restaurant-gallery__script {
		position: relative;
		top: auto;
		left: auto;
		display: block;
		width: auto;
		max-width: 100%;
		margin-top: 4px;
		transform: none;
	}
}
