/* Component: related-content — responsive rules retain their original cascade position. */
/* Related content uses the same Swiper navigation as the landing page. */
.mr-related-slider {
    position: relative;
    min-width: 0;
    padding: 0 42px;
}
.mr-related-slider > .mr-strip {
    margin: 0;
    min-width: 0;
    flex-wrap: nowrap;
}
.mr-related-slider > .mr-strip.swiper-initialized {
    display: block;
}
.mr-related-slider .swiper-wrapper {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mr-related-slider .ma-results .swiper-slide {
    flex-shrink: 0;
    width: min-content;
}
.mr-related-slider > button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: none;
    color: inherit;
    font-size: 36px;
    cursor: pointer;
    padding: 0;
}
.mr-related-slider > .mr-prev {
    left: 0;
}
.mr-related-slider > .mr-next {
    right: 0;
}
.mr-related-slider > .swiper-button-disabled {
    opacity: .25;
    cursor: default;
}
.mr-related-slider > .swiper-button-lock {
    display: none;
}
.mr-related-slider .mr-story {
    min-width: 0;
}
/* Compact related editorial cards: natural card widths, no reserved excerpt space. */
.mr-related-slider .mr-strip .mr-story.swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    width: var(--mr-related-card-width,180px);
    max-width: 100%;
    min-width: 0;
    margin: 0;
    box-sizing: border-box;
}
.mr-related-slider .mr-strip .mr-story > .mr-story-image,
.mr-related-slider .mr-strip .mr-story > .mr-placeholder {
    display: block;
    width: 100%;
    height: var(--mr-related-image-height,120px);
    margin: 0;
    aspect-ratio: auto;
}
.mr-related-slider .mr-strip .mr-story > .mr-placeholder {
    display: grid;
    place-items: center;
}
.mr-related-slider .mr-strip .mr-story > .mr-story-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mr-related-slider .mr-strip .mr-story h3 {
    font-size: 16px;
    line-height: 1.25;
    margin: 0 0 4px;
}
.mr-related-slider .mr-strip .mr-story small {
    font-size: 12px;
    line-height: 1.3;
}
.mr-related-slider .mr-strip .mr-story > div:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}


/* Component: object-components — responsive rules retain their original cascade position. */
/* Object components belong to the white archival record, below the media grid. */
.mr-object-record { background: #fff; color: #111; }
.mr-object-record .mr-component-gallery { border-top: 1px solid #ddd; }
.mr-component-gallery {
    box-sizing: border-box;
    max-width: none;
    margin: 0;
}
.mr-component-gallery .ma-results {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: var(--mr-component-gap,20px);
    overflow-x: auto;
}
.mr-component-gallery .ma-results.swiper-initialized {
    display: block;
}
.mr-component-gallery .ma-results li {
    flex: 0 0 auto;
    width: min-content;
    min-width: 100px;
    max-width: 100%;
    overflow-wrap: anywhere;
}
.mr-component-gallery .ma-result-image {
    display: block;
    margin-bottom: 8px;
}
.mr-component-gallery .ma-result-image img {
    display: block;
    height: var(--mr-thumb-height);
    width: auto;
    max-width: 100%;
    object-fit: contain;
}
.mr-component-gallery .ma-result-placeholder {
    width: 160px;
    height: var(--mr-thumb-height);
    display: grid;
    place-items: center;
    background: #eee;
    color: #666;
    margin-bottom: 8px;
}
.mr-component-gallery .ma-object-caption {
    display: block;
    font-size: 13px;
    color: #555;
}
.mr-component-gallery .swiper-wrapper {
    gap: 0;
}
/* Standardized archival previews, independent of original scan proportions. */
.mr-shell img.ma-optimized-preview { object-fit: cover; object-position: center; }
.mr-shell img.ma-preview-portrait { aspect-ratio: 3 / 4; }
.mr-shell img.ma-preview-landscape { aspect-ratio: 4 / 3; }
.mr-shell .mr-card img.ma-optimized-preview,
.mr-shell .ma-result-image img.ma-optimized-preview { object-fit: cover; width: auto; }
