/*! Flickity v2.1.1
https://flickity.metafizzy.co
---------------------------------------------- */

.flickity-enabled {
  position: relative;
}

.flickity-enabled:focus { outline: none; }

.flickity-viewport {
  overflow: hidden;
  position: relative;
  height: 100%;
}

.flickity-slider {
  position: absolute;
  width: 100%;
  height: 100%;
}

/* draggable */

.flickity-enabled.is-draggable {
  -webkit-tap-highlight-color: transparent;
          tap-highlight-color: transparent;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.flickity-enabled.is-draggable .flickity-viewport {
  cursor: move;
  cursor: -webkit-grab;
  cursor: grab;
}

.flickity-enabled.is-draggable .flickity-viewport.is-pointer-down {
  cursor: -webkit-grabbing;
  cursor: grabbing;
}

/* ---- flickity-button ---- */

.flickity-button {
  position: absolute;
  background: hsla(0, 0%, 100%, 0.75);
  border: none;
  color: #333;
}

.flickity-button:hover {
  /*background: white;*/
  cursor: pointer;
}

.flickity-button:focus {
  outline: none;
  box-shadow: 0 0 0 5px #19F;
}

.flickity-button:active {
  opacity: 0.6;
}

.flickity-button:disabled {
  opacity: 0.3;
  cursor: auto;
  /* prevent disabled button from capturing pointer up event. #716 */
  pointer-events: none;
}

.flickity-button-icon {
  fill: #333;
}

/* ---- previous/next buttons ---- */

.flickity-prev-next-button {
  top: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  /* vertically center */
  transform: translateY(-50%);
}

.flickity-prev-next-button.previous { left: 10px; }
.flickity-prev-next-button.next { right: 10px; }
/* right to left */
.flickity-rtl .flickity-prev-next-button.previous {
  left: auto;
  right: 10px;
}
.flickity-rtl .flickity-prev-next-button.next {
  right: auto;
  left: 10px;
}

.flickity-prev-next-button .flickity-button-icon {
  position: absolute;
  left: 20%;
  top: 20%;
  width: 60%;
  height: 60%;
}

/* ---- page dots ---- */

.flickity-page-dots {
  position: absolute;
  width: 100%;
  bottom: -25px;
  padding: 0;
  margin: 0;
  list-style: none;
  text-align: center;
  line-height: 1;
}

.flickity-rtl .flickity-page-dots { direction: rtl; }

.flickity-page-dots .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 8px;
  background: #333;
  border-radius: 50%;
  opacity: 0.25;
  cursor: pointer;
}

.flickity-page-dots .dot.is-selected {
  opacity: 1;
}


/* USER SETTINGS */


.adm_panel_setting #bx_incl_area_2 {
  width: 100%; /* Костыль для корректного отображения слайдера в режиме редактирования. incl_area_2 может менять значение */
}

.main-carousel {
  width: 100%;
}
.carousel-cell {
  width: 100%; /* full width */
  height: 600px; /* height of carousel */
  /*margin-right: 10px;*/
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center center;
}
/* position dots in carousel */
.flickity-page-dots {
  bottom: 20px;
}
/* white circles */
.flickity-page-dots .dot {
  width: 12px;
  height: 12px;
  opacity: 1;
  /*background: transparent;
  border: 2px solid white;*/
  background-color: #ccc;
}
/* fill-in selected dot */
.flickity-page-dots .dot.is-selected {
  background: white;
}


.slide_description {
  display: block;
  position: relative;
  left: 20%;
  top: 25%;
  width: 600px;
}
.h1_slide {
  font-family: 'Proxima_Nova_Regular';
  font-size: 65px;
  color: white;
  line-height: 65px;
}
.desc_slide {
  font-family: 'Proxima_Nova_Thin';
  font-size: 20px;
  color: white;
  display: block;
  margin: 15px 0;
}
.slide_description a {
  /*font-family: 'Proxima_Nova_Bold';*/
  font-family: 'Proxima_Nova_Regular';
  font-size: 15px;
  color: white;
  text-transform: uppercase;
  display: inline-block;
  padding: 12px 30px;
  /*background-color: #293A48;*/
  border: 1px solid white;
  margin-top: 20px;
  transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}
.slide_description a:hover {
  color: white;
  /*box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);*/
}
.slider_mask {
  height: 100%;
  width: 100%;
  background-color: rgba(0,0,0,0.5);
}

@media screen and (max-width: 800px) {
  .carousel-cell {
    height: 600px;
  }
  .slide_description {
    left: 12%;
    top: 25%;
    width: 550px;
  }
  .h1_slide {
    font-family: 'Proxima_Nova_Regular';
    font-size: 50px;
    line-height: 50px;
  }
}

@media screen and (max-width: 700px) {
  .slide_description {
    left: 8%;
    top: 20%;
    width: 365px;
  }
}

@media screen and (max-width: 500px) {
  .slide_description {
    left: 5%;
    top: 20%;
    width: 340px;
  }
  .h1_slide {
    font-family: 'Proxima_Nova_Regular';
    font-size: 30px;
    line-height: 50px;
  }
  .carousel-cell {
    height: 500px;
  }
}

@media screen and (max-width: 350px) {
  .h1_slide {
    font-family: 'Proxima_Nova_Regular';
    font-size: 25px;
    line-height: 30px;
  }
  .slide_description {
    left: 5%;
    top: 25%;
    width: 300px;
  }
  .carousel-cell {
    height: 450px;
  }
}
