body {
    background: #000;
}


/*
    gallerty
    gallerty__i
    gallerty__i__link
    gallery__i__img
    gallery__i__c
  */

.gallery__i {
    margin: 0 40px 40px 0;
    display: inline-block;
    vertical-align: top;
    color: #fff;
    border: 2px solid transparent;
    text-decoration: none;
}

.gallery__i:hover,
.g-active-icon {}

.gallery__i:hover h4 {
    color: #e2dac1;
}

.gallery__i:nth-child(3),
.gallery__i:nth-child(6),
.gallery__i:nth-child(9),
.gallery__i:nth-child(12),
.gallery__i:nth-child(15),
.gallery__i:nth-child(18),
.gallery__i:nth-child(21),
.gallery__i:nth-child(24),
.gallery__i:nth-child(27),
.gallery__i:nth-child(30),
.gallery__i:nth-child(33),
.gallery__i:nth-child(36),
.gallery__i:nth-child(39),
.gallery__i:nth-child(42),
.gallery__i:nth-child(45) {
    margin-right: 0;
}

.gallery__i__link {
    background: #000;
    padding: 0;
    box-sizing: border-box;
    width: 396px;
    min-height: 396px;
    display: block;
    text-decoration: none;
    position: relative;
    color: #fff;
}

.gallery__i__img {
    position: relative;
    padding: 0;
    text-align: center;
    width: 396px;
    height: 300px;
    transition: all 0.3s ease;
}

.gallery__i__link:hover .gallery__i__img {
    transform: scale(1.1);
}

.gallery__i__container {
    overflow: hidden;
}

.gallery__i__c {
    padding: 0 24px;
    padding-bottom: 24px;
}

.gallery__i__c h4 {
    font-size: 20px;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
    font-family: 'ds_copticregular';
    font-size: 28px;
    font-weight: 300;
    color: #d1c094;
}

.gallery__i__c span {
    font-size: 14px;
    margin: 0;
    font-style: italic;
}

.gallery__i__c h4,
.gallery__i__c span,
.gallery__i__c span p {
    text-overflow: ellipsis;
    max-width: 340px;
    padding: 0;
    margin-top: 5px;
    display: block;
}

.gallery__i__c span p {
    margin: 0;
}

.slider-wrapper {
    margin: 0;
    padding: 120px 0;
    position: absolute;
    width: 100%;
    z-index: 101;
    background: #000;
    top: -1000000000px;
}

.hide {
    display: none;
}

.slider-container {
    width: 1280px;
    margin: 0 auto;
    position: relative;
}

.img-wrap {
    width: 1280px;
    height: 620px;
    background: url(../images/5.gif) 50% no-repeat #000;
    overflow: hidden;
    position: relative;
}

.img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto;
}

.slider-container .slider {}

.slider .prev,
.slider .next {
    font-size: 0;
    line-height: 0;
    position: absolute;
    top: calc(50% - 13.5px);
    display: block;
    width: 17px;
    height: 30px;
    margin-top: -10px;
    padding: 30px;
    cursor: pointer;
    color: transparent;
    border: none;
    outline: none;
    background: transparent;
    z-index: 100;
}

.slider .prev:before,
.slider .next:before {
    position: absolute;
    top: 15px;
    left: 23px;
    font-family: 'Roboto';
    font-size: 20px;
    line-height: 1;
    opacity: .75;
    color: white;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 17px;
    height: 30px;
    display: block;
}

.slider .prev::before {
    content: "";
    background: url(../images/prev.png);
}

.slider .next::before {
    content: "";
    background: url(../images/next.png);
}

.slider .prev {
    left: 100px;
}

.slider .next {
    right: 107px;
}

.middle-item:before {}

.middle-item:after {}

.slider-content-title {
    font-family: 'ds_copticregular';
    font-size: 36px;
    font-weight: 300;
    margin: 0;
    margin-bottom: 20px;
    margin-top: 50px;
    position: relative;
    z-index: 100;
}

.slider-content {
    width: 50%;
    margin: auto;
}

.slider-content-text {
    margin-top: 40px;
    line-height: 24px;
    word-wrap: break-word;
    margin: auto;
}

.slider-hidden {
    overflow: hidden;
    height: 0;
    visibility: hidden;
}

