body {
    font-family: 'Lora', Georgia, serif;
    margin: 50px 15px;
}

#container {
    max-width: 500px;
    margin: 0 auto;
}

#introduction {
    margin-bottom: 80px;
}

#introduction a {
    color: black;
    text-decoration: none;
}

#description {
    color: grey;
}

.tab-nav {
    display: flex;
    gap: 20px;
    align-items: baseline;
    padding-bottom: 20px;
    border-bottom: 1px solid lightgrey;
    min-height: 52px;
}

.tab {
    margin: 0;
    font-size: 1.25em;
    color: lightgrey;
    cursor: pointer;
    transition: color 0.25s;
}

.tab.active {
    color: black;
    font-size: 1.5em;
}

.tab:not(.active):hover {
    color: grey;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.work-item {
    margin: 20px 0;
    padding-bottom: 20px;
    border-bottom: 1px solid lightgrey;
}

.work-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.work-link {
    display: flex;
    gap: 20px;
    color: inherit;
    text-decoration: none;
    align-items: stretch;
}

.work-link img {
    box-sizing: border-box;
    flex: 0 0 auto;
    max-width: 60%;
    height: auto;
    border: 1px solid lightgrey;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1);
    display: block;
}

.work-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.work-info h4,
.work-info p {
    margin: 0;
}

.work-info p {
    font-size: 0.8em;
    color: grey;
}

.photo-row {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.photo-row:first-child {
    margin-top: 20px;
}

.photo-row:last-child {
    margin-bottom: 0;
}

.photo-row a {
    flex: 1;
    display: flex;
}

.photo-row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-row {
    display: block;
}

.video-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.square-wrapper {
    aspect-ratio: 1 / 1;
}

@media (min-width: 1250px) {
    #container {
        max-width: 700px;
    }
}

@media (max-width: 500px) {
    .photo-row {
        flex-direction: column;
    }

    .work-link {
        flex-direction: column;
        align-items: flex-start;
    }

    .work-link img {
        width: 100%;
        max-width: 100%;
    }

    .work-info {
        width: 100%;
        gap: 10px;
    }
}
