/* ========================================================================== */
/*  css/style.css  */
/* ========================================================================== */

/* --- Reset & variables -------------------------------------------------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
:root{
    --clr-beige: #d7c7b7;
    --clr-dark:#333;
    --clr-beige-dark: #d7c7b7;
    --clr-light:#fafafa;
    --transition:all .2s ease;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    background: var(--clr-light);
    color: var(--clr-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
a{color:inherit;text-decoration:none;}
img{max-width:100%;display:block;}
main{
    flex-grow: 1;
}

/* --- Layout ------------------------------------------------------------- */
.container{width:min(1200px,90%);margin-inline:auto;padding-block:2rem;border-bottom: var(--clr-light) solid var(--clr-light);}
.centered{text-align:center;}
.cols-2{display:grid;grid-template-columns:1fr 1fr;gap:3rem;}

/* --- Header / Nav ------------------------------------------------------- */
.vr-header{position:sticky;top:0;z-index:100;background:var(--clr-light);}
nav ul{display:flex;gap:1.5rem;list-style:none;justify-content:center;flex-wrap:wrap;}
nav a{padding:.25rem .5rem;border-bottom:2px solid transparent;}
nav a:hover,nav a.active{border-color:var(--clr-dark);}

/* Subnavigation on Painting page */
/*.subnav-wrap{background:var(--clr-beige);}*/
.subnav ul{display:flex;gap:1.5rem;list-style:none;justify-content:center;padding:.5rem 0;}
.subnav a{font-weight:600;letter-spacing:.05em;text-transform:uppercase;}
.subnav a.active{border-bottom:2px solid var(--clr-dark);}

