/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Importeren van lettertypes */
@import url('https://fonts.googleapis.com/css2?family=Garamond:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Garamond', serif;
    background-image: url('images/aithree.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #f9f4f1;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1600px;
    background: rgba(255, 255, 255, 0.5); /* Witte overlay met 50% transparantie */
    z-index: -1;
}
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 20px;
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-item {
    background-color: #ffffff;
    padding: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    text-align: center;
    box-sizing: border-box;
}

.item1 {
    margin-top: 20px;
    grid-column: 1 / span 2;
    padding: 0;
    position: relative;
}

.item2 {
    grid-column: 1 / span 2;
    padding: 20px;
    border: 2px solid #d4af37;
}

.item3 {
    grid-column: 1;
    padding: 0;
    position: relative;
    border: 2px solid #d4af37;
}

.item4 {
    grid-column: 2;
    padding: 20px;
    background-color: #ffffff;
    border: 2px solid #d4af37;
    text-align: left;
    font-size: 1em;
    line-height: 1.6;
    color: #333333;
}

.item5 {
    grid-column: 1;
    padding: 0;
    background-color: #ffffff;
    border: 2px solid #d4af37;
    height: 315px;
}

.item5 iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.item6 {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    gap: 30px;
    border: 2px solid #d4af37;
}

.item7 {
    grid-column: 1 / span 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #2c3e50;
    color: #ffffff;
    border: 2px solid #2c3e50;
}

/* Banner Stijl */
.banner {
    position: relative;
    height: 400px;
    width: 100%;
    overflow: hidden;
}

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

.page-title {
    font-size: 2.5em;
    color: #2c3e50;
    margin: 0;
    font-family: 'Garamond', serif;
}

/* Hover Foto Stijl voor Plaats 3 */
.photo-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.photo1 {
    opacity: 1;
}

.photo2 {
    opacity: 0;
}

.photo-container:hover .photo1 {
    opacity: 0;
}

.photo-container:hover .photo2 {
    opacity: 1;
}

/* Knoppen Stijl */
.button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1em;
    font-weight: bold;
    text-align: center;
    color: #ffffff;
    background-color: #d4af37;
    border: 2px solid #d4af37;
    text-decoration: none;
    transition: background-color 0.3s, border-color 0.3s;
    font-family: 'Garamond', serif;
}

.button:hover {
    background-color: #b8860b;
    border-color: #b8860b;
}

/* Footer Stijl */
.footer {
    text-align: center;
    font-size: 0.9em;
    color: #f5f5f5;
}

.footer p {
    margin: 10px 0;
    color: #f5f5f5;
}

/* Media Queries */
@media (max-width: 1024px) {
    .grid-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 10px;
    }

    .item1, .item2, .item3, .item4, .item5, .item6, .item7 {
        grid-column: 1 / span 1;
    }

    .item5 {
        height: auto;
    }

    .photo-container {
        height: auto;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2em;
    }

    .item6 {
        gap: 20px;
    }
}
