/*
 * Sekcje stron (wzorce patterns/home-*.php) i bloki slidera / stosu zdjęć.
 * Wygląd pojedynczych klocków (nadtytuł, karty, listy, przyciski…) jest
 * w block-styles.css — tu tylko układ sekcji i to, co specyficzne dla nich.
 */

/* --- Rytm sekcji ------------------------------------------------------------ */

/* Sekcje na całą szerokość stykają się ze sobą (każda ma własny padding) —
 * bez domyślnego odstępu między blokami, w którym prześwitywałoby tło strony
 * między ciemnymi sekcjami. */
:root :is(.entry-content, main.fotolady-sections, main.fotolady-legal, main.fotolady-search-page) > .alignfull {
	margin-block: 0;
}

/* Szablony złożone z sekcji wprost w <main class="fotolady-sections">
 * (strona główna, 404): bez paddingu <main> i szpary nad stopką — ostatnia
 * ciemna sekcja przechodzi prosto w stopkę. */
main:is(.fotolady-sections, .fotolady-legal, .fotolady-search-page) {
	padding-block: 0;
	/* Bez domyślnego odstępu od nagłówka (na stronach bez hero, np. 404,
	 * byłby tu pasek tła strony). */
	margin-block-start: 0;
}

/* -1px: sekcje nad stopką kończą się często na ułamku piksela (np. hero
 * 88vh) i na styku dwóch ciemnych teł prześwitywała jasna linia tła
 * strony. Stopka nachodzi na nie o piksel. */
main:is(.fotolady-sections, .fotolady-search-page) + .wp-block-template-part {
	position: relative;
	margin-block-start: -1px;
}

:root :where(.fotolady-section, .is-style-section-dark, .is-style-section-glow) h2 {
	font-size: clamp(1.4rem, 1vw + 1rem, 1.75rem);
	line-height: 1.5;
}

:root :where(.fotolady-section, .is-style-section-dark, .is-style-section-glow) h3 {
	font-size: 1.05rem;
	line-height: 1.5;
}

/* Nagłówek sekcji (nadtytuł + h2, opcjonalnie link po prawej) — większy
 * odstęp pod nim niż zwykły odstęp między blokami. */
:root .fotolady-section-head {
	margin-bottom: 2rem;
}

/* Nagłówek z linkiem "zobacz więcej" po prawej — więcej miejsca pod nim. */
:root .fotolady-section-head.is-layout-flex {
	margin-bottom: 3.25rem;
}

:root .fotolady-section-head h2 {
	max-width: 24ch;
	margin: 0;
}

:root .fotolady-section-head + * {
	margin-block-start: 0;
}

/* Krótki opis pod nagłówkiem sekcji. */
:root .fotolady-section-head > p:not(.is-style-eyebrow) {
	max-width: 56ch;
	margin: 0.6rem 0 0;
	color: var(--fotolady-text-soft);
}

:root .fotolady-grid {
	gap: 1.4rem;
}

/* --- Slider hero (fotolady/hero-slider) --------------------------------------- */

:root .fotolady-hero-slider {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: min(88vh, 780px);
	/* Miejsce na przezroczysty nagłówek, który leży na zdjęciu (+ pasek
	 * admina, gdy ktoś jest zalogowany). */
	padding-top: calc(110px + var(--wp-admin--admin-bar--height, 0px));
	overflow: hidden;
	background-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
}

:root .fotolady-hero-slider__slides,
:root .fotolady-hero-slider__slide,
:root .fotolady-hero-slider__overlay {
	position: absolute;
	inset: 0;
}

:root .fotolady-hero-slider__slide {
	opacity: 0;
	transition: opacity 1.1s ease;
}

:root .fotolady-hero-slider__slide.is-active {
	opacity: 1;
}

:root .fotolady-hero-slider__slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

:root .fotolady-hero-slider.has-ken-burns .fotolady-hero-slider__slide img {
	animation: fotolady-ken-burns 7s ease-out forwards;
}

@keyframes fotolady-ken-burns {
	from {
		transform: scale(1.06);
	}

	to {
		transform: scale(1);
	}
}

/* Przyciemnienie: mocne u dołu (tekst), lekkie z lewej, pasek u góry pod
 * przezroczystym nagłówkiem (czytelne logo i menu na każdym zdjęciu). */
:root .fotolady-hero-slider__overlay {
	z-index: 1;
	background:
		linear-gradient(0deg, rgba(10, 10, 11, 0.96) 0%, rgba(10, 10, 11, 0.78) 34%, rgba(10, 10, 11, 0.32) 62%, rgba(10, 10, 11, 0.05) 85%),
		linear-gradient(90deg, rgba(10, 10, 11, 0.55) 0%, rgba(10, 10, 11, 0.1) 55%),
		linear-gradient(180deg, rgba(10, 10, 11, 0.55) 0%, rgba(10, 10, 11, 0) 130px);
	pointer-events: none;
}

/* Treść przy lewej krawędzi zdjęcia (odstęp rośnie z szerokością ekranu),
 * jak na foto-lady.pl. */
:root .fotolady-hero-slider__content {
	position: relative;
	z-index: 2;
	box-sizing: border-box;
	width: 100%;
	max-width: 720px;
	padding: 0 clamp(20px, 4vw, 64px) 4.25rem;
}

:root .fotolady-hero-slider__content :is(h1, p, ul, .wp-block-buttons) {
	max-width: 720px;
	margin-block: 0;
}