/* --- Gallery grid ------------------------------------------------------- */
.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:1.2rem;margin-top:2rem;}
.gallery-wide {

    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin-top: 2rem;
}
figure{background:#fff;border-radius:.5rem;overflow:hidden;box-shadow:0 2px 4px rgba(0,0,0,.05);transition:var(--transition);}
figure:hover{transform:translateY(-4px);}
figcaption{padding:8px;font-size:.85rem;font-family: 'Helvetica Neue', Arial, sans-serif; text-align:center;}

/* --- Lightbox ----------------------------------------------------------- */
.lightbox{position:fixed;inset:0;background:rgba(0,0,0,.8);display:none;align-items:center;justify-content:center;z-index: 1000}
.lightbox img{max-width:90%;max-height:90%;}
.lightbox .close{position:fixed;top:1rem;right:1rem;font-size:2.5rem;color: #b38b6d;font-weight:100 ;cursor:pointer;}

/* --- Forms -------------------------------------------------------------- */
form{display:grid;gap:.75rem;}
input,textarea{padding:.75rem;border:1px solid #ccc;border-radius:.25rem;font:inherit;}
button{padding:.75rem 1.25rem;border:none;background:var(--clr-dark);color:#fff;border-radius:.25rem;cursor:pointer;transition:var(--transition);}


/* --- Footer ------------------------------------------------------------- */
footer{text-align:center;padding:1.5rem 0;font-size:.8rem;background:var(--clr-beige);}

@media(max-width:800px){.cols-2{grid-template-columns:1fr;}}

.filter-btn.active {
    background-color: #ccc;
}

.subnav button {
    padding: 10px 20px;
    background: none;
    border: none;
    font-weight: bold;
    cursor: pointer;
}
.homepage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    padding: 2rem 0;
}

.homepage-art img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.homepage-statement {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.artist-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #d7c7b7;
    display: block;
    margin-left: auto;
    margin-right: 0;
}

.statement-text {
    font-size: 1rem;
    line-height: 1.6;
}
/* HEADER */
/* HEADER */
.vr-header {
    text-align: center;
    background-color: white;
    /* REMOVE box-shadow and horizontal padding from here */
}

/* Apply shadow and padding to the container inside the header */
.vr-header .container {
    box-shadow: 0 3px 0 var(--clr-beige);
}

.logo-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.logo-text h1 {
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
    margin: 0;
}

.logo-text p {
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin: 0;
    font-weight: normal;
}

/* NAWIGACJA */
.main-nav {
    background-color: var(--clr-beige); /* kremowy */
    text-align: center;
    margin-left: 2rem;
    margin-right: 2rem;
    /*padding: 0.5rem 0;*/
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--clr-dark);
    font-weight: 300;
    padding-bottom: 4px;
    position: relative;
    text-transform: uppercase;

}

/*.main-nav a.active {
    font-weight: bold;
}*/

.logo-block img {
    width: 80px; /* lub np. 100px, zależnie od efektu */
    height: auto;
    display: block;
    margin-bottom: 0.5rem;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #333
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        position: absolute;
        top: 0px;
        right: 0px;
        z-index: 1001;/* Pokazuj hamburger tylko na małych ekranach */
    }
    .main-nav {
        display: none;
        background-color: var(--clr-beige);
        padding: 1rem;
        margin-right: 1rem;
        margin-left: 1rem;
    }

    .main-nav.show {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav li {
        text-align: center;
    }
}

.container {
    width: min(1200px, 90%);
    margin-inline: auto;
    padding-block: 0.5rem;
}

/* --- przyciski w subnawigacji --- */
.subnav .filter-btn {
    position: relative;          /* potrzebne, aby ::after “wkleił się” pod tekst */
    background: none;
    border: none;
    padding: .25rem .75rem;
    font: inherit;
    color: inherit;
    cursor: pointer;
    transition: opacity .2s ease;
    text-transform: uppercase;
}

.subnav .filter-btn:hover { opacity: .8; }

/* --- stan aktywny --- */
.subnav .filter-btn.active {
    font-weight: 500;           /* lekko pogrub, żeby tytuł był czytelny */
}

/* delikatna kreska (1 px) dodana pseudo‑elementem */
.subnav .filter-btn.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;               /* odstęp od liter */
    width: 100%;
    height: 1px;                /* grubość linii */
    background-color: currentColor; /* subtelny, nie krzyczący */
}


/* boczny margin\

 */
/* style.css */
.container{
    width:min(1200px,90%);
    margin-inline:auto;
    padding-inline: .5rem;     /* lub 2rem – jak wolisz */
}

/* ========================= */
/*   GALERIA MALARSTWA       */
/* ========================= */

.gallery-section {
    margin-top: 3rem;
    margin-bottom: 3rem;
    text-align: center;
}

.gallery-section > h2 {
    font-size: clamp(2rem, 2.5vw, 2.5rem);
    font-weight: lighter;
    letter-spacing: 0.05em;
    margin-bottom: 3rem;
    text-transform: uppercase;
    color: #d9c9b8;
}

/* Siatka */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 4rem 3rem;
    max-width: 1100px;
    margin-inline: auto;

    /* NOWE: wyrównanie poziome + **dolne wyrównanie** */
    justify-items: center;
    align-items: end; /* <-- klucz: figury spadną na dół swoich ścieżek */
}

/* Element */
.artwork {
    width: 100%;
    max-width: 320px;
    text-align: center;
    background: none;
    box-shadow: none;
    border-radius: 0;
}

/* Obraz */
.artwork > img {
    width: 100%;
    height: auto;
    display: block;
}


/* Podpis */
.artwork > figcaption {
    margin-top: 0.3rem;
    font-size: 0.6rem;
    line-height: 1.3;
    color: #555;
    text-align: left;
}

.artwork .art-title {
    font-weight: 400;
    color: #333;
}

.artwork .art-size {
    font-weight: 200;
    color: #777;
}

/* ========================= */
/*   GALERIA Sculptures-podpisy       */
/* ========================= */


/* Rzeźby – używa tych samych styli co malarstwo, jeśli chcesz spójności */
#sculpture-gallery .artwork {
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
    text-align: center;
}

/* wspólny styl obrazów */
#sculpture-gallery .artwork > img {
    width: 100%;
    height: auto;
    display: block;
}

