.custom-media-block {
    position: relative;
}

.custom-media-block > svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: fit-content;
}


.custom-media-block .section-description {
    margin: 0 0 90px 0;
    max-width: 800px;
    font-size: 20px;
    font-weight: 600;
}

.custom-media-block .section-description:empty {
    margin: 0 0 50px 0;
}

.custom-media-block .video {
    width: 100%;
    height: 0;
    padding-bottom: 55%;
    position: relative;
}

.custom-media-block .video iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 12px;
}

.custom-media-block .video {
    margin-bottom: 80px;
}

.custom-media-block .social-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.custom-media-block .social-buttons .share {
    font-size: 20px;
    line-height: 24px;
    font-weight: 600;
}

.custom-media-block .social-buttons .heart,
.custom-media-block .social-buttons .social {
    display: flex;
    align-items: center;
}

.custom-media-block .social-buttons .heart svg path {
    fill: var(--wp--preset--color--text-black);
}

.custom-media-block .post {
    background-color: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 352px;
}

.custom-media-block .post.post-large {
    max-width: min( calc( 100% - 40px ), 560px);
}

.custom-media-block .post-image-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: min( 100%, 320px );
    margin: 0 0 20px 0;
}

.custom-media-block .post-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.custom-media-block .post-caption {
    margin: 0 0 20px 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 3;
    max-width: 350px;
}

.custom-media-block .swiper-slide {
    margin: 0 20px 0 0;
}

@media ( max-width: 700px ) {

    .custom-media-block .swiper-wrapper {
        display: block;
    }

    .custom-media-block .post,
    .custom-media-block .post.post-large {
        max-width: calc( 100% - 40px ) ;
        padding: 20px 20px 14px;
    }

    .custom-media-block .swiper-slide {
        margin: 0 0 24px 0;
        width: unset;
        height: unset;
    }

    .custom-media-block .post-image-container {
        padding-bottom: 90%;
    }

    .custom-media-block .section-description {
        margin: 0 0 30px 0;
        font-size: 14px;
    }

    .custom-media-block .video {
        margin-bottom: 40px;
    }


}

