#module-simplenews-news .container, #module-simplenews-news .simplenews-container {
    width: auto;
    max-width: 1700px;
}

#module-simplenews-news div#content {
    background: none;
}

.simplenews-feed {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
}

.simplenews-post {
    box-sizing: border-box;
    width: calc((100% - 32px) / 3);
    padding: 20px;
    border: 3px solid #eee;
    border-radius: 10px;
    background: #fff;
    text-align: center;
}

/* Media */
.simplenews-image,
.simplenews-video {
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 20px;
    padding: 20px;
    overflow: hidden;
    border-radius: 10px;
    background: #eee;
}

.simplenews-image {
    text-align: center;
}

.simplenews-image img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 300px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

.simplenews-video {
    aspect-ratio: 16 / 9;
}

.simplenews-video iframe,
.simplenews-video video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 6px;
    object-fit: contain;
}

/* Post content */
.simplenews-title {
    margin: 0 0 12px;
}

.simplenews-content {
    line-height: 1.7;
}

.simplenews-content p:first-child {
    margin-top: 0;
}

.simplenews-content p:last-child {
    margin-bottom: 0;
}

.simplenews-date {
    display: block;
    margin-top: 18px;
    font-size: 0.6em;
    text-align: right;
    opacity: 0.65;
}

.simplenews-empty {
    text-align: center;
}

#module-simplenews-news h1 {
    text-align: center;
    font-size: 2em !important;
    border-bottom: 1px dashed black;
    padding: 20px; 
    text-transform: uppercase;
}

/* Tablet */
@media (max-width: 991px) {
    .simplenews-post {
        width: calc((100% - 16px) / 2);
    }
}

/* Mobile */
@media (max-width: 767px) {
    .simplenews-container {
        padding: 25px 15px 50px;
    }

    .simplenews-feed {
        gap: 16px;
    }

    .simplenews-post {
        width: 100%;
    }

    .simplenews-image,
    .simplenews-video {
        padding: 15px;
    }

    #module-simplenews-news h1 {
        padding: 15px;
    }
}
