/* reset css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
}

img {
    display: block;
    max-width: 100%;
}

.spacer {
    min-height: 100svh;
    background-color: #fdffc9;
}

.section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    min-height: 600vh;
    align-items: start;
    padding-block: 5rem;
}

.aside {
    display: grid;
    grid-template-areas: 'center';

    .figure {
        position: relative;
        grid-area: center;
        padding-top: 60%;

        &.active {
            outline: 10px solid red;
        }

        .figure__img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }
}

.main {
    padding-inline-start: 4rem;
}

.menu {
    list-style-type: none;

    .menu__item {
        &.active {
            color: red;
        }
    }
    
    .menu__link {
        color: inherit;
        width: 100%;
        display: block;
        background-color: transparent;
        border: 0;
        cursor: pointer;
        font-family: inherit;
        font-weight: bold;
        font-size: 2rem;
        padding-block: 0.5rem;
        text-align: start;

    }
}