/* ===== ФОТО В ПОСТАХ ===== */
/* Collage geometry lives in components/post.css (data-count). */
.post-photos {
    display: grid;
    gap: 3px;
    margin-top: 12px;
}

.post-photos .photo-item {
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-input);
    position: relative;
    min-width: 0;
    min-height: 0;
}

.post-photos .photo-item img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-photos .photo-item img:hover {
    transform: scale(1.04);
}

.post-photos .photo-item .more-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

/* ===== ПРЕДПРОСМОТР ФОТО ПРИ ЗАГРУЗКЕ ===== */
.photo-upload-area {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.photo-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.photo-preview .preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border-card);
}

.photo-preview .preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-preview .preview-item .remove-photo {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ff6b6b;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.photo-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-input);
    border: 1px dashed var(--border-card);
    border-radius: 10px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 13px;
    transition: all 0.3s ease;
}

.photo-upload-label:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.photo-upload-label input[type="file"] {
    display: none;
}

@media (max-width: 768px) {
    .post .post-photos[data-count="1"] {
        width: 100%;
        max-width: none;
    }
}