html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.sx-photo-gallery {
    width: 100%;
    height: 100vh;
    padding: 0 1% 5%;
    background-color: #252525;
    overflow: hidden;
    perspective: 800px;
}

@media only screen and (min-width: 576px) {
    .sx-photo-gallery {
        height: auto;
    }
}

.sx-photo-gallery__title {
    max-width: calc(350px*2);
    margin: 5% 10px 1%;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

@media only screen and (min-width: 576px) {
    .sx-photo-gallery__title {
        margin: 30px auto 65px;
    }
}

.sx-photo-gallery__controlls {
    width: 300px;
    margin: 0 auto;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media only screen and (min-width: 576px) {
    .sx-photo-gallery__controlls {
        padding: 40px 0 0 0;
    }
}

.sx-photo-gallery__controlls::selection, .sx-photo-gallery__controlls::-moz-selection {
    opacity: 0;
}

.sx-photo-gallery__controlls-arrow {
    margin: 0 25px;
    padding: 10px;
    display: inline-block;
    cursor: pointer;
    border: solid rgba(255, 255, 255, 0.5);
    border-width: 0 5px 5px 0;
    transition: border .4s;
    pointer-events: none;
    -webkit-tap-highlight-color: transparent;
}

.sx-photo-gallery__controlls-arrow:hover {
    border-color: #2962ff;
}

.sx-photo-gallery__controlls-arrow--left {
    transform: rotate(135deg);
}

.sx-photo-gallery__controlls-arrow--right {
    transform: rotate(-45deg);
}

.sx-photo-gallery__share {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: background-color .4s, border-color .4s;
}

.sx-photo-gallery__share:hover {
    background: #2962ff;
    border-color: transparent;
}

.sx-photo-gallery__share-twitter, .sx-photo-gallery__share-linkedin, .sx-photo-gallery__share-facebook {
    width: 18px;
    height: 18px;
    background-image: url("../../assets/images/icon-sprite.png");
}

.sx-photo-gallery__share-twitter {
    background-position: -48px -8px;
}

.sx-photo-gallery__share-linkedin {
    background-position: -10px -11px;
}

.sx-photo-gallery__share-facebook {
    background-position: -6px -48px;
}

.sx-photo-gallery-photos {
    width: 90%;
    height: 70%;
    margin: 0 auto;
    position: relative;
    transform-style: preserve-3d;
}

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .sx-photo-gallery-photos {
        perspective: 800px;
    }
}

@media only screen and (min-width: 576px) {
    .sx-photo-gallery-photos {
        height: 30vh;
        min-height: 420px;
    }
}

.sx-photo-gallery-photos__photo-container {
    width: 90%;
    max-width: 350px;
    top: 50%;
    left: 50%;
    position: absolute;
    z-index: 1;
    opacity: 0;
    cursor: pointer;
    background: transparent;
    list-style-type: none;
    border: 1px solid transparent;
    text-align: center;
    transition: transform .6s ease, opacity .6s ease-in-out .2s;
}

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .sx-photo-gallery-photos__photo-container {
        transition: none;
    }
}

@media only screen and (min-width: 576px) {
    .sx-photo-gallery-photos__photo-container {
        width: 40%;
    }
}

.sx-photo-gallery-photos__photo-container a {
    pointer-events: none;
    -moz-user-select: -moz-none;
}

.sx-photo-gallery-photos__photo-container img {
    max-width: 100%;
    max-height: 350px;
}

.sx-photo-gallery-photos__photo-container--0 {
    opacity: 0;
    transform: translateX(-110%) translateY(-50%) rotateY(35deg);
}

@media only screen and (min-width: 576px) {
    .sx-photo-gallery-photos__photo-container--0 {
        opacity: .3;
    }
}

.sx-photo-gallery-photos__photo-container--1 {
    opacity: 1;
    transform: translateY(-50%) translateX(-50%);
    z-index: 2;
    transition-delay: .1s;
}

.sx-photo-gallery-photos__photo-container--1 a {
    pointer-events: visible;
}

.sx-photo-gallery-photos__photo-container--1 img {
    box-shadow: 1px 1px 10px 0 rgba(0, 0, 0, 0.15);
}

.sx-photo-gallery-photos__photo-container--2 {
    opacity: 0;
    transform: translateX(10%) translateY(-50%) rotateY(325deg);
}

@media only screen and (min-width: 576px) {
    .sx-photo-gallery-photos__photo-container--2 {
        opacity: .3;
    }
}
