* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #000000;
    font-family: "Times New Roman", Times, serif;
    font-size: 36px;
}

body {
    overflow-y: scroll;
}

:root {
    --page-pad: 28px;
}

/* TOP MENU */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 14px var(--page-pad) 8px;
    background: transparent;
    z-index: 1100;
    pointer-events: none;
    line-height: 1.15;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: start;
    width: 100%;
    min-height: 1.15em;
}

.brand,
.email,
.bio,
.header-caption,
.header-nav {
    pointer-events: auto;
}

.brand {
    font-family: Helvetica, Arial, sans-serif;
    text-align: left;
    background: none;
    border: 0;
    padding: 0;
    color: #000000;
    font-size: inherit;
    line-height: 1.15;
    cursor: pointer;
    flex: 0 0 auto;
}

.email {
    text-align: left;
    white-space: nowrap;
    line-height: 1.15;
    flex: 0 0 auto;
}

.header-caption {
    text-align: left;
    height: 1.15em;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 0 0 32ch;
    width: 32ch;
    min-width: 32ch;
    max-width: 32ch;
}

.bio {
    text-align: right;
    white-space: nowrap;
    background: none;
    border: 0;
    padding: 0;
    margin-right: 0;
    color: #000000;
    font: inherit;
    font-size: inherit;
    line-height: 1.15;
    cursor: pointer;
    flex: 0 0 auto;
}

header a,
.brand,
.bio {
    color: #000000;
    text-decoration: none;
}

header a:hover,
.brand:hover,
.bio:hover {
    text-decoration: underline;
}

/* NUMBERS + ZOOM ROW */

.header-nav {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 6px;
    gap: 0;
}

.header-nav-tools {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 12px;
    padding-right: 18px;
    font-size: 14px;
}

.header-nav-numbers {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
}

.project-link {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
}

.project-link span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.45em;
    height: 1.45em;
}

.project-link:hover,
.project-link.is-active {
    text-decoration: none;
}

.project-link:hover span,
.project-link.is-active span {
    background: #ffffff;
}

.zoom-button,
.shuffle {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    line-height: 1;
    background: #ffffff;
    padding: 0;
    color: #000000;
    font: inherit;
    width: 1.45em;
    height: 1.45em;
    border: 0;
    flex: 0 0 auto;
}

.zoom-button {
    font-size: 14px;
}

.shuffle {
    font-weight: 400;
}

.shuffle svg {
    width: 11px;
    height: 11px;
    display: block;
    stroke-width: 1;
}

.shuffle:hover,
.shuffle.is-active {
    text-decoration: underline;
}

/* GALLERY */

main {
    padding: 108px var(--page-pad) 50px;
}

.image-grid {
    position: relative;
    width: 100%;
}

.image-item {
    position: absolute;
    display: block;
    height: auto;
    margin: 0;
    font-size: 0;
    background: transparent;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.image-item[data-project="shuffle"] {
    cursor: default;
}

.image-item:not([data-project="shuffle"]),
.image-item[data-project="shuffle"][data-tag="us"],
.image-item[data-project="shuffle"][data-tag="studio"] {
    cursor: pointer;
}

.image-item.hidden {
    display: none;
}

.project-info-card {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 12px;
    background: #ffffff;
    border: 0;
    color: #000000;
    font: inherit;
    font-size: inherit;
    text-align: center;
    cursor: pointer;
    line-height: 1.25;
    z-index: 2;
}

.project-info-card:hover {
    text-decoration: underline;
}

.info-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    background: transparent;
    pointer-events: none;
}

.info-overlay.is-open {
    display: flex;
}

.info-overlay-frame {
    position: relative;
    width: min(720px, 100%);
    height: 100%;
    background: #fff;
    border: 0;
    pointer-events: auto;
}

.info-overlay-close {
    position: absolute;
    top: 8px;
    right: 10px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    background: #fff;
    color: #000;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.info-overlay-close:hover {
    text-decoration: none;
}

.info-overlay iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

/* MOBILE */

@media (max-width: 900px) {
    :root {
        --page-pad: 14px;
    }

    html,
    body {
        font-size: 28px;
    }

    header {
        padding: 10px var(--page-pad) 6px;
    }

    .header-top {
        gap: 6px 12px;
        flex-wrap: nowrap;
    }

    .email {
        display: block;
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: center;
    }

    .header-caption,
    .header-nav-numbers {
        display: none;
    }

    main {
        padding: 84px var(--page-pad) 30px;
    }

    .zoom-button {
        width: 22px;
        height: 22px;
        font-size: 16px;
    }

    .header-nav-tools {
        gap: 10px;
        padding-right: 0;
        font-size: 16px;
    }

    .shuffle svg {
        width: 15px;
        height: 15px;
    }

    .info-overlay {
        padding: 10px;
    }

    .info-overlay-frame {
        width: 100%;
        height: 100%;
        border: 1px solid #000;
        box-sizing: border-box;
    }
}
