.post-people-faces {
    display: none;
    width: 100%;
    margin: 20px 0 8px;
    padding: 0;
}

.post-people-faces.is-visible {
    display: block;
}

.post-people-faces__loading {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 12px 4px;
    color: #546e7a;
    font-size: 14px;
}

.post-people-faces__spinner {
    width: 22px;
    height: 22px;
    border: 2px solid #cfd8dc;
    border-top-color: #1a237e;
    border-radius: 50%;
    animation: post-people-faces-spin .7s linear infinite;
    flex: 0 0 auto;
}

.post-people-faces__loading-text {
    line-height: 1.4;
}

@keyframes post-people-faces-spin {
    to { transform: rotate(360deg); }
}

.post-people-faces__header {
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eceff1;
}

.post-people-faces__title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: #1a237e;
}

.post-people-faces__hint {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #546e7a;
}

.post-people-faces__rescan {
    display: inline-block;
    margin-top: 10px;
    border: 0;
    border-radius: 4px;
    padding: 7px 12px;
    background: #1a237e;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

.post-people-faces__rescan:hover {
    background: #283593;
}

.post-people-faces__empty {
    margin: 8px 0 0;
    color: #78909c;
    font-size: 13px;
}

.post-people-faces__track {
    display: flex;
    flex-flow: row nowrap;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px 8px;
}

.post-people-faces__item {
    flex: 0 0 auto;
    text-align: center;
}

.post-people-faces__link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.post-people-faces__link:hover .post-people-faces__thumb {
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
    transform: translateY(-1px);
}

.post-people-faces__link:hover .post-people-faces__caption {
    color: #1565c0;
}

.post-people-faces__caption {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.3;
    color: #607d8b;
    max-width: 72px;
}

.post-people-faces__controls {
    display: flex;
    gap: 3px;
    margin-top: 5px;
}

.post-people-faces__control {
    border: 0;
    border-radius: 3px;
    padding: 3px 5px;
    background: #eceff1;
    color: #455a64;
    font-size: 10px;
    cursor: pointer;
}

.post-people-faces__control:hover {
    background: #cfd8dc;
}

.post-people-faces__hidden {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #cfd8dc;
}

.post-people-faces__hidden-title {
    margin-bottom: 8px;
    color: #78909c;
    font-size: 12px;
}

.post-people-faces__hidden-track {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.post-people-faces__hidden-item {
    opacity: .6;
}

.post-people-faces__restore {
    display: block;
    width: 100%;
    margin-top: 4px;
    border: 0;
    border-radius: 3px;
    padding: 4px;
    background: #2e7d32;
    color: #fff;
    font-size: 11px;
    cursor: pointer;
}

.post-people-faces__thumb {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
    background: #eee;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
    transition: box-shadow .15s ease, transform .15s ease;
}

@media (max-width: 767px) {
    .post-people-faces__thumb {
        width: 64px;
        height: 64px;
    }

    .post-people-faces__caption {
        max-width: 64px;
    }
}
