/* Characters page fully modernized shell (no Muse layout plumbing). */

.modern-shell {
    --shell-max: 1080px;
    --content-max: 822px;
    --space-1: 0.75rem;
    --gallery-gap: 1.25rem;
    margin: 0;
    min-width: 0;
    padding-top: clamp(24px, 4vw, 48px);
    background: #fff;
    color: #000;
    font-family: Georgia, Palatino, "Palatino Linotype", Times, "Times New Roman", serif;
}

.modern-shell * {
    box-sizing: border-box;
}

.modern-shell img {
    max-width: 100%;
    height: auto;
    display: block;
}

.modern-shell #page {
    width: min(100%, var(--shell-max));
    margin: 0 auto;
    padding: 0 1rem 48px;
}

.modern-shell #site-header {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}

.modern-shell #site-header-logo {
    width: min(400px, 90vw);
    margin: 0 auto;
    aspect-ratio: 423 / 250;
    overflow: hidden;
}

.modern-shell #site-header-logo-image {
    width: 100%;
    transform: translateY(-25%);
}

.modern-shell #site-header-nav-row {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 20;
}

.modern-shell .tb-nav {
    width: 100%;
    max-width: 640px;
    margin: var(--space-1) auto 0;
    position: relative;
    z-index: 30;
}

.modern-shell .tb-nav-list,
.modern-shell .tb-subnav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.modern-shell .tb-nav-list {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
}

.modern-shell .tb-nav-item {
    position: relative;
    padding-bottom: 8px;
}

.modern-shell .tb-nav-link {
    display: block;
    padding: 0.5rem 0.85rem;
    line-height: 1.18;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: lowercase;
    color: #000;
    text-decoration: none;
}

.modern-shell .tb-nav-link:hover,
.modern-shell .tb-nav-link-active {
    color: #005cac;
}

.modern-shell .tb-subnav {
    position: absolute;
    top: calc(100% - 1px);
    left: 50%;
    transform: translate(-50%, 6px);
    min-width: 170px;
    background-color: #f7f7f7;
    border: 1px solid #ececec;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
}

.modern-shell .tb-has-subnav:hover > .tb-subnav,
.modern-shell .tb-has-subnav:focus-within > .tb-subnav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.modern-shell .tb-subnav-link {
    display: block;
    padding: 0.45rem 0.65rem;
    text-align: center;
    font-size: 11px;
    color: #000;
    text-decoration: none;
    background-color: #f7f7f7;
}

.modern-shell .tb-subnav-link:hover,
.modern-shell .tb-subnav-link.tb-nav-link-active {
    color: #005cac;
}

.modern-shell .art-gallery {
    width: min(100%, var(--content-max));
    margin: 1.75rem auto 0;
    display: flex;
    flex-direction: column;
    gap: var(--gallery-gap);
}

.modern-shell .art-gallery-row,
.modern-shell .art-gallery-columns {
    display: flex;
    gap: var(--gallery-gap);
    align-items: flex-start;
    width: 100%;
}

.modern-shell .art-gallery-column,
.modern-shell .art-gallery-stack {
    display: flex;
    flex-direction: column;
    gap: var(--gallery-gap);
    min-width: 0;
}

.modern-shell .art-gallery-card,
.modern-shell figure {
    margin: 0;
}

.modern-shell .art-gallery-image {
    width: 100%;
    height: auto;
}

.modern-shell #characters-gallery-opening-row > .art-gallery-card-wide {
    flex: 0 1 548px;
}

.modern-shell #characters-gallery-opening-row > .art-gallery-stack {
    flex: 0 1 242px;
}

.modern-shell #characters-mid-row > .art-gallery-card-wide {
    flex: 0 1 558px;
}

.modern-shell #characters-mid-row > .art-gallery-card-tall {
    flex: 0 1 236px;
}

.modern-shell #characters-portrait-row > .art-gallery-card-slim:nth-child(1) {
    flex: 0 1 193px;
}

.modern-shell #characters-portrait-row > .art-gallery-card-slim:nth-child(2) {
    flex: 0 1 176px;
}

.modern-shell #characters-portrait-row > .art-gallery-card-wide {
    flex: 0 1 406px;
}

.modern-shell #characters-left-column {
    flex: 0 1 280px;
}

.modern-shell #characters-right-column {
    flex: 0 1 522px;
}

.modern-shell #characters-lower-pair > #characters-fisherwoman {
    flex: 0 1 328px;
}

