/**
Theme Name: BaplaWeb
Author: RK Création
Author URI: https://www.rkcreation.fr
Description: Thème spécifique à votre site.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: baplaweb
Template: astra
*/

/** PORTFOLIO LISTS */
body.archive.tax-reference-cat-1 #primary,
body.archive.tax-reference-cat-2 #primary,
body.archive.tax-reference-cat-3 #primary {
    margin-top: 2em;
}
body.archive.tax-reference-cat-1 #primary .ast-archive-description,
body.archive.tax-reference-cat-2 #primary .ast-archive-description,
body.archive.tax-reference-cat-3 #primary .ast-archive-description {
    margin-bottom: 2em;
    text-align: center;
    background: transparent;
    border: 0;
    padding: 0;
}
body.archive.tax-reference-cat-1 #primary .ast-archive-description .page-title.ast-archive-title,
body.archive.tax-reference-cat-2 #primary .ast-archive-description .page-title.ast-archive-title,
body.archive.tax-reference-cat-3 #primary .ast-archive-description .page-title.ast-archive-title {
    font-weight: 700;
    margin-bottom: 2rem;
}
body.archive.tax-reference-cat-1 #primary .site-main,
body.archive.tax-reference-cat-2 #primary .site-main,
body.archive.tax-reference-cat-3 #primary .site-main {
    width: 100%;
}
body.archive.tax-reference-cat-1 #primary .site-main > .ast-row,
body.archive.tax-reference-cat-2 #primary .site-main > .ast-row,
body.archive.tax-reference-cat-3 #primary .site-main > .ast-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(100px, 1fr));
    gap: var(--wp--style--block-gap);
    margin-bottom: var(--wp--style--block-gap);
}
@media (min-width: 990px) {
    body.archive.tax-reference-cat-1 #primary .site-main > .ast-row,
    body.archive.tax-reference-cat-2 #primary .site-main > .ast-row,
    body.archive.tax-reference-cat-3 #primary .site-main > .ast-row {
        grid-template-columns: repeat(3, minmax(100px, 1fr));
    }
}
@media (min-width: 1280px) {
    body.archive.tax-reference-cat-1 #primary .site-main > .ast-row,
    body.archive.tax-reference-cat-2 #primary .site-main > .ast-row,
    body.archive.tax-reference-cat-3 #primary .site-main > .ast-row {
        grid-template-columns: repeat(4, minmax(100px, 1fr));
    }
}

/** PORTFOLIO TEASER */
#primary .site-main .ast-separate-posts.ast-article-post.type-reference,
#primary .site-main .ast-separate-posts.ast-article-post.type-reference,
#primary .site-main .ast-separate-posts.ast-article-post.type-reference {
    padding: 0;
    position: relative;
    background: #fff;
    margin: 0;
}
#primary .site-main .ast-separate-posts.ast-article-post.type-reference > .blog-layout-1,
#primary .site-main .ast-separate-posts.ast-article-post.type-reference > .blog-layout-1,
#primary .site-main .ast-separate-posts.ast-article-post.type-reference > .blog-layout-1 {
    height: 100%;
    padding: 0;
}
#primary .site-main .ast-separate-posts.ast-article-post.type-reference > .blog-layout-1 .post-content,
#primary .site-main .ast-separate-posts.ast-article-post.type-reference > .blog-layout-1 .post-content,
#primary .site-main .ast-separate-posts.ast-article-post.type-reference > .blog-layout-1 .post-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    padding: 20px;
}
#primary .site-main .ast-separate-posts.ast-article-post.type-reference > .blog-layout-1 .post-content > img,
#primary .site-main .ast-separate-posts.ast-article-post.type-reference > .blog-layout-1 .post-content > img,
#primary .site-main .ast-separate-posts.ast-article-post.type-reference > .blog-layout-1 .post-content > img {
    max-width: 100px;
}
#primary .site-main .ast-separate-posts.ast-article-post.type-reference > .blog-layout-1 .post-content .entry-title,
#primary .site-main .ast-separate-posts.ast-article-post.type-reference > .blog-layout-1 .post-content .entry-title,
#primary .site-main .ast-separate-posts.ast-article-post.type-reference > .blog-layout-1 .post-content .entry-title {
    font-size: 1.5rem;
    line-height: 1.23em;
    font-weight: 700;
    margin: 0;
}
#primary .site-main .ast-separate-posts.ast-article-post.type-reference .entry-content,
#primary .site-main .ast-separate-posts.ast-article-post.type-reference .entry-content,
#primary .site-main .ast-separate-posts.ast-article-post.type-reference .entry-content {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    padding: 20px;
    background: rgba(0,0,0,.75);
    color: #fff;
    overflow: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    opacity: 0;
    transition: all .3s ease;
}
#primary .site-main .ast-separate-posts.ast-article-post.type-reference:hover .entry-content,
#primary .site-main .ast-separate-posts.ast-article-post.type-reference:hover .entry-content,
#primary .site-main .ast-separate-posts.ast-article-post.type-reference:hover .entry-content {
    pointer-events: all;
    opacity: 1;
}

.archive-back-link {
    margin-top: var(--wp--style--block-gap);
    margin-bottom: var(--wp--style--block-gap);
    text-align: center;
}