:root {
    --primary: #003e2c;
    --highlight: #a7f4b0;
    --h1-font-size: 2rem; /* 32px */
    --h1-line-height: .9;
    --aside-font-size: 1.25rem; /* 20px */
    --copy-text-font-size: 1.125rem; /* 18px */
}

* {
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    color: var(--primary);
    -webkit-font-smoothing: antialiased;
}


h1 {
    font-size: var(--h1-font-size);
    line-height: var(--h1-line-height);
}

header {
    background: url(../images/header+overlay-01.jpg) no-repeat center;
    background-size: cover;
    aspect-ratio: 16/9;
    position: relative;

    p {
        margin: 0;
    }
}


.container {
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    max-width: 1200px;
    width: 100%;
    gap: 2.5rem;
    z-index: 10;
    position: relative;

    .row {
        gap: 1.5rem;
        display: grid;
        grid-template-columns: 4fr 8fr;
        width: 100%;
    }
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

main {
    .content-box {
        max-width: 34rem;
        margin: 0 auto;

        p {
            font-size: var(--copy-text-font-size);
            font-family: "Open Sans", sans-serif;
            font-weight: 300;
            color: #000;
        }
    }
}


.top {
    display: grid;
    grid-template-columns: 4fr 4fr 4fr;
    position: relative;
    z-index: 100;

    .text-right {
        font-size: 2rem;
        max-width: 16rem;
        margin: 0 auto;
        padding-top: 4rem;
    }

    .brand {
        padding-top: 2.8rem;

        img {
            height: 170px;
        }
    }
}

.flex-end {
    display: flex;
    justify-content: end;
    width: 100%;
}

.upper {
    text-transform: uppercase;
}

h1, h2, h3 {
    margin-top: 0;
    font-weight: 400;
    font-family: "Spectral", "Times New Roman", serif;
}

a {
    color: var(--primary);
    text-decoration: none;
}

aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;

    .content-box {
        max-width: 18rem;

        h3 {
            font-size: 2rem;
            line-height: .9;
            margin: 0;
        }

        p {
            font-size: var(--aside-font-size);
            font-style: italic;
        }

        margin-bottom: 3rem;
    }
}

.slider-header {
    h3 {
        display: inline-block;
        font-family: "Open Sans", sans-serif;
        padding: 0.125rem 0.25rem;
        font-size: 1.4rem;
        font-weight: 700;
        margin: 1rem 0 1.5rem 0;
    }
}

.slide {
    max-width: 36rem;
    margin: 0 auto;

    .slide-title {
        font-size: 2rem;
        line-height: .9;
        max-width: 18rem;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin: 0 auto;
        font-family: 'Spectral', serif;
    }

    .slide-body {
        margin: 0 auto;
        text-transform: uppercase;
        max-width: 28rem;

        p {
            font-size: var(--copy-text-font-size);
            font-family: "Open Sans", sans-serif;
            font-weight: 300;
        }
    }

    .slide-footer {
        font-family: "Myriad Pro", sans-serif;
        font-weight: 300;
        margin: 0 auto;
        max-width: 30rem;

        p {
            font-size: 1rem;

        }
    }
}

strong {
    font-weight: 600;
}

h2 {
    &.upper {
        font-size: 1.25rem;
        margin: 2rem 0;
        font-family: "Open Sans Italic", sans-serif;
        font-weight: 700;
        font-style: italic;
    }
}


@media screen and (min-width: 180px) {
    header {
        aspect-ratio: 8/5;

        .top {
            .brand {
                padding-top: 0;

                img {
                    height: 100px;
                }
            }
        }
    }

    .container {
        .row {
            grid-template-columns: 1fr;
        }

        aside {
            order: 1;
            .content-box{
                margin-bottom: 2rem;
            }
        }

        main {
            order: 0;

            .content-box {
                p {
                    br {
                        display: none;
                    }
                }
            }
        }
    }

    footer {
        font-family: "Open Sans", sans-serif;
        font-weight: 300;
        padding: 1rem 0 2rem 0;
        color: #000;

        .container {
            .row {
                grid-template-columns: 1fr;
                text-align: center;
                gap: 1rem;
                align-items: center;

                p {
                    margin: 0;
                }
            }
        }

        .text-right {
            text-align: center;
        }

        a {
            color: #000;
        }
    }

    #main-content {
        position: relative;
        z-index: 99;
        margin-top: 0;
    }
    aside{
        &.text-right {
            text-align: center;
        }
        .content-box{
            margin: 0 auto;
        }
    }
}

@media screen and (min-width: 768px) {


    aside{
        &.text-right {
            text-align: right;
        }
        .content-box{
            margin: 0 0 2rem 0;
        }
    }

    #main-content {
        margin-top: -2rem;
    }

    header {
        aspect-ratio: 16/9;

        .top {
            .brand {
                padding-top: 0;

                img {
                    height: 170px;
                }
            }
        }
    }

    .container {
        .row {
            grid-template-columns: 4fr 8fr;
        }

        aside {
            order: 0;
        }

        main {
            order: 1;

            .content-box {

                p {
                    br {
                        display: inline;
                    }
                }
            }
        }
    }

    footer {
        padding: 3rem 0 2rem 0;

        .container {
            max-width: 1200px;
            .row {
                grid-template-columns: 4fr 8fr;
                text-align: left;
            }
        }

        .text-right {
            text-align: right;
        }
    }
}


.slider {
    position: relative;
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    margin: auto;
    touch-action: pan-y;
}

.slides {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.slide {
    min-width: 100%;
    text-align: center;
}

.dots {
    display: flex;
    justify-content: center;
    margin: 2.5rem 0 .5rem 0;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #abbfb9;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.dot.active {
    background-color: #a7f4b0;
}

.event {
    &:after{
        content: "";
        width: 5rem;
        height: 1px;
        background-color: var(--primary);
        display: block;
        margin: 2rem auto;
        opacity: .25;
    }
    &:last-of-type{
        &:after{
            display: none;
        }
    }
    max-width: 30rem;
    margin: 0 auto 0 auto;
    .event-title {
        font-size: 2rem;
        line-height: .9;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin: 0 auto;
        font-family: 'Spectral', serif;
        text-transform: lowercase;
    }

    .event-sub-title {

        font-size: var(--copy-text-font-size);
        font-family: "Open Sans", sans-serif;
        font-weight: 300;
        text-transform: uppercase;
    }

    .event-body {
        p{
            text-transform: uppercase;
            font-size: var(--copy-text-font-size);
            font-family: "Open Sans", sans-serif;
            font-weight: 300;
        }
    }

    .event-footer {
        p{
            font-family: "Myriad Pro", sans-serif;
            font-weight: 300;
            font-size: 1rem;
        }
        a{
            text-decoration: underline;
        }
    }
}
