/* Full native mode1 image, fixed 60px caption and modal parent ownership. */
.gallery-collage-preview{display:block;width:216px;height:192px;border:0;padding:0;background:transparent;overflow:hidden;cursor:pointer}
.gallery-collage-preview img{display:block;max-width:none;max-height:none}
.gallery-collage-window,.gallery-collage__child{position:absolute;inset:0;z-index:1000;background:transparent;color:#000;font:11px Arial,sans-serif;text-shadow:none}
.gallery-collage__frame{position:absolute;top:20px;left:50%;transform:translateX(-50%);box-sizing:border-box;max-width:calc(100% - 8px);max-height:calc(100% - 24px);display:flex;flex-direction:column;border:1px solid #000;background:#d9d9c9}
.gallery-collage__bar{display:flex;align-items:center;justify-content:space-between;height:15px;flex:0 0 15px;padding:0 3px;background:#6b6bb3;color:#fff;font:11px/14px "w95fa",Arial,sans-serif;white-space:nowrap;overflow:hidden}
.gallery-collage__bar>span{overflow:hidden;text-overflow:clip}
.gallery-collage__bar button{flex:none;min-width:0;border:0;padding:0 2px;background:transparent;color:inherit;font:inherit;box-shadow:none;cursor:pointer}
.gallery-collage__viewport{overflow:auto;min-height:0;max-height:calc(100vh - 125px)}
.gallery-collage__stage{position:relative;overflow:hidden;background:#d9d9c9}
.gallery-collage__stage>img{display:block;max-width:none;max-height:none;margin:0;padding:0}
.gallery-collage__hotspot{position:absolute;display:block;box-sizing:border-box;min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;cursor:pointer;appearance:none}
.gallery-collage__hotspot:hover,.gallery-collage__hotspot:active{background:transparent;box-shadow:none}
.gallery-collage__hotspot:focus-visible{outline:1px dotted #000;outline-offset:-2px}
.gallery-collage__caption{box-sizing:border-box;height:60px;flex:0 0 60px;overflow-y:auto;overflow-x:hidden;padding:3px 7px;background:#d9d9c9;color:#000;font:11px/14px Arial,sans-serif;text-align:left}
.gallery-collage__caption p{margin:0 0 3px}.gallery-collage__caption strong{display:block;margin-bottom:3px}
.gallery-collage__child{z-index:1}.gallery-collage__child .gallery-collage__frame{top:30px}
#reader-view>.gallery-collage-window .gallery-collage__frame{top:62px;max-height:calc(100% - 66px)}
#reader-view>.gallery-collage-window .gallery-collage__viewport{max-height:calc(var(--reader-window-height,100vh) - 147px)}
.gallery-collage-window audio{display:none}

/* Native mode6 embeds the full collage and leaves Gallery controls usable. */
.media-gallery-collage-large .media-gallery-overlay__viewer{visibility:hidden}
.gallery-collage-window--large{pointer-events:none}
.gallery-collage-window--large>.gallery-collage__frame,
.gallery-collage-window--large>.gallery-collage__child{pointer-events:auto}
