/*
  Websites CSS
*/

.websites-grid {
    display: grid;
    grid-gap: 120px 100px;
}

/* Featured */
.websites-grid.featured-websites {

    .website-item {
        .image {
            height: 100%;

            a {
                height: 600px;
            }
        }

        .content {
            position: absolute;
            background: var( --white );
            padding: 25px 25px;
            bottom: 45px;
            width: 80%;
            max-width: 400px;
            right: 30px;
            border-radius: 4px;
        }
    }
}

/* Default */
.website-item {
    font-size: 16px;
    line-height: 1.8em;
    color: var(--gray);
    position: relative;

    .image {
        overflow: hidden;
        margin-bottom: 30px;
        border-radius: 4px;

        a {
            display: block;
            height: 270px;
            min-height: 100%;
            cursor: none;
        }

        &:hover {
            img {
                transform: scale(1.1);
            }
        }

        img {
            width: 100%;
            transition: all 1.5s cubic-bezier(0.64, 0.04, 0, 1.2);
            height: 100%;
            object-fit: cover;
            object-position: center;
            display: block;
        }
    }

    .title {
        font-size: 26px;
        line-height: 1.3em;
        margin-bottom: 5px;

        a {
            display: flex;
            justify-content: space-between;
            align-items: center;

            .with-arrow {
                font-size: 14px;
                padding-right: 3px;
            }
        }

    }
}



/* ---------- DESKTOP 1000 And Above ---------- */
@media only screen and (min-width: 1001px){
    .websites-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .websites-grid.featured-websites {
        grid-gap: 60px 60px;
        grid-template-columns: 2fr 1fr 2fr;

        .website-item {
            &:nth-child(1), &:nth-child(4) {
                grid-column: span 3;

                .image {
                    a {
                        display: block;
                        height: 700px;
                        min-height: 100%;
                    }
                }
            }

            &:nth-child(2) {
                grid-column: span 1;
            }

            &:nth-child(3) {
                grid-column: span 2;
            }
        }
    }
}


/* ---------- MOBILE 1000 And Below ---------- */
@media only screen and (max-width: 1000px){
    .websites-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 60px;

        &.featured-websites {
            grid-template-columns: 1fr;
        }
    }
}

/* ---------- MOBILE 768 AND BELOW ---------- */
@media only screen and (max-width: 768px) {
    .websites-grid {
        grid-template-columns: 1fr;
    }

    .websites-grid:not(.featured-websites) {
        .image {
            margin-left: -5%;
            margin-right: -5%;
        }
    }

    .websites-grid.featured-websites {
        grid-gap: 0;
        margin-left: -5%;
        margin-right: -5%;

        .website-item {
            font-size: 15px;

            .image {
                a {
                    height: 500px;
                }
            }

            .content {
                width: 90%;
                max-width: 100%;
                bottom: 30px;
                left: 50%;
                transform: translateX(-50%);
                padding: 18px 20px;
            }

            .title {
                font-size: 21px;
                margin-bottom: 0;
            }
        }
    }

    .website-item {
        .title {
            font-size: 23px;
        }

        .image {
            border-radius: 0;
        }
    }
}