.projects {
    background-color: var(--main-blue);
    padding: 96px 0;
    color: var(--main-white);
}

.projectsHeader {
    max-width: 1248px !important;
    width: 89.17% !important;
    margin: 0 auto;
}

/*Projects Title*/
.projectsHeader p:nth-child(1) {
    font-size: 18px;
}

/*Projects Header*/
.projectsHeader p:nth-child(2) {
    font-size: 48px;
    font-weight: bold;
    width: 100%;
    text-align: left;
}

.projectsPreview {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: nowrap;
    margin: 0 auto;
    width: 89.17% !important;
    max-width: 1248px !important;
}

.previewPicture {
    margin-bottom: 22px;
}

.previewPicture img {
    transition: opacity 300ms;
    width: 100%;
}

/* TODO Bring alive*/
.fullSizeButton {
    display: none;
    position: relative;
    top: 47%;
    left: -200%;
    width: fit-content;
}

.previewPicture img:hover {
    cursor: pointer;
    opacity: 0.5;
}

.projectsPreviewFirstLine, .projectsPreviewSecondLine {
    max-width: 27.41%;
    min-width: 27.40%;
}

.projectsPreviewFirstLine img, .projectsPreviewSecondLine img {
    min-width: 27.40%;
}

.projectsPreviewSecondLine {
    margin: 0 32px;
}

.projectsPreviewThirdLine {
    max-width: 39.98%;
    min-width: 39.97%;
}

.projectsPreviewThirdLine img {
    min-width: 39.97%;
}

.projectsPreviewFirstLine, .projectsPreviewSecondLine, .projectsPreviewThirdLine {
    display: flex;
    flex-direction: column;
    justify-content: start;
    flex-wrap: nowrap;
}

.projectsButtonLine {
    width: 100%;
}

.projectsButtonLine div:hover {
    cursor: pointer;
}

.projectsButtonLine div {
    background-color: var(--main-white);
    padding: 0;
    margin: 0 auto;
    width: 158px;
    height: 60px;
    border-radius: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.projectsButtonLine p {
    text-align: center;
    width: 100%;
    font-size: 18px;
    font-weight: 500;
    padding: 0;
    margin: 0;
}

.projectsButtonLine a {
    text-decoration: none;
    width: 160px;
    color: var(--main-blue);
}

#protectsFullSize {
    display: none;
    flex-direction: column;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.7);
    margin: 0;
    padding: 5%;
    text-align: center;
}

#protectsFullSize i:hover {
    cursor: pointer;
}

#protectsFullSize img {
    max-width: 100%;
    max-height: 95%;
    margin: 0 auto;
}

#galleryCloseLine {
    position: absolute;
    top: 5%;
    right: 5%;
}

.navLine {
    position: absolute;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 0 5%;
    top: 47%;
    left: 0;
    width: 100% !important;
}

.navLine i:nth-child(1) {
    text-align: left;
}

.navLine i:nth-child(2) {
    text-align: right;
}

@media (max-width: 840px) {
    /*Projects Title*/
    .projectsHeader p:nth-child(1) {
        font-size: 16px;
    }

    /*Projects Header*/
    .projectsHeader p:nth-child(2) {
        font-size: 40px;
        font-weight: bold;
        width: 100%;
        text-align: left;
    }
}

@media (max-width: 700px) {
    .projectsButtonLine p {
        font-size: 14px;
        line-height: 20px;
        font-weight: 600;
    }

    /*Projects Title*/
    .projectsHeader p:nth-child(1) {
        font-size: 12px !important;
        line-height: 18px !important;
        font-weight: 400;
    }

    /*Projects Header*/
    .projectsHeader p:nth-child(2) {
        font-size: 22px !important;
        line-height: 30px !important;
        font-weight: 600;
        margin: 24px 0;
        width: 100%;
        text-align: left;
    }

    .projectsPreviewSecondLine {
        margin: 0 10px;
    }
}

@media (max-width: 500px) {
    .projectsPreview {
        width: 95% !important;
    }

    .projectsPreviewFirstLine, .projectsPreviewSecondLine, .projectsPreviewThirdLine {
        min-width: unset;
        max-width: unset;
        width: fit-content;
    }

    .projectsPreviewFirstLine img, .projectsPreviewSecondLine img, .projectsPreviewThirdLine img {
        min-width: unset;
        aspect-ratio: 3/4;
    }

    .projectsPreview, .projectsHeader {
        margin: 0 10px;
    }
}

@media (max-width: 350px) {
    .projectsPreviewFirstLine img, .projectsPreviewSecondLine img, .projectsPreviewThirdLine img {
        height: 130px !important;
    }
}