.modern-shell #characters-lower-pair > #characters-family-portrait {
    flex: 0 1 174px;
}

.modern-shell #characters-family-portrait {
    overflow: hidden;
}

.modern-shell #characters-family-portrait-image {
    width: calc(100% + 20px);
    max-width: none;
    margin-left: -10px;
}

.modern-shell #site-footer-wrap {
    width: 100%;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modern-shell #site-footer-leaves {
    width: max-content;
    margin: 0 auto;
}

.modern-shell #site-footer {
    width: min(100%, 880px);
    margin: 0.5rem auto 0;
    padding: 0.5rem 0 1rem;
    text-align: center;
}

.modern-shell #site-footer-copyright,
.modern-shell #site-footer-copyright-text {
    font-size: 12px;
    line-height: 1.18;
    letter-spacing: 1px;
    color: #7f7f7f;
    text-align: center;
}

.modern-shell #site-footer-empty-row,
.modern-shell #site-footer-hook {
    width: 100%;
    min-height: 0;
}

.modern-shell #site-footer-social {
    margin: 0.25rem auto 0;
    width: 170px;
    min-height: 70px;
    position: relative;
}

.modern-shell #social-instagram-bg,
.modern-shell #social-facebook-bg,
.modern-shell #social-pinterest-bg,
.modern-shell #social-instagram-icon,
.modern-shell #social-facebook-icon,
.modern-shell #social-pinterest-icon {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
}

.modern-shell #social-instagram-bg {
    left: 0;
    top: 1px;
}

.modern-shell #social-facebook-bg {
    left: 53px;
    top: 0;
}

.modern-shell #social-pinterest-bg {
    left: 105px;
    top: 0;
}

.modern-shell #social-instagram-icon {
    left: 12px;
    top: 20px;
}

.modern-shell #social-pinterest-icon {
    left: 118px;
    top: 20px;
}

.modern-shell #social-facebook-icon {
    left: 62px;
    top: 17px;
}

@media (max-width: 840px) {
    .modern-shell .art-gallery-row,
    .modern-shell .art-gallery-columns {
        flex-direction: column;
    }

    .modern-shell #characters-left-column,
    .modern-shell #characters-right-column,
    .modern-shell #characters-gallery-opening-row > .art-gallery-card-wide,
    .modern-shell #characters-gallery-opening-row > .art-gallery-stack,
    .modern-shell #characters-mid-row > .art-gallery-card-wide,
    .modern-shell #characters-mid-row > .art-gallery-card-tall,
    .modern-shell #characters-portrait-row > .art-gallery-card-slim,
    .modern-shell #characters-portrait-row > .art-gallery-card-wide,
    .modern-shell #characters-lower-pair > #characters-fisherwoman,
    .modern-shell #characters-lower-pair > #characters-family-portrait {
        flex-basis: auto;
    }
}

@media (max-width: 640px) {
    .modern-shell .tb-nav-list {
        display: block;
        border-top: 1px solid #e8e8e8;
        border-bottom: 1px solid #e8e8e8;
    }

    .modern-shell .tb-nav-item {
        width: 100%;
        padding-bottom: 0;
        border-bottom: 1px solid #efefef;
    }

    .modern-shell .tb-nav-item:last-child {
        border-bottom: 0;
    }

    .modern-shell .tb-nav-link {
        min-height: 46px;
        padding: 0.72rem 0.95rem;
        display: flex;
        align-items: center;
        font-size: 13px;
        letter-spacing: 0.7px;
        text-transform: lowercase;
    }

    .modern-shell .tb-subnav {
        position: static;
        top: auto;
        left: auto;
        transform: none;
        min-width: 0;
        border: 0;
        border-top: 1px solid #e9e9e9;
        background-color: #fafafa;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: none;
    }

    .modern-shell .tb-nav-item.is-open > .tb-subnav {
        display: block;
    }

    .modern-shell .tb-has-subnav:hover > .tb-subnav,
    .modern-shell .tb-has-subnav:focus-within > .tb-subnav {
        transform: none;
    }

    .modern-shell .tb-subnav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        text-align: left;
        padding: 0.65rem 0.95rem 0.65rem 1.35rem;
        font-size: 12px;
        background-color: #fafafa;
    }

    .modern-shell .tb-subnav-link:hover,
    .modern-shell .tb-subnav-link:active,
    .modern-shell .tb-subnav-link:focus-visible,
    .modern-shell .tb-nav-link:active,
    .modern-shell .tb-nav-link:focus-visible {
        background-color: #f1f5f8;
    }
}
