/* Comment UI Styling for lightGallery */
.comment-panel {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 20px;
    margin: 0;
    width: 350px;
    height: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: var(--primary-font);
    position: fixed;
    right: 20px;
    top: 247px;
    transform: translateY(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
}

.comment-panel .comments-list {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.comment-panel .comment-item {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 8px;
    border-left: 3px solid var(--primary-color);
}

.comment-panel .comment-author {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9em;
    margin-bottom: 4px;
}

.comment-panel .comment-text {
    color: #333;
    font-size: 0.9em;
    line-height: 1.4;
    margin-bottom: 4px;
}

.comment-panel .comment-time {
    font-size: 0.8em;
    color: #666;
}

.comment-panel .comment-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.comment-panel .comment-form input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-family: var(--primary-font);
    font-size: 0.9em;
    outline: none;
    transition: border-color 0.3s ease;
}

.comment-panel .comment-form input:focus {
    border-color: var(--primary-color);
}

.comment-panel .comment-form button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-panel .comment-form button:hover {
    background: #8b6b93;
    transform: scale(1.05);
}

.comment-panel .comment-form button i {
    font-size: 0.9em;
}

.comment-panel .no-comments {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .comment-panel {
        width: 90%;
        height: 300px;
        right: 5%;
        left: 5%;
        top: 82%;
        transform: translateY(-50%);
        padding: 15px;
    }

    .comment-panel .comments-list {
        max-height: 150px;
    }
}

.comment-panel .comment-form button.success {
    background: #28a745 !important;
    transform: scale(1.1);
}

.comment-panel .loading {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px 0;
}