.resultaat-video {
    width: 100%;
    padding: 140px 0 120px;
    position: relative;
    overflow: hidden;
}

.resultaat-video__inner {
    max-width: 1440px;
    margin: 0 auto;
    width: min(100%, 1440px);
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 40px;
}

.resultaat-video__media {
    position: relative;
    width: 100%;
    border-radius: 32px;
    background: rgba(6, 19, 36, 0.95);
    overflow: hidden;
}

.resultaat-video__poster {
    width: 100%;
    height: auto;
    display: block;
}

/* Hide poster image when video is present */
.resultaat-video__media[data-has-video="true"] .resultaat-video__poster {
    display: none;
}

.resultaat-video__video {
    width: 100%;
    height: auto;
    display: block;
}


.resultaat-video__text {
    max-width: 760px;
    align-self: center;
    text-align: left;
}

.resultaat-video__title {
    font-size: clamp(36px, 4vw, 56px);
    line-height: 1.25;
    margin: 0 0 16px;
    font-weight: 600;
    width: 100%;
    text-align: left;
}

.resultaat-video__description {
    font-size: 20px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.resultaat-video__description p:last-child {
    margin-bottom: 0;
    font-size: 16px;
}

/* Projects Section */
.resultaat-video__projects {
    width: 100%;
    margin-top: 80px;
}

.resultaat-video__projects-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

.resultaat-video__projects-title {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 60px !important;
    font-weight: 700;
    line-height: 0.85;
    color: #FBF8F6;
    margin: 0 0 48px 0;
    text-align: left;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: none;
    display: inline-block;
    max-width: fit-content;
  
}

.resultaat-video__projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.resultaat-video__project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 16px;
    overflow: hidden;
    min-height: 400px;
    transition: transform 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.resultaat-video__project-card:hover {
    transform: translateY(-4px);
}

.resultaat-video__project-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.resultaat-video__project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.resultaat-video__project-card:hover .resultaat-video__project-img {
    transform: scale(1.08);
}

.resultaat-video__project-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(22, 46, 68, 0) 0%,
        rgba(22, 46, 68, 0.5) 100%
    );
}

.resultaat-video__project-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px 40px;
}

.resultaat-video__project-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.resultaat-video__project-icon {
    flex-shrink: 0;
    width: 28px;
    height: 19px;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.resultaat-video__project-card:hover .resultaat-video__project-icon {
    opacity: 1;
}

.resultaat-video__project-title {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: #FBF8F6;
    margin: 0;
}

.resultaat-video__project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.resultaat-video__project-tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 16px 0 12px;
    min-width: 80px;
}

.resultaat-video__project-tag-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.resultaat-video__project-tag-text {
    position: relative;
    z-index: 2;
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #162E44;
    white-space: nowrap;
}

.editor-preview .resultaat-video__media {
    background: #0b1b35;
}
.editor-preview .resultaat-video__project-card:hover {
    transform: none;
}

.editor-preview .resultaat-video__project-card:hover .resultaat-video__project-img {
    transform: none;
}

@media (max-width: 1024px) {
    .resultaat-video__inner {
        padding: 0 32px;
    }

    .resultaat-video {
        padding: 120px 0 100px;
    }

    .resultaat-video__projects-inner {
        padding: 0 32px;
    }

    .resultaat-video__projects-title {
        font-size: 48px !important;
        margin-bottom: 40px;
    }

    .resultaat-video__projects-grid {
        gap: 20px;
    }

    .resultaat-video__project-card {
        min-height: 350px;
    }

    .resultaat-video__project-content {
        padding: 28px 32px;
    }

    .resultaat-video__project-title {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .resultaat-video {
        padding: 0px 0 80px;
    }

    .resultaat-video__inner {
        padding: 0 24px;
        gap: 32px;
    }

    .resultaat-video__projects {
        margin-top: 60px;
    }

    .resultaat-video__projects-inner {
        padding: 0 24px;
    }

    .resultaat-video__projects-title {
        font-size: 36px !important;
        margin-bottom: 32px;
        max-width: 90vw;
    }

    .resultaat-video__projects-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .resultaat-video__project-card {
        min-height: 320px;
    }

    .resultaat-video__project-content {
        padding: 24px;
    }

    .resultaat-video__project-title {
        font-size: 20px;
    }

    .resultaat-video__project-tag {
        height: 30px;
        padding: 0 14px 0 10px;
        min-width: 70px;
    }
    
    .resultaat-video__project-tag-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .resultaat-video__projects-title {
        font-size: 32px !important;
        max-width: 85vw;
    }

    .resultaat-video__project-card {
        min-height: 280px;
    }

    .resultaat-video__project-content {
        padding: 20px;
    }

    .resultaat-video__project-title {
        font-size: 18px;
    }

    .resultaat-video__project-tag {
        height: 28px;
        padding: 0 12px 0 8px;
        min-width: 60px;
    }
    
    .resultaat-video__project-tag-text {
        font-size: 12px;
    }
}


/* Full width alignment */
.alignfull.resultaat-video {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Wide alignment */
.alignwide.resultaat-video {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}
