/*
Theme Name: baldyga
Theme URI: https://baldygamichal.info
Description: Autorski, nowoczesny motyw WordPress stworzony przez Rafała Leśniaka. Zbudowany w oparciu o natywny edytor bloków (Gutenberg) bez obciążających nakładek typu Elementor. Zapewnia maksymalną wydajność (Core Web Vitals 100/100), surową estetykę artystyczną, zerowe zaokrąglenia i pełną responsywność.
Author: Leśniak Rafał
Author URI: https://lesniakrafal.com
Version: 3.3.1
Requires at least: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: baldyga
*/

/* ==========================================================================
   1. SUROWY ARTYSTYCZNY RESET: ZERO ZAOKRĄGLEŃ (STRICT NO BORDER-RADIUS)
   ========================================================================== */
*,
*::before,
*::after,
input,
textarea,
select,
button,
.btn,
.form-control,
.wp-block-button__link,
.wp-block-image img,
.wp-block-gallery figure,
.card,
.modal,
.baldyga-article-card {
    border-radius: 0 !important;
    box-sizing: border-box;
}

:root {
    --bg-color: #ffffff;
    --text-color: #111111;
    --text-muted: #666666;
    --border-color: #e0e0e0;
    --border-dark: #000000;
    --header-height: 68px;
    --container-width: 1140px;
    --container-wide: 1400px;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --transition-fast: 0.2s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

a:hover, a:focus {
    color: #444444;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #000000;
    margin-top: 0;
    margin-bottom: 1.2rem;
    line-height: 1.25;
}

p {
    margin-top: 0;
    margin-bottom: 1.2rem;
}

/* ==========================================================================
   2. UKŁAD STRONY I KONTENERY
   ========================================================================== */
#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1 0 auto;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.container-wide {
    max-width: var(--container-wide);
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #000000;
    clip: auto !important;
    clip-path: none;
    color: #ffffff;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ==========================================================================
   3. NAWIGACJA GŁÓWNA & DYNAMICZNY KONTRAST
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    height: var(--header-height);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.site-logo-svg {
    height: 48px;
    width: auto;
    display: block;
    transition: color 0.25s ease;
}

.site-logo-svg svg {
    height: 48px;
    width: auto;
    fill: currentColor;
    display: block;
}

/* Dynamic contrast classes */
.nav-contrast-light {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.nav-contrast-light .site-logo-svg {
    color: #000000;
}
.nav-contrast-light .nav-menu a {
    color: #000000;
}
.nav-contrast-light .nav-toggle span {
    background-color: #000000;
}

.nav-contrast-dark {
    background-color: rgba(0, 0, 0, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.nav-contrast-dark .site-logo-svg {
    color: #ffffff;
}
.nav-contrast-dark .nav-menu a {
    color: #ffffff;
}
.nav-contrast-dark .nav-toggle span {
    background-color: #ffffff;
}

.primary-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 28px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 8px 0;
    display: block;
    position: relative;
    transition: color var(--transition-fast), opacity var(--transition-fast);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: currentColor;
    transition: width var(--transition-fast);
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item > a::after {
    width: 100%;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    z-index: 10001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.nav-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   4. HERO SEKCJA (GŁÓWNA & PODSTRONY)
   ========================================================================== */
#headline {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
}

/* Frontpage Hero: Pełnowymiarowy, monumentalny ekran startowy z logo */
.hero-frontpage {
    min-height: calc(100vh - var(--header-height));
    min-height: 75vh;
    padding: 160px 20px 80px 20px;
    background-color: #ffffff !important;
    border-bottom: 2px solid #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
}

.hero-brand-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 24px;
}

.hero-svg-logo-wrap {
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-svg-logo-wrap svg {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
    fill: #000000;
}

.hero-artist-name {
    font-family: var(--font-mono);
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #000000;
    margin: 28px 0 0 0;
    padding: 0;
    line-height: 1.2;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.modern-scroll-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    background: transparent;
    border: none !important;
    padding: 10px;
    text-decoration: none;
    transition: transform var(--transition-fast), color var(--transition-fast), opacity var(--transition-fast);
}

.modern-scroll-svg {
    display: block;
    width: 32px;
    height: 32px;
    stroke: #000000;
    animation: modernArrowFloat 2.2s infinite ease-in-out;
}

@keyframes modernArrowFloat {
    0% {
        transform: translateY(0);
        opacity: 0.4;
    }
    50% {
        transform: translateY(9px);
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }
}

.modern-scroll-link:hover .modern-scroll-svg {
    opacity: 1;
    transform: translateY(5px);
}

/* Subpage Hero: Wyraziste, monumentalne banery podstron z zachowaniem marginesu do treści */
.hero-subpage {
    min-height: 65vh;
    min-height: 580px;
    padding: 200px 20px 100px 20px;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center center !important;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid #000000;
    box-sizing: border-box;
    margin-bottom: 60px !important;
}

.hero-subpage .overlay-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hero-subpage .head-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-width);
    margin: 0 auto;
    text-align: center;
}

.page-hero-title {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    letter-spacing: 0.12em;
    font-weight: 900;
    margin: 0 auto;
    text-transform: uppercase;
}

.page-hero-title.title-contrast-dark {
    color: #ffffff !important;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.7);
}

.page-hero-title.title-contrast-light {
    color: #000000 !important;
    text-shadow: 0 1px 10px rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   5. SEKCJA ZAPRASZAM & TREŚĆ STRONY GŁÓWNEJ
   ========================================================================== */
.home-intro-section {
    padding-top: 80px;
    padding-bottom: 70px;
    text-align: center !important;
}

.home-intro-section .section-title {
    text-align: center !important;
    margin: 0 auto 50px auto !important;
}

.home-intro-section .section-title h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    text-align: center !important;
}

.home-intro-section .section-title p {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    text-align: center !important;
}

.home-intro-section .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: #000000;
    margin: 22px auto 0 auto;
}

/* ==========================================================================
   6. NATYWNY EDYTOR BLOKÓW (GUTENBERG) — STYLIZACJA BLOKÓW CORE
   ========================================================================== */
.entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 1.6rem;
}

