/* Foto's onder elkaar */
.image-gallery {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    padding: 20px 0;
}

.image-gallery img {
    width: 100%;
    max-width: 900px;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.image-gallery img:hover {
    transform: scale(1.01);
}

/* Modal achtergrond */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    cursor: zoom-out; /* Geeft aan dat je kunt klikken om te sluiten */
}

/* De grote foto zelf */
.modal-content {
    margin: auto;
    display: block;
    width: auto;
    height: auto;
    max-width: 90%; /* Zorgt dat hij niet buiten de zijkanten valt */
    max-height: 90vh; /* Zorgt dat hij niet buiten de boven/onderkant valt */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Dit centreert de foto perfect */
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {transform: translate(-50%, -50%) scale(0.7); opacity: 0;}
    to {transform: translate(-50%, -50%) scale(1); opacity: 1;}
}

/* Het kruisje rechtsboven */
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.close:hover {
    color: #27ae60;
}


.code_snippit{
    min-width: 100%;
    height: 50rem;
    background-color: transparent;
    outline: none;
    border: none;
    resize: none;
    user-select: none;
    margin-bottom: 2rem;
    margin-top: 2rem;
}