/* BAZOWE USTAWIENIA I RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: Arial, sans-serif; line-height: 1.6; color: #333; background-color: #f9f9f9; overflow-x: hidden; }

/* IMPORT ELEGANCKIEJ CZCIONKI DLA ELEMENTÓW PREMIUM */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400&display=swap');

/* =========================================
   ANIMACJE I EFEKTY PREMIUM (NOWE)
   ========================================= */

/* Efekt pojawiania się tekstu na stronie startowej */
.fade-up-onload {
    opacity: 0;
    transform: translateY(30px);
    animation: smoothFadeUp 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.3s;
}

.fade-in-onload {
    opacity: 0;
    animation: smoothFadeIn 2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes smoothFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes smoothFadeIn {
    to { opacity: 1; }
}

/* Klasy do animacji podczas scrollowania (Intersection Observer) */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   ANIMACJE HOVER NA TYTUŁACH (O AUTORZE)
   ========================================= */
.hover-title {
    transition: color 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: inline-block; /* Konieczne, by transform zadziałał poprawnie na tekście */
    cursor: default;
}

.hover-title:hover {
    color: #d4af37; /* Zmień ten kolor na taki, jaki masz na stronie głównej */
    transform: translateX(10px); /* Delikatne przesunięcie w prawo */
}

/* =========================================
   KASKADOWE OPÓŹNIENIA (WJAZD ELEMENTÓW)
   ========================================= */
/* Pierwszy blok ładuje się z małym opóźnieniem */
.about-row.fade-up-onload .about-text {
    animation: smoothFadeUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.2s;
    opacity: 0;
    transform: translateY(30px);
}

.about-row.fade-up-onload .about-image {
    animation: smoothFadeUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.5s; /* Obraz wjeżdża chwilę po tekście */
    opacity: 0;
    transform: translateY(30px);
}

/* Poprawka, żeby kontener sam w sobie nie resetował opacity dzieci */
.about-row.fade-up-onload {
    animation: none;
    opacity: 1; 
    transform: none;
}

/* =========================================
   NAGŁÓWEK
   ========================================= */
.site-header {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 20px 40px; 
    background-color: rgba(0, 0, 0, 0); 
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border: 0;
}

.menu-btn-lux {
    display: flex;
    align-items: center;
    gap: 10px; 
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 0;
    color: #ffffff; 
    text-transform: uppercase; 
}

.menu-icon {
    font-size: 1.2rem; 
    line-height: 1;
    color: white;
}

.menu-text {
    font-family: 'Montserrat', -apple-system, sans-serif;
    font-size: 0.75rem;      
    font-weight: 400;        
    letter-spacing: 4px;     
    opacity: 0.9;            
    color: white;
    transition: opacity 0.3s, letter-spacing 0.3s;
}

.menu-btn-lux:hover .menu-text {
    opacity: 1;
    letter-spacing: 5px;     
}

.header-center img {
    width: 140px;       
    height: auto;
    display: block;
    margin: 0 auto;
}

.header-left, .header-center, .header-right { flex: 1; }
.header-left { font-family: serif;}

.header-right { 
    display: flex; 
    justify-content: flex-end; 
    gap: 15px;
}

.flag-btn { 
    font-family: 'Montserrat', -apple-system, sans-serif;
    font-size: 0.75rem;       
    font-weight: 400;
    letter-spacing: 2px;      
    text-transform: uppercase;
    color: white; 
    background: none; 
    border: none; 
    cursor: pointer; 
    transition: transform 0.2s, opacity 0.3s; 
    opacity: 0.8;
}
.flag-btn:hover { 
    transform: scale(1.1); 
    opacity: 1;
}

/* =========================================
   MENU BOCZNE (SIDEBAR)
   ========================================= */
.side-menu {
    position: fixed; 
    top: 0; 
    left: -315px; 
    width: 315px; 
    height: 100vh;
    background-color: rgba(20, 20, 20, 0.6); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    transition: left 0.4s cubic-bezier(0.25, 1, 0.5, 1); 
    padding: 60px 30px;
    box-shadow: 2px 0 15px rgba(0,0,0,0.3);
}
.side-menu.active { left: 0; }

.close-btn {
    position: absolute; 
    top: 20px; 
    left: 20px; 
    font-size: 2rem;
    color: #fff; 
    background: none; 
    border: none; 
    cursor: pointer;
    transition: transform 0.3s ease;
}
.close-btn:hover { transform: rotate(90deg); }

.side-nav { 
    display: flex; 
    flex-direction: column; 
    gap: 25px;            
    margin-top: 40px; 
    align-items: flex-end; 
}

.side-nav a {
    font-family: 'Montserrat', -apple-system, sans-serif;
    font-size: 0.8rem;        
    font-weight: 300;         
    color: #fff; 
    text-decoration: none; 
    text-transform: uppercase; 
    letter-spacing: 4px;      
    transition: opacity 0.3s, letter-spacing 0.3s, transform 0.3s;
    text-align: right; 
    width: 100%;       
    opacity: 0.8;
}
.side-nav a:hover { 
    opacity: 1;
    letter-spacing: 5px;      
    transform: translateX(-5px); 
}

.menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); z-index: 9998;
    opacity: 0; visibility: hidden; transition: 0.4s ease-in-out;
    backdrop-filter: blur(4px); 
}
.menu-overlay.active { opacity: 1; visibility: visible; }

