:root {

    --border-radius: 25px;

    --spring-easing: linear(0, 0.0018, 0.0069 1.15%, 0.026 2.3%, 0.0637, 0.1135 5.18%, 0.2229 7.78%, 0.5977 15.84%, 0.7014, 0.7904, 0.8641, 0.9228, 0.9676 28.8%, 1.0032 31.68%, 1.0225, 1.0352 36.29%, 1.0431 38.88%, 1.046 42.05%, 1.0448 44.35%, 1.0407 47.23%, 1.0118 61.63%, 1.0025 69.41%, 0.9981 80.35%, 0.9992 99.94%);

}



body{

    display:flex;

    justify-content: start;

    align-items: center;

    flex-direction: column;

    background-color: #beb0bf;

    /* background:linear-gradient(to bottom right, #beb0bf 60%, lightgreen); */

    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;

    margin: 0;

    /* padding: 5px; */

    min-height: 100vh;
    height: auto;
    overflow-x: hidden;

}



img{

    border: 2px solid white;

}



.logo{

    display: flex;

    height: calc(10vh - 10px);

    align-items: center;

    justify-content: center;

    font-size: 2rem;
}

.logo img{

    border: none !important;

}



.nav{

    display: flex;

    height: calc(7.5vh - 10px);   

    width: 60%;

    background-color: white;

    justify-content: space-evenly;

    align-items: center;

    border-radius:var(--border-radius);

    padding:0;

    box-shadow: -1px 4px 5px 0px grey;

}





.nav button{

    width: 7vw;

    height: 80%;

    border-radius: var(--border-radius);

    cursor:pointer;

    background:transparent;

    border:none;

    overflow: hidden;

    /* transition: background-color 0.3s ease, color 0.3s ease; */

    /* anchor-name: --hovered;  */

}



.nav span{

    font-size: 1.15rem;

    font-weight: 100;

    width: 100%;

}

.anchored-pointer{

    background-color: transparent;

    border: 1px solid darkgrey;

    border-radius:var(--border-radius);

    width: 7vw;

    height: 5vh;

    position: absolute;

    position-anchor: --selected;

    transition: all 1s var(--spring-easing);

    top: anchor(left);

    left: calc(anchor(left) - 1px);

    display: block;

    pointer-events: none;

}



.selected {

  background-color: darkgrey !important;

  color: white;

}









/* Index */



#index-home{

    display: flex;

    flex-direction: row;

    width: calc(100vw - 10px);

    height: calc(84.5vh - 10px);

    align-items: center;

    justify-content: center;



}



.agenda{

    width: 25%;

    height: 75%;

    display: flex;

    flex-direction: column;

    /* justify-content: center; */

    align-items: center;

}



.agenda ul{

    width: 80%;

    /* border-right: 3px solid black; */

    align-self: center;

}

.agenda li{
    margin-bottom: 2vh;
}



.home-img{

    display: flex;

    justify-content: center;

    align-items: center;

    justify-self: flex-end;

    width: 75%;

    height: 100%;

    overflow: hidden;

}



.home-img img{

    max-height: 70vh ;
    min-height: 40vh;
    border-radius: 12px;

}





/* ================================= */
/* SCHILDERIJEN SECTION */
/* ================================= */

#schilderijen-home{
    min-height: calc(84.5vh - 10px);
    height: auto;
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 0 1.5rem;

    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

#schilderijen-home h2{
    align-self: center;
}

/* ================================= */
/* SLIDESHOW WRAPPER */
/* ================================= */

.slideshow-wrapper{
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;

    display: flex;
    justify-content: center;
}

/* ================================= */
/* SCROLL CONTAINER */
/* ================================= */

    .slideshow {
        width: 100%;        /* full width */
        height: auto;

        overflow-x: auto;
        overflow-y: hidden;
        padding: 16px 0;
        box-sizing: border-box;

        scrollbar-width: none;
        overscroll-behavior: contain;
    }

.slideshow::-webkit-scrollbar{
    display: none;
}


/* ================================= */
/* IMAGE TRACK */
/* ================================= */

.slide-track{
    display: flex;
    align-items: center;
    gap: 3vw;
    height: auto;

    padding: 0 5%;
    box-sizing: border-box;
}


/* ================================= */
/* IMAGES */
/* ================================= */

