.project-container {
    
    width: 80%;
    max-width: 1200px;
    min-width: 400px;
    border: 2px solid rgba(59, 59, 59, 0.5);
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: row;

    margin-bottom: 40px;
    border-radius: calc(var(--large-border-radius) + var(--main-padding));

    --small-border-radius: 10px;
    --large-border-radius: 15px;
    --main-padding: 15px;
}
.project-container {
    max-height: 350px;
}

.project-info {
    padding: var(--main-padding);
    padding-right: 10px;
    display: flex;
    
    flex-direction: column;
    flex: 1;
}
.project-text {
    justify-self: start;
    flex: 1;
    padding-left: 10px;

    display: flex;
    justify-content: stretch;
    align-items: start;
    flex-direction: column;
    min-height: 0;
}
.scrollable-project-text {
    flex: 1;
    overflow-y: scroll;
    overflow-x: hidden;
    width: calc(100% + 15px);
    position: relative;
}

.project-info h3 {
    padding: 0;
    margin: 0;
}
.project-info p {
    padding: 0;
    margin: 0;
    width: calc(100% - 25px);
}

.project-thumbnail {
    border-top-right-radius: var(--large-border-radius);
    border-bottom-right-radius: var(--large-border-radius);
    
    border-top-left-radius: var(--small-border-radius);
    border-bottom-left-radius: var(--small-border-radius);
    
    border: 1px dashed rgb(110, 110, 110);
    
    margin: var(--main-padding);
    margin-left: 10px;

    object-fit: cover;
    object-position: center;
    display: block;
    
    max-width: 45%;

    position: relative;

    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.1) 75%, transparent 75%, transparent);
    background-size: 6px 6px; 
}

.view-project-link {
    height: 40px;
    border: 1px dashed rgb(110, 110, 110);
    display: flex;
    align-items: center;
    justify-content: center;

    border-top-right-radius: var(--small-border-radius);
    border-bottom-right-radius: var(--small-border-radius);
    border-top-left-radius: var(--small-border-radius);
    border-bottom-left-radius: var(--large-border-radius);

    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.1) 75%, transparent 75%, transparent);
    background-size: 6px 6px;

    transition: background-color 0.1s;
    text-decoration: none;
}
.view-project-link:hover {
    background-color: rgba(255, 255, 255, 0.116) !important;
}

@media (min-width: 850px) {

    .project-container:nth-child(odd) {
        flex-direction: row-reverse;
    }
    .project-container:nth-child(odd) .project-thumbnail {
        border-top-right-radius: var(--small-border-radius);
        border-bottom-right-radius: var(--small-border-radius);

        border-top-left-radius: var(--large-border-radius);
        border-bottom-left-radius: var(--large-border-radius);

        margin-left: var(--main-padding);
        margin-right: 10px;
    }
    .project-container:nth-child(odd) .view-project-link {
        border-top-right-radius: var(--small-border-radius);
        border-bottom-right-radius: var(--large-border-radius);
        border-top-left-radius: var(--small-border-radius);
        border-bottom-left-radius: var(--small-border-radius);
    }

    .project-container:nth-child(odd) .project-info {
        padding-left: 10px;
        padding-right: var(--main-padding);
    }
    .project-container:nth-child(odd) .project-text {
        padding-right: 10px;
        padding-left: 0;
    }
    .scrollable-project-text {
        margin-bottom: 10px;
    }
    .project-container.projects-not-reviews .scrollable-project-text {
        margin-bottom: 15px;
    }
    
}

@media (max-width: 850px) {

    .project-thumbnail {
        display: none;
    }

    .project-container {
        width: 90vw;
        min-width: unset;
        border-radius: 20px;
    }

    .project-info {
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 15px;
        padding-bottom: 20px;
    }
    .project-text {
        padding-right: 10px;
        padding-left: 0;
        margin-top: 0;
        max-height: 100%;
        min-height: 0;
    }
    .project-container {
        flex-direction: row;
    }
    .projects-not-reviews .scrollable-project-text {
        margin: 5px 0 15px 0;
    }
    .scrollable-project-text p {
        width: calc(100% - 10px);
        flex-grow: 1;
    }
    .view-project-link {
        border-radius: 15px;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
        flex-shrink: 0;
    }
    .project-container.projects-not-reviews {
        border-bottom-left-radius: 30px;
        border-bottom-right-radius: 30px;
    }
}




@media (min-width: 2400px) {
    .project-container.reviews-not-projects {
        max-width: 2000px;
    }
    .project-container.projects-not-reviews {
        max-width: 1600px;
    }

    .project-container {
        max-height: 400px;
    }

    .project-container:nth-child(odd) {
        flex-direction: row-reverse;
    }
    .project-container:nth-child(odd) .project-thumbnail {
        border-top-right-radius: var(--small-border-radius);
        border-bottom-right-radius: var(--small-border-radius);

        border-top-left-radius: var(--large-border-radius);
        border-bottom-left-radius: var(--large-border-radius);

        margin-left: var(--main-padding);
        margin-right: 10px;
    }
    .project-container:nth-child(odd) .view-project-link {
        border-top-right-radius: var(--small-border-radius);
        border-bottom-right-radius: var(--large-border-radius);
        border-top-left-radius: var(--small-border-radius);
        border-bottom-left-radius: var(--small-border-radius);
    }

    .project-container:nth-child(odd) .project-info {
        padding-left: 10px;
        padding-right: var(--main-padding);
    }
    .project-container:nth-child(odd) .project-text {
        padding-right: 10px;
        padding-left: 0;
    }
    .scrollable-project-text {
        margin-bottom: 10px;
    }
    .project-container.projects-not-reviews .scrollable-project-text {
        margin-bottom: 15px;
    }
    
}