/* =========================================
   GŁÓWNE WIDEO Hero (PEŁEN EKRAN)
   ========================================= */
.full-screen-hero {
    position: relative; width: 100%; height: 100vh; 
    display: flex; align-items: center; justify-content: center;
    text-align: center; overflow: hidden;
}
.hero-bg-video {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: -2;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.4); 
    z-index: -1;
}
.full-hero-content { z-index: 1; color: #fff; padding: 20px; }
.full-hero-content h2 {
    font-size: 3rem; line-height: 1.2; text-transform: uppercase;
    letter-spacing: 2px; margin-bottom: 40px; text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}
.full-hero-content span { font-size: 1.5rem; font-weight: normal; font-style: italic; text-transform: none; }
.scroll-down-btn {
    display: inline-block; padding: 15px 40px; background-color: transparent;
    color: #fff; text-decoration: none; text-transform: uppercase;
    font-weight: bold; border: 2px solid #fff; border-radius: 30px; transition: 0.3s;
}
.scroll-down-btn:hover { background-color: #fff; color: #222; }

/* =========================================
   PODZIELONA SEKCJA (WIDEO + TEKST)
   ========================================= */
.hero-section { 
    display: flex; 
    flex-wrap: wrap; 
    width: 100%; 
    min-height: 70vh; 
    background-color: #fff;
}

.hero-video-container { 
    flex: 1 1 50%; 
    position: relative; 
    padding: 0; 
    overflow: hidden; 
    min-height: 400px; 
}

.hero-video { 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1); 
}

.hero-video-container:hover .hero-video {
    transform: scale(1.05);
}

.hero-text-container { 
    flex: 1 1 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 60px 40px; 
}

.about-content-box {
    max-width: 480px; 
    text-align: center; 
}

.about-mini-title {
    font-family: 'Montserrat', -apple-system, sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #111;
    margin-bottom: 15px;
}

.title-divider {
    width: 0; 
    height: 2px;
    background-color: #cca43b; 
    margin: 0 auto 25px auto;
    transition: width 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    transition-delay: 0.4s; 
}

.about-content-box.visible .title-divider {
    width: 50px;
}

.about-content-box p { 
    font-family: 'Montserrat', -apple-system, sans-serif;
    font-size: 0.95rem; 
    font-weight: 300; 
    line-height: 1.8;
    color: #555; 
    margin-bottom: 30px;
}

.button-wrapper-center {
    text-align: center;
    width: 100%;
}

/* =========================================
   SEKCJA "MOJA SZTUKA" (KARUZELA)
   ========================================= */
.my-art-section { 
    padding: 60px 20px; 
    text-align: center; 
    background-color: #f9f9f9; 
}
.section-title { 
    font-size: 2.5rem; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    margin-bottom: 30px; 
}

.art-quote {
    max-width: 600px;
    margin: 20px auto 40px auto;
    padding: 0 10px;
    border: none; 
}

.art-quote p {
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #555; 
}

.art-quote cite {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    display: block;
    font-family: 'Montserrat', sans-serif;
}

.carousel-wrapper {
    position: relative;
    max-width: 1200px; 
    margin: 0 auto 30px auto;
    padding: 0 40px; 
}

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

.carousel-track {
    display: flex;
    gap: 20px; 
    padding: 10px 0;
    margin: 0;
    list-style: none;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); 
}

