/* Grid Layout */
.shorelocal-masonry-grid {
    display: grid;
    grid-template-columns: 45% 1fr; /* Left: big post | Right: 6 small posts */
    gap: 15px;
    max-width: 90vw;
    margin: auto;
}

/* Big Featured Post */
.shorelocal-masonry-item.featured {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 500px;
}

/* Right Side Container (6 Small Posts) */
.shorelocal-masonry-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Two rows for small posts */
.shorelocal-masonry-row {
    display: flex;
    gap: 10px;
}
.shorelocal-masonry-item a{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-end;
    height: inherit;
}
.shorelocal-masonry-item a h3:hover{
    color: #8c8c8c;
}

/* Small Posts */
.shorelocal-masonry-item.small {
    flex: 1;
    position: relative;
    overflow: hidden;
    height: 250px;
}

/* Images */
.shorelocal-masonry-thumb {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* Title Below Image */
.shorelocal-masonry-title {
    font-size: 1rem;
    color: #222;
    margin-top: 5px;
    text-align: left;
    font-size: 18px;
    font-weight: bold;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 3em;
    line-height: 1em;
}

/* Remove Content Overlay */
.shorelocal-masonry-content {
    position: relative;
    background: none;
    padding: 5px 0;
}



/* Category */
.category-display-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.category-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.category-box {
    width: 100%;
    box-sizing: border-box;
}

.category-box .category-title{
    padding: .3em;
    line-height: inherit;
}
.category-box .category-title a{
    display: block;
    width: 100%;
    line-height: inherit;
}
.category-box .category-title:hover{
    color: #eeb94c;
    background-color: #19415e !important;
}
.category-posts {
    list-style: none;
    padding: 0 !important;
}
.category-posts li {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    margin: .5em 0;
    justify-content: flex-start;
    align-items: center;
}
.category-posts li img {
    width: 95px;
}
.category-posts a {
    text-decoration: none;
    font-weight: bold;
    color: #222;
    padding: 0 0 0 .5em;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5em;
    height: calc(1.5em* 4);
    white-space: normal;
}
.category-posts a[title]::after {
    content: attr(title);
    display: none;
}
.category-posts a:hover {
    color: #8c8c8c;
}
.columns-1 { grid-template-columns: 1fr; }
.columns-2 { grid-template-columns: repeat(2, 1fr); }
.columns-3 { grid-template-columns: repeat(3, 1fr); }
.columns-4 { grid-template-columns: repeat(4, 1fr); }
.category-wrapper {
    display: grid;
    width: 100%;
}


@media (max-width: 768px) {
    .category-wrapper { 
        grid-template-columns: 1fr;
        padding: 0 20px;
     }
}


/* Responsive Fixes */
@media (max-width: 768px) {
    .shorelocal-masonry-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .shorelocal-masonry-right {
        flex-direction: column;
    }
    .shorelocal-masonry-row {
        flex-direction: column;
    }
}




.related-posts {
    margin-top: 40px;
    padding: 15px;
    border-top: 2px solid #ddd;
}
.related-posts h3 {
    font-size: 22px;
    color: #333;
}
.related-posts ul {
    list-style: none;
    padding-left: 0;
}
.related-posts li {
    margin-bottom: 10px;
}
.related-posts a {
    text-decoration: none;
    font-weight: bold;
    color: #0073aa;
}
.related-posts a:hover {
    color: #005177;
}

.columnist-info img {
    border-radius: 8px;
}
.columnist-bio {
    font-style: italic;
    font-size: 1rem;
}




/* 
.columnist-info-wrapper {
    max-width: 800px;
    margin: 10em auto 3em auto;
    padding: 1.5em;
    border: 1px solid #e0e0e0;
    background: #fafafa;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
} */

.columnist-info {
    display: flex;
    align-items: flex-start;
    gap: 1.5em;
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
}

.columnist-image img {
    max-width: 140px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.columnist-meta {
    flex: 1;
}

.columnist-name {
    font-family: 'Marcellus', Georgia, "Times New Roman", serif;
    margin-bottom: 10px;
    color: #333;
    padding-bottom: 10px;
    line-height: 1em;
    font-weight: 500;
}
.columnist-bio {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    text-align: left;
}
body.has-columnist-info #main-content .entry {
    display: none;
}


@media (max-width: 768px) {
    .columnist-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .columnist-image img {
        max-width: 80%;
        margin-bottom: 1rem;
    }

}
