.about {
    display: flex;
    justify-content: space-between;
    margin-bottom: 100px;
}

.left-side {
    width: 563px;
    background-color: #fafafa;
    padding: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.text {
    text-align: center;
    line-height: 25px;
    color: #4a4a4a;
    font-weight: 400;
    font-size: 14px;
}

.text span {
    font-weight: 500;
    font-size: 20px;
    display: block;
    margin: 22px 0;
}

.text span:last-child {
    font-weight: 300;
    text-align: left;
}

.right-side {
    position: relative;
    width: 563px;
}

.photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 49%;
    background-image: url(../img/sila.webp);
    background-position: 50% -20px;
    background-repeat: no-repeat;
    background-size: cover;
}

.video {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 49%;
    object-fit: cover;
}

.title {
    font-size: 35px;
    text-align: center;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 50px;
}

.gallery {
    margin-bottom: 100px;
}

.gallery {
    margin-top: -15px;
    margin-right: -1%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.wrap-photo {
    position: relative;
    overflow: hidden;
    margin-top: 15px;
    margin-right: 1%;
}

.video-gallery {
    margin-bottom: 80px;
}

.wrap-photo::after {
    position: absolute;
    content: '';
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    transition: 1s;
}

.wrap-photo:hover::after {
    background-color: rgba(0, 0, 0, 0.5);
    transition: 1s;
}

.photo-gallery:hover {
    transform: scale(1.2);
    transition: 1s;
}

.photo-gallery {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: url('../img/icons/magnifier.png'), pointer;
    transition: 1s;
    object-fit: cover;
}

.gallery {
    margin-top: -1%;
}

.wrap-photo {
    margin-top: 1%;
}

.photo-w555 {
    width: 57%;
    height: 350px;
}

.photo-w278 {
    width: 20%;
    height: 350px;
}

.photo-w370 {
    width: 32.333333333333%;
    height: 360px;
}

.photo-w562-5 {
    width: 49%;
    height: 300px;
}

.photo-focus-bottom-right {
    object-position: right bottom;
}

.photo-focus-bottom {
    object-position: bottom;
}

.photo-focus-top {
    object-position: top;
}


.wrap-video {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    max-width: 800px;
    height: 400px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1%;
}

/* затемнение */

.wrap-video::after{
    content:"";

    position:absolute;

    top:0;
    left:0;

    width:100%;
    height:100%;

    background:rgba(0,0,0,0);

    transition:.4s;

    pointer-events:none;
}

/* наведение */

.wrap-video:hover::after{
    background:rgba(0,0,0,.45);
}


.wrap-video img{
    width:100%;
    height:405px;
    object-fit:cover;
    display:block;
}


.play-btn{
    position:absolute;

    top:50%;
    left:50%;

    transform:translate(-50%,-50%);

    width:80px;
    height:80px;

    border-radius:50%;

    border:2px solid white;

    display:flex;
    justify-content:center;
    align-items:center;

    font-size:30px;

    color:white;

    z-index:2;

    transition:.3s;
}

.wrap-video:hover .play-btn{
    transform:translate(-50%,-50%) scale(1.1);
}


.next-img {
    opacity: 1;
}

.prev-img {
    opacity: 0;
}

.lightbox__arrow {
  position: fixed;
  top: 0;
  height: 100%;
  width: 100px;
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 233;
}

.lightbox__arrow > span {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox__arrow span {
    color: rgba(0, 0, 0, 0.5);
    transition: 0.2s;
    font-size: 24px;
    width: 50px;
    height: 50px;
    text-align: center;
    justify-content: center;
    
}

.lightbox__arrow:hover span {
    color: rgb(0, 0, 0);
    transition: 0.2s;
    font-size: 30px;
}

.lightbox__arrow_left {
  left:0;
}

.lightbox__arrow_right {
  right: 0;
}


.modal{
    position:fixed;
    inset:0;

    background:rgba(255,255,255,.95);

    display:flex;
    justify-content:center;
    align-items:center;

    overflow:hidden;

    opacity:0;
    visibility:hidden;

    transition:
    opacity .3s ease,
    visibility .3s ease;

    z-index:1000;
}

.modal-show{
    opacity:1;
    visibility:visible;
}

.modal-show .current-image{

    animation:
    photoOpen .45s cubic-bezier(.22,.61,.36,1);
}



@keyframes photoOpen{

    from{

        transform:
        scale(.85);

        opacity:0;

    }

    to{

        transform:
        scale(1);

        opacity:1;

    }

}

.lightbox__image{

    position:absolute;

    width:auto;
    height:auto;

    max-width:90%;
    max-height:90%;

    object-fit:contain;

    will-change:transform;

    transition:
    transform .35s cubic-bezier(.22,.61,.36,1),
    opacity .35s ease;
}

.current-image{

    transform:
    translateX(0)
    scale(1);

    z-index:2;
}

.next-image{

    z-index:1;

    transform:
    translateX(120vw)
    scale(1);
}


.modal__btn-close {
    position: fixed;
    right: 0;
    top: 0;
    width: 100px;
    height: 100px;
    background-image: url('../img/icons/close-window.png');
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: 0.2s;
    z-index: 200000;
    opacity: 0.5;
}

.modal__btn-close:hover {
    background-image: url('../img/icons/close-window.png');
    opacity: 1;
}

.show-more-item {
    position: relative;
    cursor: pointer;
}

.show-more-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 16px;
    opacity: 1;
    transition: 0.3s;
    font-weight: 700;
    text-transform: uppercase;
}

.show-more-item:hover .show-more-overlay {
    background: rgba(0,0,0,0.8);
}

.lightbox-clone{

    position:absolute;

    max-width:90%;
    max-height:90%;

    object-fit:contain;

    transition:
    transform .35s ease;

    z-index:999;
}


@media screen and (max-width: 940px) {
    .photo {
        background-position: 51%;
    }

    .photo-w555 {
        width: 49%;
    }

    .photo-w278 {
        width: 24%;
    }
}

@media screen and (max-width: 740px) {
    .photo-w555,.photo-w278,.photo-w562-5,.photo-w370 {
        width: 49.5%;
        height: 450px;
    }

    .modal__btn-close {
        background-color: rgba(255, 255, 255, 0.85);
        width: 40px;
        height: 40px;
        opacity: 1;
        right: 20px;
        top: 20px;
    }

    .lightbox__arrow {
        bottom: 30px;
        height: 40px;
        width: auto;
        top: auto;
    }

    .lightbox__arrow_left {
        left: 20px;
    }

    .lightbox__arrow_right {
        right: 20px;
    }

    .lightbox__arrow span {
        background-color: rgba(255, 255, 255, 0.85);
        width: 40px;
        height: 40px;
    }

    .lightbox__arrow:hover span {
        color: rgb(0, 0, 0);
        font-size: 24px;
        color: rgba(0, 0, 0, 0.5);
    }

    .lightbox__image {
        max-width: 100%;
    }
}

@media screen and (max-width: 640px) {
    .gallery {
        justify-content: center;
        margin-top: -14px;
    }

    .wrap-photo {
        margin-top: 14px;
    }

    .photo-w555,.photo-w278,.photo-w562-5,.photo-w370 {
        width: 100%;
    }

    .wrap-video {
        margin-bottom: 14px;
    }

    .wrap-photo:hover::after {
        background-color: rgba(0, 0, 0, 0);
    }

    .photo-gallery:hover {
        transform: scale(1);
    }

    .show-more-item:hover .show-more-overlay {
        background: rgba(0, 0, 0, 0);
    }

    .wrap-video:hover::after{
        background:rgba(0,0,0,0);
    }
}
