body {
    margin-top: calc(var(--nav-height) + 50px)
}

#intro {
    display: grid;
    grid-template-columns: 50% 50%;
    align-items: center;
    gap: 60px;
    margin: 50px 20px 80px;
    img {
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        object-position: 0% 20%;
    }
    #hello {
        margin: auto 20px;
        padding-right: 20px;
        h2 {
            font-size: 70px;
        }
        h3 {
            font-size: 26px;
            margin-bottom: 36px;
        }
        .contacts {
            display: flex;
            justify-content: center;
            list-style-type: none;
            width: 100%;
            padding-inline-start: 0;
            font-size: 20px;
            gap: 10px;
            img {
                width: 25px;
                vertical-align: middle;
            }
            a {
                padding: 8px 10px;
                width: max-content;
                outline: solid 1.5px var(--secondary-text-colour);
                outline-color: color-mix(in srgb, var(--secondary-text-colour) 15%, transparent);
                border-radius: 5px;
                color: var(--primary-text-colour);
                text-decoration: none;
            }
        }
    }
}

#current-work {
    margin: 40px 0;
    h2 { text-align: center; }
    #current-display {
        display: grid;
        grid-template-columns: 1fr;
        margin: auto 20px;
        gap: 20px;
        h3 {
            font-size: x-large;
            margin: 10px 0 25px;
        }
        .work-item {
            display: grid;
            grid-template-columns: 2fr 3fr;
            padding: 0 30px;
            gap: 25px;
            .image {
                display: flex;
                justify-content: center;
                overflow: hidden;
                max-height: 250px;
                img {
                    max-height: 100%;
                    max-width: 40vw;
                    object-fit: cover;
                }
                a img {
                    height: 100%;
                }
            }
            .text {
                align-content: center;
                font-size: 14px;
            }
        }
    }
}

#portfolio {
    margin: 40px 0;
    p {
        text-align: center;
        font-size: 24px;
        margin: auto 250px;
        padding-bottom: 25px;
        line-height: 35px;
    }
}

#content {
    display: grid;
    padding: 0 2vw;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    list-style-type: none;
    li {
        display: flex;
        position: relative;
        aspect-ratio: 4 / 3;
        border-radius: 20px;
        background-position: center;
        background-size: cover;
        overflow: hidden;
        align-items: center;
        justify-content: center;
    }
    a {
        display: flex;
        width: 100%;
        height: 100%;
        border-radius: 20px;
        align-items: center;
        justify-content: center;
        font-size: 48px;
        text-decoration: none;
        font-weight: bold;
        color: color-mix(in srgb, var(--background-colour) 0%, transparent );
        z-index: 2;
        transition: 0.2s ease;
        &:hover { 
            color: color-mix(in srgb, var(--background-colour) 100%, transparent);
            background-color: color-mix(in srgb, var(--primary-text-colour) 90%, transparent); 
        }
    }
}

@media (max-width: 1180px) {
    #portfolio p {
        margin: auto 10vw;
    }
}

@media (max-width: 985px) {
    #intro {
        grid-template-columns: 90%;
        justify-content: center;
        #hello {
            padding: auto 10px;
            text-align: center;
            .contacts {
                font-size: 16px;
                img {
                    width: 20px;
                }
            }
        }
    }
    #portfolio p {
        margin: auto 5vw;
    }
    #content {
        grid-template-columns: 1fr;
        padding: 0 3vw;
    }
}