* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: sans-serif;
    background-color: #f0f0f0;
    color: #333;
}

header {

    background-color: #f0f0f0;
    color: black;
    padding: 10px;
    text-align: center;
}

.post {
    background-color: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.post img {
    max-width: 100%;
    border-radius: 4px;
    margin-top: 0.75rem;
}

.post a {
    display: block;
    margin-top: 0.75rem;
    color: #0066cc;
}

.post-date {
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.5rem;
}

.repost-indicator {
    font-size: 0.8rem;
    color: #00ba7c;
    margin-bottom: 0.5rem;
}

.quoted-post {
    border-left: 3px solid #ccc;
    padding: 0.5rem 0.75rem;
    margin-top: 0.75rem;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.quoted-author {
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.video-wrapper {
    cursor: pointer;
    position: relative;
    width: 100%;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 0.75rem;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
    pointer-events: none;
}

#load-more {
    display: block;
    margin: 1rem auto;
    padding: 0.75rem 2rem;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
}

#load-more:hover {
    background-color: #555;
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    gap: 0.75rem;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.display-name {
    font-weight: bold;
    font-size: 0.95rem;
}

.handle {
    font-size: 0.8rem;
    color: #999;
}

.image-grid {
    display: grid;
    gap: 4px;
    margin-top: 0.75rem;
    border-radius: 8px;
    overflow: hidden;
}

/* single image */
.image-grid.count-1 {
    grid-template-columns: 1fr;
}

/* two images side by side */
.image-grid.count-2 {
    grid-template-columns: 1fr 1fr;
}

/* three images - first one full width */
.image-grid.count-3 {
    grid-template-columns: 1fr 1fr;
}

.image-grid.count-3 .image-wrapper:first-child {
    grid-column: span 2;
}

/* four images - 2x2 grid */
.image-grid.count-4 {
    grid-template-columns: 1fr 1fr;
}

.image-wrapper {
    overflow: hidden;
    width: 100%;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    margin-top: 0;
}