@import url('partials/_separators.css');

/* Base Structure */
.mmp-stories article,
.mmp-stories .story {
    overflow: hidden;
    padding: 0;
    margin-bottom: 1.25em;
    clear: both;
}

.mmp-stories article > header {
    margin-bottom: 1.25em;
}

/* Attribution Layout */
.mmp-stories article > header .attribution {
    margin: 1.25em 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
}

.mmp-stories article > header > .attribution .posted-by,
.mmp-stories article > header > .attribution .edited-by,
.mmp-stories article > header > .attribution .posted-on {
    display: block;
}

/* Image Layout */
.mmp-stories article img {
    padding: 0.625em;
    width: 150px;
    height: auto;
}

.mmp-stories article > img.left {
    float: left;
    margin-right: 0.625em;
}

.mmp-stories article > img.right {
    float: right;
    margin-left: 0.625em;
}

/* Full Page Image Layout */
.mmp-stories article.full img {
    padding: 0;
    margin: 1.25em auto;
    width: 100%;
    height: auto;
}

.mmp-stories article.full figure {
    padding: 0;
    margin: 0;
    width: 100%;
}

.mmp-stories article.full figure img {
    padding: 0;
    width: 100%;
    height: auto;
}

.mmp-stories article.full figure figcaption {
    padding: 0.25em 1.25em;
    margin: 0 0 1.25em 0;
}

/* Description Layout */
.mmp-stories .description {
    display: none;
}

.mmp-stories .description-full,
.mmp-stories .description {
    clear: both;
    overflow: auto;
}

/* Share Component */
.mmpro-share {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin: 1em 0;
    flex-wrap: wrap;
}

.mmpro-share__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0.5em;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.mmpro-share__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Accessibility */
.a11y-sr-only {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Responsive Layout */
@media (max-width: 767px) {
    .mmp-stories article img {
        float: none;
        margin: 1em auto;
        display: block;
    }
    
    .mmpro-share {
        justify-content: center;
    }
}
