/* General Styles */
.filters {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
}

.filters label {
    font-weight: bold;
    margin-right: 5px;
}

/* Posts Container */
.external-posts {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    /* justify-content: space-between; */
}

.external-post {
    width: calc(32% - 20px);
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    transition: box-shadow 0.3s;
}

.external-post:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.external-post-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.external-post h2 {
    font-size: 1.2em;
    margin: 10px 0;
}

.external-post-excerpt {
    font-size: 0.9em;
    color: #666;
}

/* Pagination */
.pagination {
    margin-top: 20px;
    text-align: center;
}

.page-number {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    text-decoration: none;
    border: 1px solid #0073aa;
    color: #0073aa;
    border-radius: 3px;
    transition: background-color 0.3s, color 0.3s;
}

.page-number:hover {
    background-color: #0073aa;
    color: #fff;
}

.page-number.active {
    background-color: #0073aa;
    color: #fff;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    border-radius: 5px;
    position: relative;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-button:hover,
.close-button:focus {
    color: #000;
}

.modal-post h2 {
    margin-top: 0;
}

.modal-post-content {
    margin-top: 15px;
    font-size: 1em;
    line-height: 1.6;
}

.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: unset;
    margin: auto;
}