.slideshow img {
    max-height: 420px;   /* 👈 control actual size */
    height: auto;
    width: auto;

    object-fit: contain;
    cursor: pointer;

    border-radius: 8px;
    border: 0;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        opacity 0.3s ease;

    box-shadow: none;

}

/* .slideshow img:hover{
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.22);
} */

/* ================================= */
/* NAVIGATION ARROWS */
/* ================================= */

.slide-btn{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    border: none;

    background: rgba(255, 255, 255, 0);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);

    font-size: 22px;
    cursor: pointer;

    opacity: 0;
    transition: opacity 0.25s ease, transform 0.2s ease;

    z-index: 20;
}

.slide-btn.left{
    left: 20px;
}

.slide-btn.right{
    right: 20px;
}

.slideshow-wrapper:hover .slide-btn{
    opacity: 1;
}

.slide-btn:hover{
    background: white;
    transform: translateY(-50%) scale(1.05);
}


/* ================================= */
/* TOUCH DEVICES */
/* ================================= */

@media (hover: none){
    .slide-btn{
        opacity: 1;
    }
}
/* ================================= */
/* LIGHTBOX BACKDROP */
/* ================================= */

#lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;

    background: rgba(0,0,0,0.88);

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

#lightbox.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transition: opacity 0.35s ease;
}


/* ================================= */
/* MAIN LAYOUT */
/* ================================= */

.lightbox-inner{
    width:95vw;
    height:85vh;

    display:grid;
    grid-template-columns:80% 20%;

    position:relative;

    transform:scale(0.95);
    opacity:0;
    transition:transform 0.35s ease, opacity 0.35s ease;
}

#lightbox.active .lightbox-inner{
    transform:scale(1);
    opacity:1;
}


/* ================================= */
/* IMAGE FRAME (KEY FIX) */
/* ================================= */

.lightbox-image-frame{

    display:flex;
    justify-content:center;
    align-items:center;

    width:100%;
    height:100%;

    overflow:hidden;
}


/* ================================= */
/* IMAGE */
/* ================================= */

#lightbox-img{
    max-width:85%;
    max-height:95%;
    width:auto;
    height:auto;

    object-fit:contain;

    border:2px solid white;
    background:black;

    transition:opacity 0.25s ease, transform 0.25s ease;
}

#lightbox-img.fade-out{
    opacity:0;
    transform:scale(0.98);
}


/* ===== FRAME (handles shadow) ===== */

.slide-frame{
    flex: 0 0 auto;
    display: inline-flex;
    align-items: flex-start;
    border-radius:12px;
    box-shadow:0 8px 20px rgba(0,0,0,.25);
}


/* ===== SLIDE ITEM ===== */

.slide-item{
    position:relative;
    display:block;
    height:auto;
    overflow:hidden;
    border-radius:12px;
    cursor:pointer;
}


/* ===== IMAGE ===== */

.slide-item img{
    width:auto;
    display:block;
    vertical-align: top;
}


/* ===== OVERLAY ===== */

.painting-overlay{
    position:absolute;
    inset:0;

    display:flex;
    flex-direction:column;
    justify-content:flex-end;

    padding:18px;

    background:linear-gradient(
        to top,
        rgba(0,0,0,.85) 0%,
        rgba(0,0,0,.6) 40%,
        rgba(0,0,0,0) 75%
    );

    opacity:0;
    transform:translateY(15px);

    transition:
        opacity .3s ease,
        transform .3s ease;
}

.painting-overlay.show{
    opacity:1;
    transform:translateY(0);
}


/* ===== TEXT ===== */

.painting-overlay h3{
    margin:0 0 6px 0;
    font-size:18px;
    font-weight:600;
    color:white;
}

.painting-overlay p{
    margin:2px 0;
    font-size:14px;
    color:white;
    opacity:.9;
}
/* ================================= */
/* INFO PANEL */
/* ================================= */

.lightbox-info {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 40px 25px;
    color: white;
    display: flex;
    justify-content: end;
    align-items: end;
    box-sizing: border-box;
    flex-direction: column;
}


/* TEXT */

.lightbox-info h3{
    margin-bottom:15px;
    font-size:1.4rem;
}

.lightbox-info p{
    margin:5px 0;
}


/* NAVIGATION BUTTONS */

.lightbox-nav{
    position:absolute;
    top:50%;
    transform:translateY(-50%);

    width:60px;
    height:60px;

    border:none;
    border-radius:50%;

    background:transparent;
    color:white;

    font-size:30px;
    cursor:pointer;

    display:flex;
    justify-content:center;
    align-items:center;

    box-shadow:0 4px 12px rgba(0,0,0,0.4);

    z-index:5;
}

