.slideshow_comment_container {
    display: flex;
    height: 35vw;
    position: relative;
}

#comment_container {
    background: #F5F5F7;
    width: 20vw;
    max-height: 35vw;
    border-radius: var(--div-radius);
    padding: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-left: 10px;
    animation: commentFadeIn 1.5s ease;
}

.comment {
    background-color: var(--col-primary);
    padding: 0 16px 8px;
    border-bottom: 1px solid #828282;
    border-radius: var(--div-radius);
    margin-bottom: 8px;
    word-wrap: break-word;
    position: relative;
}

.comment_list {
    margin-bottom: 8px;
    overflow-y: auto;
    min-height: 0;
}

.comment_author {
    font-weight: bold;
}

.comment_date {
    color: #828282;
    font-style: italic;
    font-size: 0.8rem;
}

.comment_content {
    margin: 0;
}

.comment_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
}

#comment_container h2 {
    border-bottom: 2px solid #B7B7B7;
    padding-bottom: 8px;
}

.comment_delete_btn {
    border: none;
    background: none;
    color: red;
    font-weight: bold;
    font-size: large;
    position: absolute;
    top: 0;
    right: 0;
}

.comment_delete_btn:hover {
    color: #e68a8a;
}

.comment_page_info {
    margin: 0 10px;
    font-size: 0.9rem;
    color: #333333;
}

.new_old_btns {
    display: block;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.comment_pagination_btns {
  border-radius: var(--div-radius);
  padding: 8px 10px;
  background-color: var(--col-primary);
  color: #000000;
  border: none;
}

.comment_pagination_btns:hover {
  background-color: #f0e9e9;
}

@media (max-width: 1150px) and (min-width: 851px) {
    .comment_header {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 0;
    }
    .comment_date {
        margin-top: -8px;
    }
}

@media (max-width: 850px) {
    .slideshow_comment_container {
        flex-direction: column;
        height: auto;
        align-items: center;
    }

    #comment_container {
        width: 70%;
        margin-bottom: 16px;
        margin-top: 8px;
        max-height: 50vh;
    }
}

@keyframes commentFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
