.lightbox-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lightbox-comment-stat {
    margin-left: 0;
}

.lightbox-comment-stat .comment-count {
    color: #fff;
    font-size: 1.1rem;
    font-family: Arial, sans-serif;
    font-weight: 400;
    line-height: 1.2;
}

.comment-stat-btn.active .comment-stat-icon {
    filter: brightness(1.2);
}

.lightbox-comments-list {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(227, 171, 74, 0.35);
}

.lightbox-comments-heading {
    color: #E3AB4A;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.lightbox-comments-form-panel {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(227, 171, 74, 0.35);
    padding-bottom: 10px;
}

.lightbox-comments-form-panel.open {
    display: block;
}

.lightbox-comments-form-panel .comment-form-section {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.gallery-comment-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.35rem;
}

.comment-stat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    background-color: transparent;
    border: none;
    box-shadow: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    padding: 0.3rem;
    margin: 0;
    color: #E3AB4A;
    line-height: 0;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    vertical-align: middle;
}

.comment-stat-btn::-moz-focus-inner {
    border: 0;
    padding: 0;
}

.comment-stat-icon {
    display: block;
    width: 1.35rem;
    height: 1.35rem;
    flex-shrink: 0;
    pointer-events: none;
    overflow: visible;
}

.comment-stat-icon path {
    vector-effect: non-scaling-stroke;
}

.comment-stat-btn:hover,
.comment-stat-btn:focus-visible {
    transform: scale(1.2);
    background: none;
    background-color: transparent;
}

.rating-container .like-count,
.rating-container .comment-count {
    color: #fff;
    font-size: 1.1rem;
    font-family: Arial, sans-serif;
    font-weight: 400;
    line-height: 1.2;
}

.comment-count {
    flex-shrink: 0;
}

/* Lightbox pages center content in a fixed viewport; allow scroll when comments expand */
.lightbox.active {
    overflow-y: auto;
    justify-content: flex-start;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 40px;
}

.lightbox-description {
    overflow: visible;
    flex-shrink: 0;
}

.comment-form {
    display: grid;
    gap: 12px;
    position: relative;
}

.comment-form-section {
    border-top: 1px solid rgba(227, 171, 74, 0.35);
    margin-top: 20px;
    padding-top: 20px;
}

.comment-form-identity {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.comment-form-identity input {
    font-size: 80%;
}

.comments-list {
    list-style: none;
    margin: 0 0 0;
    padding: 0;
}

.comments-list li {
    background: rgba(26, 26, 26, 0.55);
    border: 1px solid rgba(227, 171, 74, 0.2);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    color: #E3AB4A;
    font-size: 0.9rem;
}

.comment-date {
    color: rgba(227, 171, 74, 0.75);
    white-space: nowrap;
}

.comment-body {
    color: #f0f0f0;
    line-height: 1.5;
    white-space: pre-wrap;
}

.comments-empty,
.comments-closed,
.comments-loading,
.comments-error,
.comments-success {
    color: rgba(227, 171, 74, 0.9);
    margin-bottom: 16px;
    font-style: italic;
}

.comments-success {
    color: #8fd694;
    font-style: normal;
}

.comment-form label {
    color: #E3AB4A;
    font-size: 0.9rem;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(227, 171, 74, 0.45);
    border-radius: 8px;
    color: #fff;
    padding: 10px 12px;
    font: inherit;
}

.comment-form textarea {
    min-height: 110px;
    resize: vertical;
}

.comment-form button {
    justify-self: start;
    background: #E3AB4A;
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: bold;
    cursor: pointer;
}

.comment-form button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.comment-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
    height: 0;
    overflow: hidden;
}

@media (max-width: 768px) {
    .comment-meta {
        flex-direction: column;
        gap: 4px;
    }

    .comment-form-identity {
        grid-template-columns: 1fr;
    }
}
