.egallery-series-nav {
    position: static;
    z-index: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: fit-content;
    max-width: calc(100% - 40px);
    margin: 26px auto 30px;
    margin-top: 26px !important;
    margin-bottom: 30px !important;
    padding: 5px 18px;
    border: 1px solid #b9a18d;
    color: #b9a18d;
    font-family: 'Source Sans Pro', 'Source Sans', Arial, sans-serif;
    font-size: 20px;
    font-weight: 300;
    line-height: 1.35;
    text-transform: uppercase;
}

.egallery-series-nav a,
.egallery-series-nav .egallery-series-context {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    white-space: nowrap;
}

.egallery-series-nav a {
    color: inherit;
    text-decoration: none;
    text-underline-offset: 5px;
    transition: color 160ms ease;
}

.egallery-series-nav a[aria-current="page"] {
    font-weight: 400;
}

.egallery-series-nav a:hover,
.egallery-series-nav a:focus-visible {
    color: #806b59;
    text-decoration: underline !important;
}

.egallery-series-nav a:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 4px;
}

.cosmic-gallery-page #reelcontainer {
    background: #fff;
}

.cosmic-gallery {
    width: min(1300px, calc(100% - 64px));
    margin: 0 auto;
    padding: 0 0 74px;
    text-align: center;
}

.cosmic-gallery-artwork {
    margin: 0;
}

.cosmic-gallery-image-link {
    display: block;
}

.cosmic-gallery-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 84vh;
    max-height: 84svh;
    margin: 0 auto;
}

.cosmic-gallery-caption {
    margin: 25px auto 0;
    color: #b9a18d;
}

.cosmic-gallery-title {
    margin: 0 0 12px;
    font-size: 25px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: .1em;
}

.cosmic-gallery-explore {
    display: inline-block;
    padding: 6px 2px;
    color: #b9a18d;
    font-size: 22px;
    font-weight: 300;
    border-bottom: 1px solid currentColor;
}

.cosmic-gallery-explore:hover,
.cosmic-gallery-explore:focus-visible {
    color: #806b59;
}

@media (max-width: 768px) {
    .egallery-series-nav {
        gap: 8px;
        max-width: calc(100% - 24px);
        margin: 18px auto 20px;
        margin-top: 18px !important;
        margin-bottom: 20px !important;
        padding: 2px 11px;
        font-size: 21px;
    }

    .egallery-series-nav a,
    .egallery-series-nav .egallery-series-context {
        min-height: 40px;
    }

    .cosmic-gallery {
        width: calc(100% - 24px);
        padding-bottom: 46px;
    }

    .cosmic-gallery-image {
        width: 100%;
        max-height: none;
    }

    .cosmic-gallery-caption {
        margin-top: 18px;
    }

    .cosmic-gallery-title {
        font-size: 18px;
        letter-spacing: .08em;
    }

    .cosmic-gallery-explore {
        font-size: 18px;
    }
}

/* The existing phone layout uses a 973px artboard scaled by the viewport.
   Also match phone screens when this artboard expands the layout viewport. */
@media (max-width: 720px), (pointer: coarse) and (max-device-width: 720px) {
    .egallery-series-nav {
        gap: 20px;
        max-width: calc(100% - 70px);
        margin-top: 36px !important;
        margin-bottom: 36px !important;
        padding: 10px 25px;
        font-size: 44px;
    }

    .egallery-series-nav a,
    .egallery-series-nav .egallery-series-context {
        min-height: 72px;
    }

    .cosmic-gallery-caption {
        margin-top: 38px;
    }

    .cosmic-gallery-title {
        font-size: 42px;
    }

    .cosmic-gallery-explore {
        padding: 10px 2px;
        font-size: 38px;
    }
}
