/* Component: object-viewer — responsive rules retain their original cascade position. */
.mr-object-view{
    display: grid;
    grid-template-columns: 61% 39%;
    min-height: 70vh;
    background: #fff;
    color: #111;
}
.mr-view-media{
    min-width: 0;
    padding: 12px 0 18px;
}
.mr-view-stage{
    position: relative;
    height: 65vh;
    min-height: 300px;
    background: white;
    overflow: hidden;
}
.mr-view-content{
    position: absolute;
    inset: 12px 48px;
    place-items: center;
    overflow: hidden;
    touch-action: none;
}
.mr-view-content>img{
    width: auto;
    height: auto;
    cursor: grab;
    user-select: none;
}
.mr-view-content video{
    max-width: 100%;
    max-height: 100%;
}
.mr-view-content audio{
    max-width: 100%;
}
.mr-view-tools{
    position: absolute;
    left: 5px;
    bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mr-view-stage button{
    background: #fff;
    border: 0;
    padding: 4px;
    cursor: pointer;
    width: 38px;
    height: 34px;
}
.mr-view-stage button img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.mr-view-stage button[hidden]{
    display: none;
}
.mr-view-arrow{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.mr-view-arrow[data-action=prev]{
    left: 0;
}
.mr-view-arrow[data-action=next]{
    right: 0;
}
.mr-view-caption{
    text-align: center;
    font-size: 12px;
    padding: 8px;
}
.mr-view-thumbs{
    display: flex;
    gap: 10px;
    overflow-x: auto;
    justify-content: safe center;
    padding: 8px 16px;
}
.mr-view-thumbs button{
    flex: none;
    background: #fff;
    border: 1px solid transparent;
    padding: 4px;
    cursor: pointer;
}
.mr-view-thumbs button[aria-current=true]{
    border-color: #111;
}
.mr-view-thumbs img{
    display: block;
    height: 78px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
}
.mr-view-thumbs span{
    display: block;
    font-size: 11px;
}
.mr-view-info{
    padding: 24px 32px;
    border-left: 1px solid #ddd;
    min-width: 0;
    overflow-wrap: anywhere;
}
.mr-view-info h1{
    font: normal 26px/1.2 Georgia,serif;
    margin: 0 0 24px;
}
.mr-view-info h2{
    font: normal 15px/1.4 Arial,sans-serif;
    margin: 16px 0 4px;
}
.mr-view-info section{
    border-bottom: 1px solid #ddd;
    padding: 8px 0;
}
.mr-view-info small{
    color: #777;
    display: block;
}
.mr-view-info p{
    margin: 4px 0;
}
.mr-view-info ul{
    list-style: none;
    padding: 0;
    margin: 0;
}
.mr-view-info details{
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}
.mr-view-info summary{
    cursor: pointer;
}
.mr-view-stage:fullscreen{
    height: 100vh;
    width: 100vw;
}
@media(max-width:760px){.mr-object-view{
    display: block;
}
.mr-view-info{
    border-left: 0;
    border-top: 1px solid #ddd;
    padding: 20px;
}
.mr-view-stage{
    height: 55vh;
}
}
.mr-view-content{
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
}
.mr-view-content>img{
    display: block;
    flex: none;
    max-width: none;
    max-height: none;
    object-fit: contain;
    margin: 0;
    transform-origin: center;
}
.mr-view-stage .mr-view-close{
    position: absolute;
    top: 8px;
    left: 5px;
    font: 32px/1 Arial,sans-serif;
    z-index: 2;
}
.mr-view-close:hover{
    background: #eee;
}
.mr-view-info>h2{
    font: normal 22px/1.3 Georgia,serif;
    text-align: left;
    margin: 0 0 12px;
}
.mr-view-info>dl{
    margin: 0 0 22px;
    padding: 0 0 18px;
    border-bottom: 1px solid #ccc;
}
.mr-md-row{
    display: grid;
    grid-template-columns: minmax(90px,30%) minmax(0,1fr);
    gap: 12px;
    margin: 0 0 8px;
    line-height: 1.45;
}
.mr-md-row dt{
    color: #666;
    font-size: 13px;
}
.mr-md-row dd{
    margin: 0;
    white-space: pre-line;
    font-size: 14px;
}
.mr-md-row dd small{
    display: inline;
}
.mr-md-related h2{
    text-align: left;
}
.mr-md-related summary{
    font-weight: 600;
}
.mr-view-info>dl:empty{
    display: none;
}