.carousel-slide {
    flex: 0 0 calc(33.333% - 13.33px); 
    box-sizing: border-box;
}

.gallery-item {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%; /* Opcjonalnie, pomaga trzymać równe proporcje */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.gallery-item:hover {
    transform: translateY(-5px);
    /*box-shadow: 0 15px 35px rgba(0,0,0,0.1);*/
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 500px; /* Tutaj kontrolujesz wielkość. Zmniejsz lub zwiększ tę wartość (np. 300px, 500px) */
    object-fit: contain; /* Mieści całe zdjęcie bez ucinania i bez ściskania */
    border: none;
    margin: 0 auto; /* Wyśrodkowuje obrazek, jeśli jest węższy niż slajd */
}
.gallery-item figcaption { 
    padding: 10px 15px; 
    font-size: 1rem; 
    color: #444; 
    font-style: italic;
    border-top: 1px solid #f1f1f1; 
    text-align: center;
    background: #fff;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    font-size: 1.2rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-btn:hover { 
    background: rgba(0, 0, 0, 0.8); 
    transform: translateY(-50%) scale(1.05);
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

@media (max-width: 768px) {
    .carousel-slide {
        flex: 0 0 100%; 
    }
    .carousel-wrapper { padding: 0 10px; }
    .prev-btn { left: 15px; }
    .next-btn { right: 15px; }
}

.button-wrapper {
    flex-basis: 100%; 
    width: 100%;
    text-align: center;
    margin: 40px 0; 
}

.primary-btn {
    display: inline-block; padding: 15px 40px; background-color: #222; color: #fff;
    text-decoration: none; text-transform: uppercase; font-weight: 300; font-family: 'Montserrat', sans-serif;
    letter-spacing: 2px; font-size: 0.85rem;
    border-radius: 30px; transition: background-color 0.4s, box-shadow 0.4s;
}
.primary-btn:hover { 
    background-color: #cca43b; 
    color: white;
    box-shadow: 0 10px 20px rgba(204, 164, 59, 0.3);
}

.secondary-btn {
    display: inline-block; padding: 10px 20px; background-color: #222; color: #fff;
    text-decoration: none; text-transform: uppercase; font-weight: 300; font-family: 'Montserrat', sans-serif;
    letter-spacing: 2px; font-size: 0.85rem;
    border-radius: 30px; transition: background-color 0.4s, box-shadow 0.4s;
	margin: 5px 5px;
}
.secondary-btn:hover { 
    background-color: #cca43b; 
    color: white;
    box-shadow: 0 10px 20px rgba(204, 164, 59, 0.3);
}

/* ==========================================================================
   DEDYKOWANA SEKCJA "O AUTORZE" - PRZYKLEJONA DO BRZEGÓW, ZMNIEJSZONE CAŁE ZDJĘCIE
   ========================================================================== */
.page-content {
    width: 100%;
    margin: 0;
    padding: 0;
}

.about-rows-section {
    display: flex;
    flex-direction: column;
    width: 100% !important;
    max-width: 100% !important; /* Od brzegu do brzegu monitora */
    padding: 0 !important;
    margin: 0 auto !important;
}

.about-rows-section .about-row:last-child {
    margin-bottom: 0 !important;
}

.about-row {
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: stretch;
    overflow: hidden;
}

.about-row.reverse {
    flex-direction: row-reverse;
}

.about-text {
    flex: 1; /* Tekst zajmuje całą pozostałą przestrzeń ekranu aż do brzegu */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 40px; 
    background-color: #f7f7f7;
    box-sizing: border-box;
}

.about-text h3 {
    font-size: 1.6rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0px;
    color: #222;
    font-weight: 400;
}

.about-text h3::after {
    content: "";
    display: block;
    width: 35px;
    height: 1px;
    background-color: #333;
    margin: 25px auto 0 auto;
}

.about-text p {
    font-size: 1.05rem; 
    line-height: 1.8;
    color: #555;
    max-width: 480px; 
    margin-top: 30px;
}

.about-image {
    flex: 0 0 400px; /* ZMNIEJSZENIE: Sztywne ograniczenie szerokości połówki ze zdjęciem na PC */
    max-width: 400px;
    overflow: hidden;
    position: relative;
    background-color: #f7f7f7;
    display: flex;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain; /* Gwarancja braku ucinania - całe zdjęcie jest widoczne */
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.about-image:hover img {
    transform: scale(1.03);
}

@media (max-width: 1024px) {
    .about-text p {
        font-size: 1rem;
        max-width: 90%; 
    }
    .about-text h3 {
        font-size: 1.4rem;
    }
}

/* =========================================
   STOPKA (WSPÓLNA DLA WSZYSTKICH STRON)
   ========================================= */
.site-footer {
    width: 100% !important;
    text-align: center;
    padding: 50px 20px !important;
    background-color: #1a1a1a !important;
    color: #ddd !important;
    margin-top: 0 !important;
    box-sizing: border-box;
}
.site-footer h2 {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 300 !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    font-size: 1.4rem !important;
    margin-bottom: 20px !important;
    color: #ffffff !important;
}
.site-footer p {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.95rem !important;
    color: #ddd !important;
    margin: 8px 0 !important;
}

.social-links-small {
    margin: 0 0;
    display: flex;
    justify-content: center;
    gap: 3px; 
}

.social-links {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    gap: 30px; 
}

.social-links a {
    color: #ffffff; 
    font-size: 1.5rem; 
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), color 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.social-links a:hover {
    transform: translateY(-5px);
    color: #cca43b; 
}

.site-footer .copyright {
    font-size: 0.85rem !important;
    opacity: 0.5 !important;
    margin-top: 20px !important;
}

/* =========================================
   MEDIA QUERIES (TELEFONY / SMARTFONY)
   ========================================= */
@media (max-width: 768px) {
    .site-header { padding: 15px 20px; }
    .header-center img { width: 100px; }
    .site-title { font-size: 1.5rem; }
    .full-screen-hero { height: 100vh; }
    .full-hero-content h2 { font-size: 2rem; }
    .hero-video-container, .hero-text-container { flex: 1 1 100%; padding: 20px; }
    
    #about-section { min-height: auto; }
    #about-section .hero-text-container { justify-content: center; padding: 40px 20px 20px 20px; }
    #about-section .hero-text-container p { text-align: center; font-size: 1.05rem; }
    #about-section .button-wrapper { text-align: center; padding-right: 0; margin-bottom: 40px; }

    /* Poprawka karuzeli na telefon */
    .gallery-item {
        max-height: 380px !important;
    }
    .gallery-item img {
        height: auto !important;
        max-height: 300px !important;
        object-fit: contain !important;
    }

    /* POPRAWKA DLA SEKCJI "O AUTORZE" NA TELEFONIE */
    .about-rows-section {
        padding: 0 !important;
        margin: 0 auto !important;
    }
    .about-row, .about-row.reverse {
        flex-direction: column !important;
        min-height: auto !important;
        margin-bottom: 0;
    }
    .about-text, .about-image {
        width: 100% !important;
        flex: none !important;
    }
    .about-image {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 45vh !important;
        padding: 10px;
        border-radius: 0;
        box-shadow: none;
    }
    .about-image img {
        width: 100% !important;
        height: auto !important;
        max-height: 45vh !important;
        object-fit: contain !important; 
    }
    .about-text {
        padding: 30px 20px !important;
    }
}

/* =========================================
   POZOSTAŁE STYLE (STRONY GALERII, MASONRY I SUBPAGE)
   ========================================= */
.category-gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.category-title {
    grid-column: 1 / -1; 
    text-align: center;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 30px 0;
    order: 2; 
}

.item-top { order: 1; }
.item-bottom { order: 3; }

.category-item {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
}
.category-item:hover {
    transform: scale(1.03); 
    box-shadow: 0 15px 35px rgba(0,0,0,0.1); 
}

@media (max-width: 768px) {
    .category-gallery-container { grid-template-columns: 1fr; gap: 20px; }
    .category-title { order: -1; font-size: 1.5rem; }
    .item-top, .item-bottom { order: 1; }
}

.site-header.subpage-header {
    background-color: #111111; 
    position: sticky;          
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.subpage-header .site-title, .subpage-header .menu-icon {
    color: #ffffff !important;
}

/* =========================================
   NOWE INTERAKTYWNE PODGLĄDY (LIGHTBOX & ZOOM)
   ========================================= */
.zoomable-img {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
    cursor: pointer;
}

.zoomable-img:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

/* Sztywna siatka: równe rzędy i dokładnie 3 kolumny */
#simple-gallery[data-category="droga_krzyzowa"] {
    display: grid !important;       
    grid-template-columns: repeat(3, 1fr) !important; /* Wymuszenie dokładnie 3 kolumn */
    gap: 20px !important;                             /* Równe odstępy z każdej strony */
    align-items: start;                               /* KLUCZ: Każdy rząd zaczyna się idealnie w jednej linii */
}

/* Zdjęcia: 100% widoczności, zero docinania, zero białych ramek */
#simple-gallery[data-category="droga_krzyzowa"] .zoomable-img {
    width: 100% !important;
    height: auto !important;          /* Zdjęcie samo decyduje o wysokości -> brak białych pasków */
    aspect-ratio: auto !important;    /* Całkowite wyłączenie wymuszonych kwadratów */
    object-fit: contain !important;   /* Gwarancja, że absolutnie nic nie zostanie ucięte */
    display: block;
    background: transparent !important; /* Usunięcie jakiegokolwiek tła pod obrazkiem */
    padding: 0 !important;
}

/* RWD: Na mniejszych ekranach zmniejszamy liczbę kolumn, żeby zdjęcia nie były mikroskopijne */
@media (max-width: 900px) {
    #simple-gallery[data-category="droga_krzyzowa"] { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
    #simple-gallery[data-category="droga_krzyzowa"] { grid-template-columns: repeat(1, 1fr) !important; }
}
.art-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.lightbox-content {
    width: 90%;
    height: 85%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: zoom-in; 
}

#lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    user-select: none;
    -webkit-user-drag: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}

.lightbox-content.zoomed {
    cursor: zoom-out; 
}

.lightbox-content.zoomed #lightbox-img {
    transform: scale(2); 
}

