main {
    padding-top: 2rem;
    }

h1 {
    text-shadow: var(--text-shadow);
    font-size: 2rem;
    color: var(--lightgroen);
    margin-bottom: 0.5em;
}

.hoofd-artikel {
    padding: 10px;
    text-align: center;
    margin-top: 6rem;
}

.zoom-effect {
    animation: zoomIn 1.3s ease-out forwards; /* Iets langer en heel vloeiend */
    animation-delay: 0.2s;
}

.zoom-effect2 {
    animation: zoomIn 1s ease-out forwards;
}


.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.fade-in2 {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
/* Unieke en complete Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.75);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================================================
   2. ALGEMEEN & BREADCRUMBS
   ========================================================================== */

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

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

.breadcrumb {
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 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;
}

/* ==========================================================================
   3. FOTO-GALLERY MAPPEN & LAYOUT
   ========================================================================== */

.folder .folder-text {
    color: #000; /* Zorgt ervoor dat de kleur ZWART (#000) is */
    font-size: 0.8rem;
}

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

.folder, .item {
    width: auto;
    max-width: none;
}

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

img.thumb {
    max-width: 100%;
    height: auto;
    width: 100%; /* Zorgt ervoor dat de afbeelding de breedte van de kolom vult */
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.6);
    cursor: pointer;
}

.folders-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Mobiel standaard: 2 kolommen */
    gap: 10px;
    justify-content: center;
    align-items: start;
    padding: 10px;
    max-width: 450px; /* Ongeveer 2 items van 200px + gaps */
    margin: 0 auto; /* Centreer de container op grote schermen */
}

.folder {
    width: 100%;
    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: 0 4px 8px rgba(0,0,0,0.3);
}

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

.folder img.thumb {
    max-width: 100%;
    height: auto;
    width: auto;
    border-radius: 4px;
    opacity: 1;
    box-shadow: none;
    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;
    width: 100%;
}

.item img {
    width: auto;
    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;
}

/* ==========================================================================
   4. LIGHTBOX & MODALS
   ========================================================================== */

#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; }

.gallery-container {
    min-height: 100vh;
    padding: 40px 20px 60px 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5px;
}

.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: 250px;
    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;
}

.openModalBtn {
    background-color: black;
    border: none;
    color: white;
    font-size: 1em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    padding: 5px 10px;
}

.openModalBtn img {
    height: 20px;
    }

.modal {
    display: none !important;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0; width: 100%; height: 100%;
    overflow: auto;
    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;
}

.close { font-size: 28px; }

.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; }

.slide {
    animation: slide-right 5s ease-in-out forwards;
    position: relative;
}

@keyframes slide-right {
    from { transform: translateX(-110vw); }
    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;
}

#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;
    text-decoration: none;
    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: 2rem;
    }

    h1 {
    font-size: 2.4rem;
    }

   .hoofd-artikel {
    padding: 5px;

    margin-top: 4rem;
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media (min-width: 768px) {
        main {
    padding-top: 3rem;
    }



   .hoofd-artikel {
    padding: 5px;

    margin-top: 5rem;
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media (min-width: 992px) {

        main { padding-top: 3rem; }


   .hoofd-artikel {
    padding: 5px;

    margin-top: 6rem;
    }

    .breadcrumb {
        margin-top: 5px;
        font-size: 16px;
        gap: 6px;
    }

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

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

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

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



}

/* groot beeld (large laptops and desktops, 1200px and up) */
@media (min-width: 1200px) {
            main {
    padding-top: 3rem;
    }



   .hoofd-artikel {
    padding: 5px;

    margin-top: 6rem;
    }
}
