.zenimage {
    display:inline-block;
    position:relative;
    margin-bottom: 2px;
    margin-top: 2px;
}
.zenimage .zenimage_text {
    display:block;
    position:absolute;
    left:0;
    bottom:0;
    width:100%;
    box-sizing:border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    color:#fff;
    padding:10px;
    background-color:rgba(0,0,0,.5);
}
.zenimage h6 {
    font-family:Arial, Helvetica, sans-serif;
    font-size:18px;
}
.zenimage span {
    font-size:18px;
}

.zenleft {
    float: left;
}

.zenright {
    margin-left: 38px;
}

.dzen-card {
    max-width: 330px;
    font-family: Arial, sans-serif;
}

.dzen-card a {
    text-decoration: none;
    color: inherit;
}

.dzen-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: inherit;
}

.dzen-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dzen-card.style-1,
.dzen-card.style-2 {
    border: 1px solid #dcdcdc; /* Цвет и толщина рамки */
    border-radius: 8px; /* Радиус закругления углов */
    overflow: hidden; /* Обрезаем содержимое по рамке */
}

.dzen-card.style-1:not(:last-child), .dzen-card.style-2:not(:last-child) {
    margin-bottom: 8px;
}

.dzen-card.style-1 .dzen-image,
.dzen-card.style-4 .dzen-image {
    aspect-ratio: 16 / 9;
}

.dzen-card.style-2 .dzen-image,
.dzen-card.style-3 .dzen-image {
    aspect-ratio: 4 / 3;
}

.dzen-overlay-below {
    padding: 8px;
    text-align: left;
    display: flex;
    align-items: center;
}

.dzen-card.style-1 .dzen-overlay,
.dzen-card.style-2 .dzen-overlay {
    justify-content: flex-start;
}

.dzen-overlay-inside {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 8px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    justify-content: flex-start;
}

.dzen-text {
    font-size: 1em;
    line-height: 1.2em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dzen-logo {
    display: inline-block !important;
    height: auto; !important;
    width: auto !important;
    vertical-align: middle;
    margin-right: 5px;
    object-fit: contain;
}