

.wrapper-info-portfolio p {
    margin-bottom: 10px;
}

.wrapper-info-portfolio hr {
    margin: 10px 0px;
}

.front-img {
    margin-bottom: 16px;
    border-radius: 15px;
    /* width: 100%; */
}


.wrapper-img-portfolio {
    display: flex;
/*     flex-direction: column; */
    flex-wrap: wrap;
    align-items: center;
    gap: 2%;
    justify-content: flex-start;
}

.wrapper-img-portfolio .item {
    flex: 1 1 calc(33.333% - 8px);
    max-width: calc(33.333% - 8px);
    box-sizing: border-box;
}


.thumbnail {
  /*   width: 32%; */
   width: 100%; 
    max-height: auto;
    border-radius: 15px;
    margin-bottom: 2%;
}

.thumbnail:hover {
    cursor: pointer;
    border: 2px solid var(--red);
}


.title-info {
    color: var(--dark-gray);
    font-size: 12px;
    margin: 0;
    font-weight: 700;
}

.info {
    font-size: 16px;
}

.price {
    color: var(--light-black);
    font-weight: 600;
    font-size: 20px;
}

.wrapper-info-portfolio .white-btn {
    margin: 16px 0;
}

.price-explanation {
    font-style: italic;
    color: rgba(116, 116, 116, 1);
}

main.container h1 {
    margin-bottom: 32px;
}


.section-portfolio-info h2 {
    margin-bottom: 32px;
}

.section-portfolio-info a {
    color: var(--red);
    text-decoration: none;
}

.section-portfolio-info a:hover {
    color: var(--dark-red);
}

/* ── Характеристики: вариант B (карточки) ── */
.mm-chars__card {
    background: #f8f8f8;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
}
.mm-chars__name {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #999;
    margin: 0 0 10px;
}
.mm-chars__dl {
    display: grid;
    grid-template-columns: minmax(0, 30%) 1fr;
    gap: 4px 12px;
    margin: 0;
}
.mm-chars__dl dt {
    font-size: 12px;
    color: #aaa;
    font-weight: 400;
    align-self: center;
}
.mm-chars__dl dd {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    margin: 0;
}
.mm-chars__dl dd a { color: var(--red); text-decoration: none }
.portfolio-card .mm-chars__dl dd a { color: var(--red); text-decoration: none }
.mm-chars__dl dd a:hover,
.portfolio-card .mm-chars__dl dd a:hover { text-decoration: underline }





 .thumbnail-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 700px; 
}

.thumbnail-container {
    overflow: hidden;
    height: 600px; 
    display: flex;
    flex-direction: column;
    gap: 10px;
}



.thumbnail:hover {
    cursor: pointer;
    border: 2px solid var(--red);
}

.arrow {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
} 

.desktop-img-slider button svg {
    fill: #D9D9D9;
    transform: rotate(90deg);
}

.desktop-img-slider button svg:hover {
    fill: var(--red);
}



/*под помбилку*/
 .thumbnail-container {
    overflow-y: auto;
}

.mobile-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    border-radius: 24px;
}

.mobile-thumbnails {
    transition: transform 0.3s ease;
    gap: 8px;
}

.mobile-thumbnail {
    width: 100px;
    flex-shrink: 0;
    cursor: pointer;
}

.mobile-img-slider .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    border: none;
    font-size: 10px;
    padding: 5px 10px;
}

.mobile-img-slider svg {
    fill: #D9D9D9;
}

.arrow.left {
    left: 0;
}

.arrow.right {
    right: 0;
}
 
.mobile-img-slider {
    display: none;
}

 @media (max-width: 765px) {
        .desktop-img-slider {
            display: none;
        }

        .mobile-img-slider {
            display: block;
        }
    }


    .mobile-img-slider {
    max-width: 100%;
}

.mobile-slider-wrapper {
    height: auto;
}

.mobile-images {
    transition: transform 0.3s ease-in-out;
    white-space: nowrap;
}

.mobile-image {
    width: 100%;
    height: auto;
    display: inline-block;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.mobile-image.active {
    opacity: 1;
}


