:root {
    --base-green: #006136;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    scroll-behavior: smooth;
}

.hero {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    height: 40em;
    margin-bottom: 3em;
    /* background: url('assets/img/ergertshausen_hero.webp'), linear-gradient(to bottom, #34adfe, #87DFFF); */
    background: image-set('assets/img/ergertshausen_hero.webp' 1x, 'assets/img/ergertshausen_hero_sm.webp' 2x), -webkit-gradient(linear, left top, left bottom, from(#34adfe), to(#87DFFF));
    background: -webkit-image-set(url('assets/img/ergertshausen_hero.webp') 1x, url('assets/img/ergertshausen_hero_sm.webp') 2x), linear-gradient(to bottom, #34adfe, #87DFFF);
    background: image-set('assets/img/ergertshausen_hero.webp' 1x, 'assets/img/ergertshausen_hero_sm.webp' 2x), linear-gradient(to bottom, #34adfe, #87DFFF);
    background-position-x: center;
    background-position-y: bottom;
    background-repeat: no-repeat;
    background-size: contain;
    position: relative;
}

.hero-title {
    text-align: center;
    margin-top: 3em;
    margin-bottom: 2em;
    color: white;
    text-shadow: 0 0 5px #00000024;
}

.sticky {
    position: sticky;
    top: 10px;
}

.fade-in-up-animation {
    opacity: 0;
    animation: fadeIn 500ms ease-in-out forwards;
    position: relative;
}

.hero-title h1 {
    font-size: 2.5rem;
}

main {
    margin-left: 1em;
    margin-right: 1em;
}

.container {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: center;
    margin-bottom: 3em;
    gap: 3em;
}

.column {
    max-width: 480px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 1em;
}

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

.column h3 {
    margin: 0;
    /* margin-bottom: 1em; */
    text-align: center;
}

hr {
    height: 50px;
    width: 100%;
    background-image: url('/assets/img/trenner.svg');
    background-repeat: no-repeat;
    background-position: center;
    border: none;
}

.logo {
    width: 100%;
    height: auto;
}

.greeting {
    margin: 0;
    font-weight: bold;
}

.socials {
    display: flex;
    flex-direction: row;
    gap: 1em;
}

.icon {
    display: block;
    width: 48px;
    height: 48px;
}

.directions {
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.directions-title {
    font-weight: bold;
}

.directions>p>a {
    color: black;
}

.event-day {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

p {
    margin-block-start: 0;
    margin-block-end: 0;
    line-height: 1.5;
}

.weekday {
    color: var(--base-green);
    text-transform: uppercase;
    font-weight: bold;
}

.date {
    color: var(--base-green);
}

.title {
    font-weight: bolder;
    text-align: center;
}

.description {
    text-align: center;
}

footer {
    height: 10em;
    background-color: #006136;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

footer a {
    color: white;
}

section>h3 {
    text-align: center;
}

.gallery-section {
    margin: 0 auto;
    margin-top: 5rem;
    margin-bottom: 3rem;
    max-width: 960px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 10px;
    margin: 1em;
}

.gallery-grid>a {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media only screen and (max-width: 960px) {
    .hero {
        height: 35em;
        background-size: 80em;
    }

    .container {
        align-items: center;
        flex-direction: column;
    }

    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }

    .gallery-image {
        width: 100%;
        height: auto;
    }
}