/*! Flickity v2.3.0
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;
  -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: var(--color-secondary);;
  border: none;
  color: var(--text-light);
  transition: 0.2s;
}

.flickity-button:hover {
  background: var(--color-main);
  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;
}

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

.flickity-prev-next-button {
  top: 50%;
  width: 5rem;
  height: 5rem;
  /* vertically center */
  transform: translateY(-50%);
}

@media screen and (max-width:900px) {

  .flickity-prev-next-button {
    display: none;
  }
  
}


.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: 1em;
}
.flickity-rtl .flickity-prev-next-button.next {
  right: auto;
  left: 1em;
}

.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: -2.5em;
    padding: 0;
    margin: -3em 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: 15px;
  height: 15px;
  margin: 0 2rem;
  background: var(--color-main);
  border-radius: 50%;
  opacity: 0.25;
  cursor: pointer;
}

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



.gallery {
  background: transparent;
}

.gallery-cell {
  display: flex;
  flex-direction: column;
  width: 20%;
  min-height: calc(100% - 9em);
  margin: 9em 1.5em 2em;
  background: var(--color-medium);
  counter-increment: gallery-cell;
}


@media screen and (max-width:2100px) {

  .gallery-cell {
    width: 30%;
  }
  
}

@media screen and (max-width:1200px) {

  .gallery-cell {
    width: 50%;
  }
  
}

@media screen and (max-width:900px) {

  .gallery-cell {
    width: 65%;
  }
  
}

@media screen and (max-width:600px) {

  .gallery-cell {
    width: 90%;
  }
  
}
