.create-post-form {
    background-color: #F0EBE1;
    color: #272022;
}
.comment-container {
    border-left: 2px solid #dee2e6;
    padding-left: 1rem;
}

.reply-div {
    display: none;
    margin: 1rem 0;
}

.comment-actions {
    font-size: 0.9rem;
}

.comment-actions button {
    background: none;
    border: none;
    color: #6c757d;
    padding: 0;
    margin-right: 1rem;
    cursor: pointer;
}

.comment-actions button:hover {
    color: #0d6efd;
}

.author-name {
    font-size: 0.8rem;
    font-weight: bold;
    color: #272022;
}

.timestamp {
    font-size: 0.8rem;
    color: #272022;
}

.file-preview {
    position: relative;
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
}

.file-preview-content {
    position: relative;
}

.file-preview img,
.file-preview video {
    max-width: 100px;
    max-height: 100px;
}

.btn-close {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff0000;
    border: none;
    font-size: 0.7rem;
    color: #fff;
    cursor: pointer;
}

.btn-close:hover {
    color: #fff;
}

.media-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.media-item {
    flex: 1 1 calc(33.333% - 10px); /* Adjust the width to fit three items per row with a gap */
    box-sizing: border-box;
    cursor: pointer;
    position: relative;
    padding-top: 33.333%; /* Maintain aspect ratio */
}

.media-item img,
.media-item video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 80%;
    max-width: 700px;
}

.lightbox-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-slide img,
.lightbox-slide video {
    max-width: 100%;
    max-height: 80vh;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: #fff;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.card {
    background-color: #F0EBE1;
    color: #272022;
}

.header-text{
    color: #F0EBE1;
}

.blue-btn{
    background-color: #253E89;
    color: #F0EBE1;
    border: 1px solid #253E89;
}

.custom-see-more{
    color :#253E89;
    font-weight: bold;
}

/* Media query for smaller post card column in web view */
@media (min-width: 768px) {
    .card {
        max-width: 500px;
        margin: auto;
    }
}