main {
    position: relative;
    background:   var(--background-gradient-section);
    z-index: 1;
    padding: 50px 50px 50px 50px;

}

main::before {
    position: absolute;
    content: '';
    background-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0px 0px 8px 0px rgba(255, 255, 255, 0.05) inset;
    backdrop-filter: blur(10px);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.title-text {
    padding-left: 15px;
    font-size: 50px;
    margin-top: 0;
}

.portfolio-grid-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    padding: 15px;
}

.portfolio-gallery-item {
    position: relative;
    width: 100%;
}

.portfolio-gallery-item-hidden {
    display: none;
}

/* .portfolio-gallery-item::before {
    position: absolute;
    content: '';
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
} */

.portfolio-gallery-item > .portfolio-gallery-item-open-gal {
    display: block;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.portfolio-gallery-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transform-origin: center;
    transition: transform 1.05s ease;
    will-change: transform;
}

.portfolio-gallery-item:hover .portfolio-gallery-item-img {
    transform: scale(1.12);
}


.portfolio-gallery-item-text {
    color: black;
    text-align: center;
    font-size: 24px;
    margin-top: 25px;
}

.portfolio-gallery-item-text:hover {
    color: var(--background-alt-red);
    cursor: pointer;
    transition: color 0.75s ease;
    will-change: transform;
}

.portfolio-project-filters {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    column-gap: 10px;
    align-items: end;
    text-align: left;
    margin-bottom: 50px;
    display: none; /* Этого быть не должно*/

}

.portfolio-filters-toggle {
    display: none;
}

.select-filter {
    width: 90%;
    background: transparent;
    padding: 5px;
    box-sizing: border-box;
    border: none;
}

.filter-title {
    padding-left: 9px;
    border-bottom: 1px solid rgba(136, 135, 135, 0.7);
}

.courusel-item-text {
    margin-bottom: 15px;
}

.courusel-item-link {
    color: #C62829;
}


/* POPUP галерея */

.popup-gallery {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0 ;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    overflow: auto;
}

.popup-gallery-wrapper {
    width: 80%;
    height: 750px;
    background-color: white;
    margin: 0 auto;
    margin-top: 100px;
    
}


.bread-crumbs-search {
    padding: 20px 0 50px 0;
}

.title-text {
    text-align: center;
}

/* Стили для страницы portfolio project */

.portfolio-project-main {
    display: grid;
    grid-template-columns: 1fr; /*Должно быть две колонки*/
    column-gap: 10px;
}

.gallery-project-main-img {
    margin-bottom: 15px;
}

.gallery-project-main-img img {
    width: 100%;
    object-fit: contain; /*Должно cover*/
    max-height: 750px; /*Должно быть 500*/
}

.portfolio-project-subsystem {
    display: none; /* Этого быть не должно*/
}

.gallery-project-fancybox img{
    object-fit: cover;
    object-fit: contain; /* Этого быть не должно*/
    width: initial; /* Этого быть не должно*/
}

.about-project--title {
    font-size: 28px;
    margin-top: 0;
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
    grid-column: 1 / -1;
}

.about-prject {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
    display: none; /* Этого быть не должно*/
}

.about-prject div {
    padding: 0 10px 0 15px;
    margin-bottom: 35px;
    font-size: 18px;
    letter-spacing: 5%;
}

.subsystem-card-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 10px;
}

.portfolio-project-subsystem--title {
    font-size: 28px;
    margin-bottom: 25px;
}

.subsystem-card-item--image {
    height: 350px;
}

.carousel-wrapper {
    width: 100%;
}

.gallery-project-fancybox {
    text-align: center;
}
