/* Gutenberg */

.wp-block-buttons {
    flex-wrap: wrap;
}

.wp-block-button {
    margin: 0 10px;
}

#description .wp-block-button {
    margin: 10px;
}

.wp-block-button__link {
    padding: 5px 22px;
}

/* Content */

h1 {
    font-size: 48px;
    font-weight: 200;
    text-transform: uppercase;
    text-align: center;
}

section#description {
    text-align: center;
}

section#posts {
    width: 100%;
    padding: 0;
    margin: 0 auto 40px;
    /*display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;*/
}

@media (min-width: 1280px) {
    section#posts {
        width: 1140px;
        margin: 80px auto;
    }
    .wp-block-buttons {
        margin-bottom: 80px;
    }
}

@media (min-width: 1420px) {
    section#posts {
        width: 1400px;
    }
}

.category-realisations article a::before,
.tag article a::before {
    content: "";
    display: block;
    background-color: var(--z-global-color-primary);
    z-index: 1;
    opacity: 0;
    mix-blend-mode: multiply;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.3s;
}

.category-realisations article a:hover::before,
.tag article a:hover::before {
    opacity: 0.8;
}

.category-realisations article h2,
.tag article h2 {
    text-align: center;
    color: white;
    font-size: 24px;
    font-weight: 300;
    line-height: 1.2em;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    margin: 0;
    padding: 10%;
}

.category-realisations article a:hover h2,
.tag article a:hover h2 {
    opacity: 1;
    transform: translateY(0);
}

.category.category-realisations article img,
.tag article img {
    aspect-ratio: 4/3;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.page-numbers {
    font-size: 20px;
    font-weight: 300;
    text-decoration: none;
    color: var(--z-global-color-text);
    display: inline-flex;
}

.page-numbers.next,
.page-numbers.prev {
    text-transform: uppercase;
}

.page-numbers.next::after,
.page-numbers.prev::before {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    transition: all 0.1s;
}

.page-numbers.prev::before {
    border-top: 3px solid black;
    border-left: 3px solid black;
    transform: rotate(-45deg) translate(0, 10px);
    margin-right: 15px;
}

.page-numbers.next::after {
    border-right: 3px solid black;
    border-top: 3px solid black;
    transform: rotate(45deg) translate(0, 10px);
    margin-left: 15px;
}

.page-numbers:hover,
.page-numbers.current {
    color: var(--z-global-color-secondary);
}

.page-numbers.prev:hover::before {
    border-left: 3px solid var(--z-global-color-secondary);
    border-top: 3px solid var(--z-global-color-secondary);
    transform: rotate(-45deg) translate(-5px, 5px);
}

.page-numbers.next:hover::after {
    border-right: 3px solid var(--z-global-color-secondary);
    border-top: 3px solid var(--z-global-color-secondary);
    transform: rotate(45deg) translate(5px, 5px);
}

@media (min-width: 1030px) {
    .wp-block-buttons {
        margin-bottom: 80px;
    }
    section#description {
        padding: 0 calc((100vw - 980px) / 2);
    }
}

#wpcf7-f14333-p1046-o1 {
    max-width: 650px;
    background-color: #2a065a;
}