.gallery {
    max-width: 1290px;
    min-height: 500px;
    margin: 0 auto;
    margin-top: 40px;
}

.gallery-sidebar .contacts-wrapper {
    max-width: 1290px;
}

.gallery-sidebar {
    margin-bottom: -40px;
}

.gallery-header {
    max-width: 1290px;
    margin: 0 auto;
}

.gallery-header .page-title {
    margin: 0;
    margin-top: 20px;
    text-align: left;
}

.gallery-menu ul.menu {
    text-align: left;
    margin-top: 20px;
    display: block;
    position: static;
    padding-top: 0;
}

.gallery-menu ul li {
    display: inline-block;
    margin: 0;
    margin-right: 14px;
}

.gallery-menu .current_page_item a,
.gallery-menu .current-menu-item a,
.gallery-menu li a:hover {
    opacity: 1;
}

.gallery-menu ul.menu li a {
    font-family: 'ds_copticregular';
    font-size: 22px;
    padding: 7px 30px;
    padding-left: 0;
    text-decoration: none;
    display: inline-block;
    background-color: transparent;
    color: #d1c094;
    background-origin: border-box;
    background-size: 200%;
    background-position-x: 100%;
    transition-property: color, background-color, background-position, border-color, box-shadow;
    transition: .17s ease-in-out;
}

.gallery-menu ul.menu li.current-menu-item a,
.gallery-menu ul.menu li a:hover {
    background-color: transparent;
    opacity: 1;
    color: #e2dac1;
    background-position-x: 0;
}

.gallery-menu ul.menu li.current-menu-item a:before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #e2dac1;
    display: inline-block;
    margin-right: 10px;
    transform: translateY(-3px);
}

.gallery-menu ul.menu li.current-menu-item a:after {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #e2dac1;
    display: inline-block;
    margin-left: 10px;
    transform: translateY(-3px);
}

@media only screen and (max-width: 1290px),
(min-device-width: 970px) and (max-device-width: 1290px) {
    .gallery-sidebar .contacts-wrapper {
        max-width: 970px;
    }
    .gallery-menu ul.menu {
        text-align: center;
    }
    .gallery-menu ul.menu a {
        min-width: 180px;
    }
    .gallery-header {
        max-width: 970px;
    }
    .gallery-header .page-title {
        text-align: center;
    }
    .gallery {
        margin-top: 40px;
        max-width: 970px;
    }
    .img-wrap {
        height: 510px;
    }
    .slider-content-title {
        font-size: 42px;
        margin-top: -60px;
    }
    .slider-content-text {
        font-size: 12px;
    }
    .gallery__i {}
    .gallery__i__link {
        width: 290px;
        min-height: 290px;
        padding: 10px;
    }
    .gallery__i__img {
        max-width: 200px;
        margin: 0 auto;
    }
    .gallery__i__img img {
        display: inline-block;
        width: 100%;
    }
}

@media only screen and (max-width: 980px),
(min-device-width: 720px) and (max-device-width: 970px) {
    .gallery-header {
        max-width: 720px;
    }
    .gallery {
        max-width: 720px;
        margin-top: 20px;
    }
    .gallery-sidebar .contacts-wrapper {
        max-width: 720px;
    }
    .slider-container,
    .footer-container {
        max-width: 720px;
        padding: 0;
        margin: 0 auto;
    }
    .gallery-sidebar {
        margin-bottom: 10px;
    }
    .slider-content-title {
        font-size: 36px;
    }
    .gallery__i {
        margin: 0;
        margin-right: 10px;
        margin-bottom: 10px;
    }
    .gallery__i__link {
        width: 226px;
        min-height: 226px;
    }
    .gallery__i__img {
        max-width: 166px;
    }
    .gallery__i__c h4,
    .gallery__i__c span {
        max-width: 210px;
        margin: 0;
    }
    .gallery__i__c h4 {
        font-size: 18px;
    }
    .gallery__i__c span {
        font-size: 10px;
    }
    .gallery__i__c {
        bottom: 12px;
    }
}


/* 720px - 970px */

