html,
body {
    height: 100%;
    font-family: 'Aboreto', serif;
    background: #666;
    color: white;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 2rem;
}

#main-navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /*height: 60px;*/
    max-width: 1200px;
    margin: 0 auto;
    background: #000000bb;
    padding: 1rem 2rem;
    border-radius: 0 0 1rem 1rem;
}

#main-navigation ul {
    display: flex;
    flex-direction: row;
    justify-content: right;
    align-items: center;
    gap: 2rem;
}

#main-navigation ul li img {
    height: 2rem;
    width: auto;
    display: block;
}

#hero {
    background: url("/static/img/website-cloud-abstract-background.jpg") no-repeat top;
}

div.hero-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    height: 500px;
    padding-top: 4rem;
}

div.hero-grid div {
    display: flex;
    flex: 1;
    justify-content: center;
}

div.hero-grid div.hero-grid-middle {
    width: 400px;
    flex: 0 0 400px;
}

#ridley-hero-image {
    width: 100%;
}

#gallery {
    background: #fffff0;
    color: #333;
    padding-top: 2rem;
}

#gallery h1 {
    text-align: center;
}

div.gallery-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

div.gallery-grid article {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.5);
}

div.gallery-grid article img {
    aspect-ratio: 16/9;
    width: 100%;
    object-fit: cover;
    display: block;
}

#events {
    background: #345425;
    color: white;
    padding-top: 2rem;
}

#events h1 {
    text-align: center;
}

div.events-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

article.event {
    display: flex;
    flex-direction: row;
    padding: 2rem 0;
    border-bottom: 1px solid white;
    gap: 2rem;
}

article.event:first-child {
    padding: 0 0 2rem 0;
}

article.event:last-child {
    padding: 2rem 0 0 0;
    border-bottom: none;
}

article.event h2 {
    font-size: 1.75rem;
    font-weight: bold;
}

article.event div.event-details {
    flex: 1;
}

article.event div.event-buttons {
    flex: 0 0 auto;
}

article.event a.event-button {
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid white;
    text-decoration: none;
    background-color: #00000033;
    display: block;
    color: white;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.5);
}

article.event a.event-button:hover {
    background-color: #ffffff33;
}

footer ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
}

footer a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid white;
}

footer a:hover {
    background-color: #ffffff33;
}

@media (max-width: 1200px) {
    #main-navigation {
        border-radius: 0;
    }
}

@media (max-width: 960px) {
    div.hero-grid {
        height: 300px;
    }

    div.hero-grid div.hero-grid-middle {
        width: 28%;
        flex: 0 0 28%;
    }

    h1 {
        font-size: 3rem;
    }

    #rs-logo-hero {
        width: 120px;
    }
}

@media (max-width: 600px) {
    div.hero-grid {
        height: 200px;
    }

    h1 {
        font-size: 2rem;
    }

    article.event h2 {
        font-size: 1.25rem;
    }

    #rs-logo-hero {
        width: 70px;
    }
}