@font-face {
    font-family: "Neue Haas Display Bold";
    src: url(../fonts/NeueHaasDisplayBold.ttf);
}

@font-face {
    font-family: "Neue Haas Display Bold 2";
    src: url(../fonts/NeueHaasDisplayBold_2.ttf);
}

@font-face {
    font-family: "Neue Haas Display Medium 2 2";
    src: url(../fonts/NeueHaasDisplayMediu_2_2.ttf);
}

@font-face {
    font-family: "Neue Haas Display Medium 2";
    src: url(../fonts/NeueHaasDisplayMediu_2.ttf);
}

@font-face {
    font-family: "Neue Haas Display Medium";
    src: url(../fonts/NeueHaasDisplayMediu.ttf);
}

@font-face {
    font-family: "Neue Haas Display Roman";
    src: url(../fonts/NeueHaasDisplayRoman.ttf);
}


/* === Basis === */
body {
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    font-family: 'Neue Haas Display Roman';
    color: #e30613;
    text-align: center;
}

/* Titel op de hoofdpagina */
.title {
    font-size: 5vw;  /* Zorgt ervoor dat de titel schaalt met het scherm */
    margin: 2rem 0 3rem;
    letter-spacing: 0.1em;
    font-family: 'Neue Haas Display Bold 2'
}

/* Footer */
.footer {
    font-size: .5vw;  /* Zorgt ervoor dat de footer schaalt met het scherm */
    opacity: 0.7;
    text-align: center;
    margin-top: 2rem;
}

/* === Masonry Gallery === */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 kolommen */
    gap: 20px;
    max-width: 1200px;
    margin: 0px auto;
    padding: 20px;
}

.gallery-item {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item img:hover {
    transform: scale(1.03);
    filter: grayscale(0%);
}

/* === Lightbox === */
/* === LIGHTBOX BASE === */
.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(3px);
    z-index: 9999;
}

.lightbox-content {
    display: flex;
    flex-direction: row;
    width: 85%;
    height: 80%;
    max-width: 1200px;
    background: #000;
    overflow: hidden;
    /* border-radius: 12px; /* gives it that subtle art look */
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}

/* === IMAGE SIDE === */
.lightbox-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: black;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.lightbox-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* fully fills without black bars */
    object-position: center;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
}

/* === TEXT SIDE === */
.lightbox-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 2rem;
    text-align: right;
    box-sizing: border-box;
    background: #111;
    overflow: hidden;
    position: relative;
    font-family: 'Neue Haas Display Roman'
}

/* ✅ Scrollable inner wrapper */
.lightbox-text-inner {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 100%;
    width: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
}

/* Optional: style scrollbars for WebKit */
.lightbox-text-inner::-webkit-scrollbar {
    width: 6px;
}

.lightbox-text-inner::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.lightbox-text-inner::-webkit-scrollbar-track {
    background: transparent;
}

/* === TEXT STYLES === */
/* === LIGHTBOX TEXT STYLES === */
.lightbox-title {
    font-family: "Neue Haas Display Bold 2", sans-serif;
    font-weight: bold;
    font-size: 2vw;
    /* Verandert de tekstgrootte afhankelijk van de schermbreedte */
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.lightbox-description {
    font-size: 1.5vw;
    /* Verandert de tekstgrootte afhankelijk van de schermbreedte */
    line-height: 1.5;
    max-width: 90%;
    margin-bottom: 1rem;
}

.lightbox-footer {
    font-size: 1vw;
    /* Verandert de tekstgrootte afhankelijk van de schermbreedte */
    opacity: 0.7;
    margin-top: 1rem;
    font-family: "Neue Haas Display Roman";
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .lightbox-content {
        flex-direction: column;
        height: 90%;
        /* De hoogte van de lightbox aanpassen zodat er geen zwarte marges komen */
        width: 95%;
        max-width: none;
        max-height: none;
        margin: 0 auto;
        /* Zorg ervoor dat er geen onbedoelde marges boven en onder komen */
    }

    .lightbox-image-container {
        flex: none;
        height: 60vh;
        /* Maak de afbeelding 60% van de viewport hoogte */
        width: 100%;
        margin: 0;
        padding: 0;
        background: black;
        display: flex;
    }

    .lightbox-image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* Zorg ervoor dat de afbeelding altijd de container vult (kan worden bijgesneden) */
        object-position: center;
        display: block;
        margin: 0;
        /* Verwijder marges die zwarte randen kunnen veroorzaken */
        padding: 0;
        /* Verwijder padding die kan leiden tot extra ruimte rondom de afbeelding */
        border: none;
        /* Zorg ervoor dat er geen borders zijn die het probleem kunnen veroorzaken */
    }

    .lightbox-text {
        flex: none;
        height: auto;
        width: 100%;
        padding: 1.5rem;
        align-items: flex-start;
        justify-content: flex-start;
        overflow: hidden;
        background: #111;
    }

    .lightbox-title {
        font-size: 1.4rem;
        /* Verklein de titel voor mobiel */
    }

    .lightbox-description {
        font-size: 0.95rem;
        /* Maak de tekst iets kleiner voor mobiel */
        margin-bottom: 1rem;
    }

    .lightbox-footer {
        font-size: 0.75rem;
    }
}