/* Bio preview layout on home */
.baldyga-bio-preview-columns {
    margin-top: 40px;
    margin-bottom: 50px;
    gap: 40px !important;
    align-items: center;
    text-align: left;
}

.baldyga-portrait-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border: 1px solid #111111;
}

.artist-birthdate {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 1.2rem;
}

/* Gutenberg Buttons */
.wp-block-button__link {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 12px 28px;
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #000000 !important;
    display: inline-block;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.wp-block-button__link:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
}

/* Separators */
.wp-block-separator {
    border: none !important;
    border-bottom: 2px solid #111111 !important;
    margin: 50px auto !important;
    max-width: 100% !important;
    opacity: 1 !important;
}

/* Gallery Block */
.baldyga-art-gallery {
    margin-top: 30px;
    margin-bottom: 50px;
    gap: 16px !important;
}

.baldyga-art-gallery .wp-block-image img {
    transition: transform 0.3s ease, filter 0.3s ease;
    border: 1px solid #eee;
}

.baldyga-art-gallery .wp-block-image:hover img {
    transform: scale(1.02);
    filter: brightness(1.03);
}

/* Embed video */
.wp-block-embed {
    margin: 40px auto;
    max-width: 900px;
}

.wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================================================
   7. NAJNOWSZE PROJEKTY: CZYSTY NATIVE CSS GRID
   ========================================================================== */
.home-blog-section {
    padding: 60px 0 80px 0;
    border-top: 1px solid var(--border-color);
}

.home-blog-section .section-title {
    text-align: center;
    margin-bottom: 45px;
}

.home-blog-section .section-title h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.baldyga-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

.baldyga-article-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 0;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.baldyga-article-card:hover {
    border-color: #000000;
    transform: translateY(-3px);
}

.post-thumb-wrap {
    overflow: hidden;
    position: relative;
    aspect-ratio: 4 / 3;
    background-color: #f5f5f5;
}

