        :root {
			--bg-deep: #121025ba;
            --bg-panel: #171523fa;
            /*--bg-deep: #1E1B3D;
            --bg-panel: #1c1a2e;*/
            --dominant: #701A5E;
            --accent: #D42E68;
            --accent2: #E3003B;
            --gray: #4B4B4B;
            --burgundy: #4A1A2A;
            --text: #e8dce8;
            --text-soft: #c8b8cc;
            --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
            --radius: 12px;
            --cell-size: 175px;
            --transition: 0.28s ease;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        html {
			font-size: 18px;
            height: 100%;
            scroll-behavior: smooth;
        }
        body {
            /*background: var(--bg-deep);
            background-image:
                radial-gradient(ellipse at 50% 0%, rgba(112, 26, 94, 0.25) 0%, transparent 65%),
                radial-gradient(ellipse at 85% 100%, rgba(74, 26, 42, 0.3) 0%, transparent 55%),
                radial-gradient(ellipse at 15% 100%, rgba(30, 27, 61, 0.9) 0%, transparent 55%);*/
            background: linear-gradient(180deg, #1E1B3D 0%, #472323 100%);
            background-attachment: fixed;
            color: var(--text);
            font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, 'Times New Roman', Times, serif;
            font-size: 18px;
            min-height: 100%;
            line-height: 1.5;
        }

        /* ===== LAYOUT ===== */
        .layout {
            display: flex;
            max-width: 1100px;
            margin: 0 auto;
            padding: 20px 10px 10px;
            gap: 24px;
            /*align-items: flex-start;*/
        }

        /* ===== HEADER ===== */
        .page-header {
            text-align: center;
            padding: 20px 0 0 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 16px;
            flex-wrap: wrap;
            /* height: 100vh; */
        
        }
        .page-header .tytul {
            font-size: clamp(14px, 6vw, 38px);
            font-style: italic;
            font-weight: bold;
            color: #e8b8e0;
            /* text-shadow: 0 0 30px rgba(212, 46, 104, 0.45), 2px 2px 4px #000; */
            text-shadow:
                -2px -2px 26px  rgba(212, 46, 104, 0.30),
                2px -2px 26px  rgba(212, 46, 104, 0.30),
                -2px  2px 26px  rgba(212, 46, 104, 0.30),
                2px  2px 26px  rgba(212, 46, 104, 0.30),
                -1px -1px 1px black,
                1px -1px 1px black,
                -1px  1px 1px black,
                1px  1px 1px black;
            letter-spacing: 1px;
        }
        .page-header .podtytul {
            font-size: clamp(12px, 3vw, 26px);
            font-style: italic;
            font-weight: bold;
            color: var(--text-soft);
            /* text-shadow: 1px 1px 3px #000; */
            text-shadow:
                -2px -2px 26px  rgba(212, 46, 104, 0.30),
                2px -2px 26px  rgba(212, 46, 104, 0.30),
                -2px  2px 26px  rgba(212, 46, 104, 0.30),
                2px  2px 26px  rgba(212, 46, 104, 0.30),
                -1px -1px 1px black,
                1px -1px 1px black,
                -1px  1px 1px black,
                1px  1px 1px black;
            margin-top: -2px;
        }

        /* ===== SIDEBAR ===== */
        .sidebar {
            width: 230px;
            flex-shrink: 0;
            position: sticky;
            top: 20px;
            background: var(--bg-panel);
            border: 1px solid #3a2a3e;
            border-radius: var(--radius);
            padding: 22px 16px 18px;
            box-shadow: var(--shadow);
            z-index: 10;
            transition: var(--transition);
			align-self: flex-start; 
        }
        .sidebar h3 {
            font-size: 1.3rem;
            font-style: italic;
            color: #e8b8e0;
            text-align: center;
            margin-bottom: 14px;
            padding-bottom: 10px;
            border-bottom: 1px solid #3a2a3e;
            /* text-shadow: 1px 1px 2px #000; */
            text-shadow:
                -2px -2px 26px  rgba(212, 46, 104, 0.35),
                2px -2px 26px  rgba(212, 46, 104, 0.35),
                -2px  2px 26px  rgba(212, 46, 104, 0.35),
                2px  2px 26px  rgba(212, 46, 104, 0.35),
                -1px -1px 1px black,
                1px -1px 1px black,
                -1px  1px 1px black,
                1px  1px 1px black;
        }
        .sidebar nav ul {
            list-style: none;
        }
        .sidebar nav li {
            border-bottom: 1px solid #2e2030;
            padding: 8px 0;
        }
        .sidebar nav li:last-child {
            border-bottom: none;
        }
        .sidebar nav a {
            color: var(--text-soft);
            text-decoration: none;
            font-style: italic;
            font-weight: bold;
            font-size: 1.05rem;
            display: block;
            padding: 4px 8px;
            border-radius: 6px;
            transition: var(--transition);
            text-shadow: 1px 1px 2px #000;
        }
        .sidebar nav a:hover,
        .sidebar nav a.active {
            color: #ffb0d0;
            background: rgba(112, 26, 94, 0.25);
        }
        .sidebar nav a.active {
            pointer-events: none;
            opacity: 0.9;
            border-left: 3px solid var(--accent);
            padding-left: 13px;
        }
        .recent-box {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-top: 18px;
            padding-top: 14px;
            border-top: 1px solid #3a2a3e;
            text-align: center;
        }
        .recent-box h4 {
            font-size: 1rem;
            font-style: italic;
            color: #c8a8c8;
            margin-bottom: 10px;
            /* text-shadow: 1px 1px 2px #000; */
            text-shadow:
                -2px -2px 26px  rgba(212, 46, 104, 0.30),
                2px -2px 26px  rgba(212, 46, 104, 0.30),
                -2px  2px 26px  rgba(212, 46, 104, 0.30),
                2px  2px 26px  rgba(212, 46, 104, 0.30),
                -1px -1px 1px black,
                1px -1px 1px black,
                -1px  1px 1px black,
                1px  1px 1px black;
        }

        /* ===== MAIN CONTENT ===== */
        .content {
            flex: 1;
            min-width: 0;
            background: var(--bg-panel);
            border: 1px solid #3a2a3e;
            border-radius: var(--radius);
            padding: 22px 20px 24px;
            box-shadow: var(--shadow);
        }
        .content>h3 {
            font-size: 1.6rem;
            font-style: italic;
            color: #e8b8e0;
            text-align: center;
            margin-bottom: 20px;
            padding-bottom: 12px;
            border-bottom: 1px solid #3a2a3e;
            /* text-shadow: 1px 1px 2px #000;
            text-shadow: 0px 0px 28px var(--accent);*/
            text-shadow:
                -2px -2px 26px  rgba(212, 46, 104, 0.35),
                2px -2px 26px  rgba(212, 46, 104, 0.35),
                -2px  2px 26px  rgba(212, 46, 104, 0.35),
                2px  2px 26px  rgba(212, 46, 104, 0.35),
                -1px -1px 1px black,
                1px -1px 1px black,
                -1px  1px 1px black,
                1px  1px 1px black;
        }
        .section-label {
            font-size: 1.1rem;
            font-style: italic;
            color: #d4a8cc;
            margin: 18px 0 10px 6px;
            /* text-shadow: 1px 1px 2px #000; */
            text-shadow:
                -2px -2px 26px  rgba(212, 46, 104, 0.40),
                2px -2px 26px  rgba(212, 46, 104, 0.40),
                -2px  2px 26px  rgba(212, 46, 104, 0.40),
                2px  2px 26px  rgba(212, 46, 104, 0.40),
                -1px -1px 1px black,
                1px -1px 1px black,
                -1px  1px 1px black,
                1px  1px 1px black;
        }
        .section-label.sold {
            border-top: 2px solid #3a2a3e;
            padding-top: 18px;
            margin-top: 28px;
        }

		/* ===== TREŚĆ ===== */
		.tresc {
			text-shadow: 1px 1px 2px #000;
			font-style: italic;
			font-size: 1.05rem;
			text-justify: auto;
			/*text-shadow:
                -1px -1px 1px black,
                1px -1px 1px black,
                -1px  1px 1px black,
                1px  1px 1px black;*/
		}
		.tresc p {
			margin:10px 25px 10px 25px;
			text-indent: 20px;
		}
		/*.tresc h3 {
			color: #efddef;
			text-shadow: #110022 2px 2px 2px;
			font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", Times, serif;
			font-style: italic;
			font-size: 26px;
			font-weight: bold;
			margin-top: 15px;
			margin-left: auto;
			margin-right: auto;
			margin-bottom: 20px;
			border-bottom-color: #313131;
			border-bottom-style: solid;
			border-bottom-width: 1px;
			width:50%;
			text-align:center;
			padding-bottom:15px;
		}*/
		.tresc a {
			font-style: italic;
			font-weight: bold;
			text-decoration: none;
			text-shadow: #660066 2px 2px 2px;
			color: #efddef;
		}
		.tresc a:hover {
			color: #ff00ff;
			text-decoration: none;
		}
		.tresc a:active {
			color: #8f0fee;
		}

        /* ===== GALLERY GRID ===== */
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(var(--cell-size), 1fr));
            gap: 12px;
            justify-items: center;
            justify-content: center;
            width: 100%;
        }

        .art-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: var(--cell-size);
            background: #14121f;
            border: 1px solid #2e2432;
            border-radius: 10px;
            overflow: hidden;
            text-decoration: none;
            color: var(--text-soft);
            transition: var(--transition);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
            cursor: pointer;
        }
        .art-card:hover {
            border-color: var(--accent);
            box-shadow: 0 0 18px rgba(212, 46, 104, 0.35);
            transform: translateY(-3px);
        }
        .art-card .thumb-wrap {
            width: 100%;
            height: 140px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #14121f;
            padding: 6px;
        }
        .art-card img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            display: block;
            transition: var(--transition);
        }
        .art-card:hover img {
            transform: scale(1.04);
        }
        .art-card .cap {
            width: 100%;
            /* height: 52px; */
            padding: 7px 6px 8px;
            text-align: center;
            font-size: 0.8rem;
            font-style: italic;
            background: #1a1625;
            border-top: 1px solid #2e2432;
            line-height: 1.3;
            text-shadow: 1px 1px 1px #000;
            min-height: 42px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            flex: 1;           /* rozciągnie caption na całe wolne miejsce */
        }

        /* ===== LIGHTBOX ===== */
        .lightbox-overlay {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 9999;
            background: rgba(20, 16, 30, 0.92);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }
        .lightbox-overlay.active {
            display: flex;
        }
        .lightbox-overlay .lb-img {
            max-height: 82vh;
            max-width: 92vw;
            object-fit: contain;
            border-radius: 8px;
            box-shadow: 0 8px 40px rgba(0, 0, 0, 0.7);
            cursor: pointer;
            z-index: 1;
        }
        .lightbox-overlay .lb-caption {
            color: #d4b8d4;
            font-style: italic;
            margin-top: 10px;
            font-size: 1rem;
            text-shadow: 1px 1px 3px #000;
            z-index: 1;
            text-align: center;
            max-width: 90vw;
            pointer-events: none;
        }
        .lightbox-overlay .lb-close {
            position: fixed;
            top: 18px;
            right: 22px;
            z-index: 10001;
            background: rgba(30, 27, 61, 0.8);
            color: #ffb0d0;
            border: 1px solid #5a3a50;
            font-size: 1.8rem;
            width: 42px;
            height: 42px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
            text-shadow: none;
            font-family: inherit;
        }
        .lightbox-overlay .lb-close:hover {
            background: var(--dominant);
            color: #fff;
            border-color: var(--accent);
            box-shadow: 0 0 16px rgba(212, 46, 104, 0.5);
            transform: scale(1.1);
        }
        .lightbox-overlay .lb-expand {
            position: fixed;
            bottom: 22px;
            right: 22px;
            z-index: 10001;
            background: rgba(30, 27, 61, 0.85);
            color: #e8b8e0;
            border: 1px solid #5a3a50;
            padding: 9px 16px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 0.9rem;
            font-style: italic;
            font-family: inherit;
            text-decoration: none;
            transition: var(--transition);
            text-shadow: 1px 1px 2px #000;
            white-space: nowrap;
        }
        .lightbox-overlay .lb-expand:hover {
            background: var(--dominant);
            color: #fff;
            border-color: var(--accent);
            box-shadow: 0 0 16px rgba(212, 46, 104, 0.5);
        }

        /* ===== FOOTER ===== */
        .page-footer {
            text-align: center;
            padding: 12px 16px 20px;
            font-size: 0.85rem;
            color: #9a8a9a;
            text-shadow: 1px 1px 2px #000;
        }
        .page-footer a {
            color: var(--accent);
            text-decoration: none;
            font-weight: bold;
        }
        .page-footer a:hover {
            color: #FFBB6C;
            text-decoration: none;
        }

        /* ===== HAMBURGER & CLOSE BTN ===== */
        .menu-btn {
            display: none;
            position: fixed;
            top: 14px;
            left: 14px;
            z-index: 1000;
            background: rgba(30, 27, 61, 0.75);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            color: #e0c8e0;
            padding: 7px 13px;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 700;
            font-size: 1.4rem;
            letter-spacing: 1px;
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
            border: 1px solid #4a3850;
            text-shadow: -1px -1px 1px #000, 1px -1px 1px #000, -1px 1px 1px #000, 1px 1px 1px #000;
            transition: var(--transition);
        }
        .menu-btn:hover {
            background: rgba(112, 26, 94, 0.55);
            color: #ffb0d0;
            transform: scale(1.1);
        }
        .close-btn {
            display: none;
            position: fixed;
            top: 14px;
            left: 14px;
            z-index: 1002;
            color: #ffb0d0;
            background: #2f2040;
            width: 40px;
            height: 40px;
            border-radius: 6px;
            text-decoration: none;
            font-weight: bold;
            font-size: 1.8rem;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
            text-shadow: -1px -1px 1px #000, 1px -1px 1px #000, -1px 1px 1px #000, 1px 1px 1px #000;
            transition: var(--transition);
            /* CENTROWANIE */
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .close-btn:hover {
            background: var(--dominant);
            color: #fff;
            transform: scale(1.1);
        }
        /* Wyśrodkowanie ikon SVG w przyciskach zamykania */
        .close-btn svg,
        .lb-close svg {
            display: block;
            width: 20px;
            height: 20px;
            pointer-events: none;  /* kliknięcie przechodzi przez SVG do przycisku */
        }

        /* Dla lightboxa może być nieco większy */
        .lb-close svg {
            width: 22px;
            height: 22px;
        }

        /* ===== MOBILE ===== */
        @media (max-width: 768px) {
            .layout {
                flex-direction: column;
                padding: 16px 10px 24px;
                gap: 14px;
            }
            .sidebar {
                position: fixed;
                top: 0;
                left: 0;
                width: 270px;
                height: 100vh;
                z-index: 999;
                border-radius: 0 12px 12px 0;
                transform: translateX(-100%);
                transition: transform 0.32s ease, z-index 0.32s step-end;
                box-shadow: 4px 0 20px rgba(0, 0, 0, 0.7);
                border-left: none;
                padding-top: 50px;
                overflow-y: auto;
            }
            .sidebar:target {
                transform: translateX(0);
                z-index: 1001;
                transition: transform 0.32s ease, z-index 0.32s step-start;
            }
            .sidebar:target .close-btn { display: flex !important; }

            .menu-btn {
                display: block;
            }
            
            .content {
                width: 100%;
                align-self: stretch;
                padding: 16px 8px 18px;
            }
            .gallery-grid {
                gap: 8px;
            }
            :root {
                --cell-size: 150px;
            }
            .art-card .thumb-wrap {
                height: 115px;
            }
            .art-card .cap {
                font-size: 0.72rem;
                min-height: 36px;
            }
            .lightbox-overlay .lb-close {
                top: 10px;
                right: 10px;
                width: 36px;
                height: 36px;
                font-size: 1.4rem;
            }
            .lightbox-overlay .lb-expand {
                bottom: 12px;
                right: 10px;
                padding: 7px 12px;
                font-size: 0.78rem;
            }
        }
        @media (max-width: 400px) {
            :root {
                --cell-size: 130px;
            }
            .content {
                padding: 14px 4px 16px;
            }
            .gallery-grid {
                gap: 6px;
            }
            .art-card .thumb-wrap {
                height: 100px;
            }
            .art-card .cap {
                font-size: 0.68rem;
                min-height: 32px;
                padding: 5px 4px 6px;
            }
            .sidebar {
                width: 250px;
            }
        }
        @media (min-width: 769px) {
            .close-btn {
                display: none !important;
            }
            .menu-btn {
                display: none !important;
            }
        }