/* --- BASIS VINTAGE PALETTE --- 
   Papier: #f2e8d5
   Donker sepia: #5a4634
   Warm bruin: #b89b72
   Licht bruin: #d8c3a5
   Oud roze: #c58b7b
   Tape geel: rgba(255, 245, 180, 0.8)
*/

/* Achtergrond */
body {
    margin: 0;
    margin-top: 60px; /* ruimte voor topmenu */
    background: #f2e8d5;
    color: #5a4634;
    font-family: "Playfair Display", serif;
}


/* Header */
header { margin-top: 0; }

header h1 {
    margin: 0;
    font-size: 2.6rem;
    letter-spacing: 1px;
}

/* TOP NAVIGATIE */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #d8c3a5;
    border-bottom: 3px solid #b89b72;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 30px;
    z-index: 1000;
}

nav a {
    text-decoration: none;
    color: #5a4634;
    font-weight: 600;
    font-size: 1.1rem;
}

nav a:hover {
    color: #c58b7b;
}


/* Main */
main {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px 80px 20px;
}

h2 {
    border-bottom: 2px solid #b89b72;
    padding-bottom: 6px;
    margin-bottom: 20px;
    color: #5a4634;
}

/* Masonry layout */
.photo-grid {
    column-count: 4;          /* aantal kolommen op desktop */
    column-gap: 30px;         /* ruimte tussen kolommen */
    padding: 20px 0;
}

.polaroid {
    display: inline-block;    /* belangrijk voor masonry */
    margin-bottom: 30px;
    break-inside: avoid;      /* voorkomt dat polaroids worden gesplitst */
    background: #fffdf7;
    padding: 10px 10px 25px 10px;
    border: 1px solid #e0d6c8;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    border-radius: 4px;
    transition: transform 0.2s ease;
}

/* Groottes */
.polaroid.small { width: 100%; }
.polaroid.medium { width: 100%; }
.polaroid.large { width: 100%; }

/* Rotaties voor speels effect */
.polaroid:nth-child(3n) { transform: rotate(-2deg); }
.polaroid:nth-child(4n) { transform: rotate(1.5deg); }
.polaroid:nth-child(5n) { transform: rotate(-1deg); }
.polaroid:nth-child(7n) { transform: rotate(2deg); }

.polaroid:hover {
    transform: rotate(0deg) scale(1.03);
}

/* Foto */
.polaroid img {
    width: 100%;
    display: block;
    border-radius: 2px;
}

/* Caption */
.polaroid .caption {
    text-align: center;
    font-family: "Courier New", monospace;
    font-size: 0.85rem;
    margin-top: 8px;
    color: #5a4634;
}

/* Ornamenten blijven hetzelfde */
.tape, .paperclip, .sticker { /* jouw bestaande ornamenten */ }

/* Mobiel: 1 kolom */
@media (max-width: 700px) {
    .photo-grid {
        column-count: 1;
    }
}


/* Ornamenten */
.tape {
    width: 60px;
    height: 20px;
    background: rgba(255, 245, 180, 0.8); /* tape geel */
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(-6deg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.paperclip {
    width: 30px;
    height: 50px;
    border: 3px solid #8c6f4e;
    border-radius: 12px;
    position: absolute;
    top: -15px;
    right: -10px;
    transform: rotate(12deg);
}

.sticker {
    position: absolute;
    bottom: -12px;
    right: -12px;
    background: #c58b7b; /* oud roze */
    color: white;
    font-size: 1.1rem;
    padding: 6px 10px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Mobiel */
@media (max-width: 700px) {
    .photo-grid {
        position: static;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .polaroid {
        position: static;
        width: 80% !important;
        transform: rotate(0deg) !important;
    }
}
/* --- HAMBURGER MENU (mobiel) --- */

.hamburger {
    display: none;
    position: fixed;
    top: 12px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2000;
    color: #5a4634;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    right: 0;
    background: #d8c3a5;
    border-left: 3px solid #b89b72;
    border-bottom: 3px solid #b89b72;
    width: 70%;
    padding: 20px;
    z-index: 1999;
    flex-direction: column;
    gap: 16px;
}

.mobile-menu a {
    text-decoration: none;
    color: #5a4634;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 8px 0;
}

/* Alleen tonen op mobiel */
@media (max-width: 800px) {

    nav {
        display: none; /* desktop menu verbergen */
    }

    .hamburger {
        display: block;
    }

    body {
        margin-top: 60px; /* ruimte voor hamburger */
    }
}
/* --- LIGHTBOX (foto uitvergroten) --- */

.lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(3px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
}

.lightbox-img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(0,0,0,0.6);
}

.lightbox-caption {
    margin-top: 16px;
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
    font-family: "Playfair Display", serif;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
}
/* --- LIGHTBOX UPGRADE --- */

.lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(3px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
}

/* ZOOM-IN ANIMATIE */
@keyframes zoomIn {
    from {
        transform: scale(0.6);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 6px;
    box-shadow: 0 0 25px rgba(0,0,0,0.6);
    animation: zoomIn 0.35s ease-out;
    border: 12px solid #f2e8d5; /* vintage frame */
    outline: 3px solid #b89b72; /* donkere rand */
}

/* CAPTION */
.lightbox-caption {
    margin-top: 16px;
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
    font-family: "Playfair Display", serif;
}

/* SLUITKNOP */
.lightbox .close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
}

/* PIJLEN LINKS/RECHTS */
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 4rem;
    color: #fff;
    cursor: pointer;
    user-select: none;
    padding: 10px;
}

.lightbox-arrow.left {
    left: 40px;
}

.lightbox-arrow.right {
    right: 40px;
}

.lightbox-arrow:hover {
    color: #c58b7b;
}
/* --- LIGHTBOX POLAROID FRAME --- */

.lightbox-polaroid {
    background: #fffdf7;
    padding: 20px 20px 40px 20px; /* extra onderrand */
    border: 1px solid #e0d6c8;
    outline: 4px solid #b89b72;
    border-radius: 6px;
    box-shadow: 0 0 25px rgba(0,0,0,0.6);
    animation: zoomIn 0.35s ease-out;
}

/* --- FILMSTRIP --- */

.filmstrip {
    display: flex;
    gap: 10px;
    padding: 10px;
    margin-top: 20px;
    overflow-x: auto;
    max-width: 90%;
    background: rgba(0,0,0,0.3);
    border-radius: 6px;
}

.filmstrip img {
    height: 70px;
    cursor: pointer;
    border-radius: 4px;
    opacity: 0.7;
    transition: 0.2s;
}

.filmstrip img:hover {
    opacity: 1;
    transform: scale(1.05);
}

.filmstrip img.active-thumb {
    outline: 3px solid #c58b7b;
    opacity: 1;
}
