* {
    margin: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    margin: 0 auto;
    padding: 2rem 2rem 0 2rem;
    display: flex;
    flex-direction: column;
}

nav {
    display: grid;
    grid-template-columns: repeat(3, 300px);
    gap: 2rem;
}

main {
    flex: 1;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.navigation {
    grid-column: 3;
    display: flex;
    flex-direction: column;
    font-family: Arial Black;
}

.navigation a {
    width: fit-content;
    margin-left: auto;
    margin-right: 0;
    font-size: 1.5rem;
    color: darkgray;
    font-family: Arial;
    text-decoration: none;
}

.navigation a:hover {
    cursor: pointer;
    color: black;
}

.gallery-title {
    font-size: 2rem;
    text-align: right;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 300px);
    gap: 2rem;
    padding: 1rem;
}

.gallery-item img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    background-color: white;
    box-shadow:
        0 2px 4px rgba(0,0,0,0.1),
        0 4px 8px rgba(0,0,0,0.1),
        0 8px 16px rgba(0,0,0,0.1),
        0 16px 32px rgba(0,0,0,0.1),
        inset 0 0 0 1px rgba(255,255,255,0.1),
        inset 0 0 0 2px rgba(255,255,255,0.1);
    border-radius: 2px;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
    transform: translateZ(0);
}

.gallery-item:hover img {
    cursor: pointer;
    box-shadow:
        0 4px 8px rgba(0,0,0,0.2),
        0 8px 16px rgba(0,0,0,0.2),
        0 16px 32px rgba(0,0,0,0.2),
        0 32px 64px rgba(0,0,0,0.2),
        inset 0 0 0 1px rgba(255,255,255,0.2),
        inset 0 0 0 2px rgba(255,255,255,0.2);
    transform: translateZ(5px);
}

.gallery-item-label {
    font-weight: 300;
}

.gallery-item-label emph {
    font-style: italic;
    font-weight: bold;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    cursor: pointer;
}

#lightbox-img {
    position: absolute;
    object-fit: cover;
    transition:
        top 0.2s ease-in-out,
        left 0.2s ease-in-out,
        width 0.2s ease-in-out,
        height 0.2s ease-in-out,
        padding-top 0.2s ease-in-out,
        padding-left 0.2s ease-in-out;
}

.signature a {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: sticky;
    overflow: auto;
    height: fit-content;
    width: auto;
    padding: .5rem;
    border-radius: 5px;
    border: solid;
    color: #f54969;
    text-transform: uppercase;
    text-decoration: none
}

.signature .name {
    line-height: 80%;
    margin: 0;
    font-family: Arial Black;
    font-size: 2rem;
}

.signature .address {
    font-family: Helvetica;
    font-size: 1rem;
}

@media (max-width: 500px) {
    nav {
        line-height: 1.2;
        grid-template-columns: 300px;
        gap: 0.5rem;
    }

    .navigation {
        grid-column: 1;
    }

    .gallery-grid {
        grid-template-columns: 100%;
        gap: 1rem;
        padding: 0;
    }

    .gallery-item img {
        width: calc(100vw - 2rem);
        height: auto;
    }

    main {
        padding: 1rem;
    }
}

@media (min-width: 500px and max-width: 1000px) {
    nav {
        line-height: 1.2;
        grid-template-columns: 300px;
        gap: 0.5rem;
    }

    .navigation {
        grid-column: 1;
    }

    .gallery-grid {
        grid-template-columns: 300px;
        gap: 1rem;
    }

    main {
        padding: 1rem;
    }
}
