.gallery-page {
    min-height: calc(100vh - 106px);
    margin-top: -41px;
    background: #22222c;
}

.gallery-top {
    height: 41px;
    background: rgb(123,123,129);
    background: linear-gradient(90deg, rgba(123,123,129,1) 0%, rgba(255,255,255,1) 25%, rgba(58,58,67,1) 100%);
}

.gp-header {
    max-width: 1370px;
    margin: 0 auto;
    padding: 40px 10px;
}

.gp-header h1 {
    line-height: 1;
    font-family: 'Verdana';
    font-weight: 500;
    font-size: 40px;
    margin: 0 0 40px;
    color: #fff;
}

.gallery {
    padding: 0 10px 30px;
    display: flex;
    flex-direction: row;
}

.gp-tabs a {
    text-decoration: none;
    font-size: 18px;
    color: #fff;
}

.gp-tabs a:not(:last-child) {
    margin-right: 30px;
}

.gp-tabs a.t-itemS {
    font-weight: 700;
    text-decoration: underline;
}

.gp-tabs a:hover {
    text-decoration: underline;
}

.gallery img,
.gallery-thumbs img {
    max-width: 100%;
}

.gallery-l,
.gallery-r {
    width: 360px;
}

.gallery-l > a,
.gallery-r > a {
    display: block;
    margin-bottom: 10px;
    height: 201px;
    background-size: cover;
    background-position: 50%;
}

.gallery-c {
    width: calc(100% - 720px);
    position: relative;
    margin: 0 10px;
}

.gc-viewport > a {
    display: block;
    height: 623px;
    background-size: cover;
    background-position: 50%;
}

.gc-controls a {
    position: absolute;
    top: 50%;
    z-index: 1;
    display: inline-block;
    padding: 15px 28px;
    font-family: Verdana;
    font-size: 18px;
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
    background-color: rgba(0,0,0,.5);
    color: #fff;
    transition: background-color .5s;
}

.gc-prev {
    left: 0;
    background-image: url('/images/icon-arrow-left.png');
    background-position: 10px 50%;
    background-repeat: no-repeat;
}

.gc-next {
    right: 0;
    background-image: url('/images/icon-arrow-right.png');
    background-position: 89% 50%;
    background-repeat: no-repeat;
}

.gc-controls a:hover {
    background-color:  rgba(0,0,0,1);
}

.gc-counter {
    font-family: Verdana;
    position: absolute;
    left: 20px;
    bottom: 20px;
    color:#fff;
}

.gc-counter span:first-child {
    font-size: 18px;
}

.gc-counter span:last-child {
    vertical-align: top;
    font-size: 12px;
}

.gallery-l a:nth-child(n + 4) {
    display: none;
}

.gallery-r a:nth-child(1),
.gallery-r a:nth-child(2),
.gallery-r a:nth-child(3),
.gallery-r a:nth-child(4),
.gallery-r a:nth-child(n + 8) {
    display: none;
}

.gallery-thumb-wrapper {
    display: none;
}

.gallery-thumbs {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.gallery-thumbs a {
    width: 150px;
    height: 100px;
    margin: 0 10px 10px;
    background-size: cover;
    background-position: 50%;
    border: 2px solid transparent;
}

.gallery-thumbs .itemS {
    border: 2px solid rgb(180, 45, 45);
}

.gallery-video {
    position: relative;
}

.gallery-video a {
    text-align: center;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-size: cover;
    background-position: 50%;
}

.gv-play {
    display: inline-block;
    position: absolute;
    width: 31px;
    height: 31px;
    top: 50%;
    left: 50%;
    margin-left: -16px;
    margin-top: -16px;
    background: url('/images/icon-play.png');
}

.gv-l {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 18px;
    background: url('/images/bg-video-l.png') 0 0 repeat-y;
}

.gv-r {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 18px;
    background: url('/images/bg-video-r.png') 0 0 repeat-y;
}

.gallery-small {
    font-size: 0;
    max-width: 1370px;
    margin: 0 auto;
    padding: 10px;
}

.gallery-small .wrapper {
    margin: 0 -1.165%;
}

.gallery-small a {
    display: inline-block;
    vertical-align: top;
    position: relative;
    text-align: center;
    width: 31%;
    margin: 0 1.165% 20px;
}

.gallery-small a img {
    max-width: 100%;
    display: block;
}

@media (max-width: 1500px) {
    .gallery-l, .gallery-r {
        width: 250px;
    }

    .gallery-c {
        width: calc(100% - 500px);
        position: relative;
        margin: 0 10px;
    }
}

@media (max-width: 1275px) {
    .gallery-l, .gallery-r {
        width: 200px;
    }

    .gallery-c {
        width: calc(100% - 400px);
        position: relative;
        margin: 0 10px;
    }
}

@media (max-width: 985px) {
    .gallery-l, .gallery-r {
        display: none;
    }

    .gallery-c {
        width: 100%;
    }

    .gallery-thumb-wrapper {
        display: block;
    }
}

@media (max-width: 595px) {
    .gallery-small a {
        width: 48%;
    }
}