.katalog-title {
    font-size: 2rem;
    text-align: center;
    text-decoration: underline;

    padding-top: 1.35rem;
}

.portfolio-list {
    display: flex;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-bottom: 2rem;

    column-gap: 74.5px;
    row-gap: 2rem;


}
.port-item-link {
    text-decoration: none;
    color: white;
}
.port-item {
    list-style-type: none;

    display: flex;
    flex-direction: column;



    width: 303px;

    border-radius: 1.5rem; -webkit-box-shadow: 0px 0px 30px 0px rgba(255, 255, 255, 0.3) inset;
    -moz-box-shadow: 0px 0px 30px 0px rgba(255, 255, 255, 0.3) inset;
    box-shadow: 0px 0px 30px 0px rgba(255, 255, 255, 0.3) inset;

    backdrop-filter: blur(30px);

    transition: 0.5s ease-in-out;

    background-color: rgba(255, 255, 255, 0.07);
}
.port-item:hover {
    transform: scale(1.03);
    transition: 0.1s;
}
.port-item-frame {
    width: 100%;
    height: 194px;

}
.port-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    overflow: hidden;
    border-radius: 1.5rem 1.5rem 0 0;
    object-position: top; /* прижимает к верху */
}
.port-item-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    margin: 0.9rem;
}
.port-item-title {
    text-align: left;
}
.port-item-desc {
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2rem;

    text-align: center;
    font-size: 1.5rem;
    color: #9456D5;

    font-family: "Ubuntu Mono", monospace;
    font-weight: 400;
    font-style: normal;
}
.port-item-vizit {
    list-style-type: none;

    display: flex;
    flex-direction: column;



    width: 303px;

    border-radius: 1.5rem; -webkit-box-shadow: 0px 0px 30px 0px rgba(255, 255, 255, 0.3) inset;
    -moz-box-shadow: 0px 0px 30px 0px rgba(255, 255, 255, 0.3) inset;
    box-shadow: 0px 0px 30px 0px rgba(255, 255, 255, 0.3) inset;

    backdrop-filter: blur(30px);

    transition: 0.5s ease-in-out;

    background-color: rgba(255, 255, 255, 0.07);
}
.port-item-vizit:hover {
    transform: scale(1.03);
}
.port-item-frame#vi-1, .port-item-frame#vi-2 {
    height: 173px;
}
.port-item-img#viz-img-2 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    overflow: hidden;
    border-radius: 0 0 1.5rem 1.5rem;
}
.port-item-frame#vi-1, .port-item-frame#vi-2 {
    height: 173px;
}
.vizit-title {
    margin-block: 0.8rem;
    margin-inline: 0.9rem;
}











@media (max-width: 1076px) {
    .katalog-title {
        font-size: 32px;
    }
    .portfolio-list {
        flex-direction: column;
        gap: 1.5rem; /* или 0 */
    }
    .port-item, .port-item-vizit {
        width: 100%;
        box-sizing: border-box;
    }
    .port-item-frame  {

    }
    .port-item:hover {
        transform: scale(0.95);
    }
    .port-item-img {
        position: relative;
        top: 0;
    }
    .port-item-frame {
        height: 130px;
    }
    .port-item-info {
        height: 50%;
    }
    .port-item-title {
        font-size: 16px;
    }
    .portfolio-list {
        margin-right: -1px;
    }
    .port-item-frame#vi-1,
    .port-item-frame#vi-2 {
        height: 173px;
        border-radius: 1.5rem;   /* скругление рамки */
        overflow: hidden;        /* прячет часть изображения, которая выходит за рамку */
        position: relative;      /* для object-position внутри */
    }

    #viz-img-1,
    .port-item-img#viz-img-2 {
        height: 100%;      /* занимает всю высоту контейнера */
        width: auto;             /* ширина по пропорции */
        object-fit: contain;     /* сохраняет пропорции, не обрезает */
        object-position: center; /* центрирование */
        display: block;
        margin: 0 auto;
        border-radius: 0;        /* обнуляем скругление у самого изображения, рамка уже задает */
    }
}


