/* Andora: original artwork takes the lead, with a continuous 3-column feed. */
.andora-project .sd-page-title {
    font-size: clamp(4.8rem, 9vw, 13rem);
}

.andora-title-caption {
    display: block;
    margin-top: .4em;
    font-size: .55em;
    line-height: 1.05;
    letter-spacing: -.035em;
}

.andora-project .sd-page-intro > p {
    font-size: clamp(1.9rem, 2.1vw, 3rem);
}

.andora-cover {
    margin-top: 0;
    background: #e9e5dc;
}

.andora-cover-note,
.andora-feed-toolbar,
.andora-feed-layout,
.andora-feed-jumps {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.andora-cover-note {
    justify-content: space-between;
    margin-top: 1.8rem;
    color: var(--t-medium);
    font-size: 1.5rem;
}

.andora-cover-note a,
.andora-feed-original {
    color: var(--t-bright);
    text-underline-offset: .25em;
}

#andora-feed,
.andora-feed li {
    scroll-margin-top: 12rem;
}

.andora-feed-toolbar {
    justify-content: space-between;
    margin-bottom: 2rem;
}

.andora-feed-layout[hidden] {
    display: none;
}

.andora-feed-layout {
    padding: .5rem;
    border: 1px solid var(--st-muted);
    border-radius: 999px;
    gap: .3rem;
}

.andora-feed-layout button {
    min-height: 4.4rem;
    padding: .8rem 1.6rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--t-bright);
    font: inherit;
    font-size: 1.45rem;
    cursor: pointer;
}

.andora-feed-layout button[aria-pressed="true"] {
    background: var(--t-bright);
    color: var(--base);
}

.andora-feed-original {
    font-size: 1.45rem;
}

.andora-feed-jumps {
    gap: .8rem 2rem;
    margin-bottom: 2.4rem;
    font-size: 1.5rem;
}

.andora-feed-jumps a {
    color: var(--t-medium);
    text-decoration: none;
    border-bottom: 1px solid var(--st-muted);
    padding-block: .7rem;
}

.andora-feed-jumps a:hover {
    color: var(--t-bright);
    border-color: currentColor;
}

.andora-feed {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #faf9f4;
}

.andora-feed li {
    min-width: 0;
}

.andora-feed__post {
    position: relative;
    display: block;
    color: var(--t-bright);
    text-decoration: none;
}

.andora-feed__post img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
}

.andora-feed__post:focus-visible {
    z-index: 1;
    outline-offset: -4px;
}

.andora-feed__post::after {
    position: absolute;
    inset: 1.2rem 1.2rem auto auto;
    display: grid;
    place-items: center;
    width: 3.6rem;
    height: 3.6rem;
    content: '↗';
    border-radius: 50%;
    color: #fff;
    background: #242925;
    font-size: 2rem;
    opacity: 0;
    transition: opacity .2s;
}

.andora-feed__post:hover::after,
.andora-feed__post:focus-visible::after {
    opacity: 1;
}

.andora-feed__caption {
    display: none;
}

.andora-feed--individual {
    gap: 2.4rem;
    background: transparent;
}

.andora-feed--individual .andora-feed__caption {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: baseline;
    padding-block: 1.4rem 1rem;
    font-size: 1.5rem;
}

.andora-feed__caption small {
    flex-shrink: 0;
    color: var(--t-medium);
    font-size: 1.3rem;
}

.andora-feed-footnote {
    margin-top: 2rem;
    color: var(--t-medium);
    font-size: 1.4rem;
}

.andora-viewer {
    width: calc(100% - 3.2rem);
    max-width: 124rem;
    height: calc(100dvh - 3.2rem);
    max-height: 120rem;
    margin: auto;
    padding: 0;
    border: 1px solid #4c504c;
    border-radius: 2rem;
    background: #202420;
    color: #faf9f4;
    overflow: hidden;
}

.andora-viewer::backdrop {
    background: rgba(12, 16, 13, .88);
}

.andora-viewer[open] {
    display: flex;
    flex-direction: column;
}

.andora-viewer__header,
.andora-viewer__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 1.2rem;
    padding: 1.4rem 2rem;
}

.andora-viewer__header h2 {
    margin: 0;
    color: inherit;
    font-size: 1.7rem;
    line-height: 1.25;
    letter-spacing: 0;
}

.andora-viewer button,
.andora-viewer__original {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 4.4rem;
    gap: .8rem;
    padding: .8rem 1.5rem;
    border: 1px solid #747c74;
    border-radius: 999px;
    background: transparent;
    color: #faf9f4;
    font: inherit;
    font-size: 1.4rem;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.andora-viewer button:hover,
.andora-viewer__original:hover {
    background: #3b443b;
}

.andora-viewer button:disabled {
    opacity: .3;
    cursor: default;
}

.andora-viewer__tools {
    display: flex;
    gap: .7rem;
}

.andora-viewer__stage {
    position: relative;
    flex: 1;
    display: grid;
    place-items: center;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    touch-action: pan-y pinch-zoom;
}

.andora-viewer__stage img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    margin: auto;
    cursor: zoom-in;
}

.andora-viewer.is-zoomed .andora-viewer__stage {
    display: block;
    touch-action: auto;
}

.andora-viewer.is-zoomed .andora-viewer__stage img {
    position: static;
    width: 1080px;
    height: 1080px;
    max-width: none;
    max-height: none;
    cursor: zoom-out;
}

.andora-viewer__caption {
    text-align: center;
    min-width: 0;
}

.andora-viewer__caption p {
    color: #faf9f4;
    font-size: 1.5rem;
    line-height: 1.3;
}

.andora-viewer__caption span {
    display: block;
    margin-top: .4rem;
    color: #bfc9bf;
    font-size: 1.3rem;
}

@media (max-width: 767px) {
    .andora-feed-toolbar { align-items: flex-start; }
    .andora-feed--individual { grid-template-columns: 1fr; }
    .andora-feed-jumps { gap: .5rem 1.6rem; }
    .andora-viewer { width: calc(100% - 1.2rem); height: calc(100dvh - 1.2rem); border-radius: 1.4rem; }
    .andora-viewer__header, .andora-viewer__footer { padding: 1.2rem; gap: .8rem; }
    .andora-viewer__header h2 { font-size: 1.4rem; }
    .andora-viewer button, .andora-viewer__original { padding: .8rem 1.1rem; font-size: 1.3rem; }
    .andora-viewer__original { display: none; }
    .andora-viewer__caption p { font-size: 1.3rem; }
}
