/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/* Szydlik Wnętrza — uzupełnienia */
/* Prasa: przycisk „Przeczytaj artykuł” ukryty, dopóki publikacja nie ma linku */
.szw-prasa-link:has(a[href="#brak-linku"]) { display: none; }
.elementor-widget-button:has(a[href="#brak-projektu"]) { display: none; }
.elementor-nav-menu--main .elementor-item { white-space: nowrap; }
.e-loop-item a.e-con { text-decoration: none; }
::selection { background: #222; color: #fff; }

/* Dostępność: linki w treści rozróżnialne nie tylko kolorem (szw-a11y-links) */
.elementor-widget-theme-post-content a:not(.elementor-button), .elementor-widget-text-editor a:not(.elementor-button) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ===== Zmiany klienta 2026-11-22 (szw-zmiany-2026-11-22) ===== */
/* Wpis Kronik: galeria z odstępami między zdjęciami i wierszami, bez podpisów */
.single-post .elementor-image-gallery .gallery { display: grid !important; gap: 32px 14px; grid-template-columns: repeat(var(--szw-gcols, 4), minmax(0, 1fr)); }
.single-post .elementor-image-gallery .gallery-columns-1 { --szw-gcols: 1; }
.single-post .elementor-image-gallery .gallery-columns-2 { --szw-gcols: 2; }
.single-post .elementor-image-gallery .gallery-columns-3 { --szw-gcols: 3; }
.single-post .elementor-image-gallery .gallery-columns-5 { --szw-gcols: 5; }
.single-post .elementor-image-gallery .gallery-columns-6 { --szw-gcols: 6; }
.single-post .elementor-image-gallery .gallery > br { display: none; }
.single-post .elementor-image-gallery .gallery-item { width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
.single-post .elementor-image-gallery .gallery-icon, .single-post .elementor-image-gallery .gallery-icon a { display: block; }
.single-post .elementor-image-gallery .gallery-item img { display: block; width: 100% !important; height: auto !important; aspect-ratio: 1 / 1; object-fit: cover; }
.elementor-image-gallery .gallery-caption, .elementor-image-gallery figcaption { display: none !important; }
@media (max-width: 767px) { .single-post .elementor-image-gallery .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 8px; } }
/* Kafle realizacji: na telefonie i tablecie sam tytuł, bez kategorii pod spodem */
@media (max-width: 1024px) { .szw-projekt-card .szw-card-meta .elementor-widget-heading:not(.elementor-widget-theme-post-title) { display: none; } }
/* tablety (ekran dotykowy, także w poziomie > 1024px): tylko tytuł projektu, kategorie tylko na komputerze */
@media (hover: none) and (pointer: coarse) { .szw-projekt-card .szw-card-meta .elementor-widget-heading:not(.elementor-widget-theme-post-title) { display: none; } }

/* Stopka: „Made with love by Ferrum Web” — na telefonie w osobnej linii, bez kropki */
@media (max-width: 767px) { .szw-credit-sep { display: none; } .szw-credit { display: block; margin-top: 4px; } }
/* Stopka: brązowe serduszko zamiast „love” (ikona CSS — bez emoji, zawsze w kolorze marki; czytniki ekranu czytają „love”) */
.szw-heart { display: inline-block; width: .9em; height: .82em; vertical-align: -.06em; margin: 0 .1em; background: #8A6F5C;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21.6 10.3 20C4.2 14.5 0 10.7 0 6.1 0 2.6 2.7 0 6.2 0c2 0 3.9.9 5.8 2.6C13.9.9 15.8 0 17.8 0 21.3 0 24 2.6 24 6.1c0 4.6-4.2 8.4-10.3 13.9z'/%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 22'%3E%3Cpath d='M12 21.6 10.3 20C4.2 14.5 0 10.7 0 6.1 0 2.6 2.7 0 6.2 0c2 0 3.9.9 5.8 2.6C13.9.9 15.8 0 17.8 0 21.3 0 24 2.6 24 6.1c0 4.6-4.2 8.4-10.3 13.9z'/%3E%3C/svg%3E") center / contain no-repeat; }
.szw-heart > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Przełącznik języka PL / EN (Polylang) */
.szw-lang { display: inline-flex; align-items: center; gap: 8px; font-family: Poppins, sans-serif; font-size: 11px; line-height: 1; font-weight: 400; letter-spacing: 1.4px; text-transform: uppercase; white-space: nowrap; }
.szw-lang__item { position: relative; display: inline-block; padding: 6px 0; color: #6E6E6E; text-decoration: none !important; transition: color .3s ease; }
.szw-lang__item::after { content: ""; position: absolute; left: 0; right: 1.4px; bottom: 1px; height: 1px; background: #985F52; transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
a.szw-lang__item:hover, a.szw-lang__item:focus-visible { color: #985F52; }
a.szw-lang__item:hover::after, a.szw-lang__item:focus-visible::after { transform: scaleX(1); }
.szw-lang__item.is-active { color: #222; font-weight: 600; }
.szw-lang__item.is-active::after { transform: scaleX(1); }
.szw-lang__sep { color: rgba(34,34,34,.25); }
.szw-head-lang .elementor-shortcode { line-height: 1; }