.lightbox-close, .lightbox-info-toggle {
    position: absolute;
    top: 30px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #111;
    cursor: pointer;
    z-index: 10100;
    transition: transform 0.2s, opacity 0.2s;
    opacity: 0.7;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover, .lightbox-info-toggle:hover {
    opacity: 1;
    transform: scale(1.1);
}

.lightbox-close { right: 30px; font-size: 2.5rem; }
.lightbox-info-toggle { right: 90px; font-size: 1.8rem; }

.lightbox-info-panel {
    position: absolute;
    right: 30px;
    top: 90px;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 4px;
    max-width: 300px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-left: 3px solid #cca43b; 
    font-family: 'Montserrat', sans-serif;
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 10050;
    pointer-events: none; 
}

.lightbox-info-panel.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

body.lightbox-open { overflow: hidden; }

/* ==========================================================================
   KOD GALERII WIDEO - RESPNSYWNA SIATKA (3 KOMPUTER / 2 TELEFON)
   ========================================================================== */

/* Domyślny układ: 3 kolumny na dużych ekranach */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 30px 4%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Responsywność na telefonie (ekrany poniżej 768px szerokości) */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr; /* ZMIENIONE Z 2 NA 1: Jedna kolumna na telefonie, filmy jeden pod drugim */
        gap: 25px; /* Nieco większy odstęp, żeby filmy się nie zlewały */
        padding: 15px 5%;
    }
    
    .video-card-title {
        font-size: 1rem !important; 
        margin-top: 10px;
        text-align: center; /* Wyśrodkowanie tytułu na telefonie wygląda lepiej */
    }
}

