/* Gallery External Images */

/* Keep submit and cancel controls vertically aligned. */
fieldset.submit-buttons .button1,
fieldset.submit-buttons .button2 {
    vertical-align: middle;
}

/* External album: small gap between top pagination and photos */
.sego-gallery-external-pagination:not(.sego-gallery-external-pagination-bottom) {
    margin-bottom: 10px;
}

/* Native + external photo page: unified viewing area */
#image.postbody_album {
    min-height: 72vh;
    max-height: 78vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(70, 70, 70);
    overflow: hidden;
}

#image.postbody_album a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

#image.postbody_album img.postimage {
    display: block;
    max-width: 100%;
    max-height: 74vh;
    width: auto;
    height: auto;
    margin: 0 auto;
    padding: 0;
    object-fit: contain;
    box-sizing: border-box;
}

