@media (max-width:991px) {
    body.poster {
        margin-top: 60vh;
    }
}

body.poster {
    background-attachment: fixed;
}

.top-5 {
    top: 5px;
}

.portrait-small {
    max-width: 150px;
    height: auto;
    display: block;
    margin: 0 auto;

    /* centers the image */
}

/* === Custom overrides === */
.portrait-small {
    max-width: 240px;
    height: auto;
    display: block;
}

/* wrapper that limits overall width; use on the flex container */
.narrow-800 {
    max-width: 800px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;

    /* centers the block */
}

/* optional: control the middle text box width */
.middle-text {
    max-width: 260px;
}

/* keep portraits from getting huge */
.portrait-small {
    max-width: 260px;
    height: auto;
}

/* narrow the whole block inside the container */
.narrow-800 {
    max-width: 860px;
    width: 100%;
}

/* make the middle note box narrower */
.middle-text {
    max-width: 220px;
}

/* optional: tighten figcaption spacing */
.figure-caption {
    margin-top: .25rem;
}

/* Keep both portraits the same displayed height (no distortion) */
.portrait-small {
    height: 260px;

    /* ← tweak this number to taste */
    width: auto;

    /* keep aspect ratio */
}

/* Make the middle note box match the portrait height */
.middle-equal {
    min-height: 260px;

    /* ← same number as .portrait-small height */
    display: flex;

    /* center text vertically */
    align-items: center;
    justify-content: center;
}

/* Keep the middle box narrow (change if you want) */
.middle-text {
    max-width: 220px;
}

/* Optional: a slightly softer custom shadow if you want more than Bootstrap's */
.soft-shadow {
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

