.portfolio-content {
    display: flex;
    width: 100%;
    margin-top: 64px;
    overflow: hidden;
    transition: transform 0.5s ease;
}

.portfolio .container {
    position: relative;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
}

/* Project */

.project:first-of-type {
    margin-left: calc(50vw - 404px); /* Половина ширины экрана минус половина ширины элемента */
}

.project:last-of-type {
    margin-right: calc(50vw - 404px); /* Аналогично для последнего элемента */
}

.project {
    transition: transform 0.5s ease;
    transform: scale(0.8);

    position: relative;
    min-width: 808px;
    width: 808px;
    height: 701px;
    transition: transform 0.5s ease, opacity 0.3s ease;
    border-radius: 0;

    background-image: url('/static/core/img/ui/project-background-black.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto;
}

.project-content {
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 1;
    padding: 0 30px 40px 30px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}

.project.active {
    transform: scale(1) translateX(0);
    z-index: 2;
}

.project:not(.active){
    cursor: pointer;
    opacity: 0.8;
    transform: scale(0.85);
}

/* Section heading */

.project-black {
    color: #ffffff;
}

.project-white {
    color: #292929;
}

.project-title {
    font-weight: 800;
    margin-bottom: 20px;
}

/* Another text*/
.project-text {
    width: 59.7%;
    margin-top: 56px;
    margin-bottom: 30px;
}

.project-paragraph-title{
    font-weight: 600;
    margin-bottom: 5px;
}

.project-paragraph-text {
    font-weight: 400;
    margin-bottom: 15px;
    max-height: 435px;
    overflow-y: auto;
    white-space: normal;
    overflow-wrap: break-word;
}


/* Project imgs */

.project-icon {
    width: 120px;
    z-index: 1;
    position: absolute;
    left: 50%;
}

.project-demo {
    height: 81%;
    margin-top: auto;
    box-shadow: 0px 4px 20px 0px rgba(255, 255, 255, 0.05);
    border-radius: 34px;
    transition: all 0.2s ease;
    width: fit-content;
    position: relative;
    margin-left: auto;
}


/* Project link */

.project-link {
    position: absolute;
    bottom: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-direction: row;
    column-gap: 15px;

    font-weight: 400;

    border-radius: 40px;

    height: 60px;
    width: 48.5%;

    transition: all 0.25s ease;

}

.project-black .project-link {
    color: #fff;
    border: 1px solid #fff;

}

.project-white .project-link {
    color: #292929;
    border: 1px solid #292929;
}

.project-link img {
    width: 15px;
    margin-top: 5px;
}

.project-link:hover {
    transform: scale(1.025);
}

.project-black .project-link:hover {
    background-color: #ffffff26;
}

.project-white .project-link:hover {
    background-color: #0000001a;
}

.project-link:active {
    transform: scale(0.975);
}

/* Nav */

.portfolio-nav {
    position: relative;
    margin: 0 auto;
    margin-top: 25px;

    padding: 0 27px;
    max-width: 1278px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.portfolio-nav-btn {
    width: 75px;
    height: 75px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 100%;
    border: 1px solid #fff;
    color: #fff;

    transition: 0.25s;

    font-size: 30px;

    /*    cursor: pointer;*/
}

.portfolio-nav-btn:hover {
    transform: scale(1.05);
    background-color: #ffffff26;
}

.portfolio-nav-btn:active {
    transform: scale(0.95);
}