.gallery-item__button {
    margin: 0 auto;
    text-decoration: none;
    display: block;
    width: 220px;
    padding: 0 10px;
    padding-top: 16px;
    padding-bottom: 19px;
    border: 2px solid #444444;
    color: #222222;;
    font-size: 16px;
    font-family: inherit;
    line-height: 16px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    background-color: #77f059;
}

.gallery-item__button:hover,
.gallery-item__button:focus {
    background-color: #444444;
    color: #ffffff;
}

.gallery-item__button:active {
    background-color: #444444;
    color: #797979;
}

.popup {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.popup--open {
    display: block;
}

.popup::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.popup__content {
    position: relative;
    width: 745px;
    margin-top: 115px;
    margin-left: auto;
    margin-right: auto;
    padding: 30px 70px 15px;
    background-color: #ffffff;
    box-shadow: -1px 5px 12px 0 rgba(89, 90, 90, 0.3);
    z-index: 2;
}

@media (max-width: 885px) {
    .popup__content {
        width: 550px;
    }
}

.popup__button {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 20px;
    height: 20px;
    font-size: 0;
    background: none;
    border: 0;
}

.popup__button::after,
.popup__button::before {
    content: "";
    position: absolute;
    right: 0;
    top: 20px;
    width: 26px;
    height: 6px;
    margin: -13px -3px;
    color: #bfbfbf;
    background-color: currentColor;
}

.popup__button::before {
    transform: rotate(45deg);
}

.popup__button::after {
    transform: rotate(-45deg);
}

.popup__button:hover,
.popup__button:focus {
    color: #9e9e9e;
}

.popup__button:active {
    color: #4a4a4a;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    white-space: nowrap;
    clip-path: inset(100%);
    clip: rect(0 0 0 0);
    overflow: hidden;
}

.up-project__info>h3,
.text-container.text-container--module h3 {
    font-size: 24px;
}

.up-project__info {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #e8e8e8;
}

.up-project__info h3 {
    align-self: flex-start;
    margin-top: -32px;
    margin-bottom: 5px;
    padding: 0 10px;
    text-align: center;
    background-color: #fff;
}

.text-container--module>h2,
.text-container--module>h3,
.text-container--module>h4,
.text-container--module>p,
.text-container--module>ul {
    margin-top: 15px;
    padding-bottom: 0;
}

.text-container--module h3,
.text-container--module h4 {
    font-size: 20px;
    line-height: 1.5;
}

.text-container--module h3,
.text-container--module h4,
.text-container--up h4 {
    font-weight: 700;
}

.text-container--module {
    font-size: 16px;
    line-height: 24px;
}

.text-container--specification ul {
    margin-left: -10px;
}

.text-container--module ul {
    margin: 15px 0 0;
}

.text-container ul {
    padding-left: 0;
    list-style: none;
}

.text-container--module ul li:first-child,
.text-container--specification ul li p:first-child,
.text-container--up .text-container__nav li:first-child {
    margin-top: 0;
}

.text-container--specification ul li {
    margin: 0 0 5px;
    padding: 5px 10px;
}

.text-container ul>li {
    position: relative;
}

.up-project__review {
    margin-bottom: 40px;
}

.up-project__caption {
    margin-bottom: 20px;
    font-size: 30px;
}

.fixed-aspect-ratio {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}

.fixed-aspect-ratio iframe,
.fixed-aspect-ratio video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.fixed-aspect-ratio iframe {
    border: 0;
}

.view-gallery {
    position: relative;
    margin-top: 65px;
    margin-bottom: 30px;
    padding: 30px 70px 15px;
    background-color: #ffffff;
    box-shadow: -1px 5px 12px 0 rgba(89, 90, 90, 0.3);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;

    background: url(img/gallery-picture/leaves-pattern.png) 0 0;
}

.view-gallery__photo-full {
    margin-bottom: 12px;
}

.view-gallery__photo-full img {
    display: block;
    object-fit: contain;
}

.view-gallery__photo-previews {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 5px 5px;
    list-style-type: none;
    margin: 0;
    width: 625px;
    padding: 0;
    justify-content: space-between;
}

.view-gallery__photo-preview {
    margin: 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
}

.view-gallery__photo-preview:hover,
.gallery__photo-preview:focus {
    opacity: 0.7;
}

.view-gallery__photo-preview img {
    display: block;
    object-fit: cover;
    width: 100px;
    height: 100px;
}