.lightbox-nav.prev{
    left:10px;
}

.lightbox-nav.next{
    right:20%;
}

/* hover */
.lightbox-nav:hover{
    transform:translateY(-50%) scale(1.1);
}

/* ================================= */
/* CLOSE BUTTON */
/* ================================= */

#lightbox #close{

    position:absolute;
    top:20px;
    right:20px;

    width:42px;
    height:42px;

    background:white;
    color:black;

    border-radius:50%;

    display:flex;
    justify-content:center;
    align-items:center;

    font-size:24px;
    cursor:pointer;

    z-index:10;
}


/* ================================= */
/* ===== ANIMATIONS ===== */
/* ================================= */

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}



/* Contact */

.contact-home{

    display: flex;

    /* flex-direction: column; */

    justify-content:center;

    align-items: center;

    /* background-color: white; */

    width: calc(100vw - 10px);

    height: calc(84.5vh - 10px);

}



.contact-form{

    width: 60%;

    height: 60%;

    display: flex;

    justify-content: space-evenly;

    background-color: white;

    border-radius: var(--border-radius);



}



.info{

    width: 30%;

    height: 100%;

    display: flex;

    flex-direction: column;

    justify-content: space-evenly;

    align-items: center;

    border-right: 1px solid black;

/* background: linear-gradient(to right, white 0%, darkgrey 20%, darkgrey 80%, white 100%); */





}

.info div, .info a{

    display: flex;

    align-items: center;

    width: 80%;

    justify-content: start;

    gap: 5%;

    text-decoration: none;

    color: black;

}



.info img{

    border: none;

    height: 3vh;

}



#email, #map{

    cursor: pointer;

    text-decoration: none;

    width: 100%;

}





form{

    display: flex;

    flex-direction: column;

    justify-content: space-around;

    /* background-color: red; */

    width: 60%;

}



form > div{

    display: flex;

    gap: 5%;

}



form > div > input{

    width: 50%;

    height: 3vh;

    border-radius: var(--border-radius);

    border: 1px solid #beb0bf ;

    padding: 0px 10px 0px 10px;

}



form > textarea{

    border-radius: var(--border-radius);

    border: 1px solid #beb0bf ;

    padding: 10px;

    height: 50%;

}



form > button{

    width: 50%;

    height: 3vh;

    border-radius: var(--border-radius);

    border: none;

    background-color: #beb0bf;

    color: white;
    align-self: center;

}



form > button:hover{

    box-shadow: inset 0px 0px 5px 0px black;

}

/* over mij */

.overmij-home{
    height: calc(84.5vh - 10px);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;

}

.overmij {
    width: 90%;
    height: calc(50% - 4vh);
    display: flex;
    justify-content: space-between;
    padding-bottom: 1vh;
    padding-top: 3vh;
    flex-direction: row;
    gap: 2vw;
}

.overmij > div{
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    /* height: 50%; */
    /* width: 28vw; */
    color: white;
}

#omf-1{
    align-items: start;
}


#omf-2{
    align-items: end;
}

.overmij-text{
    /* width: 51vw !important; */
    font-family: cursive;
    /* font-size: 0.8rem; */
    font-size: clamp(0.5rem, 2.5vw, 0.95rem);

}
.overmij > div > img{
    width: max-content;
    max-height: 33vh;
}



.tentoonstellingen{
    display: flex;
    justify-content: space-between;
    width: 90%;
    height:calc(50% - 2vh);
    padding-bottom: 1vh;
    padding-top: 1vh;
}



.expo-box {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    padding-right: 0rem;

    overflow-y: scroll;          /* ALWAYS visible */
    scrollbar-gutter: stable;    /* keep space reserved */

    box-shadow: -1px 4px 10px rgba(0,0,0,0.2);
    background-clip: padding-box;

    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: #beb0bf transparent;
}

