:root {
    --font-heading: "Molle", cursive;
    --font-body: "Space Grotesk", sans-serif;
    --gap: 4px;
    --gap-big: 12px;
    --gap-big-two: 24px;
}

body {
    font-family: var(--font-body);
    margin: var(--gap-big);
}

a, a:visited {
    text-decoration: none;
    color: black;
}

nav {
    padding: var(--gap-big);

    h1 {
        margin: 0;
    }
}

h1, h2, h3 {
    font-family: var(--font-heading);
}

main {
    width: 100%;
    display: flex;
    gap: var(--gap-big-two);
    padding: var(--gap-big);
}


.relic-image {
    max-width: 40vw;
    max-height: 80vh;
    position: relative;

    img {
        object-fit: contain;
        object-position: center;
        width: 100%;
        height: 100%;
        cursor: pointer;
    }

    img.expanded {
        object-position: center;
    }

    button {
        position: absolute;
        border: none;
        background-color: rgba(0, 0, 0, 0.25);
        width: 40px;
        height: 40px;
        top: calc(50% - 20px);
    }
    button:hover {
        background-color: rgba(100, 100, 100, 0.25);
    }
    button#prev {
        left: 0;
    }
    button#next {
        right: 0;
    }
}

.relic-image:has(img.expanded) {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    background: rgba(0,0,0,0.9);
}

label {
    font-weight: bold;
    text-decoration: underline;
}
label + p {
    margin-top: 0;
}


@media only screen and (max-device-width: 450px) {
    main {
        max-width: unset;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .relic-image {
        max-width: 90vw;
    }
}