/* Stylizacja kafelka z filmem */
.video-card {
    cursor: pointer;
    background: transparent; /* Usunięto białe tło i padding, które robiły kafelki za dużymi */
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-thumbnail-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Proporcje 16:9 */
    background-color: #000;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.video-thumbnail-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-card:hover .video-thumbnail-wrapper img {
    transform: scale(1.03);
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.video-play-overlay i {
    color: #ffffff;
    font-size: 2.2rem;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
    transition: transform 0.3s ease, color 0.3s ease;
}

.video-card:hover .video-play-overlay {
    background: rgba(0, 0, 0, 0.05);
}

.video-card:hover .video-play-overlay i {
    transform: scale(1.1);
    color: #d4af37;
}

.video-card-title {
    margin-top: 15px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.4;
    color: #222;
    text-align: center;
    padding: 0 10px;
}
.video-card:hover .video-card-title {
    color: #cca43b; /* Złoty kolor przy najechaniu */
}

/* PRZYBIELONE, MLECZNE TŁO LIGHTBOXA */
.video-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    z-index: 2500;
    align-items: center;
    justify-content: center;
}

.video-lightbox.active {
    display: flex;
}

.video-lightbox-container {
    position: relative;
    width: 85%;
    max-width: 1000px;
    padding-top: 47.8%;
}

