/*
Theme Name: Маркос Молл
Description: Лёгкая фирменная тема информационного сайта Маркос Молл.
Version: 0.2.0
Requires at least: 6.8
Requires PHP: 8.3
Text Domain: marcos-mall
*/

@font-face {
	font-family: Inter;
	src: url("assets/fonts/inter-variable.woff2") format("woff2");
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
}

:root {
	--ink: #2d2a26;
	--paper: #fff;
	--coral: #ff7f40;
	--turquoise: #00c1de;
	--sand: #e0c5ac;
	--aqua: #19d3c5;
	--gutter: clamp(20px, 4vw, 64px);
	--inner-gutter: clamp(20px, 2.4vw, 32px);
	--page-width: 1280px;
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--site-header-height, 128px) + 12px); }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: Inter, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
h1, h2, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { padding: 0; border: 0; background: none; touch-action: manipulation; }
button:not(:disabled), a { cursor: pointer; }
button:disabled { cursor: default; opacity: 1; -webkit-text-fill-color: currentColor; }
a { color: inherit; text-underline-offset: 0.25em; touch-action: manipulation; }
:where(a, button, input):focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
[hidden] { display: none !important; }
@media (max-width: 700px) { [data-catalog-layout="wide"] { display: none !important; } }
@media not all and (max-width: 700px) { [data-catalog-layout="phone"] { display: none !important; } }
.page-width {
	width: min(calc(100% - var(--gutter) * 2), var(--page-width));
	margin-inline: auto;
}
.screen-reader-text, .skip-link:not(:focus) {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.skip-link:focus {
	position: fixed;
	z-index: 10;
	top: 12px;
	left: 12px;
	padding: 12px 18px;
	background: var(--paper);
}
.icon { display: block; flex-shrink: 0; width: 20px; height: 20px; }
.navigation__toggle .icon + .icon,
.navigation__phone-label, .navigation-visitor, .navigation-socials { display: none; }

/* Draw from the left and retract to the right, as in the Sokolniki reference.
 * Only the label moves; the hit area and neighbouring icons keep their size. */
.animated-link { text-decoration: none; }
.animated-link__text { position: relative; display: inline-block; max-width: 100%; }
.animated-link__text::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -0.05em;
	width: 100%;
	height: var(--link-underline-thickness, 1px);
	background: currentColor;
	transform: scaleX(0);
	transform-origin: right bottom;
	transition: transform 300ms ease-in-out;
	pointer-events: none;
}
.animated-link:focus-visible .animated-link__text::after,
.navigation__toggle[aria-expanded="true"] .animated-link__text::after {
	transform: scaleX(1);
	transform-origin: left bottom;
}
@media (hover: hover) {
	.animated-link:hover .animated-link__text::after {
		transform: scaleX(1);
		transform-origin: left bottom;
	}
}

