body {
    font-family: Helvetica, sans-serif;
    font-size: 0.875em;
    font-optical-sizing: auto;
    line-height: 1.25em;
    font-weight: 400;
    margin: 0;
    padding: 20px 10px 10px 10px;
    box-sizing: border-box;
    background-color: white;
    color: black;
}

main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.work-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.work-item {
    width: 48%;
    margin-bottom: 5px;
    text-align: center;
    position: relative;
}

.work-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.caption {
    margin-top: 5px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1em;
}

.caption-fig {
    flex-shrink: 0;
    color: silver;
}

.caption-text {
    flex: 1;
}

.clients-list {
    clear: both;
    margin-top: 0;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.clients-list p {
    margin-bottom: 1.25em;
}

.clients-columns {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 0;
    min-width: 100%;
    column-count: 2;
}

.clients-columns li {
    padding-left: 1em;
    text-indent: -1em;
    break-inside: avoid;
}

p {
    text-align: center;
    margin: 0;
}

.refresh {
    color: blue;
    text-align: center;
    font-weight: 400;
    text-decoration: none;
    text-transform: uppercase;
    margin-bottom: 1.25em;
}

.refresh a {
    text-decoration: none;
    color: blue;
}

.refresh a:visited {
    color: blue;
}

.refresh a:hover {
    color: black;
}

.refresh a:active {
    color: blue;
}

.thumbnail-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 34px;
}

.project-group {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 4px;
}

.thumbnail-item {
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

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

.book-container {
    width: 100%;
    aspect-ratio: 3 / 2;
    background: silver;
    position: relative;
    container-type: size;
}

.book-viewer {
    display: flex;
    align-items: stretch;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.book-viewer::before,
.book-viewer::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: var(--cap-w);
    height: var(--cap-h);
    background: silver;
    z-index: 1;
}

.book-viewer::before {
    top: -1px;
    clip-path: url(#cap-top);
}

.book-viewer::after {
    bottom: -1px;
    clip-path: url(#cap-bottom);
}

.book-pages {
    width: 5px;
    background: repeating-linear-gradient(
        to right,
        #888888 0px,
        #888888 1px,
        white 1px,
        white 2px
    );
}

.book-pages-left {
    clip-path: polygon(0% 5%, 100% 0%, 100% 100%, 0% 95%);
}

.book-pages-right {
    clip-path: polygon(0% 0%, 100% 5%, 100% 95%, 0% 100%);
}

.book-image-wrap {
    position: relative;
    flex: 1;
}

.book-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: unset;
    object-fit: cover;
}

.book-spine {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 42px;
    background:
        linear-gradient(to right,
            transparent 32%,
            rgba(0, 0, 0, 0.11) 45%,
            transparent 100%
        ),
        linear-gradient(to right,
            transparent calc(50% - 1px),
            rgba(0, 0, 0, 0.07) calc(50% - 0.5px),
            rgba(0, 0, 0, 0.09) calc(50% + 0.5px),
            transparent calc(50% + 1px)
        );
    pointer-events: none;
}

.stats-table {
    margin-top: 34px;
    border-collapse: collapse;
}

.stats-table td {
    padding: 0 0.15em 0 0;
    white-space: nowrap;
    line-height: 1.25em;
}

footer {
    margin-top: 1.25em;
}

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

form input[type="password"] {
    border: none;
    border-bottom: 1px solid black;
    outline: none;
    font-family: inherit;
    font-size: inherit;
    background: transparent;
}

form button {
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
}

.footer-gap {
    margin-top: 1.25em;
}

.footer-sep {
    margin-bottom: 1.25em;
}

@media (max-width: 768px) {
    .work-item {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .work-gallery {
        gap: 10px;
    }
}
