﻿.comment-item {
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.comment-user-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
}

.comment-user-name {
    font-weight: bold;
    margin-right: 8px;
}

.comment-time {
    font-size: 12px;
    color: #aaa;
}

.comment-text {
    margin: 8px 0;
    font-size: 14px;
    color: #333;
}

.comment-images {
    margin: 10px 0;
}

.comment-image {
    max-width: 150px;
    max-height: 150px;
    margin-right: 8px;
    cursor: pointer;
    transition: transform 0.2s;
    border-radius: 4px;
}

.comment-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.like-button, .dislike-button, .reply-button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
}

.like-icon, .dislike-icon, .reply-icon {
    width: 16px;
    height: 16px;
}

.user-link {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
}

.user-link:hover .comment-user-name {
    text-decoration: underline;
    color: #1890ff;
}

/* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

    .close:hover {
        color: #bbb;
    }

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
}