/* A quiet, full-width closing composition, with the original brand at its centre. */
.site-footer {
	padding: clamp(40px, 3vw, 56px) var(--gutter) 32px;
	background: #000;
	color: var(--paper);
}
.site-footer :where(a, button):focus-visible { outline-color: currentColor; }
.site-footer__main {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
	align-items: start;
	gap: clamp(24px, 4vw, 80px);
	max-width: 1760px;
	margin-inline: auto;
}
.site-footer__primary, .site-footer__information { display: flex; flex-direction: column; gap: 8px; }
.site-footer__primary { --link-underline-thickness: 2px; align-items: flex-start; font-size: clamp(20px, 1.5vw, 26px); font-weight: 700; }
.site-footer__link { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-footer__brand { width: min(100%, 560px); margin: clamp(60px, 5.6vw, 88px) auto 0; }
.site-footer__brand img { width: 100%; height: auto; filter: brightness(0) invert(1); }
.site-footer__information { align-items: flex-end; text-align: right; font-size: 14px; font-weight: 700; }
.site-footer__socials { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; margin-top: 20px; }
.site-footer__socials .site-socials__icon { width: 28px; height: 28px; }
.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	max-width: 1760px;
	margin: 64px auto 0;
	font-size: 12px;
	font-weight: 500;
}
.site-footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; margin-right: auto; }
.site-footer__legal a { display: inline-flex; align-items: center; min-height: 44px; text-align: left; font-size: 12px; font-weight: 500; text-underline-offset: 3px; }
.site-footer__bottom > p { text-align: right; }
.site-footer__top { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; }
.site-footer__top .icon { width: 16px; height: 16px; transform: rotate(-45deg); }
@media (max-width: 900px) {
	.site-footer { padding-top: 48px; }
	.site-footer__main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 24px; }
	.site-footer__brand { grid-column: 1 / -1; grid-row: 1; width: min(100%, 440px); margin: 0 auto 16px; }
	.site-footer__bottom { margin-top: 40px; }
	.site-footer__legal { flex-basis: 100%; gap: 8px 24px; }
}
@media (max-width: 700px) {
	.site-footer { padding-block: 32px 16px; }
	.site-footer__main { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.site-footer__primary, .site-footer__brand, .site-footer__information, .site-footer__secondary--pending { display: none; }
	.site-footer__socials { justify-content: center; gap: 12px; margin-top: 0; }
	.site-footer__bottom { flex-direction: column; align-items: center; gap: 0; margin-top: 24px; font-size: 12px; line-height: 1.5; text-align: center; }
	.site-footer__legal { flex-basis: auto; flex-direction: column; align-items: center; gap: 0; margin-right: 0; max-width: 100%; }
	.site-footer__legal a, .site-footer__legal .cookie-settings { min-height: 24px; font-size: 12px; line-height: 1.5; text-align: center; text-decoration: none; }
	.site-footer__legal :is(a, button):is(:hover, :focus-visible) { text-decoration: underline; }
	.site-footer__legal :is(a, button):focus-visible { outline-offset: 0; }
	.site-footer__top { display: none; }
	.site-footer__bottom > p { text-align: center; }
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 5;
	max-height: 70svh;
	overflow-y: auto;
	scroll-padding-block: 8px;
	background: var(--paper);
	border-bottom: 1px solid #dedbd7;
}
.site-header__utility { background: #000; color: var(--paper); }
.site-header__utility :where(a, button):focus-visible { outline-color: currentColor; }
.site-header__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 34px;
}
.site-header__visitor-info {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 24px;
	min-width: 0;
	padding-block: 6px;
}
.site-address { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; font-weight: 700; }
.site-address .icon { flex: 0 0 16px; width: 16px; height: 16px; margin-block-start: calc((1lh - 16px) / 2); }
.site-hours {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px 12px;
	font-size: 13px;
	font-weight: 700;
	overflow-wrap: anywhere;
	font-variant-numeric: tabular-nums;
}
.site-hours__time { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.site-hours__time .icon { width: 16px; height: 16px; align-self: center; }
.site-hours__days { font-size: 12px; }
.site-directions {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	gap: 6px;
	min-height: 34px;
	margin-inline-start: auto;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}
.site-directions .icon { width: 16px; height: 16px; }
.site-directions { text-decoration: none; }
.site-directions:hover { text-decoration: underline; }
.navigation-visitor__row > span { min-width: 0; overflow-wrap: anywhere; }
.site-address { min-width: 0; }
.site-address > span { min-width: 0; overflow-wrap: anywhere; }
.site-socials { display: flex; flex-shrink: 0; align-items: center; gap: 8px; padding-block: 4px; }
.site-socials__link { position: relative; display: grid; place-items: center; width: 44px; height: 44px; }
.site-socials__viewport { display: grid; place-items: center; width: 44px; height: 44px; overflow: hidden; }
.site-socials__icon {
	display: block;
	grid-area: 1 / 1;
	width: 22px;
	height: 22px;
	transform: translateY(var(--social-shift, 0px));
	transition: transform 320ms cubic-bezier(.2, .7, .2, 1);
}
.site-socials__icon + .site-socials__icon { transform: translateY(calc(var(--social-shift, 0px) + 44px)); }
.site-socials__link:focus-visible { outline-offset: 0; }
/* The two marks share a clipped track; the link and its focus outline stay still. */
.site-socials__link::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 13px;
	right: 13px;
	height: 2px;
	background: currentColor;
	pointer-events: none;
	transform: scaleX(0);
	transition: transform 320ms cubic-bezier(.2, .7, .2, 1);
}
.site-socials__link:is(:focus-visible, :active) { --social-shift: -44px; }
.site-socials__link:is(:focus-visible, :active)::after { transform: scaleX(1); }
@media (hover: hover) {
	.site-socials__link:hover { --social-shift: -44px; }
	.site-socials__link:hover::after { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
	.site-socials__icon { transform: none; transition: none; }
	.site-socials__icon + .site-socials__icon { display: none; }
	.site-socials__link::after { transition: none; }
}
.site-header__main {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) 44px;
	align-items: center;
	min-height: 74px;
	gap: 24px;
}
/* Clear space uses the original M width: 17.090067 / 216.000585. */
.site-brand {
	--logo-width: clamp(190px, 16vw, 216px);
	--logo-clear-space: calc(var(--logo-width) * 0.07913);
	display: flex;
	align-items: center;
	min-height: 74px;
	padding: var(--logo-clear-space);
	margin-inline-start: calc(-1 * var(--logo-clear-space));
	justify-self: start;
}
.site-brand img { width: var(--logo-width); height: auto; }
.site-header__navigation { min-width: 0; }
@media (max-width: 1360px) {
	.has-js .site-header:not(:has([data-navigation-toggle][aria-expanded="true"])) .site-header__navigation { display: none; }
}
.navigation, .navigation__links { display: flex; align-items: center; }
.navigation { justify-content: end; min-height: 44px; }
.navigation__links { justify-content: end; gap: clamp(14px, 1.25vw, 20px); }
.navigation__item, .site-search, .navigation__toggle { min-height: 44px; font-size: 14px; font-weight: 500; }
.navigation__item { display: inline-flex; align-items: center; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.site-search, .navigation__toggle { display: flex; align-items: center; justify-content: center; gap: 10px; }
.site-search { width: 44px; justify-self: end; }
.navigation__toggle { display: none; }

/* The first photo remains visible without JavaScript. */
.homepage:focus { outline: none; }
.home-gallery__viewport {
	position: relative;
	display: grid;
	min-height: calc(100svh - var(--site-header-height, 128px));
	overflow: hidden;
	background: var(--ink);
	touch-action: pan-y pinch-zoom;
}
.home-gallery__item { grid-area: 1 / 1; position: relative; min-width: 0; display: grid; align-items: end; }
.home-gallery__copy { display: none; }
.home-gallery__copy--brand img { display: block; width: min(48vw, 680px); max-width: 100%; height: auto; }
.home-gallery__photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 52%;
	opacity: 0;
	transition: opacity 500ms ease;
	pointer-events: none;
}
.home-gallery__photo.is-active { opacity: 1; }
.home-gallery:not([data-carousel-ready]) .home-gallery__photo { opacity: 0; visibility: hidden; }
.home-gallery:not([data-carousel-ready]) .home-gallery__photo.is-first-desktop { opacity: 1; visibility: visible; }
@media (min-width: 701px) {
	.home-gallery--mobile-only { display: none; }
	.home-gallery__photo--mobile-only { display: none; }
	/* Prepared artwork has background bleed for a full-height, edge-to-edge crop. */
	.home-gallery__photo { object-fit: cover; object-position: center; }
	.home-gallery__photo--with-copy { object-fit: cover; object-position: 60% center; }
	.home-gallery__item--with-copy::after {
		content: ''; position: absolute; inset: 0; pointer-events: none;
		background: linear-gradient(90deg, rgb(0 0 0 / .79) 0%, rgb(0 0 0 / .66) 45%, rgb(0 0 0 / .12) 100%);
	}
	.home-gallery__copy {
		display: block; position: relative; z-index: 1; padding: 64px clamp(32px, 4.5vw, 80px);
		color: var(--paper); pointer-events: none;
	}
	.home-gallery__title {
		font-size: clamp(48px, min(7vw, 12svh), 112px); font-weight: 700;
		letter-spacing: -.025em; line-height: 1.02; overflow-wrap: anywhere; text-wrap: balance;
	}
	.home-gallery__summary { margin-top: 28px; font-size: clamp(18px, 1.6vw, 23px); line-height: 1.55; overflow-wrap: anywhere; max-width: 48ch; }
	.home-gallery__copy, .home-gallery__item--with-copy::after { opacity: 0; visibility: hidden; transition: opacity 500ms ease; }
	.home-gallery[data-carousel-ready] .home-gallery__item:has(.is-active[data-desktop="true"]) > .home-gallery__copy,
	.home-gallery[data-carousel-ready] .home-gallery__item:has(.is-active[data-desktop="true"])::after,
	.home-gallery:not([data-carousel-ready]) .home-gallery__item:has(.is-first-desktop) > .home-gallery__copy,
	.home-gallery:not([data-carousel-ready]) .home-gallery__item:has(.is-first-desktop)::after { opacity: 1; visibility: visible; }
}
@media (min-width: 701px) and (max-height: 760px) {
	.home-gallery__copy { padding-block: 32px; }
	.home-gallery__summary { margin-top: 20px; }
}
@media (min-width: 701px) and (max-width: 960px) {
	.cookie-notice-open .home-gallery__copy--brand { padding-bottom: var(--cookie-notice-space); }
}
.home-gallery__controls { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.home-gallery__photo--food { object-position: 50% 55%; }
.gallery-button {
	pointer-events: auto;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 64px;
	background: rgb(45 42 38 / 60%);
	color: var(--paper);
	transition: background-color 160ms ease;
}
.gallery-button .icon { width: 32px; height: 40px; stroke-width: 0.9; }
.gallery-button--previous { left: 0; }
.gallery-button--next { right: 0; }
.gallery-button:focus-visible {
	outline: 2px solid var(--paper);
	outline-offset: -6px;
	background: rgb(45 42 38 / 85%);
}
@media (hover: hover) {
	.gallery-button:hover { background: rgb(45 42 38 / 80%); }
}
.gallery-button:active { background: var(--ink); }

/* Equal repeated groups make the brand ribbon loop without a jump. */
.brand-marquee {
	position: relative;
	overflow: hidden;
	background: #000;
	color: var(--paper);
}
.brand-marquee__track { display: flex; width: max-content; }
.brand-marquee__group { display: flex; flex-shrink: 0; min-width: 100vw; }
.brand-marquee__item {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1 0 clamp(240px, 22vw, 320px);
	width: clamp(240px, 22vw, 320px);
	height: clamp(64px, 6vw, 85.3333px);
}
.brand-marquee__item img { width: clamp(150px, 13vw, 180px); height: auto; }
@media (max-width: 700px) {
	.brand-marquee { display: none; }
}
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
	.brand-marquee__track { animation: brand-marquee 64s linear infinite; }
	.brand-marquee--reverse .brand-marquee__track { animation-direction: reverse; }
}
@keyframes brand-marquee { to { transform: translateX(-50%); } }

/* Shared catalogue; phones use category entry tiles on the homepage. */
.home-categories { display: none; }
.home-catalog--mobile { display: none; }
.home-catalog.catalog-archive { --gutter: var(--inner-gutter); padding-top: 0; }
.catalog-archive .home-catalog__content { width: calc(100% - var(--inner-gutter) * 2); margin-inline: var(--inner-gutter); }
.home-catalog {
	--page-width: 1360px;
	--gutter: clamp(16px, 4vw, 64px);
	--catalog-mark-width: clamp(480px, 48vw, 800px);
	position: relative;
	isolation: isolate;
	overflow: clip;
	background: var(--paper);
	padding-block: clamp(40px, 4.5vw, 64px) clamp(56px, 7vw, 100px);
	scroll-margin-top: 24px;
}
/* This section is an anchor focus target, not a control; keep focus on its controls visible. */
.home-catalog:focus { outline: none; }
/* Only the standalone archive uses the decorative marks. */
.catalog-archive .catalog-toolbar::before,
.catalog-archive::after {
	content: "";
	position: absolute;
	z-index: -1;
	width: var(--catalog-mark-width);
	aspect-ratio: 38 / 24.357731;
	background: var(--turquoise);
	mask: url("assets/images/marcos-mark.svg") center / contain no-repeat;
	pointer-events: none;
}
/* Follow the controls when the search wraps onto its own row. */
.catalog-toolbar::before { top: calc(100% + 16px); right: calc((100% - 100vw) / 2 + clamp(-240px, -12vw, -120px)); }
.home-catalog::after { bottom: 48px; left: clamp(-280px, -16vw, -160px); background: var(--coral); }
@media (max-width: 700px) {
	.home-catalog { --catalog-mark-width: 380px; }
	.catalog-toolbar::before { right: calc((100% - 100vw) / 2 - 190px); }
	.home-catalog::after { left: -240px; }
}
.section-heading { margin-bottom: clamp(24px, 3vw, 36px); }
.section-heading :is(h1, h2) {
	font-size: clamp(32px, 3vw, 44px);
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1.12;
	text-transform: none;
	text-wrap: balance;
}
.catalog-toolbar { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.catalog-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.catalog-category-select, .catalog-search__apply { display: none; }
.catalog-filter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 10px 22px;
	border: 1px solid var(--ink);
	border-radius: 999px;
	font-weight: 500;
	text-decoration: none;
	transition: background-color 160ms, border-color 160ms, color 160ms;
}
.catalog-filter[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.catalog-search { position: relative; display: flex; align-items: center; flex: 0 1 292px; min-width: 0; border-bottom: 1px solid var(--ink); }
.catalog-search input { width: 100%; min-width: 0; min-height: 46px; padding: 10px 4px; border: 0; border-radius: 0; background: transparent; scroll-margin-top: 24px; }
.catalog-search input:focus { outline: none; }
.catalog-search input::placeholder { color: var(--ink); opacity: 1; }
.catalog-search button { display: grid; place-items: center; min-width: 44px; min-height: 46px; }
/* Keep live result announcements without a visible counter at any viewport. */
.catalog-status { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.catalog-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 24px; margin-top: 24px; }
.organization-card { min-width: 0; overflow-wrap: anywhere; }
/* A light graphite border groups the card without competing with its logo. */
.organization-card__link { display: block; padding: clamp(16px, 1.5vw, 24px); border: 1px solid rgb(45 42 38 / 18%); border-radius: 16px; background: var(--paper); color: var(--ink); text-decoration: none; outline: 1px solid transparent; outline-offset: 0; transition: outline-color 160ms ease; }
.organization-card__link:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.organization-card__link:active { opacity: 0.8; }
.organization-card__media { position: relative; display: block; aspect-ratio: 2 / 1; overflow: hidden; background: var(--paper); }
.organization-card__photo { width: 100%; height: 100%; object-fit: cover; transition: transform 260ms ease; }
.has-catalog-image-states .organization-card__photo { opacity: 0; }
.has-catalog-image-states [data-image-state="loaded"] .organization-card__photo { opacity: 1; }
.organization-card__image-fallback { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; padding: 20px; text-align: center; font-size: clamp(25px, 2.2vw, 32px); line-height: 1.15; font-weight: 700; letter-spacing: -0.035em; text-wrap: balance; }
.organization-card__image-fallback--visible,
.has-catalog-image-states [data-image-state="error"] .organization-card__image-fallback { display: flex; }
.organization-card__name { margin: 12px 0 0; font-size: 24px; line-height: 1.25; font-weight: 700; letter-spacing: -0.025em; }
.organization-card__meta { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 14px; font-weight: 500; }
.organization-card__floor { display: flex; align-items: center; justify-content: end; gap: 5px; text-align: right; }
.organization-card__floor .icon { width: 16px; height: 16px; }
:is(.home-catalog--desktop, .more-shops) .organization-card__link { border-width: 2px; }
:is(.home-catalog--desktop, .more-shops) .organization-card__media { aspect-ratio: 2.45 / 1; }
/* Interior content and breadcrumbs share one edge at every viewport width. */
.news-page { width: calc(100% - var(--inner-gutter) * 2); margin-inline: var(--inner-gutter); }
.organization-page { padding-bottom: clamp(64px, 8vw, 120px); }
.organization-page:focus { outline: none; }
.breadcrumbs { margin: 20px var(--inner-gutter) 24px; font-size: 16px; font-weight: 500; line-height: 1.5; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { display: flex; align-items: center; min-width: 0; max-width: 100%; min-height: 44px; }
.breadcrumbs li + li::before { content: ""; flex: 0 0 1px; height: 18px; margin-right: 12px; background: currentColor; color: rgb(45 42 38 / 45%); }
.breadcrumbs a { display: inline-flex; align-items: center; min-width: 0; min-height: 44px; color: rgb(45 42 38 / 72%); text-decoration: none; overflow-wrap: anywhere; }
.breadcrumbs a:hover, .breadcrumbs a:focus-visible { color: var(--ink); }
.breadcrumbs [aria-current="page"] { min-width: 0; overflow-wrap: anywhere; }
.single-marcos_organization .breadcrumbs { width: min(calc(100% - var(--gutter) * 2), var(--page-width)); margin-inline: auto; }
/* The description follows the organization name in the document. */
.organization-info { overflow-wrap: anywhere; }
.organization-info:not(.organization-info--with-photo) { max-width: 760px; }
.organization-info__layout { display: grid; gap: 28px; align-items: start; }
.organization-info__aside { display: contents; }
.organization-info__heading { min-width: 0; }
.organization-info__title { max-width: 22ch; font-size: clamp(36px, 4.5vw, 64px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
.organization-info__facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 24px 20px; margin: 0; }
.organization-info__facts > div { min-width: 0; }
.organization-info__facts dt { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: rgb(45 42 38 / 72%); font-size: 14px; line-height: 1.5; font-weight: 500; }
.organization-info__facts dt .icon { width: 18px; height: 18px; }
.organization-info__facts dd { min-height: 44px; margin: 0; font-size: 18px; line-height: 1.5; font-weight: 500; }
.organization-info__hours:first-child { grid-column: 1 / -1; }
.organization-info__contact { grid-column: 1 / -1; }
.organization-info__facts > :only-child { grid-column: 1 / -1; }
.organization-info__facts a { display: flex; align-items: flex-start; width: fit-content; min-width: 44px; max-width: 100%; min-height: 44px; font-size: inherit; font-weight: inherit; }
/* Contact links are recognizable before hover, including on touch screens. */
.organization-info__facts .animated-link__text::before { content: ""; position: absolute; left: 0; bottom: -0.05em; width: 100%; height: 1px; background: rgb(45 42 38 / 45%); pointer-events: none; }
.organization-info__media { display: flex; justify-content: center; align-items: center; min-width: 0; width: 100%; height: clamp(180px, 56vw, 300px); overflow: hidden; border: 1px solid rgb(45 42 38 / 18%); border-radius: 16px; background: var(--paper); }
.organization-info__photo { width: 100%; height: 100%; object-fit: contain; }
.organization-info__image-error { padding: 24px; color: rgb(45 42 38 / 72%); text-align: center; }
.organization-info__description { min-width: 0; padding-top: 24px; border-top: 1px solid rgb(45 42 38 / 18%); font-size: 17px; line-height: 1.7; }
.organization-info__description p { max-width: 62ch; }
.more-shops { display: none; }
@media (min-width: 600px) {
	.organization-info__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
	.organization-info__contact { grid-column: auto; }
	.organization-info__media { max-width: 420px; height: 315px; }
	.organization-info__description { font-size: 18px; }
}
@media (min-width: 701px) and (max-width: 1023px) {
	.organization-info__description { order: 1; }
	.organization-info--with-photo .organization-info__layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px 32px; }
	.organization-info--with-photo .organization-info__heading,
	.organization-info--with-photo .organization-info__description { grid-column: 1 / -1; }
	.organization-info--with-photo .organization-info__facts { grid-column: 1; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 20px 16px; }
	.organization-info--with-photo .organization-info__contact { grid-column: 1 / -1; }
	.organization-info__media { grid-column: 2; grid-row: 2; max-width: none; height: auto; aspect-ratio: 4 / 3; }
	.organization-info--without-facts .organization-info__media { grid-column: 1 / -1; max-width: 420px; }
}
@media (min-width: 1024px) {
	.organization-screen { display: flow-root; min-height: calc(100svh - var(--site-header-height, 126px)); }
	.organization-info--with-aside:not(.organization-info--with-photo) { max-width: none; }
	.organization-info--with-aside:not(.organization-info--with-photo) .organization-info__aside { align-self: stretch; }
	.organization-info--with-aside .organization-info__layout {
		grid-template-columns: minmax(0, 1fr) minmax(380px, 0.79fr);
		grid-template-rows: auto 1fr;
		gap: 22px clamp(48px, 6vw, 100px);
	}
	.organization-info--with-aside .organization-info__aside { display: block; min-width: 0; grid-column: 2; grid-row: 1 / span 2; }
	.organization-info--with-aside .organization-info__description { grid-column: 1; grid-row: 2; max-width: 60ch; padding: 0; border: 0; }
	.organization-info__media { max-width: none; height: clamp(200px, 17vw, 258px); }
	/* Let the text set the column height while keeping the logo legible on shorter entries. */
	.organization-info__description + .organization-info__aside:has(.organization-info__media + .organization-info__facts) {
		display: flex; flex-direction: column; align-self: stretch;
	}
	.organization-info__description + .organization-info__aside .organization-info__media:has(+ .organization-info__facts) {
		flex: 1 1 0px; contain: size; height: auto; min-height: 120px; max-height: 320px;
	}
	.organization-info--with-aside .organization-info__facts { display: block; max-width: none; }
	.organization-info__media + .organization-info__facts { margin-top: 14px; }
	.organization-info--with-aside:not(.organization-info--with-photo) .organization-info__facts { display: grid; height: 100%; max-height: 360px; grid-template-columns: minmax(0, 1fr); grid-auto-rows: minmax(48px, 1fr); gap: 0; }
	.organization-info--with-aside .organization-info__facts > div { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 48px; padding: 2px 0; border-bottom: 1px solid rgb(45 42 38 / 13%); }
	.organization-info--with-aside .organization-info__facts dt { flex: none; margin: 0; }
	.organization-info--with-aside .organization-info__facts dd { min-width: 0; min-height: 0; font-size: 16px; text-align: right; }
	.organization-info--with-aside .organization-info__facts a { align-items: center; }
	.more-shops { display: block; margin-top: clamp(48px, 4.3vw, 76px); padding-bottom: 20px; }
	.more-shops__heading { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
	.more-shops__heading h2 { margin: 0; font-size: clamp(26px, 2.2vw, 32px); line-height: 1.14; letter-spacing: -0.035em; font-weight: 700; }
	.more-shops__catalog { position: relative; top: 4px; display: inline-flex; flex-shrink: 0; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.25; text-decoration: none; text-underline-offset: 5px; }
	.more-shops__catalog:focus-visible { outline: none; text-decoration-line: underline; text-decoration-thickness: 2px; }
	.more-shops__catalog .icon { width: 18px; height: 18px; }
	.more-shops .organization-card__media picture { display: block; height: 100%; }
}

/* Detail pages use the same phone breakpoint as the public header. */
@media (max-width: 700px) {
	:is(.single-marcos_organization, .single-marcos_news) .breadcrumbs { margin-block: 12px 16px; font-size: 13px; }
	:is(.single-marcos_organization, .single-marcos_news) .breadcrumbs ol { column-gap: 8px; }
	:is(.single-marcos_organization, .single-marcos_news) .breadcrumbs li + li::before { height: 14px; margin-right: 8px; }
	/* The full current title is immediately below, in the page's h1. */
	:is(.single-marcos_organization, .single-marcos_news) .breadcrumbs li:last-child { display: none; }
	.organization-page { padding-bottom: 48px; }
	.organization-info__layout { gap: 20px; }
	.organization-info__title { max-width: none; font-size: clamp(28px, 7.2vw, 32px); line-height: 1.15; }
	.organization-info__media { order: -1; max-width: none; height: clamp(112px, 35vw, 156px); border: 0; border-radius: 0; }
	.organization-info__facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.organization-info__facts > div { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: center; column-gap: 12px; min-height: 44px; padding-inline-start: 12px; border-inline-start: 2px solid var(--sand); }
	.organization-info__facts dt { align-items: center; margin: 0; }
	.organization-info__label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
	.organization-info__facts dt .icon { flex-shrink: 0; width: 20px; height: 20px; }
	.organization-info__facts dd { min-width: 0; min-height: 0; padding-block: 8px; font-size: 16px; }
	.organization-info__contact { grid-column: 1 / -1; }
	.organization-info__contact dd { padding-block: 0; }
	.organization-info__facts a { align-items: center; min-height: 44px; padding-block: 8px; }
	.organization-info__facts .animated-link__text::before,
	.organization-info__facts .animated-link__text::after { content: none; }
	.organization-info__description { padding: 0; border: 0; font-size: 16px; line-height: 1.65; }
}
.catalog-empty { padding-block: 36px 56px; border-top: 1px solid #dedbd7; }
.catalog-empty h2 { margin-bottom: 12px; font-size: 24px; line-height: 1.2; }
.catalog-empty p { color: var(--ink); }
.catalog-empty a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; font-weight: 500; }
@media (hover: hover) {
	.catalog-filter:not([aria-current="true"]):hover { background: var(--turquoise); border-color: var(--turquoise); }
	.more-shops__catalog:hover { text-decoration-line: underline; }
	.organization-card__link:hover .organization-card__photo { transform: scale(1.04); }
	.catalog-search button:hover, .site-search:hover { color: #005d6b; }
}
@media (min-width: 600px) { .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) {
	.catalog-toolbar { gap: 20px; }
	.catalog-filter { padding-inline: 18px; font-size: 15px; }
	.home-catalog .section-heading { margin-bottom: 12px; }
	.home-catalog .section-heading :is(h1, h2) { font-size: clamp(26px, 6.7vw, 32px); line-height: 1.15; letter-spacing: -.025em; }
	.home-catalog .catalog-toolbar { gap: 8px; }
	.home-catalog .catalog-filters { flex-wrap: nowrap; width: 100%; gap: 4px; }
	.home-catalog .catalog-filter { flex: 1 1 auto; min-width: 44px; min-height: 44px; padding: 8px 4px; font-size: 13px; line-height: 1.4; white-space: nowrap; }
	.catalog-search { flex-basis: 100%; }
	.home-catalog .catalog-grid { margin-top: 16px; }
	/* Compact phone cards retain the complete name, category and floor. */
	.catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.organization-card__link { padding: 12px; border-radius: 12px; }
	.organization-card__name { margin-top: 10px; font-size: 16px; line-height: 1.3; }
	.organization-card__meta { flex-wrap: wrap; gap: 4px 8px; margin-top: 10px; font-size: 12px; }
	.organization-card__floor { margin-left: auto; }
	.organization-card__image-fallback { padding: 4px; font-size: clamp(12px, 3.5vw, 22px); line-height: 1.15; }
	/* The phone archive combines a compact category control with a readable list. */
	.catalog-archive .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
	.catalog-archive .catalog-category-select { position: relative; display: block; flex: 0 1 144px; min-width: 0; }
	.catalog-category-select summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 10px 12px; border: 1px solid rgb(45 42 38 / 18%); border-radius: 10px; background: var(--paper); color: var(--ink); font-size: 16px; font-weight: 500; line-height: 1.4; list-style: none; cursor: pointer; }
	.catalog-category-select summary::-webkit-details-marker { display: none; }
	.catalog-category-select summary svg { flex-shrink: 0; }
	.catalog-category-select[open] summary { border-color: rgb(45 42 38 / 45%); }
	.catalog-category-select[open] summary svg { transform: rotate(180deg); }
	.catalog-category-select summary:focus-visible { outline: 1px solid var(--ink); outline-offset: -1px; }
	.catalog-category-select__options { position: absolute; z-index: 5; top: calc(100% + 6px); right: 0; width: 184px; max-width: calc(100vw - 40px); max-height: min(260px, 55dvh); overflow-y: auto; overscroll-behavior: contain; padding: 6px; border: 1px solid rgb(45 42 38 / 18%); border-radius: 12px; background: var(--paper); box-shadow: 0 6px 18px rgb(45 42 38 / 8%); }
	.catalog-category-select__option { position: relative; display: block; cursor: pointer; }
	.catalog-category-select__option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
	.catalog-category-select__option span { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 10px 12px; border-radius: 7px; color: var(--ink); font-size: 16px; font-weight: 400; line-height: 1.4; }
	.catalog-category-select__option input:checked + span { background: #f4f4f3; font-weight: 500; }
	.catalog-category-select__option input:focus-visible + span { outline: 1px solid var(--ink); outline-offset: -1px; background: #f4f4f3; }
	@media (hover: hover) { .catalog-category-select__option:hover span { background: #f4f4f3; } }
	.catalog-archive .catalog-filters, .catalog-archive .catalog-toolbar::before, .catalog-archive::after { display: none; }
	.catalog-archive .catalog-search { min-height: 50px; padding-inline: 4px 12px; border: 0; border-radius: 10px; background: #f4f4f3; }
	.catalog-archive .catalog-search:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
	.catalog-archive .catalog-search input { min-height: 50px; padding-inline: 4px; font-size: 16px; }
	.catalog-archive .catalog-search input::placeholder { color: #625f59; }
	.catalog-archive .catalog-search button { order: -1; flex-shrink: 0; min-height: 44px; }
	.catalog-archive .catalog-search__apply { display: inline; padding-inline: 4px; font-size: 12px; }
	.catalog-archive.has-catalog-filtering .catalog-search__apply { display: none; }
	.catalog-archive .catalog-grid { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 24px; }
	.catalog-archive .organization-card__link { display: grid; grid-template-columns: 100px minmax(0, 1fr); column-gap: 16px; row-gap: 10px; align-items: center; min-height: 120px; padding: 18px 0; border: 0; border-bottom: 1px solid rgb(45 42 38 / 12%); border-radius: 0; }
	.catalog-archive .organization-card__media { grid-column: 1; grid-row: 1 / 3; width: 100px; height: 80px; aspect-ratio: auto; }
	.catalog-archive .organization-card__photo { object-fit: contain; }
	.catalog-archive .organization-card__name { grid-column: 2; align-self: end; margin: 0; font-size: 16px; line-height: 1.4; }
	.catalog-archive .organization-card__meta { grid-column: 2; align-self: start; justify-content: flex-start; gap: 6px 16px; margin: 0; color: #625f59; font-weight: 400; line-height: 1.5; }
	.catalog-archive .organization-card__floor { margin-left: 0; }
	.catalog-archive .organization-card__image-fallback { padding: 4px; font-size: 15px; letter-spacing: -.025em; }
	.catalog-archive .catalog-empty { margin-top: 24px; border-top: 0; text-align: center; }
	.home-catalog--desktop, .home-catalog--mobile::after { display: none; }
	.home-catalog--mobile { display: block; padding-top: 12px; padding-bottom: 40px; }
	.home-categories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; container-type: inline-size; }
	.home-categories__all {
		grid-column: 1 / -1;
		display: flex;
		align-items: center;
		justify-content: space-between;
		min-height: 44px;
		color: var(--ink);
		font-size: clamp(25px, 6.5vw, 32px);
		font-weight: 700;
		letter-spacing: -.035em;
		line-height: 1.1;
		text-decoration: none;
	}
	.home-categories__all .icon { width: 24px; height: 24px; }
	/* Decorative photos are requested only by the phone layout. */
	.has-deferred-photos .category-tile:not(.is-photo-ready)::before { background-image: none; }
	.category-tile--shops { --category-photo: url("assets/images/categories/shops.webp?v=real-20261027"); --category-photo-position: 30% center; }
	.category-tile--food { --category-photo: url("assets/images/categories/food.webp?v=dsc03528-20261027"); --category-photo-position: center 25%; }
	.category-tile--leisure { --category-photo: url("assets/images/categories/leisure.webp?v=real-20261027"); --category-photo-position: 20% bottom; --category-photo-size: auto 140%; }
	.category-tile--services { --category-photo: url("assets/images/categories/services.webp?v=real-20261027"); --category-photo-position: center 28%; }
	.category-tile--kids { --category-photo: url("assets/images/categories/kids.webp?v=ostrov-20261119"); }
	.category-tile {
		position: relative;
		isolation: isolate;
		display: flex;
		align-items: flex-end;
		justify-content: flex-start;
		min-width: 0;
		width: 100%;
		min-height: 152px;
		aspect-ratio: 1.04;
		padding: 16px;
		overflow: hidden;
		border-radius: 20px;
		background: var(--ink);
		box-shadow: 0 3px 0 rgb(45 42 38 / 8%), 0 8px 18px -12px rgb(45 42 38 / 25%);
		color: var(--paper);
		text-align: left;
		text-decoration: none;
		transition: transform 160ms ease;
		-webkit-tap-highlight-color: transparent;
	}
	.category-tile::before {
		content: "";
		position: absolute;
		inset: 0;
		z-index: -1;
		border-radius: inherit;
		background-image: var(--category-photo, none);
		background-position: var(--category-photo-position, center);
		background-size: var(--category-photo-size, cover);
		filter: brightness(1.10);
	}
	.category-tile--shops::before { filter: brightness(1.16) saturate(.94); }
	.category-tile--food::before { filter: brightness(1.10) saturate(.85); }
	.category-tile--leisure::before, .category-tile--services::before { filter: brightness(1.38) contrast(.95); }
	.category-tile::after {
		content: "";
		position: absolute;
		inset: 0;
		z-index: -1;
		border: 1px solid rgb(45 42 38 / 14%);
		border-radius: inherit;
		background: radial-gradient(ellipse 150px 58px at 54px calc(100% - 24px), rgb(0 0 0 / 69%) 24%, rgb(0 0 0 / 53%) 48%, transparent 100%);
		pointer-events: none;
	}
	.category-tile__name { max-width: 100%; overflow-wrap: anywhere; font-size: clamp(13px, 4cqw, 16px); font-weight: 700; line-height: 1.25; letter-spacing: .065em; text-transform: uppercase; }
	.category-tile--kids { grid-column: 1 / -1; min-height: 108px; aspect-ratio: auto; }
	.category-tile:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
	.category-tile:active { transform: translateY(2px); outline: 2px solid var(--ink); outline-offset: 3px; }
	@media (hover: hover) {
		.category-tile:hover { outline: 2px solid var(--ink); outline-offset: 3px; }
	}
	@media (prefers-reduced-motion: reduce) {
		.category-tile { transition: none; }
		.category-tile:active { transform: none; }
	}
}

@media (max-width: 1360px) {
	/* The expanded navigation stays usable even without JavaScript. */
	html { scroll-padding-top: calc(var(--site-header-height, min(480px, 70svh)) + 12px); }
	.site-header__main {
		grid-template-columns: minmax(0, 1fr) auto 44px;
		gap: 8px;
	}
	.site-brand { --logo-width: 216px; }
	.navigation__toggle { display: flex; grid-column: 2; grid-row: 1; padding-inline: 8px; gap: 7px; -webkit-tap-highlight-color: transparent; }
	.site-search { grid-column: 3; grid-row: 1; }
	.site-header__navigation { grid-column: 1 / -1; }
	.navigation { padding-block: 8px 16px; border-top: 1px solid var(--ink); }
	.navigation__links { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
	.navigation__item { text-align: left; white-space: normal; }
}

@media (max-width: 700px) {
	:root { --gutter: 20px; }
	.site-header__utility { display: none; }
	.site-header__main { --gutter: 8px; grid-template-columns: 46px minmax(0, 1fr) 44px; gap: 0; min-height: 64px; }
	.site-brand { --logo-width: 176px; grid-column: 2; grid-row: 1; min-height: 64px; margin-inline-start: 0; padding-inline-start: 0; }
	.navigation__toggle { grid-column: 1; width: 44px; padding: 0; }
	.navigation__toggle .icon { width: 24px; height: 24px; }
	.navigation__toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
	/* Without JS the complete navigation is visible, with the logo at the left. */
	.navigation__toggle[hidden] + .site-brand { grid-column: 1 / 3; padding-inline-start: var(--logo-clear-space); }
	/* The existing header becomes the top row of a full-screen phone menu. */
	body.has-phone-menu { position: fixed; top: var(--menu-scroll-offset); width: 100%; overflow: hidden; }
	.navigation__toggle { display: grid; place-items: center; }
	.navigation__toggle > .icon { grid-area: 1 / 1; transition: opacity 200ms ease, transform 300ms ease; }
	.navigation__toggle > .icon + .icon { display: block; opacity: 0; transform: rotate(-90deg); }
	.site-header.is-menu-open { position: fixed; inset: 0; height: 100vh; height: 100dvh; max-height: none; overflow: hidden; }
	.site-header.is-menu-open .site-header__main {
		width: 100%; height: 100%; min-height: 0; margin: 0;
		padding: env(safe-area-inset-top, 0px) max(8px, env(safe-area-inset-right, 0px)) 0 max(8px, env(safe-area-inset-left, 0px));
		grid-template-rows: 64px minmax(0, 1fr); align-items: center;
	}
	.site-header.is-menu-open .navigation__toggle > .icon:first-child { opacity: 0; transform: rotate(90deg); }
	.site-header.is-menu-open .navigation__toggle > .icon + .icon { opacity: 1; transform: rotate(0); }
	.site-header.is-menu-open .site-header__navigation {
		grid-row: 2; align-self: stretch; min-height: 0; overflow-y: auto;
		overscroll-behavior: contain;
		display: flex; flex-direction: column;
		margin-inline: -8px; padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
		animation: phone-menu-reveal 320ms cubic-bezier(.2, .7, .2, 1);
	}
	.site-header.is-menu-open .site-header__navigation > * { flex-shrink: 0; }
	.site-header__navigation .navigation { padding: 0; border-top: 1px solid rgb(45 42 38 / 14%); }
	.site-header__navigation .navigation__links { display: flex; flex-direction: column; gap: 0; }
	.site-header__navigation .navigation__item {
		display: flex; align-items: center; min-height: 52px; width: 100%; padding: 14px 24px;
		border-bottom: 1px solid rgb(45 42 38 / 12%); font-size: 16px; line-height: 1.4; font-weight: 500; text-transform: none;
	}
	.site-header__navigation .navigation__item:disabled { display: none; }
	.site-header__navigation .navigation__item:active { background: rgb(0 193 222 / 12%); }
	.site-header__navigation .navigation__item:focus-visible { outline-offset: -4px; }
	.navigation__phone-label { display: inline; }
	.navigation-visitor { display: grid; gap: 18px; padding: 26px 24px; }
	.navigation-visitor__row { display: flex; align-items: flex-start; gap: 14px; font-size: 15px; line-height: 1.5; }
	.navigation-visitor__row > .icon { margin-top: 3px; }
	.navigation-visitor__label, .navigation-visitor__detail { display: block; font-size: 13px; color: rgb(45 42 38 / 72%); }
	.navigation-visitor__label { margin-bottom: 4px; }
	.navigation-visitor__hours { font-size: 20px; line-height: 1.35; font-weight: 500; font-variant-numeric: tabular-nums; }
	.navigation-visitor__detail { margin-top: 3px; overflow-wrap: anywhere; }
	.navigation-visitor__directions { align-items: center; min-height: 48px; text-decoration: none; font-weight: 500; }
	.navigation-visitor__directions > .icon:last-child { width: 16px; height: 16px; margin-left: auto; }
	.navigation-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding: 12px 24px 0; }
	/* Only dedicated square images appear on phones. */
	.home-gallery--desktop-only, .home-gallery__photo--desktop-only { display: none; }
	.home-gallery__viewport { height: auto; min-height: 0; aspect-ratio: 1; }
	.home-gallery__photo { object-fit: contain; object-position: center; }
	.home-gallery:not([data-carousel-ready]) .home-gallery__photo.is-first-desktop { opacity: 0; visibility: hidden; }
	.home-gallery:not([data-carousel-ready]) .home-gallery__photo.is-first-mobile { opacity: 1; visibility: visible; }
	.home-gallery__copy--brand {
		display: block; position: relative; z-index: 1; padding: 0 6% 8%;
		color: var(--paper); pointer-events: none;
	}
	.home-gallery__copy--brand img { width: 100%; }
	.home-gallery__item--with-brand::after {
		content: ''; position: absolute; inset: 0; pointer-events: none;
		background: linear-gradient(0deg, rgb(0 0 0 / .72), rgb(0 0 0 / .55) 23%, transparent 54%);
	}
	.home-gallery__copy--brand, .home-gallery__item--with-brand::after { opacity: 0; visibility: hidden; transition: opacity 500ms ease; }
	.home-gallery[data-carousel-ready] .home-gallery__item--with-brand:has(.is-active[data-mobile="true"]) > .home-gallery__copy--brand,
	.home-gallery[data-carousel-ready] .home-gallery__item--with-brand:has(.is-active[data-mobile="true"])::after,
	.home-gallery:not([data-carousel-ready]) .home-gallery__item--with-brand:has(.is-first-mobile) > .home-gallery__copy--brand,
	.home-gallery:not([data-carousel-ready]) .home-gallery__item--with-brand:has(.is-first-mobile)::after { opacity: 1; visibility: visible; }
	.gallery-button { width: 44px; height: 56px; }
	.gallery-button .icon { width: 28px; height: 36px; }
}

@media (max-width: 380px) {
	:root { --gutter: 16px; }
	.site-brand { --logo-width: 160px; }
}

@keyframes phone-menu-reveal { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
	.site-header.is-menu-open .site-header__navigation { animation: none; }
	.organization-card__link:hover .organization-card__photo { transform: none; }
}
