/**
 * Artikel v1.3.6 de
 *
 * @package    datapreset_artikel
 * @copyright  2021 Matthias Reike
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 */

/* Alignment of add entry button. */
.mdl-align {
    text-align: left;
}

/* add entry (lightgreen) */
.nav-tabs .nav-item a[href*="edit"] {
    color: #fff;
    background: #28a745;
    border-color: #28a745;
}

/* Add entry fields. */
#page-mod-data-edit .basefieldinput {
    width: 100%;
    max-width: 20rem;
}

#page-mod-data-edit .entry-teaser .basefieldinput {
    max-width: 40rem;
}

/* Width of entries. */
.entry {
    max-width: 725px;
}

/* Width of comments and ratings. */
.comment-link,
.comment-ctrl,
.ratingform,
.rating-aggregate-container {
    max-width: 800px;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 1rem;
}

.comment-link {
    margin-top: 1rem;
}

.rating-aggregate-container {
    display: block;
}

/* Article. */
.article-list {
    width: 100%;
    max-width: 1000px;
}

.article-single {
    max-width: 1000px;
    margin-right: auto;
    margin-left: auto;
}

.article-text {
    max-width: 800px;
    margin-right: auto;
    margin-left: auto;
}

.article-single img,
.article-img img {
    max-width: 100%;
    height: auto;
}

.article-list .article-img img {
    object-fit: cover;
    object-position: top center;
    aspect-ratio: 16/9;
}

/* Print version. */
@media print {

    /* Not displayed in print version. */
    #page-header,
    #page-footer,
    .intro,
    .nav-tabs,
    .datapreferences,
    .btn-secondary,
    i.icon,
    .comment-area,
    .pagination,
    input,
    .activity-navigation,
    .activity-information {
        display: none;
    }

    .article-list {
        margin-left: 0;
    }

    .badge {
        color: #000;
        background-color: #fff;
    }
}