.post-masonry-columns {
    column-count: 2; 
    column-gap: 8px;
    column-fill: balance; 
}

.post-card {
    position: relative;
    display: block;
    flex-direction: row;
    justify-content: center;
    border-radius: 16px;
    box-sizing: border-box;
    margin-bottom: 8px; 
    background-color: #f6f6f9;
    break-inside: avoid-column;
    page-break-inside: avoid;
}

.post-card__image-wrapper {
    width: 100%;
    display: inline-block;
    position: relative;
    background-color: #f5f5f5;
    border-left: solid 3px #f6f6f9;
    border-right: solid 3px #f6f6f9;
    margin-top: 16px;
}

.post-card__image {
    display: inline-block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    overflow: hidden;
    cursor: pointer;
}

.post-card__menu {
    width: 30px;
    height: 30px;
    color: #000;
}

.post-card__menu:hover {
    background-color: #fff;
}

.post-card__menu-icon {
    width: 18.75px;
    height: 18.75px;
}

.post__empty-image {
    max-width: 150px;
    max-height: 150px;
    opacity: 0.1;
}

.post__empty-text {
    color: #000;
    text-align: center;
    font-weight: 300;
    line-height: 1.5;
    font-size: clamp(16px, calc(16px + 0.25vw), 18px);
}

.post-card__header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 16px 0 16px;
}

.post-card__main {
    padding: 8px 16px 0 16px;
}

.post-card__footer {
    display: block;
    text-align: end;
    padding: 8px 16px 16px 16px;
}

.post-card__title {
    font-size: clamp(16px, calc(16px + 0.25vw), 18px);
    font-weight: 600;
    line-height: normal;
    box-sizing: border-box;
    min-width: 0;
    word-break: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.post-card__text {
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4; 
    margin-top: 8px;
    font-size: 14px;
    color: #333;
}

.post-card__datetime {
    color: var(--color-secondary);
    font-size: 14px;
    font-weight: 500;
}

.post-card__image-count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.post-card__image-counter {
    position: absolute;
    bottom: 4px;
    right: 4px;
    color: #66060;
    font-size: 18px;
    font-weight: 600;
    border-radius: 16px;
    background-color: #fff;
    padding: 4px 8px;
} 

.post-card__image-count::before {
    content: "📷"; 
    font-size: 14px;
    margin-right: 4px;
}



@media(min-width: 768px) {
    
    .post-masonry-columns {
        column-count: 2; 
        column-gap: 20px;
        break-inside: avoid;
    } 
    
    .post-card {
        margin-bottom: 20px; 
    }

}