/* Стили для страницы автора */
.author-container {
    position: relative;
    margin-bottom: 30px;
}

.author-photo-frame {
    float: left;
    margin: 0 25px 20px 0;
    padding: 8px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    max-width: 300px;
}

.author-image {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 2px;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.image-frame {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    text-align: center;
}

.image-frame:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    border-color: #d0d0d0;
}

.image-frame a {
    display: block;
    text-decoration: none;
}

.image-frame img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

@media (max-width: 768px) {
    .author-photo-frame {
        float: none;
        margin: 0 auto 20px;
        display: block;
    }
    
    .image-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
}