/* --- STIJLEN VOOR TOOL DETAILPAGINA --- */

/* 1. HERO SECTIE */
.tool-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.hero-media {
    width: 100%;
    aspect-ratio: 16 / 9; /* Forceer 16:9 verhouding */
    background-color: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.hero-media video,
.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Zorgt dat de media het vak vult */
}

.hero-text h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.hero-text .quote {
    font-size: 1.3rem;
}
.hero-text .cta-buttons {
    margin-top: 2rem;
    justify-content: flex-start; /* Lijn knop links uit */
}

/* 2. DETAIL SECTIE */
.tool-details {
    max-width: 80ch;
    margin: 0 auto 4rem auto; /* Centreer de tekstkolom */
}
.tool-details h3 {
    font-family: var(--header-font);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

/* 3. GALERIJ SECTIE */
.tool-gallery h3 {
    font-family: var(--header-font);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark-color);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}
.gallery-item:hover img {
    opacity: 0.8;
}

/* --- LIGHTBOX STYLING --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    padding: 20px;
    box-sizing: border-box;
}
.lightbox-content {
    display: block;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}
.lightbox-close:hover {
    color: #bbb;
}

/* Styling voor de navigatiepijlen in de lightbox */
.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    background-color: rgba(0,0,0,0.3);
    border: none;
}

.lightbox-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(0,0,0,0.8);
}