/* Custom Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.6s ease-out;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

/* List View Styles */
.post-item.list-view {
    display: flex !important;
    flex-direction: row !important;
    height: auto !important;
    grid-column: span 2 !important;
}

.post-item.list-view .post-thumbnail {
    width: 360px !important;
    min-width: 360px !important;
    max-width: 360px !important;
    height: 260px !important;
    min-height: 260px !important;
    max-height: 260px !important;
    flex-shrink: 0 !important;
}

.post-item.list-view .post-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

@media (max-width: 1024px) and (min-width: 769px) {
    .post-item.list-view .post-thumbnail {
        width: 300px !important;
        min-width: 300px !important;
        max-width: 300px !important;
        height: 240px !important;
        min-height: 240px !important;
        max-height: 240px !important;
    }
}

@media (max-width: 768px) {
    .post-item.list-view {
        flex-direction: column !important;
        grid-column: span 1 !important;
    }
    
    .post-item.list-view .post-thumbnail {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: 240px !important;
        min-height: 240px !important;
        max-height: 240px !important;
    }
}

/* Smooth transitions */
#postsContainer {
    transition: all 0.3s ease-in-out;
}

.post-item {
    transition: all 0.3s ease-in-out;
}

.post-item .post-thumbnail img {
    transition: transform 0.7s ease-in-out;
}