:root {
    --global-background-color: #222;
}


html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;

    font-family: 'Space Mono', serif;
    background-color: var(--global-background-color);
}

.hero-image {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background: linear-gradient(transparent 0%, transparent 70%, var(--global-background-color) 100%), url("../images/hero_photography.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    color: white;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: white;
    font-family: 'Tenor Sans';
    font-weight: 600;
}


.hero-text h1 {
    font-size: 8vw;
    margin-bottom: 0;
}

.hero-text p {
    font-size: 1.5vw;
}

.fa-arrow-circle-down {
    color: white;
    font-size: 5rem;
    text-decoration: none;
    transition-duration: 0.4s;
}

.fa-arrow-circle-down:hover {
    transform: scale(1.2);
}

.gallery-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.gallery-controls {
    display: none;
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 1%;
    list-style-type: none;
}

.image-gallery>li {
    height: 300px;
    position: relative;
    flex: 1 1 auto;
}

.image-gallery li img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    vertical-align: middle;
    border-radius: 5px;
    cursor: nesw-resize;
    transition: transform 0.5s ease-in-out;
}

.image-gallery li img:hover {
    transform: scale(0.95);
    z-index: 1;
}

.full-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    z-index: 999;
    border-radius: 0;
    background-color: rgba(0, 0, 0, 0.8);
}

.image-gallery::after {
    content: "";
    flex-grow: 999;
}

@media (max-width: 899px) {
    .hero-image {
        background-position-x: 30%;
    }

    .hero-text h1 {
        font-size: 11vw;
    }

    .hero-text p {
        font-size: 3vw;
    }

    .fa-arrow-circle-down {
        font-size: 10vw;
    }

    .gallery-controls {
        display: flex;
        align-items: center;
        position: sticky;
        top: 0;
        height: 70px;
        width: 35%;
        align-self: center;
        justify-content: space-between;
        z-index: 999;
    }

    .gallery-controls button {
        border: none;
        width: 40px;
        height: 40px;
        background: none;
        color: white;
        font-size: 2rem;
        border-radius: 50%;
    }

    .gallery-controls button.active {
        background-color: rgba(0, 0, 0, 0.8);
    }

    .image-gallery {
        gap: 1vw;
    }
    .image-gallery.timeline-view li {
        height: auto; 
    }

    .image-gallery.tile-view li {
        flex: none;
        width: 32vw;
        height: 32vw;
    }
}