:root .fotolady-hero-slider__content h1.wp-block-heading {
	max-width: 18ch;
	color: var(--wp--preset--color--white);
	font-size: clamp(1.8rem, 3vw + 0.8rem, 2.6rem);
	line-height: 1.25;
	text-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

:root .fotolady-hero-slider__content p.is-style-eyebrow + h1 {
	margin-top: calc(1.5em + 14px);
}

:root .fotolady-hero-slider__content p.is-style-lead {
	margin-top: 1.75rem;
	line-height: 1.8;
	color: #f0ece5;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

:root .fotolady-hero-slider__content .wp-block-buttons {
	margin-top: 2.25rem;
}

:root .fotolady-hero-slider__content ul.is-style-facts {
	margin-top: 2.25rem;
	row-gap: 1rem;
	color: #ede7de;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

:root .fotolady-hero-slider__dots {
	position: absolute;
	right: 28px;
	bottom: 30px;
	z-index: 3;
	display: flex;
	gap: 8px;
}

:root .fotolady-hero-slider__dots button {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 1.5px solid rgba(255, 255, 255, 0.7);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transition: background-color 0.2s ease, width 0.2s ease;
}

:root .fotolady-hero-slider__dots button.is-active {
	width: 22px;
	border-radius: 5px;
	background-color: var(--wp--preset--color--white);
}

@media (max-width: 700px) {
	:root .fotolady-hero-slider {
		min-height: 560px;
		padding-top: calc(104px + var(--wp-admin--admin-bar--height, 0px));
	}

	:root .fotolady-hero-slider__content {
		padding-bottom: 3.5rem;
	}

	:root .fotolady-hero-slider__dots {
		right: 1.5rem;
		bottom: 1.25rem;
	}
}

/* --- Stos zdjęć (fotolady/photo-stack) ---------------------------------------- */

:root .fotolady-photo-stack {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 4;
}

:root .fotolady-photo-stack__photo {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border-radius: 6px;
	box-shadow: 0 26px 46px -20px rgba(26, 26, 30, 0.4);
	transition: transform 1.4s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 1.4s ease;
}

:root .fotolady-photo-stack__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

:root .fotolady-photo-stack__photo.is-front {
	z-index: 3;
	opacity: 1;
	transform: none;
}

:root .fotolady-photo-stack__photo.is-mid {
	z-index: 2;
	opacity: 0.9;
	transform: rotate(-7deg) scale(0.93) translate(-6%, 4%);
}

:root .fotolady-photo-stack__photo.is-back {
	z-index: 1;
	opacity: 0.8;
	transform: rotate(6deg) scale(0.88) translate(7%, -5%);
}

/* Przesuwanie palcem/myszą (data-swipe, assets/js/sliders.js): pionowe
 * przewijanie strony zostaje, poziome gesty trafiają do skryptu. */
:root :is(.fotolady-photo-stack, .fotolady-hero-slider)[data-swipe="1"] {
	touch-action: pan-y;
}

:root .fotolady-photo-stack[data-swipe="1"] {
	cursor: grab;
	user-select: none;
}

:root .fotolady-photo-stack[data-swipe="1"]:active {
	cursor: grabbing;
}

@media (max-width: 781px) {
	:root .fotolady-photo-stack {
		max-width: 420px;
		margin-inline: auto;
		aspect-ratio: 5 / 4;
	}
}

@media (prefers-reduced-motion: reduce) {
	:root .fotolady-hero-slider.has-ken-burns .fotolady-hero-slider__slide img {
		animation: none;
	}

	:root .fotolady-hero-slider__slide,
	:root .fotolady-photo-stack__photo {
		transition: none;
	}
}

/* --- Usługi ------------------------------------------------------------------- */

:root .fotolady-services {
	gap: 3.5rem;
}

:root .fotolady-services .wp-block-group.is-style-service-list {
	margin-block: 1.6rem 1.25rem;
}

:root .fotolady-services .has-small-font-size {
	color: var(--fotolady-text-soft);
}

:root .fotolady-services .is-style-section-link {
	margin-top: 0.4rem;
}

/* --- Opinie --------------------------------------------------------------------- */

:root .fotolady-rating {
	gap: 1.1rem 1.5rem;
	margin-bottom: 2.5rem;
}

:root .fotolady-rating > * {
	margin: 0;
}

/* Ocena Google (fotolady/google-rating): duża liczba + gwiazdki i liczba
 * opinii pod nimi. */
:root .fotolady-google-rating {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

:root .fotolady-google-rating__score {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1.3;
}

:root .fotolady-google-rating__meta {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	line-height: 1.3;
}

:root .fotolady-google-rating__count {
	color: var(--wp--preset--color--muted);
	font-size: 0.82rem;
	text-decoration: none;
}

:root a.fotolady-google-rating__count:hover,
:root a.fotolady-google-rating__count:focus-visible {
	color: var(--wp--preset--color--terracotta);
	text-decoration: underline;
}

/* Gwiazdki wypełnione proporcjonalnie do oceny (np. 4,8 → 96%). */
:root .fotolady-stars {
	--fotolady-rating: 5;
	background: linear-gradient(90deg, var(--wp--preset--color--accent) calc(var(--fotolady-rating) / 5 * 100%), #d9d3cb 0);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	letter-spacing: 2px;
}

:root p.fotolady-rating__note {
	max-width: 38ch;
	color: var(--fotolady-text-soft);
	font-size: 1rem;
	line-height: 1.6;
}

:root p.fotolady-quote {
	color: #3a3733;
	font-size: 0.95rem;
	line-height: 1.65;
}

:root .fotolady-card-footer {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-top: auto !important;
	padding-top: 0.25rem;
}

/* Karta opinii (fotolady/review). */
:root .fotolady-review__stars {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1;
}

:root .fotolady-review__author {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.85rem;
	font-weight: 600;
}

:root .fotolady-review__source {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: 0.78rem;
	text-align: right;
}

/* Edytor: gwiazdki jako przyciski (kliknięcie ustawia ocenę) i cudzysłowy
 * wokół edytowanej treści (na stronie dokłada je PHP). */
:root .fotolady-review__star {
	padding: 0;
	border: 0;
	background: none;
	color: #d9d3cb;
	font: inherit;
	letter-spacing: 2px;
	cursor: pointer;
}

:root .fotolady-review__star.is-on {
	color: var(--wp--preset--color--accent);
}

:root .fotolady-review__star.is-half {
	background: linear-gradient(90deg, var(--wp--preset--color--accent) 50%, #d9d3cb 50%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

:root .editor-styles-wrapper .fotolady-review .fotolady-quote::before {
	content: "„";
}

:root .editor-styles-wrapper .fotolady-review .fotolady-quote::after {
	content: "”";
}

/* --- Pakiety (tekst + zdjęcie na całą wysokość) ------------------------------- */

:root .fotolady-split > .wp-block-columns {
	margin: 0;
	min-height: 600px;
}

/* Kolumna ze zdjęciem w proporcji pionowego kadru 2:3 — całe zdjęcie
 * widoczne, jak na foto-lady.pl. Tylko obok tekstu (na telefonie kolumny są
 * pod sobą i zdjęcie ma niższy pasek, niżej). */
@media (min-width: 782px) {
	:root .fotolady-split__media {
		aspect-ratio: 2 / 3;
	}
}

:root .fotolady-split__copy {
	box-sizing: border-box;
	padding: 3rem clamp(1.5rem, 5vw, 4rem);
}

:root .fotolady-split__copy > * {
	margin-block: 0;
}

:root .fotolady-split__copy > * + * {
	margin-block-start: 1.4rem;
}

:root .fotolady-split__copy h2 {
	max-width: 16ch;
	font-size: clamp(1.9rem, 2.8vw, 2.5rem);
}

:root .fotolady-split__copy .wp-block-buttons {
	margin-block-start: 1.75rem;
}

:root .fotolady-split__media {
	position: relative;
	align-self: stretch;
}

/* Miękkie przejście zdjęcia w ciemne tło tekstu. */
:root .fotolady-split__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(24, 22, 20, 0.55) 0%, rgba(24, 22, 20, 0) 30%);
	pointer-events: none;
}

@media (max-width: 781px) {
	:root .fotolady-split > .wp-block-columns {
		min-height: 0;
	}

	:root .fotolady-split__media {
		height: 56vw;
	}
}

/* --- Galeria (kafle) ------------------------------------------------------------ */

:root .fotolady-grid > .wp-block-image {
	margin: 0;
}

/* Kafle galerii ciaśniej niż karty (16px jak na foto-lady.pl). */
:root .fotolady-grid:has(> .wp-block-image) {
	gap: 1rem;
}

:root .fotolady-grid > .wp-block-image img {
	display: block;
	width: 100%;
	border-radius: 4px;
}

:root .fotolady-grid > .is-style-card-dark {
	aspect-ratio: 4 / 3;
	justify-content: center;
}

/* --- Zespół --------------------------------------------------------------------- */

:root .fotolady-team {
	gap: 2.5rem;
}

:root .fotolady-team h3 {
	margin: 0;
	font-size: 1.15rem;
}

:root .fotolady-team p {
	margin-block: 0;
	color: var(--fotolady-text-soft);
	font-size: 0.95rem;
}

:root .fotolady-team p.fotolady-role {
	margin-top: 0.3rem;
	color: var(--fotolady-eyebrow-color);
	font-size: 0.9rem;
	font-weight: 600;
}

:root .fotolady-team p:not(.fotolady-role) {
	margin-top: 0.75rem;
}

:root .fotolady-team .wp-block-buttons {
	margin-top: 1.75rem;
}

/* --- Podstrony: O nas, Usługi (patterns/about-*, services-*, service-*) ---- */

/* Wstęp podstrony: tytuł obok zdjęcia. */
:root .fotolady-page-hero .wp-block-columns {
	gap: clamp(2rem, 4vw, 3rem);
}

:root .fotolady-page-hero h1 {
	max-width: 18ch;
	font-size: clamp(1.8rem, 2.4vw + 0.8rem, 2.6rem);
	line-height: 1.15;
}

/* Wstęp bez zdjęcia (np. Pakiety) — tytuł szerszy, w jednej kolumnie. */
:root .fotolady-page-intro h1 {
	max-width: 20em;
}

:root .fotolady-page-hero p.is-style-lead {
	margin-top: 1.25rem;
}

:root .fotolady-page-hero .wp-block-buttons {
	margin-top: 1.75rem;
}

:root .fotolady-page-hero ul.is-style-facts {
	margin-top: 1.75rem;
}

/* Link powrotny między nadtytułem a tytułem — ciasno pod nadtytułem, tytuł
 * z tym samym odstępem co bez linku (1.5em). */
:root .fotolady-page-hero p.is-style-eyebrow + p.is-style-back-link {
	margin-top: 14px;
}

:root .fotolady-page-hero p.is-style-back-link + h1 {
	margin-top: 1.5em;
}

:root .fotolady-page-hero h1 + p.is-style-price + p.is-style-lead {
	margin-top: 1.25rem;
}

/* Pojedyncze zdjęcie we wstępie — prosto, z zaokrąglonym prawym górnym
 * rogiem (para zdjęć ma swoje rogi i przechylenia). */
:root .fotolady-page-hero .wp-block-column > .wp-block-image.is-style-photo:only-child {
	--fotolady-tilt: 0deg;
	border-radius: 6px 64px 6px 6px;
}

/* Spis sekcji pod wstępem (strona Usługi). */
:root .fotolady-page-hero ul.is-style-pill-nav {
	margin-top: 36px;
}

/* Nagłówek panelu ciemnego: nadtytuł + tytuł po lewej, znaczek po prawej. */
:root .fotolady-panel-head {
	margin-bottom: 32px;
}

:root .fotolady-panel-head > * {
	margin: 0;
}

:root .fotolady-panel-head p.is-style-badge {
	align-self: flex-start;
}

:root .is-style-panel-dark .wp-block-columns .is-style-lead {
	color: #b9b3ac;
}

:root .is-style-panel-dark .wp-block-column > .wp-block-buttons {
	margin-top: 24px;
}

:root .is-style-panel-dark > ul.is-style-checklist {
	margin-top: 18px;
}

/* Historia: nagłówek i akapity wyśrodkowane w pionie obok pary zdjęć. */
:root .fotolady-story {
	gap: clamp(2rem, 4vw, 3rem);
}

:root .fotolady-story h2 {
	margin-bottom: 1.5rem;
}

:root .fotolady-story p {
	max-width: 60ch;
	margin-block: 0 1rem;
	font-size: 1.02rem;
}

:root .fotolady-story p:last-child {
	margin-bottom: 0;
}

/* --- Galeria (patterns/gallery-*, bloki fotolady/gallery-index i -mix) ---- */

/* core/gallery "Mozaika" i losowe kadry — siatka 4 kolumn, rzędy o wysokości
 * 4:3 kolumny; co dziesiąte zdjęcie 2×2, kilka wysokich na dwa rzędy (rytm
 * jak na foto-lady.pl, sam się powtarza dla kolejnych zdjęć). Kadry
 * przycięte. !important: rdzeń galerii ustawia szerokość zdjęć przez
 * selektor z #id. */
:root :is(.wp-block-gallery.is-style-mosaic, .fotolady-gallery-mix) {
	--fotolady-gallery-width: min(100vw - 3rem, 1132px);
	display: grid !important;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: calc((var(--fotolady-gallery-width) - 36px) / 3);
	grid-auto-flow: dense;
	gap: 12px !important;
}

@media (min-width: 782px) {
	:root :is(.wp-block-gallery.is-style-mosaic, .fotolady-gallery-mix) > :nth-child(10n + 1) {
		grid-column: span 2;
		grid-row: span 2;
	}

	:root :is(.wp-block-gallery.is-style-mosaic, .fotolady-gallery-mix) > :is(:nth-child(10n + 2), :nth-child(10n + 3), :nth-child(10n + 6)) {
		grid-row: span 2;
	}

	/* Ostatnia, niepełna seria (reszta z dzielenia liczby zdjęć przez 10)
	 * dostaje własny układ, który domyka prostokąt — bez pustych pól na
	 * końcu. Element "i-ty w serii" i "k-i+1-szy od końca" = i-te zdjęcie
	 * w reszcie k zdjęć. */
	:root :is(.wp-block-gallery.is-style-mosaic, .fotolady-gallery-mix) > :nth-child(10n + 1):nth-last-child(1) {
		grid-column: span 4;
		grid-row: span 2;
	}

	:root :is(.wp-block-gallery.is-style-mosaic, .fotolady-gallery-mix) > :nth-child(10n + 2):nth-last-child(1),
	:root :is(.wp-block-gallery.is-style-mosaic, .fotolady-gallery-mix) > :nth-child(10n + 6):nth-last-child(3) {
		grid-column: span 2;
		grid-row: span 2;
	}

	:root :is(.wp-block-gallery.is-style-mosaic, .fotolady-gallery-mix) > :nth-child(10n + 3):nth-last-child(2),
	:root :is(.wp-block-gallery.is-style-mosaic, .fotolady-gallery-mix) > :nth-child(10n + 2):nth-last-child(4),
	:root :is(.wp-block-gallery.is-style-mosaic, .fotolady-gallery-mix) > :nth-child(10n + 3):nth-last-child(3),
	:root :is(.wp-block-gallery.is-style-mosaic, .fotolady-gallery-mix) > :nth-child(10n + 6):nth-last-child(2),
	:root :is(.wp-block-gallery.is-style-mosaic, .fotolady-gallery-mix) > :nth-child(10n + 6):nth-last-child(4) {
		grid-column: auto;
		grid-row: auto;
	}

	:root :is(.wp-block-gallery.is-style-mosaic, .fotolady-gallery-mix) > :nth-child(10n + 6):nth-last-child(1) {
		grid-column: span 2;
		grid-row: auto;
	}

	:root :is(.wp-block-gallery.is-style-mosaic, .fotolady-gallery-mix) > :nth-child(10n + 9):nth-last-child(1) {
		grid-column: span 3;
	}
}

/* Telefon (2 kolumny): co siódme zdjęcie na całą szerokość, pozostałe
 * parami; ostatnie, które zostałoby samo w rzędzie, też na całą szerokość. */
@media (max-width: 781px) {
	:root :is(.wp-block-gallery.is-style-mosaic, .fotolady-gallery-mix) > :nth-child(7n + 1),
	:root :is(.wp-block-gallery.is-style-mosaic, .fotolady-gallery-mix) > :last-child:is(:nth-child(7n + 2), :nth-child(7n + 4), :nth-child(7n + 6)) {
		grid-column: span 2;
	}
}

:root .wp-block-gallery.is-style-mosaic > figure.wp-block-image,
:root .fotolady-gallery-mix__item,
:root .fotolady-gallery-mix__item > figure.wp-block-image {
	position: relative;
	width: auto !important;
	height: 100%;
	margin: 0 !important;
	overflow: hidden;
	border-radius: 4px;
}

:root :is(.wp-block-gallery.is-style-mosaic, .fotolady-gallery-mix) figure.wp-block-image img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}

/* core/gallery "Kolumny" — zdjęcia w naturalnych proporcjach (kolaże,
 * paski z fotobudki, kadry poziome), ułożone w kolumny jak na tablicy. */
:root .wp-block-gallery.is-style-columns {
	display: block !important;
	columns: 3 280px;
	column-gap: 12px;
}

:root .wp-block-gallery.is-style-columns > figure.wp-block-image {
	display: block;
	width: 100% !important;
	margin: 0 0 12px !important;
	overflow: hidden;
	border-radius: 4px;
	break-inside: avoid;
}

:root .wp-block-gallery.is-style-columns > figure.wp-block-image img {
	width: 100% !important;
	height: auto !important;
}

/* Wspólne: zdjęcia lekko przybliżają się po najechaniu (klik = powiększenie). */
:root :is(.wp-block-gallery.is-style-mosaic, .wp-block-gallery.is-style-columns, .fotolady-gallery-mix) figure.wp-block-image img {
	transition: transform 0.7s var(--fotolady-hover-ease, ease);
}

:root :is(.wp-block-gallery.is-style-mosaic, .wp-block-gallery.is-style-columns, .fotolady-gallery-mix) figure.wp-block-image:hover img {
	transform: scale(1.04);
}

:root .wp-block-gallery:is(.is-style-mosaic, .is-style-columns) + p.is-style-section-link {
	margin-top: 1.75rem;
}

/* Losowe kadry: nazwa galerii, z której pochodzi zdjęcie, wyjeżdża
 * w rogu po najechaniu. */
:root .fotolady-gallery-mix__from {
	position: absolute;
	left: 12px;
	bottom: 12px;
	z-index: 2;
	padding: 0.45em 0.9em;
	border-radius: 999px;
	background-color: rgba(24, 22, 20, 0.72);
	color: var(--wp--preset--color--white);
	font-size: 0.78rem;
	font-weight: 600;
	text-decoration: none;
	opacity: 0;
	translate: 0 6px;
	transition: opacity 0.25s ease, translate 0.3s var(--fotolady-hover-ease, ease), background-color 0.2s ease;
	backdrop-filter: blur(4px);
}

:root .fotolady-gallery-mix__item:is(:hover, :focus-within) .fotolady-gallery-mix__from {
	opacity: 1;
	translate: 0 0;
}

:root .fotolady-gallery-mix__from:is(:hover, :focus-visible) {
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--ink);
}

/* Kafle podgalerii — okładka z zaokrąglonym rogiem (jak "Zdjęcie z rogiem"),
 * nazwa i liczba zdjęć na przyciemnionym dole. */
:root .fotolady-gallery-index {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 20px;
}

:root .fotolady-gallery-index__item {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 6px 6px 6px 48px;
	aspect-ratio: 4 / 5;
	background-color: var(--wp--preset--color--sand);
	box-shadow: 0 18px 34px rgba(26, 26, 30, 0.14);
	color: var(--wp--preset--color--white);
	text-decoration: none;
	transition: transform 0.4s var(--fotolady-hover-ease, ease), box-shadow 0.4s var(--fotolady-hover-ease, ease);
}

:root .fotolady-gallery-index__item:is(:hover, :focus-visible) {
	transform: translateY(-4px);
	box-shadow: 0 24px 42px rgba(26, 26, 30, 0.24);
}

:root .fotolady-gallery-index__photo,
:root .fotolady-gallery-index__photo img {
	display: block;
	width: 100%;
	height: 100%;
}

:root .fotolady-gallery-index__photo img {
	object-fit: cover;
	transition: transform 0.7s var(--fotolady-hover-ease, ease);
}

:root .fotolady-gallery-index__item:is(:hover, :focus-visible) .fotolady-gallery-index__photo img {
	transform: scale(1.05);
}

:root .fotolady-gallery-index__text {
	position: absolute;
	inset: auto 0 0;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	padding: 3.5rem 1.4rem 1.4rem 2rem;
	background: linear-gradient(0deg, rgba(10, 10, 11, 0.85) 0%, rgba(10, 10, 11, 0.45) 55%, rgba(10, 10, 11, 0) 100%);
}

:root .fotolady-gallery-index__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.25;
}

:root .fotolady-gallery-index__count {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	color: #d8d3cc;
	font-size: 0.82rem;
}

:root .fotolady-gallery-index__count::before {
	content: "";
	width: 12px;
	height: 12px;
	background-color: var(--wp--preset--color--accent);
	-webkit-mask: var(--fotolady-shutter-mask) center / contain no-repeat;
	mask: var(--fotolady-shutter-mask) center / contain no-repeat;
	transition: transform 0.35s ease;
}

:root .fotolady-gallery-index__item:is(:hover, :focus-visible) .fotolady-gallery-index__count::before {
	transform: rotate(45deg);
}

@media (max-width: 781px) {
	:root :is(.wp-block-gallery.is-style-mosaic, .fotolady-gallery-mix) {
		grid-template-columns: repeat(2, 1fr);
		grid-auto-rows: calc((var(--fotolady-gallery-width) - 12px) / 1.5);
	}
}

@media (prefers-reduced-motion: reduce) {
	:root :is(.wp-block-gallery.is-style-mosaic, .wp-block-gallery.is-style-columns, .fotolady-gallery-mix) figure.wp-block-image img,
	:root .fotolady-gallery-index__item,
	:root .fotolady-gallery-index__photo img,
	:root .fotolady-gallery-mix__from {
		transition: none;
	}
}

/* --- Tryby strony: konserwacja i "wkrótce" (templates/maintenance.html,
 * coming-soon.html; logika: wtyczka FotoLady Core) ------------------------- */

/* Cała strona na ciemnym tle, stopka dociśnięta do dołu. */
body:has(.fotolady-lock) {
	background-color: var(--wp--preset--color--graphite);
}

:root .fotolady-lock {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	background-color: var(--wp--preset--color--graphite);
	color: var(--wp--preset--color--paper);
}

:root .fotolady-lock > * {
	margin-block: 0;
}

:root .fotolady-lock-main {
	flex: 1;
}

:root .fotolady-lock-main > .alignfull {
	margin-block: 0;
}

/* Minimalny nagłówek: tylko logo i plakietka statusu (bez menu). */
:root .fotolady-lock-header > .wp-block-group {
	min-height: 84px;
}

:root .fotolady-status {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0;
	padding: 0.4rem 0.85rem;
	border: 1px solid rgba(247, 244, 240, 0.12);
	border-radius: 99px;
	color: #c8c2ba;
	font-size: 0.8rem;
	font-weight: 600;
	white-space: nowrap;
}

:root .fotolady-status i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: var(--wp--preset--color--accent);
	animation: fotolady-pulse 2s ease-out infinite;
}

@keyframes fotolady-pulse {
	0% { box-shadow: 0 0 0 0 rgba(255, 90, 54, 0.55); }
	70%, 100% { box-shadow: 0 0 0 9px rgba(255, 90, 54, 0); }
}

/* Hero: wielki nagłówek z akcentem w <em>. */
:root .fotolady-lock-hero {
	overflow: hidden;
}

:root .fotolady-lock-hero .fotolady-lock-hero__grid {
	gap: clamp(2.5rem, 6vw, 5rem);
}

:root .fotolady-lock-hero p.is-style-eyebrow + h1 {
	margin-top: calc(1.5rem + 14px);
}

:root .fotolady-lock-hero h1 {
	max-width: 14ch;
	font-size: clamp(2.2rem, 4.6vw, 3.6rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

:root .fotolady-lock-hero h1 em {
	color: var(--wp--preset--color--accent);
	font-style: normal;
}

:root .fotolady-lock-hero p.is-style-lead {
	max-width: 46ch;
	margin-top: 1.4rem;
}

:root .fotolady-lock-hero .wp-block-buttons {
	margin-top: 2.2rem;
}

/* Konserwacja: pulsujące "światło ciemniowe" zamiast zwykłej poświaty. */
:root .fotolady-darkroom.is-style-section-glow::before {
	top: -30%;
	left: auto;
	right: -8%;
	width: 760px;
	height: 760px;
	max-width: 140vw;
	background: radial-gradient(circle, rgba(255, 90, 54, 0.26) 0%, rgba(255, 90, 54, 0) 66%);
	transform: none;
	animation: fotolady-safelight 6s ease-in-out infinite;
}

@keyframes fotolady-safelight {
	0%, 100% { opacity: 0.85; }
	50% { opacity: 1; }
}

/* Przycisk z telefonem — ikonka jak przy przycisku z mailem (404). */
:root .fotolady-button-phone .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
}

:root .fotolady-button-phone .wp-block-button__link::before {
	content: "";
	width: 16px;
	height: 16px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Odliczanie (fotolady/countdown). */
:root .fotolady-countdown {
	margin-top: 2rem;
	font-variant-numeric: tabular-nums;
}

:root .fotolady-countdown--eta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 1.25rem;
	max-width: 30rem;
	padding: 1rem 1.25rem;
	border: 1px solid rgba(247, 244, 240, 0.12);
	border-radius: 3px;
	background-color: rgba(24, 22, 20, 0.55);
}

:root .fotolady-countdown--eta small,
:root .fotolady-countdown--boxes small {
	color: #9c9793;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

:root .fotolady-countdown--eta small {
	width: 100%;
}

:root .fotolady-countdown--eta strong {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1;
}

:root .fotolady-countdown__left {
	color: var(--wp--preset--color--accent);
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
	font-size: 0.85rem;
}

:root .fotolady-countdown--boxes {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.5rem;
	max-width: 30rem;
}

:root .fotolady-countdown--boxes > div {
	padding: 0.85rem 0.5rem 0.7rem;
	border: 1px solid rgba(247, 244, 240, 0.12);
	border-radius: 3px;
	background-color: rgba(24, 22, 20, 0.55);
	text-align: center;
}

:root .fotolady-countdown--boxes strong {
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.4rem, 3vw, 2rem);
	font-weight: 700;
	line-height: 1.1;
}

:root .fotolady-countdown--boxes > div:first-child strong {
	color: var(--wp--preset--color--accent);
}

:root .fotolady-countdown--boxes small {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.68rem;
}

/* Rozbiegówka — plansza odliczania z początku taśmy filmowej. */
:root .fotolady-countdown--leader {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.25rem;
	margin-top: 0;
}

:root .fotolady-leader {
	position: relative;
	width: min(100%, 380px);
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 6px;
	background-color: #2e2c30;
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), inset 0 0 80px rgba(0, 0, 0, 0.55);
}

:root .fotolady-leader__sweep {
	position: absolute;
	inset: -25%;
	background: conic-gradient(from 0deg, rgba(255, 90, 54, 0) 0deg, rgba(255, 90, 54, 0) 1deg, rgba(255, 90, 54, 0.28) 2deg, rgba(255, 90, 54, 0.08) 300deg, rgba(255, 90, 54, 0) 360deg);
	animation: fotolady-sweep 1s linear infinite;
}

@keyframes fotolady-sweep {
	to { transform: rotate(360deg); }
}

:root .fotolady-leader svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

:root .fotolady-leader__num {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: var(--wp--preset--color--paper);
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(5rem, 13vw, 8.5rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.03em;
}

:root .fotolady-leader__grain {
	position: absolute;
	inset: 0;
	opacity: 0.5;
	background: repeating-linear-gradient(90deg, rgba(247, 244, 240, 0.04) 0 1px, transparent 1px 7px);
	animation: fotolady-flicker 0.18s steps(2) infinite;
	pointer-events: none;
}

@keyframes fotolady-flicker {
	50% { opacity: 0.3; transform: translateX(3px); }
}

:root .fotolady-leader__cap {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.35rem 1.1rem;
	margin: 0;
	padding: 0;
	list-style: none;
	color: #9c9793;
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
	font-size: 0.78rem;
}

:root .fotolady-leader__cap b {
	color: var(--wp--preset--color--paper);
	font-weight: 500;
}

/* core/list "Etapy prac" — punkty "Gotowe" / "W toku" (style punktu listy),
 * status po prawej dopisuje CSS. */
:root ul.is-style-stages {
	max-width: 30rem;
	margin-top: 2rem;
	padding: 0;
	border-top: 1px solid rgba(247, 244, 240, 0.12);
	list-style: none;
}

:root ul.is-style-stages > li {
	position: relative;
	margin: 0;
	padding: 0.7rem 4.5rem 0.7rem 2.4rem;
	border-bottom: 1px solid rgba(247, 244, 240, 0.12);
	color: #c8c2ba;
	font-size: 0.95rem;
}

/* Kropka po lewej, status po prawej — pozycjonowane, żeby treść punktu
 * (pogrubiona nazwa + opis) płynęła jak zwykły tekst. */
:root ul.is-style-stages > li::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0.45rem;
	width: 12px;
	height: 12px;
	margin-top: -6px;
	box-sizing: border-box;
	border: 1.5px solid #9c9793;
	border-radius: 50%;
}

:root ul.is-style-stages > li::after {
	content: "dalej";
	position: absolute;
	top: 50%;
	right: 0;
	color: #9c9793;
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
	font-size: 0.78rem;
	transform: translateY(-50%);
}

:root ul.is-style-stages > li strong {
	color: var(--wp--preset--color--paper);
	font-weight: 600;
}

:root ul.is-style-stages > li.is-style-done {
	color: #9c9793;
}

:root ul.is-style-stages > li.is-style-done strong {
	color: #c8c2ba;
}

:root ul.is-style-stages > li.is-style-done::before {
	border-color: #c8c2ba;
	background-color: #c8c2ba;
}

:root ul.is-style-stages > li.is-style-done::after {
	content: "gotowe";
}

:root ul.is-style-stages > li.is-style-now::before {
	border-color: var(--wp--preset--color--accent);
	background-color: var(--wp--preset--color--accent);
	animation: fotolady-pulse 2s ease-out infinite;
}

:root ul.is-style-stages > li.is-style-now::after {
	content: "trwa";
	color: var(--wp--preset--color--accent);
}

/* core/group "Kuweta (wywoływanie)" — zdjęcie w kuwecie z utrwalaczem,
 * falująca ciecz, szczypce; zdjęcie cyklicznie się wywołuje. */
:root p.fotolady-tray-label {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
	color: #9c9793;
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
	font-size: 0.74rem;
	letter-spacing: 0.06em;
}

:root p.fotolady-tray-label strong {
	color: var(--wp--preset--color--accent);
	font-weight: 500;
}

:root .wp-block-group.is-style-tray {
	position: relative;
	padding: clamp(18px, 3.5vw, 30px);
	border-radius: 10px;
	background: linear-gradient(160deg, #3a2019 0%, #1d1110 100%);
	box-shadow: inset 0 0 0 6px #120b0a, inset 0 0 40px rgba(0, 0, 0, 0.6), 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

:root .wp-block-group.is-style-tray::after {
	content: "";
	position: absolute;
	inset: 6px;
	border-radius: 6px;
	background: repeating-radial-gradient(ellipse at 30% 40%, rgba(255, 90, 54, 0.07) 0 14px, transparent 14px 34px);
	mix-blend-mode: screen;
	animation: fotolady-ripple 8s linear infinite;
	pointer-events: none;
}

/* Szczypce. */
:root .wp-block-group.is-style-tray::before {
	content: "";
	position: absolute;
	z-index: 2;
	top: -18px;
	right: 8%;
	width: 22px;
	height: 90px;
	border-radius: 3px 3px 8px 8px;
	background: linear-gradient(90deg, #c8c2ba, #8d877e);
	box-shadow: 0 8px 14px rgba(0, 0, 0, 0.4);
	transform: rotate(18deg);
}

@keyframes fotolady-ripple {
	from { background-position: 0 0; }
	to { background-position: 60px 30px; }
}

:root .wp-block-group.is-style-tray > .wp-block-image {
	position: relative;
	margin: 0;
	padding: 10px 10px 34px;
	background-color: #efe9e1;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
	transform: rotate(-2.2deg);
}

:root .wp-block-group.is-style-tray > .wp-block-image img {
	display: block;
	width: 100%;
	animation: fotolady-develop 11s ease-in-out infinite;
}

:root .wp-block-group.is-style-tray > .wp-block-image figcaption {
	position: absolute;
	right: 12px;
	bottom: 9px;
	left: 12px;
	margin: 0;
	color: #8a8278;
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
	font-size: 0.66rem;
	letter-spacing: 0.04em;
	text-align: left;
}

@keyframes fotolady-develop {
	0% { opacity: 0; filter: sepia(1) contrast(0.4) brightness(1.6); }
	12% { opacity: 0; filter: sepia(1) contrast(0.4) brightness(1.6); }
	55% { opacity: 0.9; filter: sepia(0.7) contrast(0.8) brightness(1.1); }
	78%, 92% { opacity: 1; filter: sepia(0.35) contrast(1) brightness(0.95); }
	100% { opacity: 0; filter: sepia(1) contrast(0.4) brightness(1.6); }
}

/* Formularz powiadomienia (blok wtyczki fotolady-core/notify-form). */
:root .fotolady-notify {
	max-width: 30rem;
	margin-top: 2.25rem;
	padding-top: 1.75rem;
	border-top: 1px solid rgba(247, 244, 240, 0.12);
}

:root .fotolady-notify label {
	display: block;
	margin-bottom: 0.6rem;
	color: #c8c2ba;
	font-size: 0.9rem;
}

:root .fotolady-notify__field {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

:root .fotolady-notify input[type="email"] {
	flex: 1 1 14rem;
	min-width: 0;
	padding: 0.8rem 1rem;
	border: 1.5px solid rgba(247, 244, 240, 0.12);
	border-radius: 3px;
	background-color: rgba(24, 22, 20, 0.55);
	color: var(--wp--preset--color--paper);
	font: inherit;
	font-size: 0.95rem;
}

:root .fotolady-notify input[type="email"]::placeholder {
	color: #8d877e;
}

:root .fotolady-notify input[type="email"]:focus {
	border-color: var(--wp--preset--color--accent);
	outline: none;
}

:root .fotolady-notify__trap {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

:root .fotolady-notify button {
	padding: 0.85em 1.5em;
	border: 0;
	border-radius: 3px;
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--ink);
	font-size: 0.98rem;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

:root .fotolady-notify button:is(:hover, :focus-visible) {
	background-color: #e14a2c;
}

:root .fotolady-notify button:disabled {
	opacity: 0.6;
	cursor: wait;
}

:root .fotolady-notify__consent {
	margin: 0.7rem 0 0;
	color: #9c9793;
	font-size: 0.78rem;
}

:root .fotolady-notify__note {
	min-height: 1.4em;
	margin: 0.5rem 0 0;
	color: var(--wp--preset--color--accent);
	font-size: 0.85rem;
}

/* Pierwsze klatki: rozmyte kadry na kliszy łapią ostrość po najechaniu;
 * ostatnia klatka to data premiery na koralowym tle. */
:root .fotolady-film-blur .wp-block-image.is-style-frame img {
	filter: blur(7px) sepia(0.3) brightness(0.75);
	transform: scale(1.12);
	transition: filter 0.6s ease, transform 0.6s ease;
}

:root .fotolady-film-blur .wp-block-image.is-style-frame:is(:hover, :focus-within) img {
	filter: none;
	transform: scale(1.02);
}

:root .wp-block-group.is-style-frame-missing.fotolady-frame-date {
	background: repeating-linear-gradient(-45deg, rgba(255, 90, 54, 0.12) 0 8px, transparent 8px 16px), var(--wp--preset--color--accent);
	color: var(--wp--preset--color--ink);
}

:root .wp-block-group.is-style-frame-missing.fotolady-frame-date::before {
	display: none;
}

:root .wp-block-group.is-style-frame-missing.fotolady-frame-date > * {
	color: var(--wp--preset--color--ink);
}

/* Skrócona stopka. */
:root .fotolady-lock-footer {
	border-top: 1px solid rgba(247, 244, 240, 0.12);
	background-color: var(--wp--preset--color--ink);
	color: #c8c2ba;
	font-size: 0.88rem;
}

:root .fotolady-lock-footer .fotolady-contact-details a {
	color: var(--wp--preset--color--paper);
}

/* W stopce do lewej — po zawinięciu (telefon) e-mail nie ląduje na środku. */
:root .fotolady-lock-footer .fotolady-contact-details--horizontal {
	justify-content: flex-start;
}

:root .fotolady-lock-footer__bottom {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(247, 244, 240, 0.12);
	font-size: 0.76rem;
}

@media (max-width: 980px) {
	:root .fotolady-lock-hero .fotolady-lock-hero__grid {
		flex-direction: column-reverse;
	}
}

@media (max-width: 640px) {
	:root .fotolady-status span {
		display: none;
	}

	:root .fotolady-lock-hero .wp-block-button {
		flex: 1 1 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	:root .fotolady-darkroom.is-style-section-glow::before,
	:root .wp-block-group.is-style-tray::after,
	:root .fotolady-status i,
	:root ul.is-style-stages > li.is-style-now::before,
	:root .fotolady-leader__sweep,
	:root .fotolady-leader__grain {
		animation: none;
	}

	:root .wp-block-group.is-style-tray > .wp-block-image img {
		animation: none;
		filter: sepia(0.35);
	}

	:root .fotolady-film-blur .wp-block-image.is-style-frame img {
		transition: none;
	}
}

/* --- Końcowe CTA ---------------------------------------------------------------- */

:root .is-style-section-glow > * {
	margin-block: 0;
}

:root .is-style-section-glow > * + * {
	margin-block-start: 1.4rem;
}

:root .is-style-section-glow h2 {
	font-size: clamp(1.8rem, 2.6vw, 2.4rem);
}

/* Dane kontaktowe w rzędzie (fotolady/contact-details, układ poziomy).
 * Dwie klasy — footer.css (ładowany później) ustawia wersję pionową. */
:root .fotolady-contact-details.fotolady-contact-details--horizontal {
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem 1.75rem;
}

:root .fotolady-contact-details a {
	color: inherit;
	text-decoration: none;
}

:root .fotolady-contact-details a:hover,
:root .fotolady-contact-details a:focus-visible {
	color: var(--wp--preset--color--accent);
}

:root .is-style-section-glow .fotolady-contact-details {
	color: #d8d3cc;
	font-weight: 600;
	font-size: 0.95rem;
}

/* --- Strona 404 (patterns/404-hero.php, 404-film.php) ------------------ */

/* Poświata przesunięta w prawo — za numerem 404, nie za tekstem. */
:root .fotolady-404.is-style-section-glow::before {
	top: -30%;
	right: -8%;
	left: auto;
	width: 760px;
	height: 760px;
	background: radial-gradient(circle, rgba(255, 90, 54, 0.2) 0%, rgba(255, 90, 54, 0) 68%);
	transform: none;
}

:root .fotolady-404__grid {
	gap: clamp(2.5rem, 6vw, 5rem);
}

:root .fotolady-404 p.is-style-eyebrow + h1 {
	margin-top: calc(1.5rem + 14px);
}

:root .fotolady-404 h1 {
	margin-bottom: 0;
	font-size: clamp(2.2rem, 4.6vw, 3.6rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

/* Kursywa w nagłówku = koralowe wyróżnienie (np. „nie wyszedł.”). */
:root .fotolady-404 h1 em {
	color: var(--wp--preset--color--accent);
	font-style: normal;
}

:root .fotolady-404 p.is-style-lead {
	max-width: 46ch;
	margin-top: 1.4rem;
}

:root .fotolady-404 .wp-block-buttons {
	margin-top: 2.2rem;
}

/* Ikona koperty w przycisku "Napisz do nas". */
:root .fotolady-button-mail .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
}

:root .fotolady-button-mail .wp-block-button__link::before {
	content: "";
	width: 16px;
	height: 16px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Wyszukiwarka (core/search z ikoną) na ciemnym tle. */
:root .fotolady-404-search {
	max-width: 30rem;
	margin-top: 2.5rem;
	padding-top: 1.75rem;
	border-top: 1px solid rgba(247, 244, 240, 0.12);
}

:root .fotolady-404-search .wp-block-search__label {
	margin-bottom: 0.6rem;
	color: var(--fotolady-text-soft);
	font-size: 0.9rem;
	font-weight: 400;
}

:root .fotolady-404-search .wp-block-search__inside-wrapper {
	gap: 0;
}

:root .fotolady-404-search .wp-block-search__input {
	min-width: 0;
	padding: 0.8rem 1rem;
	border: 1.5px solid rgba(247, 244, 240, 0.12);
	border-right: 0;
	border-radius: 3px 0 0 3px;
	background-color: rgba(24, 22, 20, 0.55);
	color: var(--wp--preset--color--paper);
	font-size: 0.95rem;
}

:root .fotolady-404-search .wp-block-search__input::placeholder {
	color: #8d877e;
}

:root .fotolady-404-search .wp-block-search__input:focus {
	border-color: var(--wp--preset--color--accent);
	outline: none;
}

:root .fotolady-404-search .wp-block-search__button {
	display: grid;
	place-items: center;
	width: 52px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0 3px 3px 0;
	background-color: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
	transition: background-color 0.2s ease;
}

:root .fotolady-404-search .wp-block-search__button:hover,
:root .fotolady-404-search .wp-block-search__button:focus-visible {
	background-color: var(--wp--preset--color--accent);
}

:root .fotolady-404-search .wp-block-search__button svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

/* Numer błędu z migawką zamiast zera (fotolady/error-code). */
:root .fotolady-error-code {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
}

:root .fotolady-error-code__digits {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	color: var(--wp--preset--color--paper);
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(7rem, 17vw, 13.5rem);
	font-weight: 800;
	line-height: 0.8;
	letter-spacing: -0.04em;
}

:root .fotolady-error-code__iris {
	flex: none;
	width: 0.86em;
	height: 0.86em;
	margin-inline: 0.04em;
	color: var(--wp--preset--color--accent);
}

:root .fotolady-error-code__blades {
	transform-origin: 80px 80px;
	animation: fotolady-iris 7s cubic-bezier(0.6, 0, 0.3, 1) infinite;
}

@keyframes fotolady-iris {
	0%, 18% {
		transform: rotate(0deg) scale(1);
	}

	34%, 58% {
		transform: rotate(38deg) scale(1.18);
	}

	76%, 100% {
		transform: rotate(0deg) scale(1);
	}
}

:root .fotolady-error-code__exif {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.35rem 1.1rem;
	margin: 0;
	padding: 0;
	list-style: none;
	color: #9c9793;
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
	font-size: 0.78rem;
	font-variant-numeric: tabular-nums;
}

:root .fotolady-error-code__exif b {
	color: var(--wp--preset--color--paper);
	font-weight: 500;
}

/* Na węższych ekranach numer nad tekstem, a na telefonie przyciski na
 * całą szerokość. */
@media (max-width: 781px) {
	:root .fotolady-404__grid > .wp-block-column:last-child {
		order: -1;
	}
}

@media (max-width: 640px) {
	:root .fotolady-404 .wp-block-button {
		flex: 1 1 100%;
	}

	:root .fotolady-404 .wp-block-button__link {
		justify-content: center;
		width: 100%;
	}
}

/* Pas negatywu (core/group "Pas negatywu" + core/image "Klatka filmu" +
 * core/group "Brakująca klatka"). Numery klatek na brzegu kliszy dokłada
 * CSS (licznik), więc klatki można dowolnie dodawać i przestawiać. */
:root p.fotolady-404-film__note {
	max-width: 36ch;
	margin: 0;
	color: var(--fotolady-text-soft);
	font-size: 0.95rem;
}

:root .wp-block-group.is-style-film-strip {
	position: relative;
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 10px;
	padding: 30px 14px;
	border-radius: 4px;
	background: linear-gradient(180deg, #31201a, #24170f);
	counter-reset: fotolady-frame 20;
}

/* Perforacja u góry i u dołu kliszy. */
:root .wp-block-group.is-style-film-strip::before,
:root .wp-block-group.is-style-film-strip::after {
	content: "";
	position: absolute;
	right: 10px;
	left: 10px;
	height: 12px;
	background-color: #0e0d0c;
	-webkit-mask: repeating-linear-gradient(90deg, #000 0 12px, transparent 12px 24px);
	mask: repeating-linear-gradient(90deg, #000 0 12px, transparent 12px 24px);
}

:root .wp-block-group.is-style-film-strip::before {
	top: 9px;
}

:root .wp-block-group.is-style-film-strip::after {
	bottom: 9px;
}

:root .wp-block-group.is-style-film-strip > * {
	position: relative;
	margin: 0;
	counter-increment: fotolady-frame;
}

/* Brzeg kliszy pod klatką: "▸ 21" … "21A". */
:root .is-style-film-strip > :is(.is-style-frame, .is-style-frame-missing) {
	padding-bottom: 20px;
}

:root .is-style-film-strip > .is-style-frame::before,
:root .is-style-film-strip > .is-style-frame::after,
:root .is-style-film-strip > .is-style-frame-missing::after {
	position: absolute;
	bottom: 0;
	color: #d9924f;
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
	font-size: 0.66rem;
	letter-spacing: 0.06em;
	line-height: 14px;
	font-variant-numeric: tabular-nums;
}

:root .is-style-film-strip > .is-style-frame::before {
	content: "▸ " counter(fotolady-frame);
	left: 0;
}

:root .is-style-film-strip > .is-style-frame::after {
	content: counter(fotolady-frame) "A";
	right: 0;
}

:root .is-style-film-strip > .is-style-frame-missing::after {
	content: "▸ " counter(fotolady-frame) "  tu jesteście";
	left: 0;
	color: var(--wp--preset--color--accent);
	white-space: pre;
}

/* core/image "Klatka filmu": przygaszony kadr, pełne kolory po najechaniu,
 * podpis (nazwa podstrony) na dole kadru ze strzałką. */
:root .wp-block-image.is-style-frame a {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 2px;
	background-color: #111;
	line-height: 0;
}

:root .wp-block-image.is-style-frame img {
	display: block;
	width: 100%;
	filter: sepia(0.25) saturate(0.8) brightness(0.78);
	transition: filter 0.35s ease, transform 0.5s ease;
}

:root .wp-block-image.is-style-frame a:hover img,
:root .wp-block-image.is-style-frame a:focus-visible img {
	filter: none;
	transform: scale(1.05);
}

:root .wp-block-image.is-style-frame figcaption {
	position: absolute;
	right: 0;
	bottom: 20px;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0;
	padding: 1.4rem 0.6rem 0.5rem;
	border-radius: 0 0 2px 2px;
	background: linear-gradient(180deg, rgba(14, 13, 12, 0) 0%, rgba(14, 13, 12, 0.85) 100%);
	color: var(--wp--preset--color--paper);
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: left;
	pointer-events: none;
}

:root .wp-block-image.is-style-frame figcaption::after {
	content: "→";
	color: var(--wp--preset--color--accent);
	transition: transform 0.25s ease;
}

:root .wp-block-image.is-style-frame:hover figcaption::after {
	transform: translateX(3px);
}

/* core/group "Brakująca klatka": kreskowane pole z napisem 404. */
:root .wp-block-group.is-style-frame-missing {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}

:root .wp-block-group.is-style-frame-missing::before {
	content: "";
	position: absolute;
	inset: 0 0 20px;
	border: 1.5px dashed var(--wp--preset--color--accent);
	border-radius: 2px;
	background:
		repeating-linear-gradient(-45deg, rgba(255, 90, 54, 0.07) 0 8px, transparent 8px 16px),
		#f3ece3;
}

:root .wp-block-group.is-style-frame-missing > * {
	position: relative;
	margin: 0;
	color: var(--wp--preset--color--ink);
}

:root .wp-block-group.is-style-frame-missing > :first-child {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.15rem;
	line-height: 1;
}

:root .wp-block-group.is-style-frame-missing > :first-child + * {
	margin-top: 0.3rem;
	color: var(--wp--preset--color--muted);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

@media (max-width: 980px) {
	:root .wp-block-group.is-style-film-strip {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	:root .wp-block-group.is-style-film-strip {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	:root .fotolady-error-code__blades {
		animation: none;
	}

	:root .wp-block-image.is-style-frame img,
	:root .wp-block-image.is-style-frame figcaption::after {
		transition: none;
	}
}

/* --- Galerie prywatne klientów (templates/single-fotolady_client_gal.html;
 * blok i logika: wtyczka FotoLady Core, fotolady-core/client-gallery) ------ */

:root .fotolady-gallery-hero {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: clamp(2.5rem, 6vw, 5rem);
	align-items: center;
}

:root .fotolady-gallery-hero__eyebrow {
	margin: 0;
	color: var(--wp--preset--color--accent);
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

:root .fotolady-lock-hero h1.fotolady-gallery-hero__title {
	max-width: 15ch;
	margin: calc(1.5rem + 14px) 0 0;
}

:root .fotolady-gallery-hero__lead {
	max-width: 46ch;
	margin: 1.4rem 0 0;
	color: #c8c2ba;
	font-size: 1.08rem;
}

:root .fotolady-gallery-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.5rem;
	margin: 1.4rem 0 0;
	padding: 0;
	list-style: none;
	color: #9c9793;
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
	font-size: 0.8rem;
	font-variant-numeric: tabular-nums;
}

:root .fotolady-gallery-facts b {
	color: var(--wp--preset--color--paper);
	font-weight: 500;
}

:root .fotolady-gallery-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 2.2rem;
}

:root :is(.fotolady-gallery-actions, .fotolady-pass) .wp-element-button {
	display: inline-flex;
	align-items: center;
	padding: 0.85em 1.5em;
	border: 1.5px solid var(--wp--preset--color--accent);
	border-radius: 3px;
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--ink);
	font-size: 0.98rem;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

:root :is(.fotolady-gallery-actions, .fotolady-pass) .wp-element-button:is(:hover, :focus-visible) {
	border-color: #e14a2c;
	background-color: #e14a2c;
}

:root .fotolady-gallery-actions .wp-element-button.is-outline {
	border-color: var(--wp--preset--color--paper);
	background-color: transparent;
	color: var(--wp--preset--color--paper);
}

:root .fotolady-gallery-actions .wp-element-button.is-outline:is(:hover, :focus-visible) {
	background-color: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
}

/* Formularz hasła (także zamiast domyślnego formularza WordPressa). */
:root .fotolady-pass {
	max-width: 30rem;
	margin-top: 2rem;
}

:root .fotolady-pass label {
	display: block;
	margin-bottom: 0.6rem;
	color: #c8c2ba;
	font-size: 0.9rem;
}

:root .fotolady-pass__field {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

:root .fotolady-pass__box {
	position: relative;
	display: flex;
	flex: 1 1 14rem;
	min-width: 0;
}

:root .fotolady-pass input[type="password"],
:root .fotolady-pass input[type="text"] {
	flex: 1;
	min-width: 0;
	padding: 0.85rem 4.5rem 0.85rem 1rem;
	border: 1.5px solid rgba(247, 244, 240, 0.12);
	border-radius: 3px;
	background-color: rgba(24, 22, 20, 0.55);
	color: var(--wp--preset--color--paper);
	font: inherit;
	font-size: 1rem;
	letter-spacing: 0.04em;
}

:root .fotolady-pass input::placeholder {
	color: #8d877e;
	letter-spacing: 0;
}

:root .fotolady-pass input:focus {
	border-color: var(--wp--preset--color--accent);
	outline: none;
}

:root .fotolady-pass.is-bad input {
	border-color: var(--wp--preset--color--accent);
	animation: fotolady-shake 0.4s ease;
}

@keyframes fotolady-shake {
	20%, 60% { transform: translateX(-5px); }
	40%, 80% { transform: translateX(5px); }
}

:root .fotolady-pass__show {
	position: absolute;
	top: 50%;
	right: 6px;
	padding: 0.35rem 0.6rem;
	border: 0;
	border-radius: 3px;
	background: none;
	color: #c8c2ba;
	font: inherit;
	font-size: 0.78rem;
	font-weight: 700;
	cursor: pointer;
	transform: translateY(-50%);
}

:root .fotolady-pass__show:is(:hover, :focus-visible) {
	color: var(--wp--preset--color--accent);
}

:root .fotolady-pass button[type="submit"] {
	border: 0;
	cursor: pointer;
}

:root .fotolady-pass__msg {
	min-height: 1.4em;
	max-width: 46ch;
	margin: 0.6rem 0 0;
	color: var(--wp--preset--color--accent);
	font-size: 0.88rem;
}

:root .fotolady-pass__help {
	max-width: 46ch;
	margin: 1.25rem 0 0;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(247, 244, 240, 0.12);
	color: #9c9793;
	font-size: 0.9rem;
}

:root .fotolady-pass__help b {
	color: #c8c2ba;
	font-weight: 600;
}

/* Stykówka: trzy paski negatywu na papierze, zaznaczenia ołówkiem. */
:root .fotolady-sheet-wrap {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

:root .fotolady-sheet {
	position: relative;
	display: grid;
	gap: 12px;
	padding: clamp(14px, 2.5vw, 22px);
	border-radius: 2px;
	background-color: #efe9e1;
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
	transform: rotate(1.2deg);
}

:root .fotolady-sheet__strip {
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px;
	padding: 16px 8px;
	background-color: #141312;
}

:root .fotolady-sheet__strip::before,
:root .fotolady-sheet__strip::after {
	content: "";
	position: absolute;
	right: 6px;
	left: 6px;
	height: 6px;
	background-color: #efe9e1;
	opacity: 0.85;
	-webkit-mask: repeating-linear-gradient(90deg, #000 0 7px, transparent 7px 14px);
	mask: repeating-linear-gradient(90deg, #000 0 7px, transparent 7px 14px);
}

:root .fotolady-sheet__strip::before {
	top: 5px;
}

:root .fotolady-sheet__strip::after {
	bottom: 5px;
}

:root .fotolady-sheet__shot {
	position: relative;
	overflow: hidden;
	aspect-ratio: 3 / 2;
	background: linear-gradient(135deg, #2b2a2e, #1b1a1d);
}

:root .fotolady-sheet__shot img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: blur(6px) brightness(0.8) saturate(0.6);
	transform: scale(1.15);
	transition: filter 1.2s ease, transform 1.2s ease;
}

:root .fotolady-sheet__shot small {
	position: absolute;
	right: 3px;
	bottom: 1px;
	color: #d9924f;
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
	font-size: 0.55rem;
}

:root .fotolady-sheet__mark {
	position: absolute;
	inset: 3px;
	width: calc(100% - 6px);
	height: calc(100% - 6px);
	pointer-events: none;
}

:root .fotolady-sheet__mark :is(ellipse, path) {
	fill: none;
	stroke: var(--wp--preset--color--accent);
	stroke-width: 3;
	stroke-linecap: round;
	opacity: 0.9;
}

:root .fotolady-sheet__scrawl {
	position: absolute;
	right: 6%;
	bottom: -6px;
	padding: 0.1rem 0.5rem;
	border-radius: 2px;
	background-color: #efe9e1;
	color: var(--wp--preset--color--accent);
	font-family: "Caveat", "Comic Sans MS", "Segoe Print", cursive;
	font-size: clamp(1.4rem, 3vw, 1.9rem);
	font-weight: 700;
	line-height: 1;
	transform: rotate(-7deg);
}

:root .fotolady-sheet__cap {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	color: #9c9793;
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
	font-size: 0.74rem;
}

:root .fotolady-sheet__cap span + span {
	color: var(--wp--preset--color--accent);
}

/* Otwarta galeria: kadry "wyostrzają się" po wejściu. */
:root .fotolady-gallery-hero.is-open .fotolady-sheet__shot img {
	animation: fotolady-focus 1.4s ease 0.3s both;
}

@keyframes fotolady-focus {
	from {
		filter: blur(6px) brightness(0.8) saturate(0.6);
		transform: scale(1.15);
	}
	to {
		filter: none;
		transform: scale(1);
	}
}

:root .fotolady-gallery-hero.is-expired .fotolady-sheet__shot img {
	filter: blur(6px) grayscale(1) brightness(0.6);
}

/* Treść po haśle (np. blok Galeria); pusta sekcja znika. */
:root .fotolady-client-gallery__content {
	background-color: var(--wp--preset--color--ink);
}

:root .fotolady-client-gallery__content:not(:has(.fotolady-client-photos)) {
	display: none;
}

:root .fotolady-client-photos__note {
	max-width: 46ch;
	margin-bottom: 2rem;
	color: #c8c2ba;
	font-size: 1.08rem;
}

:root .fotolady-client-photos__grid.wp-block-gallery {
	--wp--style--unstable-gallery-gap: 10px;
	gap: 10px;
}

@media (max-width: 980px) {
	:root .fotolady-gallery-hero {
		grid-template-columns: 1fr;
	}

	:root .fotolady-sheet-wrap {
		order: -1;
		width: 100%;
		max-width: 520px;
		margin-inline: auto;
	}
}

@media (max-width: 640px) {
	:root .fotolady-gallery-actions .wp-element-button,
	:root .fotolady-pass button[type="submit"] {
		flex: 1 1 100%;
		justify-content: center;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	:root .fotolady-pass.is-bad input,
	:root .fotolady-gallery-hero.is-open .fotolady-sheet__shot img {
		animation: none;
	}

	:root .fotolady-gallery-hero.is-open .fotolady-sheet__shot img {
		filter: none;
		transform: none;
	}
}

/* Powiększenie zdjęcia (lightbox WordPressa) w galerii prywatnej — ciemne tło. */
body:has(.fotolady-client-gallery) .wp-lightbox-overlay .scrim {
	background-color: #181614 !important;
}

body:has(.fotolady-client-gallery) .wp-lightbox-overlay :is(.close-button, .wp-lightbox-navigation-button, button) {
	color: var(--wp--preset--color--paper);
	fill: var(--wp--preset--color--paper);
}

/* --- Filmy z YouTube (blok fotolady-core/videos, wtyczka FotoLady Core) ------
 * Miniatura z przyciskiem odtwarzania (jak styl obrazka "Film"), film
 * w oknie (dialog), filtry po kategoriach. Wymiary jak na stronie Filmy
 * poprzedniej witryny: 2 kolumny, odstęp 28/24px, kadr 16:9 z cieniem. */
:root .fotolady-videos {
	display: grid;
	gap: 1.75rem;
}

:root .fotolady-videos__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

:root .fotolady-videos__filters button {
	padding: 0.6em 1.15em;
	border: 1px solid rgba(26, 26, 30, 0.18);
	border-radius: 999px;
	background: transparent;
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

:root .fotolady-videos__filters button:hover,
:root .fotolady-videos__filters button:focus-visible {
	border-color: var(--wp--preset--color--accent);
}

:root .fotolady-videos__filters button.is-active {
	border-color: var(--wp--preset--color--ink);
	background-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
}

:root .fotolady-videos__grid {
	display: grid;
	grid-template-columns: repeat(var(--fotolady-video-columns, 2), minmax(0, 1fr));
	gap: 1.75rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

:root .fotolady-video {
	margin: 0;
}

:root .fotolady-video[hidden] {
	display: none;
}

:root .fotolady-video__play {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 6px;
	background-color: var(--wp--preset--color--ink);
	box-shadow: 0 18px 34px rgba(26, 26, 30, 0.14);
	line-height: 0;
	cursor: pointer;
}

/* Miniatury hq/sd YouTube są 4:3 z czarnymi pasami — kadr 16:9 je ucina. */
:root .fotolady-video__play img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

:root .fotolady-video__play::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(24, 22, 20, 0.05) 0%, rgba(24, 22, 20, 0.45) 100%);
	transition: opacity 0.25s ease;
}

:root .fotolady-video__icon,
:root .fotolady-video__icon::after {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

:root .fotolady-video__icon {
	z-index: 2;
	box-sizing: border-box;
	width: 68px;
	height: 68px;
	border: 1.5px solid rgba(255, 255, 255, 0.85);
	border-radius: 50%;
	background-color: rgba(24, 22, 20, 0.28);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

:root .fotolady-video__icon::after {
	content: "";
	width: 22px;
	height: 22px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4.8v14.4a1.2 1.2 0 0 0 1.84 1.02l11.2-7.2a1.2 1.2 0 0 0 0-2.04L8.84 3.78A1.2 1.2 0 0 0 7 4.8z' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat;
}

:root .fotolady-video__play:hover::before,
:root .fotolady-video__play:focus-visible::before {
	opacity: 0.55;
}

:root .fotolady-video__play:hover img,
:root .fotolady-video__play:focus-visible img {
	transform: scale(1.03);
}

:root .fotolady-video__play:hover .fotolady-video__icon,
:root .fotolady-video__play:focus-visible .fotolady-video__icon {
	border-color: var(--wp--preset--color--accent);
	background-color: var(--wp--preset--color--accent);
	transform: translate(-50%, -50%) scale(1.06);
}

:root .fotolady-video__play:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
}

:root .fotolady-video__badge,
:root .fotolady-video__time {
	position: absolute;
	z-index: 2;
	line-height: 1;
}

:root .fotolady-video__badge {
	top: 0.85rem;
	left: 0.85rem;
	padding: 0.5em 1em;
	border-radius: 999px;
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--white);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

:root .fotolady-video__time {
	right: 0.75rem;
	bottom: 0.75rem;
	padding: 0.35em 0.55em;
	border-radius: 4px;
	background-color: rgba(24, 22, 20, 0.72);
	color: var(--wp--preset--color--white);
	font-size: 0.75rem;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

:root .fotolady-video__title {
	margin: 0.75rem 0 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.6;
}

:root .fotolady-video__label {
	margin: 0.125rem 0 0;
	color: var(--fotolady-text-soft, #524e49);
	font-size: 0.84rem;
	line-height: 1.6;
}

/* Po zmianie filtra karty wjeżdżają od nowa. */
:root .fotolady-video.is-in {
	animation: fotolady-video-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes fotolady-video-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
}

@media (max-width: 781px) {
	:root .fotolady-videos__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Filtry w jednym przewijanym wierszu, do krawędzi ekranu. */
	:root .fotolady-videos__filters {
		flex-wrap: nowrap;
		margin-inline: -1.5rem;
		padding: 0.25rem 1.5rem;
		overflow-x: auto;
		scrollbar-width: none;
		overscroll-behavior-x: contain;
	}

	:root .fotolady-videos__filters::-webkit-scrollbar {
		display: none;
	}

	:root .fotolady-videos__filters button {
		flex: none;
	}
}

/* Okno z filmem. */
.fotolady-video-dialog {
	/* Na niskim ekranie (telefon poziomo) kadr 16:9 mieści się w wysokości. */
	width: min(1100px, calc(100vw - 2rem), calc((100vh - 7rem) * 16 / 9));
	max-width: none;
	max-height: none;
	padding: 0;
	overflow: visible;
	border: 0;
	background: transparent;
}

.fotolady-video-dialog::backdrop {
	background-color: rgba(24, 22, 20, 0.92);
}

.fotolady-video-dialog[open] {
	animation: fotolady-video-dialog-in 0.3s ease both;
}

.fotolady-video-dialog__frame {
	overflow: hidden;
	border-radius: 6px;
	background-color: #000;
	aspect-ratio: 16 / 9;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.fotolady-video-dialog__frame iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.fotolady-video-dialog__close {
	position: absolute;
	right: 0;
	bottom: calc(100% + 0.5rem);
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--wp--preset--color--paper);
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
	transition: color 0.2s ease, transform 0.2s ease;
}

.fotolady-video-dialog__close:hover,
.fotolady-video-dialog__close:focus-visible {
	color: var(--wp--preset--color--accent);
	transform: rotate(90deg);
}

@keyframes fotolady-video-dialog-in {
	from {
		opacity: 0;
		transform: scale(0.96);
	}
}

html.has-video-open {
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	:root .fotolady-video.is-in,
	.fotolady-video-dialog[open] {
		animation: none;
	}

	:root .fotolady-video__play img,
	:root .fotolady-video__icon,
	.fotolady-video-dialog__close {
		transition: none;
	}

	:root .fotolady-video__play:hover img,
	:root .fotolady-video__play:focus-visible img {
		transform: none;
	}
}

/* --- Kontakt (patterns/contact-*.php) -----------------------------------
 * Dwie karty obok siebie jak na poprzedniej witrynie: ciemna z danymi
 * kontaktowymi (ok. 42%) i biała z formularzem (FotoLady Core,
 * fotolady-core/contact-form). Niżej studio z mapą (fotolady/map). */
:root .fotolady-contact {
	display: grid;
	grid-template-columns: minmax(0, 0.74fr) minmax(0, 1fr);
	gap: 1.75rem;
	align-items: start;
}

:root .fotolady-contact__info,
:root .fotolady-contact__form {
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: 2.5rem 2.125rem;
	border-radius: 4px;
}

:root .fotolady-contact > *,
:root .fotolady-contact__info > *,
:root .fotolady-contact__form > * {
	margin-block: 0;
}

:root .fotolady-contact__info {
	--fotolady-line-icon-color: var(--wp--preset--color--accent);
	background-color: var(--wp--preset--color--graphite);
	color: var(--wp--preset--color--paper);
}

:root .fotolady-contact__info h3 {
	max-width: 14ch;
	margin: 2.25rem 0 1.6rem;
	color: var(--wp--preset--color--paper);
	font-size: 1.5rem;
	line-height: 1.5;
}

:root .fotolady-contact__info .fotolady-contact-details {
	font-weight: 700;
	font-size: 0.95rem;
}

:root .fotolady-contact__info .fotolady-contact-details a {
	color: var(--wp--preset--color--paper);
	text-decoration: none;
	transition: color 0.2s ease;
}

:root .fotolady-contact__info .fotolady-contact-details a:is(:hover, :focus-visible) {
	color: var(--wp--preset--color--accent);
}

:root .fotolady-contact__info .fotolady-contact-icons {
	margin-top: 1.75rem;
}

:root .fotolady-contact__form {
	border: 1px solid rgba(26, 26, 30, 0.14);
	background-color: var(--wp--preset--color--white);
}

:root .fotolady-contact__form > h2 {
	font-size: 1.75rem;
	line-height: 1.5;
}

:root .fotolady-contact__form > p {
	margin-top: 0.25rem;
	color: var(--fotolady-text-soft, #524e49);
	font-size: 0.84rem;
}

:root .fotolady-contact__form .fotolady-contact-form {
	margin-top: 1.75rem;
}

/* Formularz. */
:root .fotolady-form {
	display: grid;
	gap: 1.5rem;
}

:root .fotolady-form[hidden],
:root .fotolady-form__done[hidden] {
	display: none;
}

:root .fotolady-form__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem 2rem;
}

:root .fotolady-form__field {
	display: grid;
	gap: 0.5rem;
	margin: 0;
}

:root .fotolady-form label {
	color: var(--fotolady-text-soft, #524e49);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 1.6;
	text-transform: uppercase;
}

:root .fotolady-form__required {
	margin-left: 0.15em;
	color: var(--wp--preset--color--accent);
}

:root .fotolady-form :is(input, textarea) {
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 0.85rem 1rem;
	border: 1.5px solid rgba(26, 26, 30, 0.14);
	border-radius: 3px;
	background-color: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-size: 1rem;
	line-height: 1.6;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

:root .fotolady-form textarea {
	min-height: 7.5rem;
	resize: vertical;
}

:root .fotolady-form :is(input, textarea)::placeholder {
	color: #8d877e;
}

:root .fotolady-form :is(input, textarea):focus {
	border-color: var(--wp--preset--color--accent);
	background-color: var(--wp--preset--color--white);
	outline: none;
}

:root .fotolady-form__field.is-invalid :is(input, textarea) {
	border-color: #c93a1c;
}

:root .fotolady-form__field-error,
:root .fotolady-form__error {
	color: #b3301a;
	font-size: 0.84rem;
	font-weight: 600;
}

:root .fotolady-form__error {
	padding: 0.75rem 1rem;
	border-left: 3px solid var(--wp--preset--color--accent);
	background: rgba(255, 90, 54, 0.08);
}

:root .fotolady-form__error[hidden] {
	display: none;
}

/* Pułapka na automaty — poza ekranem, niewidoczna dla ludzi. */
:root .fotolady-form__trap {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

:root .fotolady-form__submit {
	margin: 0;
}

:root .fotolady-form__submit .wp-element-button {
	width: 100%;
	padding: 0.7rem 1.25rem;
	border: 0;
	border-radius: 3px;
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--ink);
	font-size: 1.05rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

:root .fotolady-form__submit .wp-element-button:is(:hover, :focus-visible) {
	background-color: var(--wp--preset--color--terracotta);
}

:root .fotolady-form__submit .wp-element-button:disabled {
	opacity: 0.7;
	cursor: progress;
}

:root .fotolady-form__note {
	margin: -0.5rem 0 0;
	color: var(--fotolady-text-soft, #524e49);
	font-size: 0.76rem;
	line-height: 1.5;
}

:root .fotolady-form__note a {
	color: inherit;
}

/* Po wysłaniu. */
:root .fotolady-form__done {
	padding: 1.5rem 0 0.5rem;
	outline: none;
	animation: fotolady-video-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

:root .fotolady-form__done > * {
	margin: 0;
}

:root .fotolady-form__done-icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-bottom: 1.1rem;
	border-radius: 50%;
	background-color: var(--wp--preset--color--accent);
}

:root .fotolady-form__done-icon::before {
	content: "";
	width: 18px;
	height: 10px;
	margin-top: -4px;
	border-bottom: 3px solid var(--wp--preset--color--ink);
	border-left: 3px solid var(--wp--preset--color--ink);
	transform: rotate(-45deg);
}

:root .fotolady-form__done-title {
	margin-bottom: 0.5rem !important;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1.3;
}

:root .fotolady-form__done p:not(.fotolady-form__done-title) {
	color: var(--fotolady-text-soft, #524e49);
	font-size: 0.95rem;
}

:root .fotolady-form__done a {
	color: var(--wp--preset--color--ink);
	font-weight: 700;
}

:root .fotolady-form__again {
	margin-top: 1rem;
	padding: 0;
	border: 0;
	background: none;
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

:root .fotolady-form__again:is(:hover, :focus-visible) {
	color: var(--wp--preset--color--accent);
}

/* Studio z mapą. */
:root .fotolady-studio .fotolady-studio__address {
	margin-top: 1.25rem;
	font-weight: 700;
}

:root .fotolady-studio .fotolady-studio__address a {
	color: inherit;
}

:root .fotolady-studio .wp-block-column > p:not(.is-style-eyebrow) {
	margin-top: 0.35rem;
	color: var(--fotolady-text-soft, #524e49);
}

:root .fotolady-map {
	position: relative;
	overflow: hidden;
	border-radius: 4px;
	background-color: #dfe7dc;
	box-shadow: 0 18px 34px rgba(26, 26, 30, 0.14);
	aspect-ratio: 7 / 5;
}

/* Podkład „mapy” bez łączenia z Google: ulice i kwartały w barwach marki. */
:root .fotolady-map__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	padding: 1.5rem;
	background:
		linear-gradient(115deg, transparent 47%, rgba(255, 255, 255, 0.95) 47.4%, rgba(255, 255, 255, 0.95) 50.4%, transparent 50.8%),
		linear-gradient(28deg, transparent 58%, rgba(255, 255, 255, 0.85) 58.3%, rgba(255, 255, 255, 0.85) 60.3%, transparent 60.6%),
		linear-gradient(0deg, transparent 31%, rgba(247, 222, 150, 0.9) 31.3%, rgba(247, 222, 150, 0.9) 33.6%, transparent 33.9%),
		repeating-linear-gradient(90deg, transparent 0 46px, rgba(255, 255, 255, 0.6) 46px 49px),
		repeating-linear-gradient(0deg, transparent 0 38px, rgba(255, 255, 255, 0.6) 38px 41px),
		radial-gradient(circle at 78% 22%, #c9dfc0 0 18%, transparent 18.5%),
		radial-gradient(circle at 16% 80%, #bcd7e6 0 12%, transparent 12.5%),
		#e9ede3;
	text-align: center;
}

:root .fotolady-map__pin {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background-color: var(--wp--preset--color--accent);
	box-shadow: 0 10px 24px rgba(255, 90, 54, 0.4);
	--fotolady-line-icon-color: var(--wp--preset--color--ink);
}

:root .fotolady-map__pin svg {
	width: 26px;
	height: 26px;
}

:root .fotolady-map__address {
	margin: 0.4rem 0 0;
	padding: 0.35rem 0.8rem;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--wp--preset--color--ink);
	font-size: 0.9rem;
	font-weight: 700;
}

:root .fotolady-map__show {
	margin-top: 0.3rem;
	padding: 0.7em 1.4em;
	border: 0;
	border-radius: 3px;
	background-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

:root .fotolady-map__show:is(:hover, :focus-visible) {
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--ink);
}

:root .fotolady-map__note {
	margin: 0;
	padding: 0.2rem 0.6rem;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.8);
	color: #524e49;
	font-size: 0.72rem;
}

:root .fotolady-map__note a {
	color: inherit;
}

:root .fotolady-map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

:root .fotolady-map.is-loaded .fotolady-map__placeholder {
	visibility: hidden;
}

@media (max-width: 781px) {
	:root .fotolady-contact {
		grid-template-columns: minmax(0, 1fr);
	}

	:root .fotolady-contact__info,
	:root .fotolady-contact__form {
		padding: 2rem 1.5rem;
	}

	:root .fotolady-form__row {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	:root .fotolady-form__done {
		animation: none;
	}
}


/* --- Dokument prawny (templates/page-legal.html) ----------------------- */

:root .fotolady-legal__hero::before {
	top: -60%;
	left: auto;
	right: -10%;
	transform: none;
}

:root .fotolady-legal__hero > * {
	margin-block: 0;
}

:root .fotolady-legal__hero .wp-block-post-title {
	margin-top: 1rem;
	font-size: clamp(2rem, 4.2vw, 3rem);
	line-height: 1.08;
	text-wrap: balance;
}

:root .fotolady-legal-meta {
	margin-top: 1.1rem;
}

:root .fotolady-legal-meta__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	color: #9c9793;
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
	font-size: 0.8rem;
	font-variant-numeric: tabular-nums;
}

:root .fotolady-legal-meta__list b {
	color: var(--wp--preset--color--paper);
	font-weight: 500;
}

:root .fotolady-legal-meta__sample {
	display: inline-block;
	margin-top: 1rem;
	padding: 0.25rem 0.65rem;
	border-radius: 99px;
	background-color: rgba(255, 90, 54, 0.15);
	color: var(--wp--preset--color--accent);
	font-size: 0.78rem;
	font-weight: 700;
}

:root .fotolady-legal-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-top: 1.5rem;
}

:root .fotolady-legal-tabs a {
	padding: 0.4rem 0.85rem;
	border: 1px solid rgba(247, 244, 240, 0.14);
	border-radius: 99px;
	color: #c8c2ba;
	font-size: 0.84rem;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease;
}

:root .fotolady-legal-tabs a[aria-current] {
	border-color: var(--wp--preset--color--paper);
	background-color: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
}

:root .fotolady-legal-tabs a:not([aria-current]):is(:hover, :focus-visible) {
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
}

:root .fotolady-legal__body {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: start;
	padding-block: 3rem 4.5rem;
}

:root .fotolady-legal__body > * {
	margin-block: 0;
}

/* Spis treści (fotolady/toc) — przyklejony pod nagłówkiem, a gdy nagłówek
 * chowa się przy przewijaniu (html.is-header-hidden) — pod krawędzią ekranu. */
:root .fotolady-toc {
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + 80px + 1.5rem);
	transition: top 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

html.is-header-hidden .fotolady-toc {
	top: calc(var(--wp-admin--admin-bar--height, 0px) + 1.5rem);
}

:root .fotolady-toc__progress {
	position: fixed;
	top: var(--wp-admin--admin-bar--height, 0px);
	left: 0;
	right: 0;
	z-index: 45;
	height: 3px;
	pointer-events: none;
}

:root .fotolady-toc__progress i {
	display: block;
	height: 100%;
	background-color: var(--wp--preset--color--accent);
	transform: scaleX(0);
	transform-origin: 0 50%;
}

:root .fotolady-toc__title {
	display: block;
	margin-bottom: 0.7rem;
	color: var(--wp--preset--color--muted);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

:root .fotolady-toc ol {
	margin: 0;
	padding: 0;
	border-left: 1px solid var(--wp--preset--color--sand);
	list-style: none;
}

:root .fotolady-toc ol a {
	display: grid;
	grid-template-columns: 2.1rem 1fr;
	margin-left: -1px;
	padding: 0.4rem 0 0.4rem 0.9rem;
	border-left: 2px solid transparent;
	color: var(--wp--preset--color--muted);
	font-size: 0.88rem;
	line-height: 1.35;
	text-decoration: none;
	transition: color 0.2s ease, border-color 0.2s ease;
}

:root .fotolady-toc ol a span {
	color: #b3aca3;
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
	font-size: 0.78rem;
}

:root .fotolady-toc ol a:is(:hover, :focus-visible) {
	color: var(--wp--preset--color--ink);
}

:root .fotolady-toc ol a.is-current {
	border-left-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--ink);
	font-weight: 600;
}

:root .fotolady-toc ol a.is-current span {
	color: var(--wp--preset--color--accent);
}

:root .fotolady-toc__top {
	margin-top: 1.25rem;
	padding: 0;
	border: 0;
	background: none;
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
}

:root .fotolady-toc__top:is(:hover, :focus-visible) {
	color: var(--wp--preset--color--accent);
}

:root .fotolady-toc__mobile {
	display: none;
}

/* Treść dokumentu: nagłówki H2 numerowane §1, §2… */
:root .fotolady-legal__doc {
	max-width: 68ch;
	counter-reset: fotolady-legal;
	color: #2c2926;
	font-size: 1.02rem;
	line-height: 1.7;
}

:root .fotolady-legal__doc > * {
	margin-block: 0 0.9rem;
}

:root .fotolady-legal__doc > h2 {
	display: flex;
	align-items: baseline;
	gap: 0.8rem;
	margin: 2.4rem 0 0.8rem;
	scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + 6rem);
	color: var(--wp--preset--color--ink);
	font-size: 1.25rem;
	line-height: 1.3;
	text-wrap: balance;
	counter-increment: fotolady-legal;
}

:root .fotolady-legal__doc > h2::before {
	content: "§" counter(fotolady-legal);
	flex: none;
	color: var(--wp--preset--color--accent);
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
	font-size: 0.9rem;
	font-weight: 500;
}

:root .fotolady-legal__doc ul:not([class*="is-style-"]) {
	padding-left: 1.2rem;
}

:root .fotolady-legal__doc ul:not([class*="is-style-"]) li {
	margin-bottom: 0.35rem;
}

:root .fotolady-legal__doc li::marker {
	color: var(--wp--preset--color--accent);
}

:root .fotolady-legal__doc a {
	color: var(--wp--preset--color--ink);
	text-decoration-color: var(--wp--preset--color--accent);
	text-underline-offset: 3px;
}

:root .fotolady-legal__doc strong {
	color: var(--wp--preset--color--ink);
}

:root .fotolady-legal__doc > p.is-style-note:last-child {
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--wp--preset--color--sand);
	color: var(--wp--preset--color--muted);
	font-size: 0.88rem;
}

@media (max-width: 900px) {
	:root .fotolady-legal__body {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
		padding-top: 2rem;
	}

	:root .fotolady-toc {
		position: static;
		margin-bottom: 2rem;
	}

	:root .fotolady-toc__nav {
		display: none;
	}

	:root .fotolady-toc__mobile {
		display: block;
	}

	:root .fotolady-toc__mobile label {
		display: block;
		margin-bottom: 0.4rem;
		color: var(--wp--preset--color--muted);
		font-size: 0.8rem;
		font-weight: 600;
	}

	:root .fotolady-toc__mobile select {
		width: 100%;
		padding: 0.75rem 0.9rem;
		border: 1.5px solid var(--wp--preset--color--sand);
		border-radius: 3px;
		background-color: var(--wp--preset--color--white);
		color: var(--wp--preset--color--ink);
		font: inherit;
	}
}

/* --- Wyniki wyszukiwania (fotolady/search-results, templates/search.html) */

:root .fotolady-search-page,
:root .fotolady-sr {
	margin-block: 0;
}

:root .fotolady-sr__wrap {
	width: 100%;
	max-width: 1132px;
	margin-inline: auto;
	padding-inline: 1.5rem;
	box-sizing: content-box;
}

:root .fotolady-sr__eyebrow {
	margin: 0;
	color: var(--wp--preset--color--accent);
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

:root .fotolady-sr__bar {
	position: relative;
	overflow: hidden;
	padding-block: clamp(2.5rem, 5vw, 3.75rem) clamp(2rem, 4vw, 3rem);
	background-color: var(--wp--preset--color--graphite);
	color: var(--wp--preset--color--paper);
}

:root .fotolady-sr__bar::before {
	content: "";
	position: absolute;
	top: -60%;
	right: -10%;
	width: 640px;
	height: 640px;
	max-width: 120vw;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 90, 54, 0.18) 0%, rgba(255, 90, 54, 0) 68%);
	pointer-events: none;
}

:root .fotolady-sr__bar .fotolady-sr__wrap {
	position: relative;
}

:root .fotolady-sr__form {
	display: flex;
	max-width: 46rem;
	margin-top: 1.1rem;
}

:root .fotolady-sr__form input {
	flex: 1;
	min-width: 0;
	padding: 1rem 1.2rem;
	border: 1.5px solid rgba(247, 244, 240, 0.12);
	border-right: 0;
	border-radius: 3px 0 0 3px;
	background: rgba(24, 22, 20, 0.55);
	color: var(--wp--preset--color--paper);
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.1rem, 2.4vw, 1.5rem);
	font-weight: 700;
}

:root .fotolady-sr__form input::placeholder {
	color: #8d877e;
	font-weight: 500;
}

:root .fotolady-sr__form input:focus {
	border-color: var(--wp--preset--color--accent);
	outline: none;
}

:root .fotolady-sr__form button {
	display: grid;
	place-items: center;
	width: 64px;
	border: 0;
	border-radius: 0 3px 3px 0;
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--ink);
	cursor: pointer;
	transition: background-color 0.2s ease;
}

:root .fotolady-sr__form button:is(:hover, :focus-visible) {
	background-color: #e14a2c;
}

:root .fotolady-sr__form button svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
}

:root .fotolady-sr__meta {
	margin: 1rem 0 0;
	color: #c8c2ba;
	font-size: 0.95rem;
}

:root .fotolady-sr__meta b {
	color: var(--wp--preset--color--paper);
}

:root .fotolady-sr__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-top: 1.5rem;
}

:root .fotolady-sr__chip {
	padding: 0.4rem 0.85rem;
	border: 1px solid rgba(247, 244, 240, 0.12);
	border-radius: 99px;
	color: #c8c2ba;
	font-size: 0.84rem;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease;
}

:root .fotolady-sr__chip span {
	margin-left: 0.35rem;
	color: #9c9793;
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
	font-size: 0.78rem;
}

:root .fotolady-sr__chip:not([aria-current]):is(:hover, :focus-visible) {
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
}

:root .fotolady-sr__chip[aria-current] {
	border-color: var(--wp--preset--color--paper);
	background-color: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
}

:root .fotolady-sr__chip[aria-current] span {
	color: var(--wp--preset--color--muted);
}

/* Lista wyników */
:root .fotolady-sr__results {
	min-height: 420px;
	padding-block: 2.5rem 4rem;
	background-color: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
}

:root .fotolady-sr__list {
	max-width: 58rem;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--wp--preset--color--sand);
	list-style: none;
}

:root .fotolady-sr__hit {
	margin: 0;
	border-bottom: 1px solid var(--wp--preset--color--sand);
}

:root .fotolady-sr__hit > a {
	display: grid;
	grid-template-columns: 148px minmax(0, 1fr);
	gap: 1.4rem;
	padding: 1.3rem 0;
	color: inherit;
	text-decoration: none;
}

:root .fotolady-sr__thumb {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 2px;
	background-color: var(--wp--preset--color--graphite);
}

:root .fotolady-sr__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

:root .fotolady-sr__thumb:has(.fotolady-sr__mark) {
	display: grid;
	place-items: center;
}

:root .fotolady-sr__thumb img.fotolady-sr__mark {
	width: 40px;
	height: 40px;
	object-fit: contain;
	opacity: 0.9;
}

:root .fotolady-sr__hit > a:is(:hover, :focus-visible) .fotolady-sr__thumb img {
	transform: scale(1.05);
}

:root .fotolady-sr__text > span {
	display: block;
}

:root .fotolady-sr__type {
	color: var(--wp--preset--color--accent);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

:root .fotolady-sr__title {
	margin-top: 0.35rem;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.3;
	transition: color 0.2s ease;
}

:root .fotolady-sr__hit > a:is(:hover, :focus-visible) .fotolady-sr__title {
	color: var(--wp--preset--color--accent);
}

:root .fotolady-sr__excerpt {
	max-width: 62ch;
	margin-top: 0.45rem;
	color: #3a3632;
	font-size: 0.95rem;
	line-height: 1.55;
}

:root .fotolady-sr__url {
	margin-top: 0.45rem;
	color: var(--wp--preset--color--muted);
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
	font-size: 0.75rem;
	word-break: break-all;
}

:root .fotolady-sr mark {
	padding: 0 0.1em;
	border-radius: 2px;
	background: rgba(255, 90, 54, 0.22);
	color: inherit;
}

/* Pusty wynik */
:root .fotolady-sr__empty {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
	max-width: 64rem;
}

:root .fotolady-sr__empty h2 {
	margin: 0.7rem 0 0;
	font-size: clamp(1.5rem, 3vw, 2rem);
	line-height: 1.15;
	text-wrap: balance;
}

:root .fotolady-sr__empty h2 em {
	color: var(--wp--preset--color--accent);
	font-style: normal;
}

:root .fotolady-sr__empty > div > p:not(.fotolady-sr__eyebrow) {
	max-width: 50ch;
	margin: 1rem 0 0;
	color: #3a3632;
}

:root .fotolady-sr__tips {
	display: grid;
	gap: 0.4rem;
	margin: 1.25rem 0 0;
	padding-left: 1.2rem;
	color: #3a3632;
	font-size: 0.95rem;
}

:root .fotolady-sr__tips li::marker {
	color: var(--wp--preset--color--accent);
}

:root .fotolady-sr__popular {
	margin-top: 1.75rem;
}

:root .fotolady-sr__popular b {
	display: block;
	margin-bottom: 0.6rem;
	font-size: 0.85rem;
}

:root .fotolady-sr__popular .fotolady-sr__chips {
	margin-top: 0;
}

:root .fotolady-sr__popular .fotolady-sr__chip {
	border-color: var(--wp--preset--color--sand);
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
}

:root .fotolady-sr__ask {
	padding: 1.4rem 1.3rem;
	border-radius: 4px;
	background-color: var(--wp--preset--color--graphite);
	color: var(--wp--preset--color--paper);
}

:root .fotolady-sr__ask h3 {
	margin: 0.6rem 0 0;
	color: var(--wp--preset--color--white);
	font-size: 1.05rem;
	line-height: 1.3;
}

:root .fotolady-sr__ask p:not(.fotolady-sr__eyebrow) {
	margin: 0.6rem 0 1.1rem;
	color: #c8c2ba;
	font-size: 0.9rem;
}

:root .fotolady-sr__ask b {
	color: var(--wp--preset--color--paper);
}

:root .fotolady-sr__btn {
	display: flex;
	justify-content: center;
	padding: 0.85em 1.5em;
	border-radius: 3px;
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--ink);
	font-size: 0.92rem;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

:root .fotolady-sr__btn:is(:hover, :focus-visible) {
	background-color: #e14a2c;
}

:root .fotolady-sr__viewfinder {
	position: relative;
	width: 96px;
	height: 64px;
	margin-bottom: 1.25rem;
}

:root .fotolady-sr__viewfinder i {
	position: absolute;
	width: 16px;
	height: 16px;
	border: 2px solid var(--wp--preset--color--accent);
}

:root .fotolady-sr__viewfinder i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
:root .fotolady-sr__viewfinder i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
:root .fotolady-sr__viewfinder i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
:root .fotolady-sr__viewfinder i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }

:root .fotolady-sr__viewfinder span {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: var(--wp--preset--color--muted);
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
	font-size: 0.7rem;
}

@media (max-width: 760px) {
	:root .fotolady-sr__hit > a {
		grid-template-columns: 96px minmax(0, 1fr);
		gap: 1rem;
	}

	:root .fotolady-sr__excerpt {
		font-size: 0.9rem;
	}

	:root .fotolady-sr__empty {
		grid-template-columns: minmax(0, 1fr);
	}
}
