* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #E6E6E6;
    font-family: 'Franklin Gothic Book', 'Arial Narrow', Arial, sans-serif;
}

html,
body {
    height: auto;
    overflow: auto;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: rgba(15, 61, 80, 0.5);
    z-index: 2;
}

nav .logo img {
    height: 60px;
    width: auto;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    text-transform: uppercase;
    padding: 5px;
}

.nav-link:hover {
    color: #0F3D50;
}

h3 {
    color: #282828;
    font-weight: normal;
}

p {
    color: #282828;
    font-family: 'Franklin Gothic Book', 'Arial Narrow', Arial, sans-serif;
}

a {
    color: #ffffff;
    text-decoration-color: #ffffff;
    text-decoration: underline;
}

a:hover {
    /* color: #500E04; */
    transform: translateY(-2px);
    text-decoration: none;
}

.leden {
    padding-top: 20px;
}

main {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
}

section {
    position: relative;
    width: 100%;
    padding: 80px 5%;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(rgba(15, 61, 80, 0.6), rgba(15, 61, 80, 0.4)), url(afbeeldingen/Almanak_foto_24.png);
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.content {
    position: relative;
    z-index: 2;
    max-width: 66vw;
    color: white;
    font-family: 'Franklin Gothic Book', 'Arial Narrow', Arial, sans-serif;
}

h1 {
    font-size: 8rem;
    font-weight: bold;
}

.content h3 {
    color: #ffffff;
}

h2 {
    font-size: 4rem;
    font-weight: normal;
    margin-top: 10px;
}

h3 {
    font-size: 2rem;
    font-weight: normal;
    /* margin-top: 10px; */
    /* color: #ffffff; */
}

p {
    font-size: 1rem;
    /* margin-top: 20px; */
    line-height: 1.6;
    max-width: 66vw;
}

.over {
    color: #282828;
    font-weight: normal;
    font-size: 2rem;
    max-width: 50%;
    padding: 0 10%;
}

.zuil {
    color: #000000;
    background: white;
    padding: 80px 5%;
}

.zuil-text {
    max-width: 66vw;
}

.zuil h2 {
    font-size: 2rem;
    font-weight: bold;
}

.zuil p {
    font-size: 1rem;
    margin-bottom: 40px;
    padding: 50%;
}

.zuil-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.zuil-item {
    width: 100px;
    text-align: center;
}

.image-placeholder {
    width: 100%;
    height: 350px;
    background: #D9D9D9;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 8px solid #500E04;
    overflow: hidden;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zuil-info h3 {
    font-size: 2rem;
    font-weight: bold;
    margin-top: 10px;
}

.zuil-info p {
    font-size: 1rem;
    color: black;
}

header {
    background-color: #d3d3d3;
    text-align: center;
    padding: 0 5%;
}

.leden img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.card {
    border: none;
    text-align: left;
}

.card-body {
    background-color: #fff;
    padding-top: 15px;
    padding-left: 0px;
    padding-right: 15px;
    padding-bottom: 15px;
    background-color: #E6E6E6;
}

.card h3 {
    font-weight: bold;
    margin-bottom: 5px;
}

.card p {
    margin-bottom: 0;
}

.custom-border {
    border-bottom: 20px solid #800000;
    /* Change to your desired color */
}

.custom-border-2 {
    border-bottom: 20px solid #0F3D50;
    /* Change to your desired color */
}

.grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 800px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    position: relative;
}

.grid-item {
    position: relative;
    overflow: hidden;
    border: 10px solid;
    color: white;
}

.grid-item img {
    width: 50%;
    height: auto;
    display: block;
}

.text-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 1rem;
    font-weight: bold;
    text-align: left;
    /* or center if you want */
    white-space: normal;
    /* 👈 allows line breaks! */
    transition: all 0.3s ease;
}

.text-overlay strong {
    display: block;
    /* 👈 forces onto a *new line* */
}


.grid-item:hover .text-overlay {
    bottom: 120px;
    right: 10px;
}

.blue-border {
    border-color: #0F3D50;
}

.red-border {
    border-color: #700E04;
}

.grid-item:hover .uitgelicht-overlay {
    background-color: rgba(15, 61, 80, 0.5);
}

.grid-item.red-border:hover .uitgelicht-overlay {
    background-color: rgba(112, 14, 4, 0.5);
}

/* Responsive adjustments for tablets (768px and below) */
@media (max-width: 768px) {
    .container {
        width: 90%;
        /* Makes it wider on small screens */
        padding: 15px;
    }

}

/* Mobile view (480px and below) */
@media (max-width: 480px) {

    .container {
        width: 95%;
        /* Almost full width on very small screens */
        padding: 10px;
    }

    h1 {
        font-size: 4rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1rem;
    }

    p {
        font-size: 1rem;
    }
        .map-container {
        display: none;
    
    }
}

.text-dark {
    font-size: clamp(3rem, 5vw, 4rem);
    /* Adjust the size as needed */
    text-align: center;
}

/* Contact sectie */
/* .contact-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0F3D50;
    color: white;
    padding: 5%;
    width: 100%;
    border-radius: 0;
    box-sizing: border-box;
} */

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-info h2 {
    margin: 0;
    font-size: 2rem;
}

.contact-info div {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.contact-info img {
    width: 24px;
    height: 24px;
}

.map-container {
    width: 100%;
    max-width: 400px; /* Optional: max size */
    aspect-ratio: 16 / 9; /* Keeps the map in proper shape */
    margin-right: 60 auto; /* Optional: center horizontally */
    margin-left: 10;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 5px;
    border-radius: 10px;
}

.contact-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0F3D50;
    color: white;
    padding: 5%;
    height: 250px;
    width: 100%;
    box-sizing: border-box;
    margin-top: auto;
}

.grid-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.5s ease, opacity 0.5s ease;
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Make grid-items square */
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fading-out {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.grid-item.expanded {
    position: fixed;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0.9) !important;
    z-index: 999;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    width: auto !important;
    max-width: 80vw;
    max-height: 80vh;
    margin: 0 !important;
    transform-origin: center center;
    opacity: 1;
}

.grid-item.expanded .text-overlay {
    display: none !important;
}



.text-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;

    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 1.2rem;

    background: transparent;
    /* no default color */

    /* Start hidden and below */
    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.5s ease, opacity 0.5s ease, background 0.5s ease;
    pointer-events: none;
}

/* Blue overlay for blue-border items */
.blue-border .text-overlay {
    background: rgba(15, 61, 80, 0.5);
    /* your blue color */
}

/* Red overlay for red-border items */
.red-border .text-overlay {
    background: rgba(112, 14, 4, 0.5);
    /* replace with your red color */
}

/* On hover, make overlay visible and slide up */
.grid-item:hover .text-overlay {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}