.title-gallery {
    padding: 30px 0 60px;
    position: relative;
}

.title-gallery+.title-gallery {
    padding: 0 0 60px;
}

.title-gallery strong {
    position: relative;
}

.title-gallery h1 strong::before,
.title-gallery h2 strong::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 406px;
    height: 26px;
    pointer-events: none;
    transform: translateX(-50%) translateY(100%);
    background: url(../../assets/images/rich-text-title-line.svg);
    background-repeat: no-repeat;
    background-size: contain;
    max-width: 100%;
}

.title-gallery h3 {
    position: relative;
}

.title-gallery h3::before {
    content: '';
    position: absolute;
    left: -64px;
    top: 0;
    transform: translateX(-100%);
    width: 48px;
    height: 48px;
    background-image: url(../../assets/images/block-title-before.svg);
    background-repeat: no-repeat;
    background-size: cover;
}

.title-gallery h1,
.title-gallery h2,
.title-gallery h3,
.title-gallery h4,
.title-gallery h5,
.title-gallery h6 {
    margin: 40px 0;
}

.title-gallery .title-gallery-wrapper>*:first-child {
    margin-top: 0;
}

.title-gallery {
    font-size: 20px;
    color: #1F2B51;
    line-height: 1.23;
}

.title-gallery h2 {
    font-size: 64px;
}

.title-gallery h3 {
    font-size: 40px;
}

.title-gallery .aligncenter {
    display: block;
    margin: 40px auto;
}

.title-gallery .pattern-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 35px 22px;
    padding-top: 20px;
}

.title-gallery .pattern-single {
    width: calc(25% - 20px);
    display: flex;
    flex-direction: column;
    gap: 22px;
    text-align: center;
}

.title-gallery .quantity-increased .pattern-single {
    width: calc(20% - 20px);
}

.title-gallery .pattern-single h4 {
    font-size: 20px;
    font-weight: 300;
    margin: 0;
}

.title-gallery .pattern-image img {
    max-width: 250px;
    width: 100%;
    object-fit: cover;
}

@media (max-width:1199px) {

    .title-gallery h1,
    .title-gallery h2 {
        font-size: 36px;
    }

    .title-gallery .pattern-single {
        width: calc(33.33333333% - 20px);
    }

    .title-gallery .quantity-increased .pattern-single {
        width: calc(25% - 20px);
    }
}

@media (max-width:991px) {

    .title-gallery h1,
    .title-gallery h2,
    .title-gallery h3 {
        font-size: 24px;
    }

    .title-gallery h1 strong::before,
    .title-gallery h2 strong::before {
        content: '';
        width: 315px;
        height: 16px;
    }

    .title-gallery h3::before {
        width: 16px;
        height: 16px;
        left: 0;
        transform: translateY(-100%) translateX(-100%);
    }

    .title-gallery .pattern-gallery {
        padding-top: 10px;
    }

    .title-gallery .pattern-gallery {
        justify-content: space-between;
    }

    .title-gallery .pattern-single h4 {
        font-size: 16px;
    }

    .title-gallery .pattern-single {
        width: calc(50% - 20px);
        gap: 12px;
    }
}

@media (max-width:768px) {
    .title-gallery .quantity-increased .pattern-single {
        width: calc(33.33333333% - 20px);
    }
}

@media (max-width:479px) {

    .title-gallery .quantity-increased .pattern-single {
        width: calc(50% - 12px);
    }
}