.blog {
    max-width: 1180px;
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.blog::before {
    content: url('../images/ServicesGradientLeft.svg');
    filter: blur(10px);
    pointer-events: none;
    position: absolute;
    z-index: -1;
    top: -70;
    left: -310;
}

.blog__title {
    margin-left: 100px;
    background: linear-gradient(90deg, #6ddcff 0%, #7f60f9 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    max-width: fit-content;
}

.blog__list {
    display: flex;
    gap: 32px;
    justify-content: space-between;
    list-style-type: none;
    margin-top: 50px;
    flex-wrap: wrap;
}

.blog__item {
    width: calc(50% - 16px);
    cursor: pointer;
    transition: all 200ms;
}
.blog__item:hover {
    opacity: 0.9;
}

.blog__item_image {
    margin-top: 20px;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 10px;
}
.blog__item_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog__item_title {
    margin-top: 10px;
}

.blog__item_text {
    margin-top: 15px;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
}

.blog__modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000b7;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999;
    display: none;
}
.blog__modal.active {
    display: flex;
}

.blog__modal_close {
    cursor: pointer;
    transition: all 200ms;
    align-self: flex-start;
    margin-left: 20px;
}
.blog__modal_close:hover {
    opacity: 0.9;
}

.blog__modal_content {
    width: 100%;
    max-width: 800px;
    background-color: #0c0c0c;
    padding: 20px;
    border-radius: 10px;
    max-height: 100%;
    overflow-y: auto;
    position: relative;
}

.blog__modal_content::before {
    content: url('../images/ServicesGradientLeft.svg');
    filter: blur(10px);
    pointer-events: none;
    position: absolute;
    z-index: 1;
    top: -100;
    left: -150;
    max-height: calc(100% + 100px);
    overflow: hidden;
}

.blog__modal_image {
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    z-index: 2;
}

.blog__modal_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog__modal_title {
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.blog__modal_text {
    margin-top: 15px;
    position: relative;
    z-index: 2;
    white-space: pre-wrap;
}

.blog__modal_text p + p {
    margin-top: 10px;
}

@media screen and (max-width: 1210px) {
    .blog__list {
        padding: 0 20px;
    }
}

@media screen and (max-width: 768px) {
    .blog__item {
        width: 100%;
    }
}

@media screen and (max-width: 900px) {
    .blog__modal_close {
        display: none;
    }
    .blog__modal_content {
        overflow-x: hidden;
        max-width: 100%;
    }
    .blog__modal_title {
        font-size: 24px;
    }
    .blog__modal_text {
        font-size: 14px;
    }
}