.portfolio-page .products-pf__section {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    background: #fff;
    padding-bottom: 300px;
}
.portfolio-page .products-pf__section .container {
    width: 1756px;
}

.portfolio-page .products-pf__section .products-pf__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 26px;
    row-gap: 56px;
    position: relative;
}
.products-pf__item:hover .products-pf__item-picture {
    transition: all 0.35s;
    opacity: 0.85;
}
.products-pf__item .products-pf__item-picture {
    transition: all 0.35s;
}
.products-pf__item:hover .products-pf__item-type  {
    transition: all 0.35s;
    border-bottom: 1px solid #f13d61;
}
.products-pf__item:hover .products-pf__item-name span {
    transition: all 0.35s;
    border-bottom: 1px solid #f13d61;
}
.products-pf__item .products-pf__item-type  {
    transition: all 0.35s;
    border-bottom: 1px solid transparent;
}
.products-pf__item .products-pf__item-name span {
    transition: all 0.35s;
    border-bottom: 1px solid transparent;
}
.portfolio-page .products-pf__section .products-pf__list > *:not(.btn-wrapper):not(.pagination) {
}

.portfolio-page .products-pf__section .products-pf__list > *:not(.btn-wrapper):not(.pagination):nth-child(10n+1) {
    grid-column: span 2;
}

.portfolio-page .products-pf__section .products-pf__list > *:not(.btn-wrapper):not(.pagination):nth-child(10n+1) .products-pf__item-picture::before {
    padding-top: 65.29%;
}

.portfolio-page .products-pf__section .products-pf__list > *:not(.btn-wrapper):not(.pagination):nth-child(10n+2) {
    grid-column: span 1;
}

.portfolio-page .products-pf__section .products-pf__list > *:not(.btn-wrapper):not(.pagination):nth-child(10n+3),
.portfolio-page .products-pf__section .products-pf__list > *:not(.btn-wrapper):not(.pagination):nth-child(10n+4),
.portfolio-page .products-pf__section .products-pf__list > *:not(.btn-wrapper):not(.pagination):nth-child(10n+5) {
    grid-column: span 1;
}

.portfolio-page .products-pf__section .products-pf__list > *:not(.btn-wrapper):not(.pagination):nth-child(10n+6) {
    grid-column: span 1;
}

.portfolio-page .products-pf__section .products-pf__list > *:not(.btn-wrapper):not(.pagination):nth-child(10n+7) {
    grid-column: span 2;
}

.portfolio-page .products-pf__section .products-pf__list > *:not(.btn-wrapper):not(.pagination):nth-child(10n+7) .products-pf__item-picture::before {
    padding-top: 65.29%;
}

.portfolio-page .products-pf__section .products-pf__list > *:not(.btn-wrapper):not(.pagination):nth-child(10n+8),
.portfolio-page .products-pf__section .products-pf__list > *:not(.btn-wrapper):not(.pagination):nth-child(10n+9),
.portfolio-page .products-pf__section .products-pf__list > *:not(.btn-wrapper):not(.pagination):nth-child(10n+10) {
    grid-column: span 1;
}

.portfolio-page .products-pf__section .products-pf__list .btn-wrapper,
.portfolio-page .products-pf__section .products-pf__list .pagination {
    grid-column: 1 / -1;
    width: 100%;
    z-index: 2;
}
.portfolio-page .products-pf__section .products-pf__list .btn-wrapper:empty {
    display: none;
}
.portfolio-page .products-pf__section .products-pf__list .btn-wrapper:empty {
    display: none;
    grid-column: unset !important;
    grid-row: unset !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
}


.portfolio-page .products-pf__section .products-pf__list .pagination .pagination__pages {
    padding-top: 0;
    padding-bottom: 0;
}

.portfolio-page .products-pf__section .products-pf__item {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-flow: column nowrap;
    text-decoration: none;
}

.portfolio-page .products-pf__section .products-pf__item-picture {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

.portfolio-page .products-pf__section .products-pf__item-picture::before {
    position: relative;
    display: block;
    content: "";
    padding-top: 69.93%;
}

.portfolio-page .products-pf__section .products-pf__item-picture img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
}

.portfolio-page .products-pf__section .products-pf__item-type {
    color: #3F4751;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 150%;
    margin-bottom: 2px;
}

.portfolio-page .products-pf__section .products-pf__item-name {
    color: #3F4751;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px;
}

@media (max-width: 768px) {
    .portfolio-page .products-pf__section .products-pf__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .portfolio-page .products-pf__section .products-pf__list > *:not(.btn-wrapper):not(.pagination) {
        grid-column: span 1 !important;
    }

    .portfolio-page .products-pf__section .products-pf__list > *:not(.btn-wrapper):not(.pagination) .products-pf__item-picture::before {
        padding-top: 69.93% !important;
    }
}

@media (max-width: 576px) {
    .portfolio-page .products-pf__section .products-pf__list {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }

    .portfolio-page .products-pf__section .products-pf__list .pagination .pagination__pages {
        padding-top: 20px;
        padding-bottom: 0;
    }
}
