/* Боковые блоки */
.text-with-side-block {
    width: 200px;
    margin-bottom: 20px;
}

/* Блоки слева */
.text-with-side-block.text-with-side-left {
    float: left;
    margin-left: -220px;
    margin-right: 20px;
    clear: left;
}

/* Блоки справа */
.text-with-side-block.text-with-side-right {
    float: right;
    margin-right: -220px;
    margin-left: 20px;
    clear: right;
}

.text-with-side-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.text-with-side-image {
    text-align: center;
}

.text-with-side-image-link {
    display: block;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.text-with-side-image-link:hover {
    opacity: 0.8;
}

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

.text-with-side-content {
    font-size: 0.95rem !important;
    color: #666 !important;
    line-height: 1.5;
    text-align: left;
}

.text-with-side-content p {
    margin: 0 0 0.8em 0 !important;
    font-size: 0.95rem !important;
    color: #666 !important;
    line-height: 1.5 !important;
}

.text-with-side-content p:last-child {
    margin-bottom: 0 !important;
}

.text-with-side-content a {
    color: #666;
    text-decoration: underline;
}

.text-with-side-content a:hover {
    color: #333;
}

/* Очистка float для контента */
.entry-content::after,
.post-content::after,
.wp-block-post-content::after {
    content: "";
    display: table;
    clear: both;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .text-with-side-block {
        width: 100% !important;
        float: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .text-with-side-inner {
        flex-direction: row;
        align-items: flex-start;
        gap: 20px;
    }

    .text-with-side-image {
        flex: 0 0 120px;
    }

    .text-with-side-content {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .text-with-side-block .text-with-side-inner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .text-with-side-image {
        flex: 0 0 auto;
    }
}