.about-page-block {}

.about-page-block .text__wrap {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.about-page-block .about__title {
    max-width: 470px;
    width: 100%;
}

.about-page-block .text__holder {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 570px;
}

.about-page-block .about__gallery {
    margin-top: clamp(1.875rem, 1.648rem + 1.14vw, 2.5rem);
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: clamp(1.25rem, 1.023rem + 1.14vw, 1.875rem);
}

.about-page-block .gallery__img {
    border-radius: 10px;
    overflow: hidden;
    max-height: 235px;
    height: 100%;
    min-width: 150px;
    position: relative;
    cursor: pointer;
}

.about-page-block .overflow {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    background: rgba(0, 0, 0, 0.4);
}

.about-page-block .gallery__img:nth-child(2) {
    grid-row: 2 span;
    max-height: 100%;
    max-width: 370px;
    width: 100%;
    max-height: 500px;
}

.about-page-block .gallery__img:nth-child(3) {
    grid-column: 2 span;
}

.about-page-block .gallery__img:nth-child(1),
.about-page-block .gallery__img:nth-child(4) {
    max-width: 170px;
}

@media(any-hover:hover) {
    .about-page-block .gallery__img:hover .overflow {
        opacity: 1;
    }
}

@media(max-width: 900px) {
    .about-page-block .text__wrap {
        flex-direction: column;
    }

    .about-page-block .about__gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-page-block .gallery__img:nth-child(1),
    .about-page-block .gallery__img:nth-child(4) {
        max-width: 100%;
    }

    .about-page-block .gallery__img:nth-child(2) {
        grid-row: 1 span;
        grid-column: 2 span;
        max-width: 100%;
        max-height: 235px;
    }

    .about-page-block .gallery__img:nth-child(4) {
        grid-row: 2 span;
        max-height: 100%;
    }
}

@media(max-width: 600px) {
    .about-page-block .about__gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-page-block .gallery__img:nth-child(2) {
        grid-column: 1 span;
    }
}

@media(max-width: 450px) {
    .about-page-block .about__gallery {
        grid-template-columns: 1fr;
    }

    .about-page-block .gallery__img:nth-child(3) {
        grid-column: 1 span;
    }

    .about-page-block .gallery__img:nth-child(4) {
        grid-row: 1 span;
    }

    .about-page-block .gallery__img {
        height: 200px;
    }
}