main {
    padding-top: 4rem;
padding-bottom: 1rem;
    }

h1 {
    text-shadow: var(--text-shadow);
    font-size: 2rem;
    color: var(--lightgroen);

}

.hoofd-artikel {

    text-align: center;

}



.dummy-text {
    width: 100%;
    padding: 0 20px;
    text-align: center;
}

.dummy-text, .dummy-text p {
    color: var(--zwart);
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out forwards;
}

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

img {
    max-width: 100%;
    height: auto;
}

p.error {
    color: #FF0000;
    text-align: center;
}

.breadcrumb {
    margin: 10px 5%;
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 8px;
}

.breadcrumb a {
    color: #ffffff;
    text-decoration: none;
    border: 1px solid #ffffff;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background 0.3s, color 0.3s;
    display: inline-block;
}

.breadcrumb a:hover {
    background: #ffffff;
    color: #121212;
}

/* --------------------- */
/* foto-gallery          */
/* --------------------- */

.folder .folder-text {
    color: #000;
    font-size: 0.8rem;
}

.folder:hover .folder-text {
    color: #fff;
}

.folder, .item {
    width: 100%;
}

.folder-text {
    font-size: 0.8rem;
    color: #000;
}

/* Base thumb styling */
img.thumb {
    max-width: 100%;
    height: auto;
    width: 100%;
    border-radius: 6px;

    cursor: pointer;
}

.folders-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    justify-content: center;
    align-items: start;
    padding: 10px;
    max-width: 450px;
    margin: 0 auto;
}

.folder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #000;
    background: #fff;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.3s;
    box-shadow: var(--shadow-lijst);
}

.folder:hover {
    background: #333;
    color: #fff;
}

.folder img.thumb {
    transition: transform 0.3s ease;
}

.folder img.thumb:hover {
    transform: scale(1.05);
}

.folder div.icon {
    font-size: 50px;
    line-height: 140px;
    color: #000;
}

.folder figcaption {
    margin-top: 8px;
    font-size: 0.9em;
    color: #333;
    text-align: center;
}

.item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.item img {
    max-width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
}

img.thumb.loaded {
    opacity: 1;
}

.filename {
    margin-top: 5px;
    font-size: 12px;
    color: #aaa;
    word-break: break-word;
}

#lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.nav-btn {
    font-size: 50px;
    color: white;
    background: none;
    border: none;
    margin: 20px;
    cursor: pointer;
    opacity: 0.7;
    user-select: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.nav-btn:hover {
    opacity: 1;
}

.nav-btn.left { left: 20px; }
.nav-btn.right { right: 20px; }

/* 🌟 DE GROTE FIX VOOR DE SCROLLBAR 🌟 */
.gallery-container {
    width: 100%;
    min-height: auto; /* Geen 100vh meer, dit trok de pagina leeg naar beneden */
    padding: 20px;
    display: block; /* Veranderd van flex naar block voor stabielere grid-afhandeling */
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 25px; /* Verminderd van 50px naar 20px */
}

.gallery .item {
    text-decoration: none;
    color: inherit;
    display: block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.gallery .item.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery .item:hover {
    text-decoration: none;
}

.photo-card {
    background: #1e1e1e;
    box-shadow: 0 4px 8px rgba(0,0,0,0.6);
    border-radius: 12px;
    overflow: hidden;
    width: 100%; /* Flexibel binnen grid */
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.photo-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    z-index: 10;
    transition: transform 0.3s, box-shadow 0.3s;
}

.photo-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.photo-card figcaption {
    padding: 15px;
    font-size: 1.1em;
    color: #ccc;
    font-family: 'Lora', serif;
}

/* Modal algemeen */
.modal {
    display: none !important;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Voorkom dubbele scrollbalken bij geopende modal */
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    position: relative;
}

.closeModalBtn, .close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
}

.alert {
    display: none;
    color: red;
    font-weight: bold;
    margin-bottom: 10px;
}

#contactForm {
    text-align: center;
}

q {
    font-style: italic;
    color: #666;
}

.image-container {
    text-align: center;
}

/* ⚠️ AANPASSING: Animatie aangepast om geen overflow te veroorzaken */
.slide {
    animation: slide-right 5s ease-in-out forwards;
    position: relative;
}

@keyframes slide-right {
    from { transform: translateX(-100%); } /* Veranderd van -110vw naar -100% */
    to   { transform: translateX(0); }
}

input, textarea {
    width: 100%;
    padding: 8px;
    margin: 8px 0;
    box-sizing: border-box;
    color: #333;
    background-color: #fff;
}

label {
    display: block;
    margin-top: 1em;
    color: #fff;
}

.modal-content label {
    color: #333 !important;
    font-weight: bold;
}

.modal-content input, .modal-content textarea {
    color: #333 !important;
    background-color: #fff !important;
    border: 1px solid #ccc;
}

.modal-content h1 {
    color: #333 !important;
}

#contactForm button {
    background: #333;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    width: auto;
    display: inline-block;
    margin-top: 10px;
}

#contactForm button:hover {
    background: #555;
}

.btn.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #1c1c1c;
    color: white;
    border-radius: 6px;
    font-family: sans-serif;
    font-size: 1em;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #3d3d3d;
}

.pswp__img {
    margin: 0;
}

.pswp__scroll-wrap {
    padding-top: 50px;
    padding-bottom: 70px;
}


@media (min-width: 600px) {
main {
    padding-top: 5rem;
    }

    h1 {
    font-size: 3rem;
    }

   .hoofd-artikel {
    padding: 5px;


    }
}

/* Medium devices (landscape tablets, 768px and up) */


/* Large devices (laptops/desktops, 992px and up) */
@media (min-width: 992px) {
    main {
        padding-top: 3.5rem;
    }

    .breadcrumb {
        margin: 5px 5% 2px 5%;
        font-size: 16px;
        gap: 16px 6px; /* Dit zorgt voor de juiste ruimte op desktop */
    }

    .breadcrumb a {
        padding: 8px 14px;
    }

    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 10px;
        padding: 0 20px;
        padding-bottom: 20px;
    }

    .folders-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        max-width: 100%;
        gap: 20px;
        padding: 5px;
    }

    .folder {
        max-width: 220px;
        width: auto;
    }
}
