/* The story page (povestea-noastra/index.html), laid out as mockup-1. */

/* The page opens with the site's photo banner. The drawn heading under it has the same white band above
   (up to the banner) and below (down to the capitals of the first line): 60 px, 40 px on the narrow header.
   Above: the container's own top margin is dropped because it changes with the root font size.
   Below: the capitals of the first line start 9 px under the top of the paragraph. */
.story {
    padding-top: 60px;
}

.story .container {
    margin-top: 0;
    margin-bottom: 4rem;
}

.story-title {
    margin: 0 0 51px;
    line-height: 0;
}

/* The drawing is 231 x 47.4; the mockup shows it at about twice that. */
.story-title img {
    display: block;
    width: 462px;
    max-width: 100%;
    height: auto;
}

.story-text p {
    font-size: 17px;
    line-height: 1.8;
    color: #323B3C;
    text-align: justify;
    margin-bottom: 1.8em;
}

/* The site's reset sets strong to font: inherit. */
.story-text strong {
    font-weight: 600;
}

.story-text p:last-child {
    margin-bottom: 0;
}

.story-photo-wrap {
    position: relative;
    width: 276px;
    margin: 0 0 0 auto;
}

/* Explicit width AND height: a photo that fails to load keeps the portrait box. */
.story-photo {
    display: block;
    width: 276px;
    height: 442px;
    object-fit: cover;
    object-position: 50% 50%;
}

/* The tooth sits over the photo's bottom-left corner, sticking out left and below. */
.story-tooth {
    position: absolute;
    left: -36px;
    bottom: -46px;
    width: 66px;
    height: auto;
}

.story-closing {
    margin: 180px auto 0;
    max-width: 1080px;
    font-size: 17px;
    font-style: italic;
    line-height: 1.8;
    color: #323B3C;
    text-align: center;
}

.story-logo {
    display: block;
    width: 120px;
    height: auto;
    margin: 90px auto 0;
}

/* The header's own breakpoint. */
@media (max-width: 992px) {
    .story {
        padding-top: 40px;
    }

    .story-title {
        margin-bottom: 31px;
    }
}

@media (max-width: 991.98px) {
    .story-photo-wrap {
        margin: 3rem auto 0;
    }

    .story-closing {
        margin-top: 100px;
    }

    .story-logo {
        margin-top: 60px;
    }
}

@media (max-width: 575.98px) {
    .story-text p {
        text-align: left;
    }
}
