.content {
    padding-top: 30px;
}
.filters__title {
    font-size: 37px;
    font-family: 'Faberge';
    font-weight: normal;
    text-align: center;
}
.filters__filters-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    margin-top: 30px;
    gap: 10px;
}
.filters__filters-list-btn {
    padding: 8px 26px 10px 26px;
    border-radius: 23px;
    border: none;

    font-family: 'Winston';
    font-size: 20px;
    font-weight: 500;

    color: var(--dark-color-1);
    background-color: var(--photo-wapl);

    transition: background-color 0.2s ease-in-out;

}

@media (hover: hover) and (pointer: fine) {
    .filters__filters-list-btn:hover {
    background-color: var(--photo-wapl-dark);
    transition: background-color 0.1s;
    cursor: pointer;
}
    .filters__filters-list-btn--active:hover {
    background-color: var(--primary-color-1-dark);
    transition: background-color 0.1s;
}
}

.filters__filters-list-btn--active {
    background-color: var(--primary-color-1);
    color: var(--light-color);
    font-weight: 400;
    transition: background-color 0.2s ease-in-out;
}

.photosessions {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 30px;

    position: relative;

    background: linear-gradient(
        to bottom,
        var(--light-color) 0,
        var(--light-color) 190px,
        var(--primary-color-2) 190px
    );
}
.photosessions__container {
    z-index: 2;
}
.photosessions::before {
    display: flex;
    content: "";
    position: relative;
    top: 150px; /* Начинается после 150px от верха */
    left: 0;
    width: 100%;
    height: 40px;

    -webkit-mask-image: url("../img/photosession-plenka.svg");
    -webkit-mask-repeat: repeat-x;
    -webkit-mask-size: auto 40px;

    mask-image: url("../img/photosession-plenka.svg");
    mask-repeat: repeat-x;
    mask-size: auto 40px;

    background-color: var(--primary-color-2);

    pointer-events: none;
    z-index: 1;
}
.photosessions__list {
    margin-top: 30px;

    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 30px;
}
.photosessions__list-item {
    display: flex;
    position: relative;

    width: 332px;
    height: 332px;

    -webkit-box-shadow: 0px 0px 10px 0px var(--dark-color-1);
    -moz-box-shadow: 0px 0px 10px 0px var(--dark-color-1);
    box-shadow: 0px 0px 10px 0px var(--dark-color-1);

    transition: 0.5s ease-in-out;
}
.photosessions__list-item:hover {
    cursor: pointer;
    transform: scale(1.02);
    transition: 0.2s;
}
.photosessions__list-item-link {
    width: 100%;
    height: 100%;
    display: flex;
}
.photosessions__list-item-link picture {
    display: block;
    width: 100%;
    height: 100%;
}
.photosessions__list-item-img {
    object-fit: cover;
    object-position: center center;
    width: 100%;
    height: 100%;

    background-color: var(--photo-wapl);

    z-index: 0;
}
.photosessions__list-item::after {
    content: "";
    position: absolute;
    z-index: 1;

    width: 100%;
    height: 100%;

    background-image: radial-gradient(
            circle at 60% -10%,
            hsla(from var(--light-color) h s l / 0) 40%,
            var(--light-color) 90%
    );
}
.photosessions__list-item-title {
    position: absolute;
    z-index: 2;
    display: flex;

    bottom: 0;
    color: var(--dark-color-1);
    font-family: 'Faberge';
    font-size: 25px;
    font-weight: normal;

    width: 100%;
    height: 100%;
    text-align: left;
    align-items: flex-end;

    padding: 18px 18px;
}
.back-uzor {
    background-color: var(--primary-color-2);
}
.footer-wrapper {
    background-color: var(--primary-color-2);
}

@media (min-width: 0px) and (max-width: 1196px){
    .filters__title {
        font-size: 27px;
    }
    .content {
        padding-top: 30px;
    }
    .container {
        padding-block: 0;
    }
    .photosessions {
        /*display: flex;*/
        /*flex-direction: row;*/
        flex-wrap: wrap;
        /*justify-content: center;*/
        align-items: flex-start;

        min-height: 100vh;
        padding-bottom: 30px;

        position: relative;

        background: linear-gradient(
                to bottom,
                var(--light-color) 0,
                var(--light-color) 140px,
                var(--primary-color-2) 140px
        );
        min-height: 100vh;
        padding-bottom: 30px;
    }
    .photosessions__container {
        display: flex;
        justify-content: center;
        width: fit-content; /* ключевой момент */
        margin: 0 auto;     /* центрирование */
    }
    .photosessions__list-item {
        width: calc((100% - 20px * 1)/2);
        aspect-ratio: 1/1;
        height: auto;
    }
    .photosessions__list-item:hover {
        cursor: pointer;
        transform: scale(0.98);
        transition: 0.2s;
    }
    .photosessions__list {
        display: flex;
        gap: 20px;
        width: 100%;

    }
    .photosessions__list-item-title {
        font-size: 16px;
        padding: 8px 8px ;
    }
    .filters__filters-list {
        margin-top: 20px;
        gap: 5px;
    }
    .filters__filters-list-btn {
        font-size: 16px;
        padding: 6px 16px 8px 16px;
    }
    .photosessions::before {

        top: 110px; /* Начинается после 150px от верха */
        left: 0;
        width: 100%;
        height: 30px;

        -webkit-mask-image: url("../img/photosession-plenka-phone.svg");
        -webkit-mask-repeat: repeat-x;
        -webkit-mask-size: auto 30px;

        mask-image: url("../img/photosession-plenka-phone.svg");
        mask-repeat: repeat-x;
        mask-size: auto 30px;

        background-color: var(--primary-color-2);

        pointer-events: none;
        z-index: 1;
    }
}
@media (max-width: 400px) {
    .photosessions__list-item {
        width: calc((100% - 20px * 0)/1);
        aspect-ratio: 1/1;
        height: auto;
    }
    .photosessions__list-item-title {
        font-size: 20px;
        padding: 12px;
    }
}
@media (min-width: 772px) and (max-width: 1196px) {
    .photosessions {
        position: relative;

        background: linear-gradient(
                to bottom,
                var(--light-color) 0,
                var(--light-color) 140px,
                var(--primary-color-2) 140px
        );
    }
    .photosessions__list-item {
        width: calc((100% - 20px * 2)/3);
        aspect-ratio: 1/1;
        height: auto;
    }
    .photosessions__list-item-title {
        font-size: 18px;
        padding: 10px;
    }
}
@media (min-width: 1005px) and (max-width: 1196px) {
    .photosessions__list-item {
        width: calc((100% - 20px * 3)/4);
        aspect-ratio: 1/1;
        height: auto;
    }
    .photosessions__list-item-title {
        font-size: 20px;
        padding: 12px;
    }
}