/**
 * Simple Achievement Block Styles
 */


.wp-block-wp-new-simple-content.has-text-align-left {
    text-align: left;
}

.wp-block-wp-new-simple-content.has-text-align-center {
    text-align: center;
}

.wp-block-wp-new-simple-content.has-text-align-right {
    text-align: right;
}

.wp-block-wp-new-simple-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.wp-block-wp-new-simple-content .image-caption {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: rgba(233, 236, 252, 0.8);
    font-style: italic;
    text-align: left;
    opacity: 0.9;
}

.wp-block-wp-new-simple-content.has-text-align-center .image-caption {
    text-align: center;
}

.wp-block-wp-new-simple-content.has-text-align-right .image-caption {
    text-align: right;
}

.wp-block-wp-new-simple-content p {
    margin: 0;
    font-weight: 400;
    font-size: 16px;
}

/* Anchor links styling */
.wp-block-wp-new-simple-content a {
    color: #2CD8B9;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.wp-block-wp-new-simple-content a:hover {
    color: #24b59f;
    border-bottom-color: #24b59f;
    text-decoration: none;
}

.wp-block-wp-new-simple-content a:focus {
    outline: 2px solid #2CD8B9;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Responsive design */
@media (max-width: 768px) {
    /* .wp-block-wp-new-simple-content {
        padding: 0.8rem;
    } */
     .wp-block-wp-new-simple-content p {
        margin: 0 10px;
     }
    
    /* Изображение с вертикальной ориентацией для мобильных */
    .wp-block-wp-new-simple-content .content-image {
        width: 96%;
        max-width: 100%;
        /* aspect-ratio: 3 / 4; */
        margin: 0 auto;
        overflow: hidden;
        border-radius: 8px;
        margin: 0px 10px;
        padding: 0 10px;
    }
    
    .wp-block-wp-new-simple-content .content-image img {
        width: 100%;
        height: auto;
        /* object-fit: cover; Обрезка изображения по краям */
        object-position: center; /* Центрирование изображения */
    }
}