.post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.baldyga-article-card:hover .post-img {
    transform: scale(1.04);
}

.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-meta-row {
    margin-bottom: 10px;
}

.post-date-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.post-title {
    font-size: 1.2rem;
    line-height: 1.35;
    margin-bottom: 12px;
}

.post-title a {
    color: #000000;
}

.post-title a:hover {
    color: #555555;
}

.entry-summary {
    font-size: 0.95rem;
    color: #444444;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more-link {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #000000;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
    align-self: flex-start;
    transition: border-color var(--transition-fast), color var(--transition-fast);
}

.read-more-link:hover {
    color: #000000;
    border-bottom-color: #000000;
}

/* ==========================================================================
   8. KARUZELA PRAC (AUTOPLAY CAROUSEL)
   ========================================================================== */
.baldyga-carousel-section {
    margin: 60px 0;
    position: relative;
}

.carousel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    border-bottom: 2px solid #000000;
    padding-bottom: 12px;
}

.carousel-title {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    letter-spacing: 0.08em;
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
}

.carousel-nav-arrows {
    display: flex;
    gap: 10px;
}

.carousel-arrow {
    width: 44px;
    height: 44px;
    background-color: #000000;
    color: #ffffff;
    border: 1px solid #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.carousel-arrow:hover {
    background-color: #ffffff;
    color: #000000;
}

.baldyga-carousel-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
    margin: 0;
    padding: 0;
    list-style: none;
}

