/* WordPress-only additions; the Joomla CSS stays untouched. wp-block-library is not loaded on the front end. */
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
}
body.admin-bar #back-top {
    bottom: 46px;
}

.item_fulltext .wp-block-columns {
    display: flex;
    gap: 2em;
    margin-bottom: 1em;
}
.item_fulltext .wp-block-column {
    flex: 1 1 0;
    min-width: 0;
}
.item_fulltext .wp-block-column[style*="flex-basis"] {
    flex-grow: 0;
    flex-shrink: 0;
}
@media (max-width: 767px) {
    .item_fulltext .wp-block-columns {
        flex-direction: column;
        gap: 0;
    }
}

.wp-block-image,
.wp-block-video,
.wp-block-embed {
    margin: 0 0 1em;
}
.wp-block-image img {
    max-width: 100%;
    height: auto;
}
.wp-block-video video {
    max-width: 100%;
}
.wp-block-video.aligncenter {
    text-align: center;
}
.wp-block-image.alignright,
.wp-block-image .alignright {
    float: right;
    margin-left: 1em;
}
.wp-block-image.alignleft,
.wp-block-image .alignleft {
    float: left;
    margin-right: 1em;
}
.wp-block-image.aligncenter,
.wp-block-image .aligncenter,
.wp-block-video.aligncenter {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.wp-element-caption {
    font-size: 0.9em;
}
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }
.wp-block-separator { clear: both; }
/* Core adds .wp-block-spacer { clear: both }; Joomla's empty paragraphs (which spacers replace) sat beside floats. */
.item_fulltext .wp-block-spacer { clear: none; }
