/* @group Slider: Flickity --> flickity.metafizzy.co */

.grid-flickity {
  margin-bottom: 78px;
}

.main-carousel {
  height: 720px;
  background: #fff;
}

.carousel-cell {
  height: 100%;
  margin-right: 1px;
}

.carousel-cell img {
  height: 100%;
}

.main-carousel.is-hidden {
  display: none;
}

.main-carousel.flickity-enabled {
  opacity: 1;
}

.sub-carousel {
  margin-bottom: 60px;
}

.sub-carousel-cell {
  margin-right: 20px;
}

.sub-carousel-cell p {
  margin-top: 12px;
}

.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%;
}

.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 {
  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: currentColor;
}

.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%;
}

.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: #005EA8;
  border-radius: 50%;
  opacity: 0.25;
  cursor: pointer;
}
.flickity-page-dots .dot.is-selected {
  opacity: 1;
}

/* position dots up a bit */
.flickity-page-dots {
  bottom: -40px;
}
/* dots are lines */
.flickity-page-dots .dot {
  height: 2px;
  width: 40px;
  margin: 0 1px 0 1px;
  border-radius: 0;
}

h4.carouselLargeTitle {
  
  margin: 8px 0 18px 0 !important;
  transition-duration: 0.5s;
}

.grid-exp:hover h4.carouselLargeTitle {
  color: #005EA8;
}

p.carouselTitle {
	font-family:'Neue Haas Grotesk Disp W05_65M'!important;
  margin-top: 12px !important;
  transition-duration: 0.5s;
 
}

.exLink {
  font-family: "Neue Haas Grotesk Disp W05_65M";
}

.sub-carousel-cell:hover .exLink {
  color: #005EA8;
}

/* .sub-carousel-cell:hover > p.carouselTitle {
    color: #72c02c;
} */

.flickity-enabled.is-fade .flickity-slider > * {
  pointer-events: none;
  /*z-index: 0;*/
}
.flickity-enabled.is-fade .flickity-slider > .is-selected {
  pointer-events: auto;
  /*z-index: 1;*/
}

.sub-carousel:after {
  content: "flickity";
  display: none; /* hide :after */
}

/* no circle */
.flickity-button {
  background: transparent;
}
/* big previous & next buttons */
.flickity-prev-next-button {
  width: 48px;
  height: 48px;
}
/* icon color */
.flickity-button-icon {
  fill: rgba(255, 255, 255, 0.6);
}
/* hide disabled button */
.flickity-button:disabled {
  display: none;
}

ol.flickity-page-dots li:before {
  content: "" !important;
}

/* @end */

/* Simple media queries for Flickity carousel breakpoints (this is somehwat temporary in pages if these are being replaced by 16:9 films but they work for now - mobile could potentially be a bit taller */

@media only screen and (min-width: 1025px) and (max-width: 1440px) {
  .main-carousel {
    height: 640px;
  }
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .main-carousel {
    height: 480px;
  }
}

@media only screen and (min-width: 481px) and (max-width: 767px) {
  .main-carousel {
    height: 320px;
  }

  .sub-carousel:after {
    content: "";
  }

  .sub-carousel-cell {
    margin-right: 0;
  }

  .sub-carousel-cell img {
    width: 100%;
    margin-bottom: 12px;
  }

  .sub-carousel-cell h4 {
    margin-bottom: 24px;
  }

  h4.carouselLargeTitle {
    margin-top: 0;
    margin-bottom: 18px;
  }
}

@media only screen and (max-width: 480px) {
  .main-carousel {
    height: 240px;
  }
  .sub-carousel {
    margin-bottom: 18px !important;
  }

  /* disable Flickity for large devices */
  .sub-carousel:after {
    content: "";
  }

  .sub-carousel-cell {
    margin-right: 0;
  }

  .sub-carousel-cell img {
    width: 100%;
    margin-bottom: 12px;
  }

  .sub-carousel-cell h4 {
    margin-bottom: 24px;
  }

  h4.carouselLargeTitle {
    margin-top: 0;
    margin-bottom: 18px;
  }
}