.carousel-slide {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 10px;
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    .carousel-slide {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

@media (max-width: 960px) {
    .carousel-slide {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 600px) {
    .carousel-slide {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.carousel-slide-inner {
    border: 1px solid #000000;
    background: #000000;
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide-inner a.baldyga-lightbox-trigger {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.carousel-slide-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), filter 0.35s ease;
}

.lightbox-hover-plus {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    opacity: 0;
    pointer-events: none;
    z-index: 5;
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.7));
}

.carousel-slide-inner:hover img,
.carousel-slide-inner a:hover img {
    transform: scale(1.05);
    filter: brightness(0.72);
}

.carousel-slide-inner:hover .lightbox-hover-plus,
.carousel-slide-inner a:hover .lightbox-hover-plus {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.carousel-dot {
    width: 28px;
    height: 4px;
    background-color: rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    padding: 0;
}

.carousel-dot.is-active {
    background-color: #000000;
    height: 4px;
}

/* ==========================================================================
   9. GRAF CZASOWY TEKSTÓW (CHRONOLOGICAL TIMELINE)
   ========================================================================== */
.baldyga-timeline-container {
    position: relative;
    max-width: 960px;
    margin: 50px auto 80px auto;
    padding: 20px 0;
}

.baldyga-timeline-spine {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: #000000;
    transform: translateX(-50%);
    z-index: 1;
}

.baldyga-timeline-list {
    position: relative;
    z-index: 2;
    display: block;
}

.baldyga-timeline-list::after {
    content: "";
    display: table;
    clear: both;
}

.timeline-item {
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 25px;
}

.timeline-item-left {
    float: left;
    clear: left;
    padding-right: 20px;
    text-align: right;
}

.timeline-item-right {
    float: right;
    clear: right;
    padding-left: 20px;
    text-align: left;
    margin-top: 50px;
}

.timeline-marker {
    position: absolute;
    top: 24px;
    z-index: 3;
}

.timeline-item-left .timeline-marker {
    right: -7px;
}

.timeline-item-right .timeline-marker {
    left: -7px;
}

.timeline-dot {
    display: block;
    width: 14px;
    height: 14px;
    background-color: #ffffff;
    border: 3px solid #000000;
}

.timeline-card {
    background: #ffffff;
    border: 2px solid #000000;
    padding: 26px;
    box-shadow: 6px 6px 0px #000000;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.timeline-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0px #000000;
}

.timeline-meta {
    margin-bottom: 12px;
}

.timeline-date-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    background: #000000;
    color: #ffffff;
    padding: 4px 12px;
    text-transform: uppercase;
}

.timeline-thumb {
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid #000000;
    aspect-ratio: 16 / 9;
    background: #f0f0f0;
}

.timeline-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.timeline-card:hover .timeline-thumb img {
    transform: scale(1.04);
}

.timeline-title {
    font-size: 1.25rem;
    letter-spacing: 0.04em;
    margin: 0 0 10px 0;
    font-weight: 800;
    line-height: 1.3;
}

.timeline-title a {
    color: #000000;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.timeline-title a:hover {
    color: #555555;
}

.timeline-excerpt {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #333333;
    margin: 0 0 16px 0;
}

.timeline-readmore {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #000000;
    text-decoration: none;
    border-bottom: 2px solid #000000;
    padding-bottom: 2px;
    transition: all var(--transition-fast);
}

.timeline-readmore:hover {
    background-color: #000000;
    color: #ffffff;
}

@media (max-width: 768px) {
    .baldyga-timeline-spine {
        left: 20px;
        transform: none;
    }

    .timeline-item {
        width: 100%;
        float: none !important;
        clear: both !important;
        margin-top: 0 !important;
        margin-bottom: 35px;
        left: 0 !important;
        padding-left: 50px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }

    .timeline-item-left .timeline-marker,
    .timeline-item-right .timeline-marker {
        left: 13px !important;
        right: auto !important;
    }
}

/* ==========================================================================
   10. STRONA KONTAKTOWA (UKŁAD 2-KOLUMNOWY)
   ========================================================================== */
.page .site-main {
    padding-bottom: 70px;
}

.baldyga-contact-container {
    max-width: 1080px;
    margin: 40px auto 0 auto;
    padding-bottom: 80px;
}

.baldyga-contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 60px;
    align-items: start;
}

@media (max-width: 900px) {
    .baldyga-contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.contact-info-panel {
    background: #ffffff;
    border: 2px solid #000000;
    padding: 36px 30px;
    box-shadow: 6px 6px 0 #000000;
}

.contact-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #666666;
    margin-bottom: 8px;
}

.contact-artist-name {
    font-size: 1.6rem;
    letter-spacing: 0.08em;
    font-weight: 900;
    margin: 0 0 16px 0;
    text-transform: uppercase;
}

.contact-separator {
    width: 60px;
    height: 2px;
    background-color: #000000;
    margin-bottom: 28px;
}

.contact-info-details {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.contact-info-block .info-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #666666;
    margin-bottom: 4px;
}

.contact-info-block .info-value {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #000000;
    margin: 0;
}

.contact-info-block .info-value a {
    color: #000000;
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.contact-info-block .info-value a:hover {
    color: #666666;
}

.contact-info-block .info-value.social-links {
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.contact-form-panel {
    background: #ffffff;
}

.baldyga-contact-form {
    width: 100%;
}

.baldyga-form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.baldyga-field-half {
    flex: 1 1 calc(50% - 10px);
    min-width: 250px;
}

.baldyga-field-full {
    flex: 1 1 100%;
}

.baldyga-form-group {
    display: flex;
    flex-direction: column;
}

.baldyga-form-group label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.baldyga-form-group label .req {
    color: #d00;
}

.baldyga-input,
.baldyga-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #000000;
    background-color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: #000000;
    outline: none;
    box-sizing: border-box;
    transition: border-color var(--transition-fast);
}

.baldyga-input:focus,
.baldyga-textarea:focus {
    border-color: #666666;
    box-shadow: 0 0 0 1px #000000;
}

.baldyga-submit-btn {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 14px 34px;
    background-color: #000000;
    color: #ffffff;
    border: 2px solid #000000;
    cursor: pointer;
    margin-bottom: 30px;
    transition: all var(--transition-fast);
}

.baldyga-submit-btn:hover {
    background-color: #ffffff;
    color: #000000;
}

.baldyga-hp-field {
    display: none !important;
    visibility: hidden !important;
}

.baldyga-form-feedback {
    margin-top: 15px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    padding: 12px 16px;
    display: none;
}

.baldyga-form-feedback.is-success {
    display: block;
    background: #f0fdf4;
    border: 1px solid #16a34a;
    color: #166534;
}

.baldyga-form-feedback.is-error {
    display: block;
    background: #fef2f2;
    border: 1px solid #dc2626;
    color: #991b1b;
}

/* ==========================================================================
   9. STOPKA & SCROLL TO TOP
   ========================================================================== */
.site-footer {
    background-color: #000000;
    color: #ffffff;
    padding: 60px 20px 45px 20px;
    margin-top: 80px;
    text-align: center;
}

.footer-social {
    margin-bottom: 25px;
}

.footer-social ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-social a {
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-social a:hover {
    color: #aaaaaa;
}

.credit {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: #888888;
    margin: 0;
}

.credit a {
    color: #ffffff;
    text-decoration: underline;
}

.credit a:hover {
    color: #dddddd;
}

#go-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
}

.go-to-top a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #000000;
    color: #ffffff;
    border: 1px solid #ffffff;
    transition: all var(--transition-fast);
}

.go-to-top a:hover {
    background: #ffffff;
    color: #000000;
    border-color: #000000;
}

/* Hide Google reCAPTCHA badge */
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ==========================================================================
   10. STYLE PODSTRONY BIO, AUTORSKIEGO LOGO I GALERII
   ========================================================================== */
.author-logo-link {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-left: 6px;
    color: #ffffff;
    text-decoration: none !important;
    position: relative;
    top: -1px;
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.author-logo-link:hover {
    color: #cccccc;
    transform: scale(1.1);
    text-decoration: none !important;
}

.author-logo-link svg {
    width: 11px;
    height: 11px;
    fill: currentColor;
    display: block;
}

/* Podstrona Bio: Dwie kolumny na desktopie */
.bio-content-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 90px;
}

.bio-artist-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    letter-spacing: 0.08em;
    font-weight: 900;
    margin-bottom: 6px;
}

.bio-lead-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #111111;
    margin: 30px 0 50px 0;
}