@media only screen and (max-width: 728px),
(min-device-width: 480px) and (max-device-width: 728px) {
    .gallery-header {
        max-width: 480px;
    }
    .footer-container {
        max-width: 480px;
        padding: 0;
        margin: 0 auto;
    }
    .slider-container .slider {
        padding: 0;
    }
    .img-wrap {
        width: 100%;
        height: 440px;
    }
    .slider-container {
        max-width: 480px;
    }
    .gallery {
        max-width: 480px;
    }
    .gallery__i,
    .gallery__i:nth-child(3),
    .gallery__i:nth-child(6),
    .gallery__i:nth-child(9),
    .gallery__i:nth-child(12),
    .gallery__i:nth-child(15),
    .gallery__i:nth-child(18),
    .gallery__i:nth-child(21),
    .gallery__i:nth-child(24),
    .gallery__i:nth-child(27),
    .gallery__i:nth-child(30),
    .gallery__i:nth-child(33),
    .gallery__i:nth-child(36),
    .gallery__i:nth-child(39),
    .gallery__i:nth-child(42),
    .gallery__i:nth-child(45) {
        margin: 0;
    }
    .gallery__i__link {
        width: 152px;
        min-height: 152px;
    }
    .gallery__i__c h4,
    .gallery__i__c span {
        max-width: 140px;
        margin: 0;
    }
    .gallery__i__c {
        bottom: 4px;
    }
    .gallery__i__c h4 {
        font-size: 14px;
    }
    .gallery__i__c span {
        font-size: 6px;
    }
    .slider .prev {
        left: 10px;
    }
    .slider .next {
        right: 17px;
    }
    .gallery {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        max-width: 100%;
        margin-bottom: 20px;
        align-items: flex-start;
    }
    .gallery a {
        width: calc(50% - 4px);
        max-width: 50%;
    }
    .gallery .gallery__i__link {
        width: 100%;
        max-width: 100%;
    }
    .gallery .gallery__i__img {
        width: 100%;
        max-width: 100%;
    }
    .gallery__i__c h4 {
        font-size: 24px;
        width: 100%;
        max-width: 100%;
    }
    .gallery__i__c span {
        font-size: 16px;
        width: 100%;
        max-width: 100%;
    }
}


/* 480px - 720px */

@media only screen and (max-width: 480px),
(min-device-width: 320px) and (max-device-width: 480px) {
    .gallery,
    .slider-container {
        max-width: 320px;
    }
    .footer-container {
        max-width: 320px;
        padding: 0;
        margin: 0 auto;
    }
    .gallery-header {
        max-width: 320px;
    }
    .slider-content-title {
        margin-top: -46px;
    }
    .slider-content-text {
        padding-right: 10px;
        padding-left: 10px;
    }
    .img-wrap {
        height: 320px;
    }
    .gallery__i__link {
        width: 100px;
        min-height: 100px;
    }
    .img-wrap.slick-slide.slick-current.slick-active img {
        width: 100% !important;
        height: auto !important;
    }
    .slider-content {
        padding: 10px;
    }
    .gallery__i__c h4,
    .gallery__i__c span {
        max-width: 84px;
    }
    .gallery__i__c span {
        font-size: 4px;
    }
    .gallery__i__c h4 {
        font-size: 8px;
    }
    .gallery {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        max-width: 100%;
        margin-bottom: 20px;
        align-items: flex-start;
    }
    .gallery a {
        width: calc(50% - 4px);
        max-width: 50%;
    }
    .gallery .gallery__i__link {
        width: 100%;
        max-width: 100%;
    }
    .gallery .gallery__i__img {
        width: 100%;
        max-width: 100%;
    }
    .gallery__i__c h4 {
        font-size: 24px;
        width: 100%;
        max-width: 100%;
    }
    .gallery__i__c span {
        font-size: 16px;
        width: 100%;
        max-width: 100%;
    }
}
@media screen and (max-width: 480px) {
  .slider-content{
      width: 90%;
  }
}

/* 320px - 480px */

.gallery-wrapper {
    overflow: hidden;
    position: relative;
}

.gallery-loader {
    background: url(../images/5.gif) no-repeat center center;
    width: 216px;
    height: 216px;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    max-width: 100%;
    height: auto;
}

.gallery a:first-child img {
    display: none;
}

.gallery .gallery__i__img {
    background: no-repeat center center #000;
    background-size: contain;
}