@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;1,400&display=swap');

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #18191a;
    margin: 0;
    padding: 20px;
    color: #e4e6eb;
}
.feed-container {
    max-width: 900px;
    width: 95%;
    margin: 0 auto;
}
.banner {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1506501139174-099022df5260?auto=format&fit=crop&q=80&w=1200'); /* Sand dunes */
    background-size: cover;
    background-position: center;
    height: 140px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    color: #ffffff;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}
.banner h1 {
    font-family: 'Playfair Display', serif;
    margin: 0;
    font-size: 2.8em;
    letter-spacing: 2px;
}
.banner h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-style: italic;
    margin: 5px 0 0 0;
    font-size: 1.3em;
    opacity: 0.9;
    letter-spacing: 1px;
}
.post {
    background: #242526;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}
.post h2 {
    margin-top: 0;
    font-size: 1.8em;
    color: #e4e6eb;
}
.post-date {
    color: #b0b3b8;
    font-size: 0.9em;
    margin-bottom: 15px;
}
.post img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 15px;
    display: block;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
.gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-top: 0; /* Override generic post img margin */
}
.post-body p {
    line-height: 1.6;
    margin: 0 0 15px 0;
    font-size: 1.05em;
}

/* Read More logic */
.post-body.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}
.read-more-btn {
    display: none;
    cursor: pointer;
    color: #4facfe;
    font-weight: bold;
    margin-bottom: 15px;
}
.read-more-btn:hover {
    text-decoration: underline;
}
