.text_gallery_block {
    padding: 72px 80px;
}

.text-gallery-headline {
    margin-bottom: 16px;
}

.text-gallery-images {
    width: 522px;
    height: 100%;
}

.text-gallery-main-img {
    text-align: end;
    margin-bottom: 8px;
    height: 83%;
}

.text-gallery-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text-gallery-thumbnails {
    display: flex;
    justify-content: space-between;
    max-width: 174px;
    height: 109px;
}

.text-gallery-thumbnails img {
    object-fit: cover;
    width: 32%;
    margin-right: 8px;
    height: 109px;
}

.text-gallery-thumbnails img:last-child {
    margin-right: 0;
}

.nearest-location-container {
    display: flex;
}

.nearest-location-tags-wrap {
    padding: 8px 16px;
    display: inline-block;
}

.nearest-location-wrap {
    width: 50%;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.06), 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 25px;
}

.nearest-location-wrap:first-child {
    margin-right: 16px;
}

.nearest-location-title {
    font-weight: 700;
    font-size: 28px;
    line-height: 36px;
    margin: 32px 0px 24px;
}

.nearest-location-tags {
    font-size: 10px;
    line-height: 14px;
    margin-right: 8px;
}

.nearest-location-tags svg {
    margin-right: 4px;
    width: 20px;
    height: 20px;
}

.nearest-location-block-info {
    padding: 12px 12px 12px 16px;
}

.nearest-location-block-info .nearest-location-classes + div svg {
    width: 40px;
    height: 40px;
}

.nearest-location-block-info a {
    text-decoration: none;
    color: inherit;
}

.nearest-location-block-info a:hover {
    text-decoration: none;
    color: inherit;
}

.nearest-location-name {
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nearest-location-name p {
    margin-bottom: 0;
}

.nearest-location-name svg {
    margin: 0px 13.33px 0px 10px;
    flex: 0 0 auto;
}

.nearest-location-address {
    font-size: 14px;
    line-height: 22px;
    color: #888888;
    margin-bottom: 0;
}

.nearest-location-classes {
    font-weight: 700;
    font-size: 14px;
    line-height: 24px;
    margin: 8px 24px 4px 0;
}

.nearest-location-classes-licenses {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-right: 24px;
}

.nearest_location_all {
    padding: 12px 24px;
    display: inline-block;
    margin-top: 32px;
    border: 1px solid #222222;
    border-radius: 32px;
    color: var(--text-primary, #1D4152);
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    line-height: 16px;
}

.nearest_location_all:hover {
    color: inherit;
    text-decoration: none;
}

#lightbox {
    background: rgba(0,0,0,0.8);
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    color: #FFFFFF;
    z-index: 100;
}
#lightbox img {
    width: 70%;
    padding: 32px;
    align-self: normal;
    object-fit: contain;
}

@media (max-width: 1199px) {
    .text_gallery_block {
        padding: 32px;
    }

    .text-gallery-images {
        width: 100%;
    }

    .text-gallery-main-img {
        height: auto;
    }

    .text-gallery-main-img img {
        width: 100%;
        height: 480px;
        object-position: center;
        object-fit: cover;
    }

    .text-gallery-thumbnails img {
        flex-grow: 1;
        flex-shrink: 1;
    }

    .nearest-location-wrap:first-child {
        margin-right: 36px;
    }

    .nearest_location_all {
        margin-bottom: 32px;
    }
}

@media (max-width: 991px) {
    .text-gallery-headline {
        margin-bottom: 8px;
    }

    .text_gallery_block {
        padding: 16px;
    }

    .text-gallery-main-img img {
        height: 480px;
    }
}

@media (max-width: 689px)  {
    .nearest-location-container {
        flex-direction: column;
    }

    .nearest-location-wrap {
        width: 100%;
    }

    .nearest-location-wrap:first-child {
        margin-bottom: 8px;
    }

    #lightbox img {
        width: 100%;
        padding: 32px;
    }
}

@media (max-width: 549px)  {
    .text-gallery-thumbnails {
        height: 69px;
    }

    .text-gallery-thumbnails img {
        height: 69px;
    }
}

.close, .prev, .next {
    position: absolute;
    cursor: pointer;
}

.close {
    right: 10px;
    top: 10px;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}
