/* Project Grid Options */
/* Default grid with spacing */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Reduced minimum width */
    gap: 30px;
    max-width: 95%; /* Increased max-width from 1200px to 95% */
    margin: 0 auto;
}

/* Seamless grid option with borders */
.project-grid.seamless {
    gap: 0;
    border-radius: 0;
    max-width: 100%; /* Using full width for seamless grid */
}

.project-grid.seamless .project-card {
    border-radius: 0;
    box-shadow: none;
    border: 1px solid #EEECF2; /* the border line between each project grid element, 0px if you want no border at all! */
    position: relative; /* For z-index to work on hover */
    z-index: 1; /* Default z-index */
    transition: transform 0.3s ease, z-index 0.1s;
}

.project-grid.seamless .project-card:hover {
    z-index: 10; /* Higher z-index on hover to appear above other cards */
    transform: scale(1.03); /* Scale effect on hover */
    box-shadow: 0 5px 20px #EEECF2; /* Adding shadow on hover */
}

/* Variable width projects */
.project-grid.variable-width {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    width: 100%; /* Using full width */
}

/* Project Card Styles */
.project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #F5F5F5FF;
    text-decoration: none;
    color: #49495C;
}

/* Project thumbnail with hover effect */
.project-thumbnail {
    width: 100%;
    aspect-ratio: 16/9; /* responsive height */
    overflow: hidden;
    position: relative;
    flex-shrink: 0; /* prevents thumbnail from shrinking */
}

.project-thumbnail img,
.project-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-thumbnail img,
.project-card:hover .project-thumbnail video {
    transform: scale(1.1);
}

.project-info {
    padding: 20px;
    background-color: #DFDEF7;
    flex-grow: 1; /* make it expand to fill the card */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* pushes content to bottom if needed */
}

.project-card:hover .project-info {
    background-color: #F2E7FE; /*Change this value to change the color of the project info part of the project card when the mouse is hovering ontop*/
}

.project-info h3 {
    margin-bottom: 10px;
}

.project-info p {
    color: #64617A;
    font-size: 14px;
}


/* Width classes for variable-width grid */
/* These are the values we use to set the width of grid elements */
.width-100 {
    width: 100%;
}

.width-50 {
    width: 50%;
}

.width-75 {
    width: 75%;
}

.width-66 {
    width: 66.666%;
}

.width-33 {
    width: 33.333%;
}

.width-25 {
    width: 25%;
}

.width-20 {
    width: 20%;
}

.width-16 {
    width: 16.666%;
}


/* Intro Video Reel */

.featured-video {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 80px; /* spacing before project grid */
    display: flex;
    justify-content: center;
}

.featured-video video {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}