.video-lightbox-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.video-lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #111111;
    font-size: 45px;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    z-index: 2600;
}

.video-lightbox-close:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .video-lightbox-close { top: 15px; right: 20px; font-size: 35px; }
    .video-lightbox-container { width: 92%; padding-top: 51.7%; }
}

/* =========================================
   LUKSUSOWE REPREZENTACYJNE WEJŚCIE (ANIMACJE)
   ========================================= */
.gallery-intro-box {
    text-align: center;
    padding: 40px 20px;
    min-height: 200px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 60px auto 40px auto;
    position: relative;
    max-width: 1200px;
}

.gallery-intro-box .section-title {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 300 !important;
    font-size: 2.5rem !important;
    letter-spacing: 4px !important;
    text-transform: uppercase !important;
    color: #111 !important;
    text-align: center !important;
    display: block !important;
    margin: 0 auto !important;
    float: none !important;
    opacity: 0;
    transform: translateY(25px);
    transition: letter-spacing 0.5s cubic-bezier(0.25, 1, 0.5, 1), color 0.3s ease;
    padding-bottom: 10px;
}

.gallery-intro-box .section-title:hover {
    letter-spacing: 9px !important;
    color: #cca43b !important; 
    cursor: default;
}

.lux-fade-up { animation: luxFadeUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

.title-divider-gold {
    width: 0; 
    height: 2px;
    background-color: #cca43b; 
    margin: 0 auto 25px auto;
    transition: width 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    transition-delay: 0.4s; 
}

.lux-expand { animation: luxExpandWidth 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards; animation-delay: 0.4s; }

.section-description {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 300 !important;
    line-height: 1.9 !important;
    letter-spacing: 1px !important;
    color: #555 !important;
    max-width: 580px !important;
    text-align: center !important;
    display: inline-block !important;
    margin: 20px auto 0 auto !important;
    float: none !important;
    opacity: 0;
}

.lux-fade-in { animation: luxFadeInOnly 1.5s ease forwards; animation-delay: 0.8s; }

@keyframes luxFadeUp {
    0% { opacity: 0; transform: translateY(25px); filter: blur(5px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes luxExpandWidth {
    0% { width: 0 !important; }
    100% { width: 50px !important; }
}
@keyframes luxFadeInOnly {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@media (max-width: 768px) {
    .gallery-intro-box { margin: 60px auto 30px auto !important; }
    .gallery-intro-box .section-title { font-size: 1.8rem !important; letter-spacing: 4px !important; }
}

.gold-divider {
    width: 60px;               
    height: 2px;               
    background: linear-gradient(90deg, #d4af37, #f3e5ab, #d4af37); 
    margin: 15px auto;         
    border-radius: 2px;        
}

/* STYLIZACJA POWROTU DO KATEGORII */
.intro-header-wrapper {
    position: relative; 
    display: flex;
    justify-content: center; 
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 15px auto;
    padding: 0 20px;
    min-height: 60px; 
}

.back-to-categories {
    position: absolute;
    left: 20px; 
    top: 50%;
    transform: translateY(-50%); 
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #000000;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.4s ease;
    z-index: 10;
}

.back-btn-gallery {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 10;
}

.back-btn-gallery .arrow-icon {
    font-size: 0.85rem;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.back-btn-gallery:hover {
    color: #d4af37;
}

.back-btn-gallery:hover .arrow-icon {
    transform: translateX(-6px); 
}

@media (max-width: 992px) {
    .back-btn-gallery .back-text {
        display: none;
    }
    .back-btn-gallery .arrow-icon {
        font-size: 1.4rem;
        padding: 5px;
    }
    .back-btn-gallery:hover .arrow-icon {
        transform: scale(1.15);
    }
}

@media (max-width: 576px) {
    .gallery-intro-box .section-title {
        font-size: 1.8rem;
    }
}

.back-to-categories .arrow-icon {
    font-size: 0.9rem;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), color 0.4s ease;
}

.back-to-categories .back-text {
    transition: color 0.4s ease;
}

.back-to-categories:hover {
    color: #d4af37; 
}

.back-to-categories:hover .arrow-icon {
    transform: translateX(-6px); 
}

@media (max-width: 900px) {
    .back-to-categories .back-text {
        display: none; 
    }
    .back-to-categories .arrow-icon {
        font-size: 1.3rem;
        padding: 5px;
    }
    .back-to-categories:hover .arrow-icon {
        transform: scale(1.1);
        color: #d4af37;
    }
}

@media (max-width: 480px) {
    .intro-header-wrapper {
        padding: 0 10px;
    }
    .back-to-categories {
        left: 10px; 
    }
}
/* --- UKŁAD MASONRY DLA DZIEŁ (dziela.html) --- */
.masonry-grid {
    column-count: 3; /* Liczba kolumn na dużych ekranach */
    column-gap: 20px; /* Odstęp między kolumnami */
    padding: 20px;
    width: 100%;
    max-width: 1200px; /* Opcjonalnie: ograniczenie szerokości */
    margin: 0 auto;
}

.masonry-grid img.zoomable-img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px; /* Odstęp w pionie między zdjęciami */
    break-inside: avoid; /* Zapobiega łamaniu/przecinaniu zdjęcia między kolumnami */
    border-radius: 8px; /* Opcjonalnie: zaokrąglone rogi, usuń jeśli nie chcesz */
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Subtelny efekt najechania dla obrazków */
.masonry-grid img.zoomable-img:hover {
    transform: scale(1.02);
}

/* Responsywność dla układu Masonry */
@media (max-width: 992px) {
    .masonry-grid {
        column-count: 2; /* 2 kolumny na średnich ekranach (tablety) */
    }
}

@media (max-width: 576px) {
    .masonry-grid {
        column-count: 1; /* 1 kolumna na telefonach */
    }
}
/* =========================================
   PROSTA, ELEGANCKA SIATKA ZDJĘĆ (ZAMIENIA MASONRY)
   ========================================= */
.simple-gallery-page { 
    padding-top: 10px !important; 
    padding-bottom: 60px; 
}

.simple-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px; 
    padding: 0 20px;
    max-width: 1200px; 
    margin: 30px auto 0 auto !important;
}

.simple-grid img.zoomable-img {
    width: 100%;
    aspect-ratio: 4 / 5; 
    object-fit: cover; 
    border-radius: 4px; 
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); 
    display: block;
}

.simple-grid img.zoomable-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

@media (max-width: 992px) {
    .simple-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .simple-grid {
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    
    .simple-grid img.zoomable-img {
        aspect-ratio: auto; 
        height: auto;
    }
}
/* =========================================
   UKŁAD MASONRY (Tylko dla dziela.html)
========================================= */
.masonry-grid {
    column-count: 3;
    column-gap: 20px;
    padding: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.masonry-grid img.zoomable-img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
    break-inside: avoid;
    border-radius: 8px; /* Usuń to, jeśli nie chcesz zaokrąglonych rogów */
    cursor: pointer;
    transition: transform 0.3s ease;
}

.masonry-grid img.zoomable-img:hover {
    transform: scale(1.02);
}

@media (max-width: 992px) { .masonry-grid { column-count: 2; } }
@media (max-width: 576px) { .masonry-grid { column-count: 1; } }

/* =========================================
   WIDOCZNOŚĆ LIGHTBOXA I PANELU INFO
========================================= */
.art-lightbox {
    display: none; /* Domyślnie ukryty */
}

.art-lightbox.active {
    display: flex; /* Widoczny po dodaniu klasy przez JS */
}

.lightbox-info-panel {
    display: none; /* Domyślnie ukryte informacje */
}

.lightbox-info-panel.active {
    display: block; /* Widoczne po dodaniu klasy przez JS */
}