/* podpis */
#sculpture-gallery .art-caption {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    line-height: 1.3;
    color: #555;
}

#sculpture-gallery .art-title {
    font-weight: 500;
    color: #333;
}

#sculpture-gallery .art-size {
    font-weight: 300;
    color: #777;
}

#acrylic-gallery-wide.gallery {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Tworzy dwie równe kolumny */
    gap: 3rem; /* Dopasowuje odstępy do reszty galerii */
    ustify-items: center;
    ustify-items: center;
    align-items: end;
}

/* 2. Usuwa ograniczenie szerokości dla prac w tej konkretnej galerii */
#acrylic-gallery-wide .artwork {
    max-width: none; /* NAJWAŻNIEJSZE: Usuwa limit 320px */
}


/* ========================================================================== */
/* PHONE and tablet
/* ========================================================================== */

@media (max-width: 768px) {
    .homepage-grid {
        grid-template-columns: 1fr;
        flex-direction: column-reverse;
    }

    .homepage-art,
    .homepage-statement {
        width: 100%;
    }

    .homepage-art img,
    .artist-photo {
        width: 140px;
        height: 140px;
    }
    .vr-header .container {
        display: flex;
        flex-direction: column; /* Zmiana na układ w kolumnie */
        align-items: center;
        gap: 0.5rem;
    }
    .homepage-art img {
        display: none;
    }
    #acrylic-gallery-wide.gallery {
        grid-template-columns: 1fr;
    }
}


.contact-section {
    text-align: center;
    padding-block: 3rem;
}

.contact-section h1 {
    font-size: clamp(2rem, 2.5vw, 2.5rem);
    font-weight: lighter;
    letter-spacing: 0.05em;
    margin-bottom: 3rem;
    text-transform: uppercase;
    color: #d9c9b8;
}

.contact-section p {
    max-width: 760px;
    margin-inline: auto;
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.2;
}

.contact-info {
    margin-top: 2.5rem;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--clr-dark);
}

.contact-info a {
    color: var(--clr-dark);
    text-decoration: underline;
}

.contact-image {
    margin-top: 3rem;
    max-width: 600px;
    margin-inline: auto;
}

.contact-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.statement-text > h2 {
    font-size: clamp(2rem, 2.5vw, 2.5rem);
    font-weight: lighter;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    color: #d9c9b8;
}
.statement-text > p{
    font-family: open-sans, sans-serif;
}
/* --- Lightbox Navigation Arrows (Updated) --- */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: #b38b6d;      /* ZMIANA: Ten sam kolor co 'X' do zamykania */
    cursor: pointer;
    padding: 0 1rem;     /* ZMIANA: Zmniejszony padding boczny */
    user-select: none;
    display: none;
    font-weight: 100;
    transition: opacity 0.2s ease; /* ZMIANA: Płynniejsze przejście dla hover */
    z-index: 1001;       /* Dodane, aby strzałki były na pewno na wierzchu */
}

/* ZMIANA: Lepszy efekt hover, który nie dodaje tła */
.lightbox-nav:hover {
    opacity: 0.7;
}

.lightbox-nav.prev {
    left: 33%; /* Blisko lewej krawędzi */
}

.lightbox-nav.next {
    right: 33%; /* Blisko prawej krawędzi */
}

/* Style tylko dla większych ekranów (tablety, komputery) */
@media (max-width: 1000px) {
    .lightbox-nav.prev {
        left: 1%; /* Odsunięcie od krawędzi, tak jak chcesz na komputerze */
    }

    .lightbox-nav.next {
        right: 1%; /* Odsunięcie od krawędzi, tak jak chcesz na komputerze */
    }
}
@media (max-width: 2300px) {
    .lightbox-nav.prev {
        left: 1%; /* Odsunięcie od krawędzi, tak jak chcesz na komputerze */
    }

    .lightbox-nav.next {
        right: 1%; /* Odsunięcie od krawędzi, tak jak chcesz na komputerze */
    }
}