.expo-box h2 {
    margin-top: 0;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.expo-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.expo-box li {
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Scrollbar */
.expo-box::-webkit-scrollbar {
    width: 10px;
}

.expo-box::-webkit-scrollbar-track {
    background: transparent;
    margin-block: 10px;
}

.expo-box::-webkit-scrollbar-thumb {
    background: #beb0bf;
    border-radius: 10px;
    border: 3px solid transparent;
    background-clip: content-box;
}

.expo-box::-webkit-scrollbar-thumb:hover {
    background: #a899aa;
}

/* =================================================
   RESPONSIVE SYSTEM (CLEANED ONLY)
=================================================*/


@media (max-width:1366px) and (max-height:607px){
    .logo{
        font-size: 1.5rem;
    }

    .overmij > div > img{
        width: max-content;
        max-height: 35vh;
    }


    .overmij-text{
        width: 51vw !important;
        font-family: cursive;
        font-size: 0.8rem;

    }
}

/* =================================
   LAPTOP 1366x768 FINAL FIX
=================================*/
@media (max-width:1400px) and (max-height:800px){

/* ---- allow vertical scroll on shorter desktop screens ---- */
body{
    min-height:100vh;
    height:auto;
    overflow-y:auto;
}

/* PAGE WRAPPER */
.overmij-home{
    height:calc(100vh - 15vh);
    display:flex;
    flex-direction:column;
}


/* =================================
   TOP SECTION (images + text)
=================================*/

.overmij{
    flex:0 0 auto;

    /* display:grid; */
    grid-template-columns: 220px 1fr 220px;
    /* align-items:center; */

    gap:2rem;
    padding:10px 4vw 15px;
}

/* BIGGER IMAGES */
/* .overmij > div img{
    max-height:40vh;     /* ← bigger portraits */
} */


/* TEXT BLOCK */
.overmij-text{
    width: 50vw !important;
    font-size: 0.8rem;
}

/* =================================
   EXHIBITIONS AREA
=================================*/

.tentoonstellingen{
    flex:1;

    display:flex;
    gap:2rem;
    /* padding:0 4vw 20px; */

    overflow:hidden; /* page never scrolls */
}

/* SCROLL ONLY INSIDE BOXES */
.expo-box{
    flex:1;
    height:75%;

    overflow-y:auto;
}

/* prevent text touching boxes */
.overmij{
    margin-bottom:10px;
}



/* =================================
   TABLET ≤1200px
=================================*/

@media (max-width:1200px){

.nav{
    width:80%;
    height: calc(27.5vh - 10px);
    z-index: 100;
}

.nav button{
    width:auto;
    padding:0 12px;
}

/* index */
#index-home{
    flex-direction:column;
    gap:2rem;
}

.agenda{
    width:80%;
    border-right:none;
}

.home-img{
    width:90%;
}

/* contact */
.contact-form{
    width:85%;
}

/* about */
.overmij{
    /* flex-wrap:wrap; */
    gap:2rem;
}

.overmij > div{
    width:40%;
}

.tentoonstellingen{
    flex-wrap:wrap;
    gap:2rem;
}

.expo-box{
    width:40%;
}

}



/* =================================
   TABLET + SMALL LAPTOP ≤900px
=================================*/

@media (max-width:900px){

.logo{
    font-size:1.6rem;
    width:100%;
    text-align:center;
    box-sizing:border-box;
    padding:16px 16px 8px;
    height:auto;
    min-height:84px;
}

.logo h1{
    margin:0;
    line-height:1.05;
}

/* ---------------- NAV ---------------- */

.menu-toggle{
    display:block;
    position:fixed;
    top:20px;
    right:16px;

    width:45px;
    height:45px;

    font-size:28px;

    background:white;
    border:none;
    border-radius:12px;

    cursor:pointer;
    z-index:3000;

    box-shadow:0 2px 10px rgba(0,0,0,.25);
}

/* NAV becomes dropdown */
.nav{
    position:absolute;

    top:95px;
    left:50%;
    transform:translateX(-50%) scaleY(0);

    transform-origin:top;

    width:90%;
    flex-direction:column;

    padding:15px;
    gap:10px;

    background:white;
    border-radius:20px;

    opacity:0;
    pointer-events:none;

    transition:
        transform .35s ease,
        opacity .25s ease;
}

/* OPEN STATE */
.nav.nav-open{
    transform:translateX(-50%) scaleY(1);
    opacity:1;
    pointer-events:auto;
    height: auto !important;
}

/* buttons full width */
.nav button{
    width:100%;
    height:48px;
}

/* anchor animation breaks mobile */
.anchored-pointer{
    display:none;
}



/* ---------------- INDEX ---------------- */

#index-home{
    flex-direction:column;
    height:auto;
    gap:2rem;
}

.agenda{
    width:90%;
}

.home-img{
    width:90%;
    overflow:visible;
}

.home-img img{
    width:100%;
    height:auto;
    max-height:none;
    min-height:0;
}

/* ---------------- SCHILDERIJEN ---------------- */
#schilderijen-home{
    height:auto;
    gap:2rem;
}

