/* Store posts */

.post-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-card-img {
    height: 180px;
    overflow: hidden;
    border-bottom: 1px solid var(--lux-border, rgba(126, 200, 255, 0.22));
}

.post-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-card-img img {
    transform: scale(1.06);
}

.post-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-date {
    font-size: 0.8rem;
    color: var(--lux-blue-bright, #7ec8ff);
    font-weight: 700;
}

.post-card-body h3 {
    font-size: 1.1rem;
    font-weight: 900;
    margin: 0.5rem 0;
    color: #fff;
}

.post-card-body p {
    color: var(--lux-muted, #94a8c4);
    font-size: 0.9rem;
    line-height: 1.7;
    flex: 1;
}

.post-card-compact .post-card-img {
    height: 140px;
}

.post-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    z-index: 2010;
    width: min(640px, 94vw);
    max-height: 88vh;
    overflow: auto;
    padding: 1.75rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-modal.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.post-modal-close {
    position: absolute;
    top: 12px;
    left: 12px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.75rem;
    cursor: pointer;
    line-height: 1;
}

.post-modal-img-wrap img {
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.post-modal-body h2 {
    font-weight: 900;
    margin-bottom: 0.75rem;
}

.post-modal-body time {
    color: var(--lux-blue-bright, #7ec8ff);
    font-size: 0.85rem;
    font-weight: 700;
}

#postModalContent {
    color: var(--lux-muted, #94a8c4);
    line-height: 1.85;
    white-space: pre-wrap;
}

@media (max-width: 576px) {
    .post-card-img {
        height: 160px;
    }
}
