.container.info-offer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-column-gap: 28px;
    grid-row-gap: 6vh;
    width: 90vw;
    margin: auto;
    max-width: 77vw;
    align-items: stretch;
    padding-bottom: 74px;
}

.info-element {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 18px;
    border: 1px solid #e1e1e1;
    box-shadow: 0 0 14px 0 rgba(0, 0, 0, 0.15);
}

.info-element .btnholder {
    margin: auto;
}

.main_image_info {
    overflow: hidden;
    position: relative;
    height: 330px;
    width: 100%;
    flex-shrink: 0;
}

.main_image_info img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.info-element:hover .main_image_info img {
    transform: scale(1.1);
}

.main_image_gallery {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

    .info-offer-img {margin-bottom: 22px;}
    .info-element .btnholder.alternative {margin-bottom: 18px;}

.gallery-button {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 100px;
    transition: background 0.3s;
}

.gallery-button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.info-offer-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.main_info_title h2 {
    font-size: 1.55rem;
    font-weight: 600;
    margin-bottom: 14px;
    min-height: 80px;
    display: flex;
    align-items: center;
}

.main_info_text {
    height: 220px;
    overflow-y: scroll;
    margin-bottom: 22px;
    word-break: break-word;
}

.info_text_area p {
    text-align: justify;
}

@media screen and (max-width: 1024px) {
    .container.info-offer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 768px) {
        .container.info-offer {
        display: flex;
        max-width: 90vw;
        flex-direction: column;
        grid-row-gap: 3vh;
    }
    .info-offer-img {margin-bottom: 22px;}
    .main_info_title h2 {
        min-height: auto;
    }
    .info-element .btnholder.alternative {margin-bottom: 18px;}
}

.popup-content {
    display: flex;
    max-width: 1000px;
    height: 77vh;
    overflow: scroll;
    gap: 22px;
}

.popup-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
}

.popup-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 12px;
    grid-row-gap: 0;
}

.popup-gallery img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    cursor: pointer;
}

.popup-right {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: flex-start;
}

.popup-right h2 {
    font-size: 1.8rem;
}

.popup-text p {
    text-align: justify;
}

.popup-link {
    margin-top: 22px;
    padding: 12px 32px;
    background: #822931;
    color: #fff;
    text-decoration: none;
    border-radius: 99px;
    align-self: start;
}

@media (max-width: 768px) {
    .popup-content {
        flex-direction: column;
        height: auto;
    }
}