.bio-lead-text p {
    margin-bottom: 20px;
}

.bio-events-heading {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 50px 0 25px 0;
    border-bottom: 2px solid #000000;
    padding-bottom: 12px;
}

.bio-events-two-columns {
    column-count: 2;
    column-gap: 60px;
    margin-top: 30px;
    margin-bottom: 50px;
}

@media (max-width: 860px) {
    .bio-events-two-columns {
        column-count: 1;
        column-gap: 0;
    }
}

.bio-events-two-columns p {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    line-height: 1.65;
    margin-bottom: 18px;
    padding-left: 18px;
    position: relative;
    color: #222222;
    border-bottom: none !important;
    break-inside: avoid;
    page-break-inside: avoid;
    transition: color var(--transition-fast);
}

.bio-events-two-columns p::before {
    content: "—";
    position: absolute;
    left: 0;
    color: #888888;
    font-weight: 400;
}

.bio-events-two-columns p:hover {
    color: #000000;
}

/* Domknięcie strony Bio (Call to Action / Outro) */
.bio-footer-action {
    margin-top: 60px;
    padding-top: 50px;
    border-top: 2px solid #000000;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.bio-action-title {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: #000000;
}

.bio-action-desc {
    font-size: 0.95rem;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 28px;
}

.bio-action-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.bio-btn-primary {
    display: inline-flex;
    align-items: center;
    background-color: #000000;
    color: #ffffff !important;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 13px 28px;
    border: 2px solid #000000;
    transition: all var(--transition-fast);
}

.bio-btn-primary:hover {
    background-color: #ffffff;
    color: #000000 !important;
}

.bio-btn-secondary {
    display: inline-flex;
    align-items: center;
    background-color: transparent;
    color: #000000 !important;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 13px 28px;
    border: 2px solid #000000;
    transition: all var(--transition-fast);
}

.bio-btn-secondary:hover {
    background-color: #000000;
    color: #ffffff !important;
}

/* ==========================================================================
   NAWIGACJA PROJEKTÓW (POPRZEDNI / NASTĘPNY)
   ========================================================================== */
