.module-blog-abstracts-panel {
    /* any general styling for the module */
}

.module-blog-abstracts-panel .copy-wrapper {    
    padding-left:3rem;
    padding-bottom:2rem;
}

.module-blog-abstracts-panel .copy-wrapper .headline {
    position: relative;
}

.module-blog-abstracts-panel .copy-wrapper .headline:before {
    content: url(/images/cho-dot-arrow.svg);
    display: block;
    position: absolute;
    left: -3rem;
    top: -2px;
}

.module-blog-abstracts-panel h3 {
    margin:0;
    font-size:2.2rem;
    line-height: 2.8rem;
    font-weight:bold;
}

.module-blog-abstracts-panel .post .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* Removes any inline spacing around the image */
}

.module-blog-abstracts-panel .posts-wrapper {
    margin-top:2rem;
}

.module-blog-abstracts-panel .posts-wrapper .post {
    border-radius:10px;
    background:var(--light-gray);
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    width:calc(100% - 4rem);
    margin-right:1rem;
}

.module-blog-abstracts-panel.layout-threeacross .post {
    min-height:400px;
}

.module-blog-abstracts-panel.layout-threeacross .post .image-wrapper {
    height:300px;
    width:100%;
}

.module-blog-abstracts-panel.layout-onebig .post .image-wrapper {
    height:300px;
    width:100%;
}

.module-blog-abstracts-panel .post .content-wrapper {
    padding:4rem;
    display: flex;
    flex-direction: column; /* Allows vertical stacking of text */
    /* justify-content: space-between; */
    height:50%;
}

.module-blog-abstracts-panel .post.featured {
    position:relative;
}

.module-blog-abstracts-panel .post .content a {
    text-decoration: none;
}

.module-blog-abstracts-panel .post .content a:hover {
    text-decoration: underline;
}

.module-blog-abstracts-panel .post.featured .featured-heading {
    position: absolute;
    top:0;
    left:2rem;
    background-color:var(--light-orange);
    color:#000;
    font-weight:800;
    padding:1rem 3rem;
    text-transform: uppercase;
    font-size:2.2rem;
    line-height: 2.8rem;
}

.module-blog-abstracts-panel .view-all {
    display: flex;
    justify-content: flex-end;
    margin-left:auto;
    margin-top:3rem;
}

.module-blog-abstracts-panel .view-all a {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    font-size: 1.9rem;
    line-height: 2.6rem;
    text-transform: uppercase;
    font-weight:700;
}

.module-blog-abstracts-panel .view-all a:after {
    content: '\f061';
    color:#000;
    font: var(--fa-font-solid);
    background-color:var(--yellow);
    border-radius: 50%;
    padding:2px;
    width:2.5rem;
    height:2.5rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size:1.6rem;
}

.module-blog-abstracts-panel .posts-wrapper .flickity-enabled {
    display: block; /* Ensure slider is shown when Flickity is active */
}

/* Hide excerpt, reading times by default */

.module-blog-abstracts-panel .excerpt,
.module-blog-abstracts-panel .info .date,
.module-blog-abstracts-panel .info .reading-time,
.module-blog-abstracts-panel .categories {
    display:none;
}

.module-blog-abstracts-panel.show-excerpt .excerpt  {
    display:block;
}

.module-blog-abstracts-panel.show-dates .info .date  {
    display:block;
}

.module-blog-abstracts-panel.show-reading-times .info .reading-time  {
    display:block;
}

.module-blog-abstracts-panel.show-categories .categories  {
    display:block;
}

.module-blog-abstracts-panel .flickity-page-dots {
    top:calc(100% + 1rem);
    text-align: left;
}

.module-blog-abstracts-panel .flickity-page-dots .dot {
    background-color:var(--medium-gray);
    border-radius:5px;
    opacity:1;
    margin:0;
    margin-right:1rem;
    transition: all 0.3s ease;
}

.module-blog-abstracts-panel .flickity-page-dots .dot.is-selected {
    background-color:var(--dark-orange);
    width:3rem;
}

@media (min-width:1000px) {

    .module-blog-abstracts-panel {
        display:flex;
        gap:2rem;
        flex-wrap: wrap;
        position: relative;
    }

    .module-blog-abstracts-panel .copy-wrapper .copy-wrapper {
        padding-left:0rem;
    }

    .module-blog-abstracts-panel .posts-wrapper {
        margin-top:0;
    }
    
    .module-blog-abstracts-panel.layout-threeacross .posts-wrapper {
        display:grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap:2rem;
    }

    .module-blog-abstracts-panel .view-all {
        margin-top:0;
    }

    .module-blog-abstracts-panel.layout-threeacross .posts-wrapper .image-wrapper {
        /* max-height:33%; */
        height:50%;
        width:100%;
    }
    
    .module-blog-abstracts-panel .posts-wrapper {
        display: flex;
        gap:2rem;
        flex-wrap: wrap;
        width:100vw;
    }

    .module-blog-abstracts-panel.layout-onebig .post .image-wrapper {
        height:auto;
        width:100%;
    }

    .module-blog-abstracts-panel.layout-onebig .posts-wrapper {
        display: grid;
        grid-template-columns: 3fr 2fr; /* Two columns */
        grid-template-rows: 1fr 1fr; /* Two rows */
        gap: 2rem; /* Space between posts */
        height: auto;
    }

    .module-blog-abstracts-panel.layout-onebig .post-0 {
        grid-row: span 2;
    }

    .module-blog-abstracts-panel.layout-onebig .post.post-0 .excerpt {
        display:block;
    }

    .module-blog-abstracts-panel.layout-onebig .post-1 .image-wrapper,
    .module-blog-abstracts-panel.layout-onebig .post-2 .image-wrapper {
        display:none;
    }

    .module-blog-abstracts-panel .posts-wrapper .post {
        display: flex;
        width:100%;
        margin-right:0;
        height:100%;
    }

    .module-blog-abstracts-panel .post .content-wrapper {
        /* display: flex; */
        flex-direction: column; /* Allows vertical stacking of text */
        justify-content: space-between;
        height:100%;
        display: block;
    }

    .module-blog-abstracts-panel.layout-onebig .posts-wrapper .post.big {
        display:flex;
        align-items: stretch; /* Ensures both columns are the same height */
        width: 100%;
        box-sizing: border-box;
    }

    .module-blog-abstracts-panel.layout-onebig .post.post-0 h3 {
        font-size:3.5rem;
        line-height: 4rem;
    }

    .module-blog-abstracts-panel.layout-onebig .post.big .image-wrapper {
        flex: 1; /* Makes the image column take 1 part of the available space */
        max-width: 50%; /* Ensures the column stays half the width */
        /* overflow: hidden; Ensures the image stays within the column */
        position: relative;
    }
    
    .module-blog-abstracts-panel.layout-onebig .post.big .image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block; /* Removes any inline spacing around the image */
    }

    .module-blog-abstracts-panel.layout-onebig .post.big .content-wrapper {
        padding:4rem;
        flex: 1; /* Makes the text column take the other half */
        max-width: 50%;
        display: flex;
        flex-direction: column; /* Allows vertical stacking of text */
        justify-content: space-between;
    }

    .module-blog-abstracts-panel.layout-onebig .other-posts-wrapper .post .image-wrapper {
        display:none;
    }

    

}