/* wrapper should not reserve height */
.slideshow-wrapper{
    height:auto;
    position:relative;
}

/* remove horizontal slider */
.slideshow{
    overflow:visible;
    height:auto;
    display:flex;
    justify-content:center;
}

/* convert track into gallery */
.slide-track{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:25px;
    height:auto;
}

/* images behave like gallery */
.slideshow img{
    width:100%;
    height:auto;
    max-width:900px;
}

/* remove arrows */
.slide-btn{
    display:none;
}

/* ---------------- ABOUT ---------------- */

.overmij{
    flex-direction:column;
    align-items:center;
    height:auto;
    gap: 5vh;
}

.overmij > div{
    width:85%;
}

.tentoonstellingen{
    flex-direction:column;
    align-items:center;
    height:auto;
}

.expo-box{
    width:85%;
}

/* ---------------- CONTACT ---------------- */

.contact-home{
    height:auto;
}

.contact-form{
    flex-direction:column;
    width:90%;
    height:auto;
}

.info{
    width:100%;
    border-right:none;
    border-bottom:1px solid black;
    padding:1rem 0;
}

form{
    width:100%;
}

}



/* =================================
   MOBILE ≤600px
=================================*/

@media (max-width:600px){

body{
    height:auto;
    padding:10px;
}

/* logo */
.logo{
    font-size:1.5rem;
    text-align:center;
}

/* index */
#index-home{
    flex-direction:column;
}

.agenda{
    width:100%;
}

.agenda ul{
    border-right:none;
    text-align:center;
}

.home-img{
    width:100%;
    overflow:visible;
}

.home-img img{
    width:100%;
    height:auto;
    max-height:none;
    min-height:0;
}

/* paintings → gallery mode */

.slideshow-wrapper{
    height:auto;
}

.slideshow{
    overflow:visible;
}

.slide-track{
    flex-direction:column;
    align-items:center;
    gap:20px;
}

.slide-frame{
    width:fit-content;
    max-width:95vw;
    line-height:0;
}

.slide-item{
    display:inline-block;
    width:fit-content;
    max-width:95vw;
}

.slide-item img{
    width:auto;
    max-width:95vw;
    height:auto;
    max-height:none;
}

.painting-overlay{
    inset:auto 0 0 0;
    padding:14px;
    line-height:1.25;
    transform:none;
}

.slide-btn{
    display:none;
}

/* disable lightbox on phone */
#lightbox{
    display:none !important;
}

/* about */

.overmij-home{
    height:auto;
}

.overmij > div{
    width:95%;
}

.overmij > div img{
    max-height:35vh;
}

#omf-1, #omf-2{
    align-items: center;
}
.tentoonstellingen{
    width: calc(100%);
}

.expo-box{
    width:90%;
    max-height:300px;
}

/* contact */

.contact-home{
    height:auto;
    padding-bottom:40px;
}

.contact-form{
    width:100%;
    padding:20px;
    gap:20px;
}

.info{
    width:100%;
    border-right:none;
    border-bottom:1px solid #ddd;
    gap:25px;
    justify-content: center;
}

.info div,
.info a{
    width:100%;
    justify-content:center;
}

form{
    width:100%;
    gap:15px;
}

form > div{
    flex-direction:column;
    gap:10px;
}

form > div input{
    width: 95%;
    height:45px;
}

form textarea{
    width:95%;
    height:160px;
}

form button{
    width:100%;
    height:45px;
    align-self: center;
}

}


/* hide hamburger on desktop only */
@media (min-width:901px){
    .menu-toggle{
        display:none;
    }
}

@media (max-height: 800px) and (min-width: 900px) {
  .slideshow img {
      max-height: 45vh;
  }

}


/* @media (max-width: 1200px) and (min-width: 900px) {

  .slideshow-wrapper {
      height: 50%;
  }

  .slideshow img {
      max-height: 50vh;
  }

} */

@media (max-height: 700px) {
  .slideshow img {
      max-height: 40vh;
  }

}   
@media (min-width:900px){

    .painting-overlay{
        display:none;
    }

}