.project-navigation {
    margin: 70px 0 90px 0;
    padding-top: 40px;
    border-top: 2px solid #000000;
}

.project-nav-grid {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 30px;
}

.project-nav-item {
    flex: 1 1 50%;
    display: flex;
}

.project-nav-prev {
    justify-content: flex-start;
    text-align: left;
}

.project-nav-next {
    justify-content: flex-end;
    text-align: right;
}

.project-nav-link {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 20px 24px;
    background: #ffffff;
    border: 1px solid #000000;
    text-decoration: none;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-fast);
}

.project-nav-prev .project-nav-link {
    align-items: flex-start;
}

.project-nav-next .project-nav-link {
    align-items: flex-end;
}

.project-nav-link:hover {
    border-color: #000000;
    box-shadow: 6px 6px 0px #000000;
    transform: translateY(-2px);
    background-color: #fafafa;
}

.project-nav-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #666666;
    margin-bottom: 8px;
    transition: color var(--transition-fast);
}

.project-nav-link:hover .project-nav-label {
    color: #000000;
}

.project-nav-title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.35;
    color: #000000;
}

@media (max-width: 700px) {
    .project-nav-grid {
        flex-direction: column;
        gap: 16px;
    }
    .project-nav-item {
        width: 100%;
    }
    .project-nav-next {
        text-align: left;
    }
    .project-nav-next .project-nav-link {
        align-items: flex-start;
    }
}

/* ==========================================================================
   11. ASCETYCZNY MODERN ART LIGHTBOX
   ========================================================================== */
.modern-art-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
    user-select: none;
    -webkit-user-select: none;
}

