@use '~@epam/promo/assets/styles/colors.scss' as *;

.layout {
    margin: 0 auto;
    background-color: $gray10;

    .projects {
        max-width: 1200px;
        width: 100%;
        margin: 0 auto;
        padding: 60px 0;
        justify-content: space-between;
    }

    .wrapper {
        width: inherit;
    }

    .header {
        font-size: 30px;
        line-height: 36px;
        padding: 0;
        margin-bottom: 12px;
    }

    .content {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;

        .project {
            margin-top: 12px;
            text-decoration: none;

            &:hover {
                background-color: white;
            }
        }

        .icon-wrapper {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 106px;
            width: 112px;
        }

        .overflow-projects {
            font-size: 36px;
            line-height: 48px;
            color: $blue;
        }

        .project-caption {
            color: $gray80;
            text-align: center;
        }

        .project-caption-all {
            color: $blue;
            text-align: center;
        }
    }

    @media (max-width: 1280px) {
        .projects {
            max-width: 732px;
            padding: 48px 0;
        }

        .header {
            margin-bottom: 0;
        }

        .content {
            .project {
                margin: 12px 12px 0 12px;
            }
        }
    }

    @media (max-width: 768px) {
        .projects {
            max-width: none;
            width: inherit;
            padding: 30px 0;
            margin: 0 12px;
        }

        .header {
            font-size: 24px;
            line-height: 30px;
            padding: 0;
            margin-bottom: 0;
        }

        .content {
            .project {
                margin: 18px 0 0 0;
            }

            .icon-wrapper {
                height: 86px;
                width: 90px;
            }

            .project-caption {
                color: $gray80;
                text-align: center;
                padding-top: 2px;
                padding-bottom: 2px;
            }

            .project-caption-all {
                color: $blue;
                text-align: center;
                padding-top: 2px;
                padding-bottom: 2px;
            }
        }
    }
}
