/* tt4-waw — layout pieces that theme.json cannot express. Colours come from the theme.json palette. */
:root {
	--bpw-base: var(--wp--preset--color--base, #17131f);
	--bpw-base-2: var(--wp--preset--color--base-2, #211b2c);
	--bpw-text: var(--wp--preset--color--contrast, #f4f1fa);
	--bpw-text-2: var(--wp--preset--color--contrast-2, #dcd6e8);
	--bpw-muted: var(--wp--preset--color--contrast-3, #bdb5cc);
	--bpw-accent: var(--wp--preset--color--accent, #c9b6ff);
	--bpw-line: var(--wp--preset--color--accent-4, #3a3148);
	--bpw-gutter: clamp(1rem, 2.5vw, 2rem);
	--bpw-wide: 1280px;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { height: auto; }
.wp-site-blocks { position: relative; }
.wp-site-blocks > * { margin-block-start: 0; }
.bpw-muted, .bpw-muted a { color: var(--bpw-muted); font-size: 0.9rem; }
:where(a:focus-visible, button:focus-visible) { outline: 2px solid var(--bpw-accent); outline-offset: 3px; }

/* ---------- header ---------- */
.bpw-header { background: var(--bpw-base); border-bottom: 1px solid var(--bpw-line); position: relative; z-index: 20; }
.bpw-header-in { max-width: calc(var(--bpw-wide) + 2 * var(--bpw-gutter)); box-sizing: border-box; margin: 0 auto; padding: 1.05rem var(--bpw-gutter); gap: 1rem; }
.bpw-brand { margin: 0; font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 1.35rem; line-height: 1.2; white-space: nowrap; }
.bpw-brand a { color: #fff; text-decoration: none; }
.bpw-nav a { color: var(--bpw-text); text-decoration: none; }
.bpw-nav .wp-block-navigation-item__content:hover { color: var(--bpw-accent); }
.bpw-nav .current-menu-item > a, .bpw-nav a[aria-current="page"] { color: var(--bpw-accent); }
.bpw-nav .bpw-nav-cta > a { border: 1px solid var(--bpw-accent); padding: 0.35rem 0.9rem; color: var(--bpw-accent); }
.bpw-nav .bpw-nav-cta > a:hover { background: var(--bpw-accent); color: var(--bpw-base); }
.bpw-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem var(--bpw-gutter); }
.bpw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 1.1rem; font-size: 1.25rem; align-items: flex-start; }
.bpw-nav .wp-block-navigation__responsive-container-open, .bpw-nav .wp-block-navigation__responsive-container-close { color: #fff; padding: 0.4rem; }
/* the block switches to the overlay menu below 600 px; this menu has nine entries and needs it up to 1100 px */
@media (max-width: 1099px) {
	.bpw-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
	.bpw-nav .wp-block-navigation__responsive-container-open { display: flex; }
}
/* the header lies over the background photos on every page */
.bpw-header { position: absolute; top: 0; left: 0; right: 0; background: rgba(23, 19, 31, 0.86); border-bottom: 0; }

/* ---------- main ---------- */
.bpw-main { margin-block-start: 0; }
.bpw-page, .bpw-single, .bpw-blog { padding-top: clamp(1.6rem, 4vw, 3rem); padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.bpw-page > .wp-block-post-title, .bpw-single > .wp-block-post-title, .bpw-blog > h1 { margin-top: 0.4rem; margin-bottom: 1.2rem; }
.bpw-crumbs { font-size: 0.85rem; color: var(--bpw-muted); margin: 0; }
.bpw-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.bpw-crumbs li + li::before { content: "›"; margin-right: 0.4rem; }
.bpw-crumbs a { color: var(--bpw-muted); }
.wp-block-post-content :where(p, li) { color: var(--bpw-text-2); }
.wp-block-post-content :where(h2, h3) { margin-top: 2.2rem; }
.wp-block-post-content img { max-width: 100%; }
.wp-block-post-content .alignleft { margin: 0.3rem 1.5rem 1rem 0; }
.wp-block-post-content .alignright { margin: 0.3rem 0 1rem 1.5rem; }
.wp-block-post-content .wp-caption { max-width: 100%; }
.wp-block-post-content .wp-caption-text, .wp-block-post-content figcaption { color: var(--bpw-muted); font-size: 0.85rem; }
@media (max-width: 600px) {
	.wp-block-post-content .alignleft, .wp-block-post-content .alignright { float: none; margin: 1rem 0; }
}

/* ---------- hero with changing background photos ---------- */
.bpw-hero { position: relative; display: flex; align-items: flex-end; min-height: clamp(560px, 100svh, 940px); padding: 6.5rem var(--bpw-gutter) clamp(2rem, 5vw, 3.5rem); overflow: hidden; background: var(--bpw-base-2); margin-top: 0 !important; }
.bpw-hero > .bpw-hero-slides { position: absolute; inset: 0; margin: 0; display: block; max-width: none; width: 100%; height: 100%; }
.bpw-hero .bpw-hero-slides figure.wp-block-image, .wp-block-gallery.has-nested-images.bpw-hero-slides figure.wp-block-image { position: absolute !important; inset: 0; margin: 0 !important; width: 100% !important; max-width: none !important; height: 100% !important; flex: none !important; opacity: 0; transition: opacity 1s linear; z-index: 0; overflow: hidden; }
.bpw-hero .bpw-hero-slides figure.wp-block-image:first-child { opacity: 1 !important; }
.bpw-hero .bpw-hero-slides.is-running figure.wp-block-image:first-child:not(.is-active):not(.is-prev) { opacity: 0 !important; }
.bpw-hero .bpw-hero-slides figure.wp-block-image.is-prev { opacity: 1 !important; z-index: 1; }
.bpw-hero .bpw-hero-slides figure.wp-block-image.is-active { opacity: 1 !important; z-index: 2; }
.bpw-hero-slides figure.wp-block-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; border-radius: 0; will-change: transform; transform-origin: center; }
.bpw-hero-slides figure.wp-block-image figcaption { display: none; }
.bpw-hero-slides::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
	background: radial-gradient(rgba(0, 0, 0, 0.16) 0.8px, transparent 1px) 0 0 / 3px 3px, linear-gradient(to top, rgba(23, 19, 31, 0.6), rgba(23, 19, 31, 0.08) 60%); }
@media (prefers-reduced-motion: no-preference) {
	.bpw-hero-slides figure.is-active:nth-child(4n + 1) img, .bpw-hero-slides figure.is-prev:nth-child(4n + 1) img { animation: bpw-kb1 12s linear forwards; }
	.bpw-hero-slides figure.is-active:nth-child(4n + 2) img, .bpw-hero-slides figure.is-prev:nth-child(4n + 2) img { animation: bpw-kb2 12s linear forwards; }
	.bpw-hero-slides figure.is-active:nth-child(4n + 3) img, .bpw-hero-slides figure.is-prev:nth-child(4n + 3) img { animation: bpw-kb3 12s linear forwards; }
	.bpw-hero-slides figure.is-active:nth-child(4n) img, .bpw-hero-slides figure.is-prev:nth-child(4n) img { animation: bpw-kb4 12s linear forwards; }
}
@keyframes bpw-kb1 { from { transform: scale(1); } to { transform: scale(1.2) translate(-2%, -1.5%); } }
@keyframes bpw-kb2 { from { transform: scale(1.2) translate(2%, 1%); } to { transform: scale(1); } }
@keyframes bpw-kb3 { from { transform: scale(1); } to { transform: scale(1.2) translate(2%, -2%); } }
@keyframes bpw-kb4 { from { transform: scale(1.2) translate(-2%, 1.5%); } to { transform: scale(1.02); } }
.bpw-hero > .bpw-hero-wrap { position: relative; z-index: 4; width: 100%; max-width: var(--bpw-wide); margin: 0 auto; }
.bpw-hero-box { background: rgba(23, 19, 31, 0.9); max-width: 600px; padding: clamp(1.5rem, 3vw, 2.75rem); }
.bpw-hero-box > * { margin-block: 0; }
.bpw-hero-box > * + * { margin-top: 1.1rem; }
.bpw-hero-box h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); line-height: 1.1; }
.bpw-hero-box p { color: var(--bpw-text-2); font-size: 1.1rem; }

/* buttons */
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: #fff; border: 1px solid var(--bpw-text); padding: 0.9rem 1.6rem; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--bpw-text); color: var(--bpw-base); }

/* ---------- home sections ---------- */
.bpw-section { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.bpw-section.bpw-band { background: var(--bpw-base-2); }
.bpw-section > h2 { margin-top: 0; margin-bottom: 2rem; }
.bpw-tiles { gap: 1.25rem; }
.bpw-tile { display: flex; flex-direction: column; gap: 0.6rem; }
.bpw-tile figure { margin: 0; overflow: hidden; }
.bpw-tile figure img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; transition: transform 0.5s ease; }
.bpw-tile figure a:hover img { transform: scale(1.04); }
.bpw-tile h3 { margin: 0.4rem 0 0; font-size: 1.6rem; }
.bpw-tile h3 a { color: var(--bpw-text); text-decoration: none; }
.bpw-tile h3 a:hover { color: var(--bpw-accent); }
.bpw-tile p { margin: 0; color: var(--bpw-muted); }
.bpw-more { margin-top: 1.6rem; color: var(--bpw-muted); }
.bpw-split { gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.bpw-split figure { margin: 0; }
.bpw-split figure img { display: block; width: 100%; aspect-ratio: 4 / 5; max-height: 520px; object-fit: cover; object-position: center 20%; }
.bpw-split p { color: var(--bpw-text-2); }
.bpw-clients { color: var(--bpw-muted) !important; }
.bpw-arrow a { font-weight: 600; text-decoration: none; }
.bpw-arrow a:hover { text-decoration: underline; }
.bpw-about p { color: var(--bpw-text-2); }

/* ---------- cards (blog, latest posts, related) ---------- */
.bpw-cards .wp-block-post-template { gap: 2rem 1.5rem; }
.bpw-cards .wp-block-post { display: flex; flex-direction: column; gap: 0.5rem; }
.bpw-cards .wp-block-post > * { margin-block: 0; }
.bpw-card-img { margin: 0; overflow: hidden; background: var(--bpw-base-2); aspect-ratio: 4 / 3; }
.bpw-card-img a { display: block; height: 100%; }
.bpw-card-img img { display: block; width: 100% !important; height: 100% !important; object-fit: cover; object-position: center 25%; transition: transform 0.5s ease; }
.bpw-card-img a:hover img { transform: scale(1.04); }
.bpw-card-title { font-size: 1.3rem !important; line-height: 1.25 !important; margin-top: 0.4rem !important; }
.bpw-card-title a { color: var(--bpw-text); text-decoration: none; }
.bpw-card-title a:hover { color: var(--bpw-accent); }
.bpw-cards .wp-block-post-excerpt { color: var(--bpw-text-2); font-size: 0.95rem; }
.bpw-cards .wp-block-post-excerpt__excerpt { margin: 0; }
.wp-block-query-pagination { margin-top: 2.5rem; border-top: 1px solid var(--bpw-line); padding-top: 1.2rem; }
.wp-block-query-pagination a { text-decoration: none; }
.wp-block-query-pagination .current { color: var(--bpw-accent); font-weight: 600; }
@media (max-width: 900px) { .bpw-cards .wp-block-post-template.columns-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .bpw-cards .wp-block-post-template.columns-3 { grid-template-columns: 1fr; } }
.bpw-related { margin-top: 3rem; }
.bpw-related ul { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; }
.bpw-related a { display: flex; flex-direction: column; gap: 0.6rem; color: var(--bpw-text); text-decoration: none; font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.bpw-related a:hover { color: var(--bpw-accent); }
.bpw-related img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 25%; background: var(--bpw-base-2); }

/* ---------- galleries: four columns, natural photo heights ---------- */
.wp-block-gallery.bpw-gallery { display: block; column-count: 4; column-gap: 12px; margin-top: 2rem; }
.wp-block-gallery.bpw-gallery figure.wp-block-image { display: block; width: 100% !important; margin: 0 0 12px !important; break-inside: avoid; background: var(--bpw-base-2); }
.wp-block-gallery.bpw-gallery figure.wp-block-image img { display: block; width: 100%; height: auto !important; object-fit: contain; }
.wp-block-gallery.bpw-gallery figure.wp-block-image figcaption { display: none; }
/* thumbnails zoom a little on hover (same as the home tiles); the frame clips the photo */
.wp-block-gallery.bpw-gallery figure.wp-block-image { overflow: hidden; cursor: zoom-in; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.wp-block-gallery.bpw-gallery figure.wp-block-image img { transition: transform 0.5s ease; }
	.wp-block-gallery.bpw-gallery figure.wp-block-image:hover img { transform: scale(1.04); }
}
@media (max-width: 1100px) { .wp-block-gallery.bpw-gallery { column-count: 3; } }
@media (max-width: 700px) { .wp-block-gallery.bpw-gallery { column-count: 2; column-gap: 8px; } .wp-block-gallery.bpw-gallery figure.wp-block-image { margin-bottom: 8px !important; } }
.wp-lightbox-overlay .scrim { background-color: #0d0a12 !important; }
.wp-lightbox-overlay .close-button { color: #fff; }

/* ---------- post ---------- */
.bpw-cta { background: var(--bpw-base-2); padding: clamp(1.5rem, 4vw, 2.5rem); margin-top: 3rem; }
.bpw-cta h2 { margin-top: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.bpw-postnav { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--bpw-line); gap: 1rem 2rem; font-size: 0.95rem; }
.bpw-postnav .post-navigation-link-next { margin-left: auto; text-align: right; }
.bpw-postnav a { text-decoration: none; }
.bpw-contact-card { background: var(--bpw-base-2); padding: clamp(1.5rem, 4vw, 2.5rem); }

/* ---------- footer ---------- */
.bpw-footer { margin-block-start: 0; border-top: 1px solid var(--bpw-line); }
.bpw-contact-band { max-width: calc(var(--bpw-wide) + 2 * var(--bpw-gutter)); box-sizing: border-box; margin: 0 auto; padding: clamp(3rem, 7vw, 5.5rem) var(--bpw-gutter); gap: 1.75rem; }
.bpw-contact-band-title { flex: 1 1 400px; margin: 0; font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.1; }
.bpw-contact-band-btns { min-width: min(100%, 300px); gap: 0.75rem; }
.bpw-contact-band-btns .wp-block-button__link { text-align: center; }
.bpw-footer-cols { max-width: calc(var(--bpw-wide) + 2 * var(--bpw-gutter)); box-sizing: border-box; margin: 0 auto; padding: 2.5rem var(--bpw-gutter); gap: 2rem 4rem; border-top: 1px solid var(--bpw-line); }
.bpw-footer-col { flex: 0 1 auto; }
.bpw-footer-col > * { margin-block: 0; }
.bpw-footer-col > * + * { margin-top: 0.6rem; }
.bpw-footer-head { font-weight: 600; color: var(--bpw-text); }
.bpw-footer-links { line-height: 1.9; font-size: 0.95rem; }
.bpw-footer-links a { color: var(--bpw-muted); text-decoration: none; }
.bpw-footer-links a:hover { color: #fff; }
.bpw-footer-bottom { max-width: calc(var(--bpw-wide) + 2 * var(--bpw-gutter)); box-sizing: border-box; margin: 0 auto; padding: 1.4rem var(--bpw-gutter) 2rem; border-top: 1px solid var(--bpw-line); font-size: 0.85rem; color: var(--bpw-muted); }
.bpw-footer-bottom a { color: var(--bpw-muted); }
/* nothing follows the contact band on the contact page itself */
.page-id-36 .bpw-contact-band { display: none; }
.page-id-36 .bpw-footer-cols { border-top: 0; }

/* cookie banner: bottom right on wide screens so it does not cover the hero buttons */
@media (min-width: 800px) { .bp-cookies { left: auto !important; right: 20px !important; bottom: 20px !important; margin: 0 !important; max-width: 420px !important; } }

/* pages: text starts at the left edge of the wide column, like the title and the galleries; lines stay readable */
.bpw-page > .wp-block-post-content.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull):not(.alignwide)),
.bpw-page > .bpw-crumbs, .bpw-blog > .bpw-crumbs { max-width: var(--wp--style--global--wide-size); }
.bpw-page > .wp-block-post-content.is-layout-constrained > :where(p, ul, ol, h2, h3, h4, blockquote, table, .wp-caption) { box-sizing: border-box; padding-right: clamp(0px, calc(100% - 760px), 520px); }
.bpw-about-cols { gap: clamp(1.5rem, 5vw, 4rem); }
.bpw-about-photo figure img { aspect-ratio: 3 / 4; max-height: 560px; object-position: center 20%; }
.bpw-blog-intro { margin-bottom: 2rem; }
.bpw-blog-intro > * { max-width: 820px; }

.bpw-card-img, .bpw-card-img img { border-radius: 0 !important; }

/* phone menu: entries start at the left edge */
.bpw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { align-items: flex-start; }
.bpw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: flex-start; width: 100%; }

/* ---------- inner pages: a band with the same changing photos behind the title ---------- */
.bpw-hero.bpw-hero--page { min-height: clamp(280px, 44vh, 460px); padding-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.bpw-hero--page .bpw-hero-slides::after { background: radial-gradient(rgba(0, 0, 0, 0.16) 0.8px, transparent 1px) 0 0 / 3px 3px, linear-gradient(to top, rgba(23, 19, 31, 0.92), rgba(23, 19, 31, 0.35) 55%, rgba(23, 19, 31, 0.25)); }
.bpw-hero--page .bpw-hero-slides figure.wp-block-image img { object-position: center 28%; }
.bpw-hero-title { margin: 0.5rem 0 0; font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1.08; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55); max-width: 22ch; }
.single .bpw-hero-title { max-width: 30ch; font-size: clamp(1.9rem, 3.6vw, 3rem); }
.bpw-hero--page .bpw-crumbs, .bpw-hero--page .bpw-crumbs a { color: var(--bpw-text-2); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
.bpw-page, .bpw-single, .bpw-blog { padding-top: clamp(1.6rem, 3vw, 2.4rem); }

/* pause / play for the changing background (keyboard and screen-reader reachable) */
.bpw-hero-pause { position: absolute; right: var(--bpw-gutter); bottom: 1rem; z-index: 5; width: 2.5rem; height: 2.5rem; padding: 0; border: 1px solid rgba(244, 241, 250, 0.55); border-radius: 50%; background: rgba(23, 19, 31, 0.6); color: #fff; cursor: pointer; display: grid; place-items: center; }
.bpw-hero-pause:hover { background: rgba(23, 19, 31, 0.9); }
.bpw-hero-pause::before { content: ""; width: 0.7rem; height: 0.8rem; border-left: 0.22rem solid currentColor; border-right: 0.22rem solid currentColor; box-sizing: border-box; }
.bpw-hero-pause[aria-pressed="true"]::before { width: 0; height: 0; border: 0.45rem solid transparent; border-left: 0.75rem solid currentColor; border-right: 0; margin-left: 0.2rem; }
.bpw-hero-slides.is-paused figure img { animation-play-state: paused !important; }

/* O mnie: portrait beside the text; the portrait stays in view while the long text scrolls */
.bpw-profile { gap: clamp(1.5rem, 4vw, 3.5rem); align-items: flex-start !important; margin-top: 0.5rem; }
.bpw-profile-photo figure { margin: 0; }
.bpw-profile-photo img { display: block; width: 100%; height: auto; }
.bpw-profile-text > :first-child { margin-top: 0; }
.bpw-profile-text p { color: var(--bpw-text-2); }
@media (min-width: 782px) { .bpw-profile-photo { position: sticky; top: 2rem; } }
@media (max-width: 781px) { .bpw-profile-photo { max-width: 360px; } .bpw-about-photo { max-width: 360px; } }

/* ---------- readable long text: lead, list of clients, sign-off ---------- */
.bpw-lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.55; color: var(--bpw-text) !important; }
.bpw-profile-text h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin: 2.4rem 0 0.9rem; padding-top: 1.6rem; border-top: 1px solid var(--bpw-line); }
.bpw-profile-text p { margin-block: 0 1.1rem; max-width: 68ch; }
.bpw-profile-text .bpw-lead { margin-bottom: 0.4rem; max-width: 60ch; }
.bpw-client-list { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 2rem; max-width: 68ch; }
.bpw-client-list li { padding: 0.6rem 0; border-bottom: 1px solid var(--bpw-line); color: var(--bpw-text) !important; }
.bpw-signoff { margin-top: 2.2rem !important; font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 1.3rem; color: var(--bpw-text) !important; }
/* blog: one sentence above the posts, the rest of the text after them */
.bpw-blog-lead { margin: 0 0 2rem; max-width: 62ch; }
.bpw-blog-about { margin-top: 4rem; padding-top: 2.2rem; border-top: 1px solid var(--bpw-line); }
.bpw-blog-about h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin: 0 0 1.2rem; }
.bpw-blog-about-text { columns: 2 340px; column-gap: 3rem; color: var(--bpw-text-2); font-size: 0.97rem; }
.bpw-blog-about-text p { margin: 0 0 0.9rem; break-inside: avoid; }

/* ---------- Kontakt ---------- */
.bpw-contact { gap: clamp(1.5rem, 5vw, 4rem); margin-top: 0.5rem; }
.bpw-contact-card { background: var(--bpw-base-2); padding: clamp(1.5rem, 4vw, 3rem); }
.bpw-contact-card > * { margin-block: 0; }
.bpw-contact-card > * + * { margin-top: 1.2rem; }
.bpw-contact-name { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; color: #fff !important; }
.bpw-contact-btns { gap: 0.75rem; max-width: 420px; }
.bpw-contact-btns .wp-block-button__link { text-align: center; font-size: 1.05rem; }
.bpw-contact-list { grid-template-columns: 1fr; max-width: 420px; }
.bpw-contact-photo figure { margin: 0; }
.bpw-contact-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; max-height: 600px; object-fit: cover; object-position: center 30%; }

/* ---------- home hero: tile with Emilia's photo and a line about her, right of the main box ---------- */
.bpw-hero:not(.bpw-hero--page) > .bpw-hero-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.25rem 2rem; }
.bpw-hero-wrap > * { margin-block: 0 !important; }
.bpw-hero-box { flex: 0 1 600px; }
.bpw-hero-about { flex: 0 1 430px; display: flex; align-items: stretch; gap: 0; background: rgba(23, 19, 31, 0.9); }
.bpw-hero-about > * { margin-block: 0 !important; }
.bpw-hero-about figure { flex: 0 0 38%; margin: 0; }
.bpw-hero-about figure a { display: block; height: 100%; }
.bpw-hero-about figure img { display: block; width: 100%; height: 100%; min-height: 190px; object-fit: cover; object-position: center 18%; }
.bpw-hero-about-text { flex: 1; padding: 1.1rem 1.25rem; display: flex; flex-direction: column; justify-content: center; }
.bpw-hero-about-text > * { margin-block: 0 !important; }
.bpw-hero-about-text > * + * { margin-top: 0.55rem !important; }
.bpw-hero-about-name { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 1.3rem; line-height: 1.15; color: #fff; }
.bpw-hero-about-text p:not(.bpw-hero-about-name):not(.bpw-arrow) { font-size: 0.92rem; line-height: 1.5; color: var(--bpw-text-2); }
.bpw-hero-about-text .bpw-arrow { font-size: 0.95rem; }
@media (max-width: 1180px) { .bpw-hero-about { flex-basis: 600px; max-width: 600px; } }

/* home page: the pause button moves up, the bottom right corner belongs to the tile */
.bpw-hero:not(.bpw-hero--page) > .bpw-hero-pause { top: 5.6rem; bottom: auto; }
.bpw-hero-about { flex-basis: 470px; }
/* narrow screens: the tile takes the bottom of the home hero, so leave a strip for the pause button under the header */
@media (max-width: 1180px) { .bpw-hero:not(.bpw-hero--page) { padding-top: 8.6rem; } }
/* home hero, wide screens: the tile about Emilia is the same size as the main box (two equal halves) */
@media (min-width: 1181px) {
	.bpw-hero:not(.bpw-hero--page) > .bpw-hero-wrap { flex-wrap: nowrap; align-items: stretch; gap: 1.5rem; }
	.bpw-hero-wrap > .bpw-hero-box, .bpw-hero-wrap > .bpw-hero-about { flex: 1 1 0; max-width: none; min-width: 0; }
	.bpw-hero-box { display: flex; flex-direction: column; justify-content: center; }
	.bpw-hero-about figure { flex-basis: 42%; }
	.bpw-hero-about-text { padding: clamp(1.5rem, 2.4vw, 2.5rem); }
	.bpw-hero-about-text > * + * { margin-top: 0.9rem !important; }
	.bpw-hero-about-name { font-size: clamp(1.6rem, 2.2vw, 2.1rem); }
	.bpw-hero-about-text p:not(.bpw-hero-about-name):not(.bpw-arrow) { font-size: 1.05rem; line-height: 1.6; }
	.bpw-hero-about-text .bpw-arrow { font-size: 1.05rem; }
}
@media (min-width: 1181px) { .bpw-hero-wrap > .bpw-hero-box, .bpw-hero-wrap > .bpw-hero-about { box-sizing: border-box; flex: 1 1 50%; } }
/* Kontakt (page 36): people come for the phone and the e-mail — lower band, card at the top, no extra gap */
.page-id-36 .bpw-hero.bpw-hero--page { min-height: clamp(190px, 24vh, 250px); padding-top: 5.2rem; padding-bottom: 1.1rem; }
.page-id-36 .bpw-page { padding-top: 1.25rem; }
.page-id-36 .bpw-contact { margin-top: 0; align-items: flex-start !important; }
.page-id-36 .bpw-contact > .wp-block-column { align-self: flex-start !important; }
.page-id-36 .bpw-contact-card { padding: clamp(1.25rem, 2.6vw, 2.2rem); }
.page-id-36 .bpw-contact-card > * + * { margin-top: 0.9rem; }
.page-id-36 .bpw-contact-photo img { max-height: 470px; }
/* inner pages: the changing photos do not end at the band — they run on under the content and fade into the page colour */
.bpw-hero.bpw-hero--page { overflow: visible; background: transparent; z-index: 1; }
.bpw-hero--page > .bpw-hero-slides { height: max(100%, min(100vh, 900px)); overflow: hidden; background: var(--bpw-base-2); }
.bpw-hero--page .bpw-hero-slides::after { background: radial-gradient(rgba(0, 0, 0, 0.16) 0.8px, transparent 1px) 0 0 / 3px 3px, linear-gradient(to bottom, rgba(23, 19, 31, 0.3) 0, rgba(23, 19, 31, 0.5) 22%, rgba(23, 19, 31, 0.8) 48%, rgba(23, 19, 31, 0.94) 72%, #17131f 100%); }
.bpw-hero--page ~ .bpw-main { position: relative; z-index: 2; background: transparent; }
.bpw-hero--page ~ .bpw-footer { position: relative; z-index: 2; background: var(--bpw-base); }
.bpw-contact-card { background: rgba(33, 27, 44, 0.92); }
/* every page except the home page: low band (title close to the top, content right under it) — the photo carries on underneath anyway */
.bpw-hero.bpw-hero--page { min-height: clamp(190px, 24vh, 250px); padding-top: 5.2rem; padding-bottom: 1.1rem; }
.bpw-hero--page ~ .bpw-main.bpw-page, .bpw-hero--page ~ .bpw-main.bpw-single, .bpw-hero--page ~ .bpw-main.bpw-blog { padding-top: 1.25rem; }
.bpw-hero--page ~ .bpw-main .wp-block-gallery.bpw-gallery { margin-top: 1.25rem; }
/* O mnie: justified text on wide screens (the user's wish); words may be hyphenated so the gaps stay even.
   On phones the column is too narrow for justified text, so it stays left-aligned. */
@media (min-width: 782px) {
	.bpw-profile-text p:not(.bpw-signoff) { text-align: justify; hyphens: auto; -webkit-hyphens: auto; text-wrap: pretty; }
}

/* ---------- without Emilia's portrait (her wish, 2026-11-28) ---------- */
/* O mnie: one text column; lead on top, sections under it, the long paragraphs in two newspaper columns on wide screens */
.bpw-profile-solo { margin-top: 0.5rem; }
.bpw-profile-solo > :first-child { margin-top: 0; }
.bpw-profile-solo .bpw-lead { max-width: 46ch; font-size: clamp(1.3rem, 2.1vw, 1.75rem); line-height: 1.4; margin-bottom: 0.6rem; }
.bpw-profile-solo p:not(.bpw-lead) { max-width: 72ch; }
.bpw-profile-solo h2 { max-width: none; }
.bpw-profile-solo .bpw-client-list { max-width: none; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
@media (min-width: 1000px) {
	.bpw-profile-solo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 4vw, 4rem); align-items: start; }
	.bpw-profile-solo > .bpw-lead, .bpw-profile-solo > h2, .bpw-profile-solo > .bpw-client-list, .bpw-profile-solo > .bpw-signoff, .bpw-profile-solo > .wp-block-buttons, .bpw-profile-solo > h2 + p:last-of-type { grid-column: 1 / -1; }
	.bpw-profile-solo > p:not(.bpw-lead):not(.bpw-signoff) { max-width: none; margin-top: 0 !important; }
	.bpw-profile-solo > h2 { margin-bottom: 0.4rem; }
}
/* home hero tile: text only — a little larger, with an accent line on the left */
.bpw-hero-about:not(:has(figure)) .bpw-hero-about-text { padding: clamp(1.5rem, 3vw, 2.75rem); border-left: 4px solid var(--bpw-accent); }
.bpw-hero-about:not(:has(figure)) .bpw-hero-about-name { font-size: clamp(1.7rem, 2.6vw, 2.4rem); }
.bpw-hero-about:not(:has(figure)) .bpw-hero-about-text p:not(.bpw-hero-about-name):not(.bpw-arrow) { font-size: 1.1rem; line-height: 1.6; }
/* home section O mnie: text in two columns on wide screens */
.bpw-about > h2 { margin-top: 0; }
.bpw-about-text { max-width: none; color: var(--bpw-text-2); }
@media (min-width: 900px) { .bpw-about-text { columns: 2; column-gap: clamp(2rem, 4vw, 4rem); text-align: justify; hyphens: auto; -webkit-hyphens: auto; } }
.bpw-profile-solo .bpw-lead { text-align: left !important; hyphens: manual !important; -webkit-hyphens: manual !important; }
@media (min-width: 1000px) { .bpw-profile-solo > h2 { margin-bottom: 1rem; } .bpw-profile-solo > h2 + p:not(:has(+ p)) { grid-column: 1 / -1; max-width: 72ch !important; } }
@media (max-width: 1180px) { .bpw-hero:not(.bpw-hero--page) { padding-top: 9.6rem; } .bpw-hero:not(.bpw-hero--page) > .bpw-hero-pause { top: 5.2rem; } }
