/*! Flickity v2.2.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;
  -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: currentColor;
}

/* ---- 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;
}


.wbox-gallery.stage-padding {
    width: 100%;
    height: 60vh;
    margin-bottom: 0;
}

.wbox-gallery.stage-padding .item {
    height: 100%;
    width: 51%;
    margin-right: 0px;
    overflow: hidden;
    background: #999;
}

@media (max-width: 767px) {
    .wbox-gallery.stage-padding .item {
        width: 80%;
    }
}

/* fade effect */
.wbox-gallery.stage-padding .item img {
    transition: opacity 0.4s ease-in-out;
    opacity: 0;
}

.wbox-gallery.stage-padding .item img.flickity-lazyloaded,
.wbox-gallery.stage-padding .item img.flickity-lazyerror {
    opacity: 1;
}

.wbox-gallery.stage-padding .item img {
    max-width: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wbox-gallery.stage-padding .flickity-button, .wbox-gallery.stage-padding .flickity-button:hover {
    background: transparent;
}

.wbox-gallery.stage-padding .flickity-prev-next-button {
    border-radius: 0;
    height: 100%;
    width: 20vw;
}

.wbox-gallery.stage-padding .flickity-prev-next-button svg {
    display: none;
 }

 .wbox-gallery.stage-padding .flickity-prev-next-button.previous {
    left: 0;
    cursor: w-resize;
    cursor: url('../../../blocks/wbox_gallery/templates/stage_padding/css/arrow-left.png'), auto;
}
.wbox-gallery.stage-padding .flickity-prev-next-button.next {
    right: 0;
    cursor: e-resize;
    cursor: url('../../../blocks/wbox_gallery/templates/stage_padding/css/arrow-right.png'), auto;
}

.ccm-block-share-this-page ul.list-inline{display:inline-block;margin:0;padding:0}.ccm-block-share-this-page ul.list-inline li{display:inline-block;list-style-type:none;margin-right:10px;padding:0}.ccm-block-share-this-page svg{max-height:13px}.ccm-block-social-links ul.list-inline{display:inline-block;margin:0;padding:0}.ccm-block-social-links ul.list-inline li{display:inline-block;list-style-type:none;margin-right:10px;padding:0}.ccm-block-social-links svg{max-height:13px}


.wbox-videopopup {
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    max-width: 100%;
    height: 0;
    padding-top: 56%;
    position: relative;
}

.wbox-videopopup a {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.wbox-videopopup img {
  -o-object-fit: cover;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.wbox-videopopup-overlay {
  position: absolute;
  background-color: transparent;
  -webkit-transition: all 0.4s ease;
  -o-transition: all 0.4s ease;
  transition: all 0.4s ease;   
}

.wbox-videopopup-overlay:hover {
  background-color:rgba(0, 0, 0, 0.5);
}

.wbox-videopopup .playbutton {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background-color:rgb(80,80,80);
  -webkit-transform: translate(-50%, -50%) scale(1);
  -ms-transform: translate(-50%, -50%) scale(1);
  transform: translate(-50%, -50%) scale(1);
  opacity: 0.75;
  -webkit-transition: 0.4s all ease-in-out;
  -o-transition: 0.4s all ease-in-out;
  transition: 0.4s all ease-in-out ;
}

.wbox-videopopup:hover .playbutton {
  -webkit-transform: translate(-50%, -50%) scale(1.1);
  -ms-transform: translate(-50%, -50%) scale(1.1);
  transform: translate(-50%, -50%) scale(1.1);
}

.wbox-videopopup .dreieck {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 25px solid #ffffff;
  -webkit-transform: translate(-37%,-50%) rotate(90deg);
  -ms-transform: translate(-37%,-50%) rotate(90deg);
  transform: translate(-37%,-50%) rotate(90deg);
  -webkit-transform-origin: center;
  -ms-transform-origin: center;
  transform-origin: center;
}

.wbox-videopopup-overlay:hover .playbutton, .wbox-videopopup-overlay:hover .dreieck {
    opacity: 1;
}

.wbox-videopopup-contentwrap {
    padding:12px;
    z-index: 9;
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: #009353;
}

/* ------------------------------------------------------------------------------------
MP4 Overlay Styling
------------------------------------------------------------------------------------
*/

/* This adds padding from top and bottom */
.mp4popup .mfp-container {
  padding-top: 40px;
  padding-bottom: 40px;
}
/* This adds max-width to popup content */
.mp4popup .mfp-content {
  width: 100%;
  max-width: 1400px;
  height: auto;    
}

/* This makes "#popup-mp4-container" scale down proportionally */
.popup-mp4-container {
  width: auto;
  height: auto;
  overflow: hidden;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
/* This shifts close button outside of the container */
.popup-mp4-container .mfp-close {
  top: -44px;
  color: #FFF;
  text-align: right;
  right: 1px;
}
/* This is an element itself */
.mp4-videocontent {
    top: 0px;
    height: auto;
    width: 100%;
    margin: 0;
    padding: 0;
}
.mp4-videocontent video {
  background: #EBE8E8;
  max-width: 100%;
  width: 100%;
  height: auto;
  -webkit-box-shadow: 0 0 8px rgba(0, 0, 0, .6);
  box-shadow: 0 0 8px rgba(0, 0, 0, .6);
}

/*-----------------------------------------------------------------------------------*/
/*  Video Play via Header-Button (Blau)
/*-----------------------------------------------------------------------------------*/

.video-play-samd {
  height: 0;
  overflow: hidden;
}


/* ------------------------------------------------------------------------------------
Mediaqueries
------------------------------------------------------------------------------------ */

@media (max-width: 1200px ) {
    
    .wbox-videopopup {
        height: 225px;
    }
}

@media (min-width: 450px) and (max-width: 769px) {
    
    .wbox-videopopup {
        height: 175px;
    }
    .wbox-videopopup-linktext {
       font-size: 1em;
    }    
    .wbox-videopopup-linktext:after {
       display: none;
    }
}


/* ------------------------------------------------------------------------------------
Lity Styling
------------------------------------------------------------------------------------ */

/*! Lity - v2.4.0 - 2019-08-10
* http://sorgalla.com/lity/
* Copyright (c) 2015-2019 Jan Sorgalla; Licensed MIT */
.lity {
  z-index: 9990;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  white-space: nowrap;
  background: #0b0b0b;
  background: rgba(0, 0, 0, 0.9);
  outline: none !important;
  opacity: 0;
  -webkit-transition: opacity 0.3s ease;
  -o-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
  }
  .lity.lity-opened {
    opacity: 1;
  }
  .lity.lity-closed {
    opacity: 0;
  }
  .lity * {
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
  }
  .lity-wrap {
    z-index: 9990;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    text-align: center;
    outline: none !important;
  }
  .lity-wrap:before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    margin-right: -0.25em;
  }
  .lity-loader {
    z-index: 9991;
    color: #fff;
    position: absolute;
    top: 50%;
    margin-top: -0.8em;
    width: 100%;
    text-align: center;
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
    opacity: 0;
    -webkit-transition: opacity 0.3s ease;
    -o-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
  }
  .lity-loading .lity-loader {
    opacity: 1;
  }
  .lity-container {
    z-index: 9992;
    position: relative;
    text-align: left;
    vertical-align: middle;
    display: inline-block;
    white-space: normal;
    max-width: 100%;
    max-height: 100%;
    outline: none !important;
  }
  .lity-content {
    z-index: 9993;
    width: 100%;
    -webkit-transform: scale(1);
        -ms-transform: scale(1);
         -o-transform: scale(1);
            transform: scale(1);
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: -webkit-transform 0.3s ease;
    -o-transition: -o-transform 0.3s ease;
    transition: transform 0.3s ease;
    transition: transform 0.3s ease, -webkit-transform 0.3s ease, -o-transform 0.3s ease;
  }
  .lity-loading .lity-content,
  .lity-closed .lity-content {
    -webkit-transform: scale(0.8);
        -ms-transform: scale(0.8);
         -o-transform: scale(0.8);
            transform: scale(0.8);
  }
  .lity-content:after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    display: block;
    right: 0;
    width: auto;
    height: auto;
    z-index: -1;
    -webkit-box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
            box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
  }
  .lity-close {
    z-index: 9994;
    width: 35px;
    height: 35px;
    position: fixed;
    right: 0;
    top: 0;
    -webkit-appearance: none;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    padding: 0;
    color: #fff;
    font-style: normal;
    font-size: 35px;
    font-family: Arial, Baskerville, monospace;
    line-height: 35px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    border: 0;
    background: none;
    outline: none;
    -webkit-box-shadow: none;
            box-shadow: none;
  }
  .lity-close::-moz-focus-inner {
    border: 0;
    padding: 0;
  }
  .lity-close:hover,
  .lity-close:focus,
  .lity-close:active,
  .lity-close:visited {
    text-decoration: none;
    text-align: center;
    padding: 0;
    color: #fff;
    font-style: normal;
    font-size: 35px;
    font-family: Arial, Baskerville, monospace;
    line-height: 35px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    border: 0;
    background: none;
    outline: none;
    -webkit-box-shadow: none;
            box-shadow: none;
  }
  .lity-close:active {
    top: 1px;
  }
  /* Image */
  .lity-image img {
    max-width: 100%;
    display: block;
    line-height: 0;
    border: 0;
  }
  /* iFrame */
  .lity-iframe .lity-container,
  .lity-youtube .lity-container,
  .lity-vimeo .lity-container,
  .lity-facebookvideo .lity-container,
  .lity-googlemaps .lity-container {
    width: 100%;
    max-width: 964px;
  }
  .lity-iframe-container {
    width: 100%;
    height: 0;
    padding-top: 56.25%;
    overflow: auto;
    pointer-events: auto;
    -webkit-transform: translateZ(0);
            transform: translateZ(0);
    -webkit-overflow-scrolling: touch;
  }
  .lity-iframe-container iframe {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
            box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    background: #000;
  }
  .lity-hide {
    display: none;
  }
  