.modern-art-lightbox.is-active {
    visibility: visible;
    opacity: 1;
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 5, 5, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lightbox-ui {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Ascetyczny licznik i tytuł w stylu galerii */
.lightbox-meta {
    position: absolute;
    top: 30px;
    left: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
    font-family: var(--font-mono);
    color: #ffffff;
    z-index: 10;
    pointer-events: none;
}

.lightbox-counter {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 4px;
}

.lightbox-title {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #888888;
}

/* Przyciski UI: większe, ultra-cienkie, ascetyczne */
.lightbox-btn {
    background: transparent;
    border: none !important;
    outline: none !important;
    color: #ffffff;
    cursor: pointer;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0.65;
    transition: opacity var(--transition-fast), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color var(--transition-fast);
}

.lightbox-btn:hover {
    opacity: 1;
    color: #ffffff;
}

/* Krzyżyk zamykania w prawym górnym rogu */
.lightbox-close-btn {
    position: absolute;
    top: 24px;
    right: 32px;
}

.lightbox-close-btn:hover {
    transform: rotate(90deg);
}

/* Ascetyczne cienkie strzałki nawigacji */
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 80px;
}

.lightbox-arrow-prev {
    left: 25px;
}

.lightbox-arrow-next {
    right: 25px;
}

.lightbox-arrow-prev:hover {
    transform: translateY(-50%) translateX(-4px);
}

.lightbox-arrow-next:hover {
    transform: translateY(-50%) translateX(4px);
}

/* Scena obrazu */
.lightbox-stage {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.lightbox-figure {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    background-color: #111111;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 82vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-image.is-loaded {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 768px) {
    .lightbox-meta {
        top: 20px;
        left: 20px;
        gap: 12px;
    }
    .lightbox-title {
        display: none;
    }
    .lightbox-close-btn {
        top: 15px;
        right: 15px;
    }
    .lightbox-arrow {
        width: 44px;
        height: 60px;
    }
    .lightbox-arrow-prev {
        left: 8px;
    }
    .lightbox-arrow-next {
        right: 8px;
    }
    .lightbox-stage {
        max-width: 96vw;
        max-height: 80vh;
    }
    .lightbox-image {
        max-width: 96vw;
        max-height: 78vh;
    }
}


/* Powiększenie szerokości i kafelków galerii Photo Gallery (BWG) na Desktopie */
.page-template-default .container,
.page .container {
    max-width: 1440px !important;
    padding: 0 30px;
}

div[id^="bwg_container"] {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

div[id^="bwg_container"] .bwg-container-0.bwg-album-thumbnails,
div[id^="bwg_container"] .bwg-container-0.bwg-standard-thumbnails,
div[id^="bwg_container"] .bwg_album_compact_0,
div[id^="bwg_container"] .bwg_standart_thumbnails_0 {
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 24px !important;
    padding: 10px 0 !important;
}

/* Desktop: 3 potężne, okazałe kafelki w rzędzie (~440px każdy) */
div[id^="bwg_container"] .bwg-container-0 .bwg-item {
    flex: 0 0 calc(33.333% - 18px) !important;
    max-width: calc(33.333% - 18px) !important;
    width: calc(33.333% - 18px) !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

@media (min-width: 1550px) {
    div[id^="bwg_container"] .bwg-container-0 .bwg-item {
        flex: 0 0 calc(25% - 20px) !important;
        max-width: calc(25% - 20px) !important;
        width: calc(25% - 20px) !important;
    }
}

@media (max-width: 991px) {
    div[id^="bwg_container"] .bwg-container-0 .bwg-item {
        flex: 0 0 calc(50% - 16px) !important;
        max-width: calc(50% - 16px) !important;
        width: calc(50% - 16px) !important;
    }
}

@media (max-width: 580px) {
    div[id^="bwg_container"] .bwg-container-0 .bwg-item {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

div[id^="bwg_container"] .bwg-container-0 .bwg-item a {
    margin: 0 !important;
    display: block !important;
    width: 100% !important;
}

div[id^="bwg_container"] .bwg-container-0 .bwg-item0 {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    border: 1px solid #000000 !important;
    background-color: #000000 !important;
    overflow: hidden !important;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

div[id^="bwg_container"] .bwg-container-0 .bwg-item0:hover {
    transform: scale(1.025) !important;
}

div[id^="bwg_container"] .bwg-container-0 .bwg-item1 {
    width: 100% !important;
    padding-top: 80% !important;
    position: relative !important;
}

div[id^="bwg_container"] .bwg-container-0 .bwg-item2 img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    transition: opacity 0.3s ease !important;
}

div[id^="bwg_container"] .bwg-container-0 .bwg-title2 {
    font-family: var(--font-mono) !important;
    font-size: 1rem !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
}

/* ==========================================================================
   11. RESPONSIVE DESIGN (@MEDIA) & MENU MOBILNE Z SOLIDNYM TŁEM
   ========================================================================== */
@media (max-width: 991px) {
    .baldyga-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .baldyga-bio-preview-columns {
        flex-direction: column !important;
    }

    :root {
        --header-height: 70px;
    }
    
    .nav-toggle {
        display: flex !important;
        z-index: 100002 !important;
        position: relative;
    }
    
    /* Pełny, całkowicie kryjący czarny podkład pod menu mobilne */
    .primary-navigation {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background-color: #000000 !important;
        background: #000000 !important;
        padding: 120px 24px 60px 24px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 100001 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translateY(-15px) !important;
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease !important;
    }
    
    .primary-navigation.is-open {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }
    
    .nav-menu {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 22px !important;
        width: 100% !important;
        max-width: 400px !important;
        margin: 0 auto !important;
        list-style: none !important;
        padding: 0 !important;
    }
    
    .nav-menu a {
        color: #ffffff !important;
        font-family: var(--font-mono) !important;
        font-size: 1.25rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.12em !important;
        text-transform: uppercase !important;
        padding: 8px 16px !important;
        text-align: center !important;
        display: inline-block !important;
    }
    
    .hero-frontpage {
        min-height: 480px;
        padding: 130px 20px 60px 20px;
    }
    
    .hero-subpage {
        min-height: 48vh !important;
        min-height: 420px !important;
        padding: 140px 20px 60px 20px !important;
        margin-bottom: 40px !important;
    }
}

@media (max-width: 600px) {
    .baldyga-blog-grid {
        grid-template-columns: 1fr;
    }
}
