@import url("magnific-popup.css");
@import url("flexslider.css?rev=1");
/*** TODO: build process to combine CSS instead of using imports ***/
/* ==========================================================================
   KMS Gallery
   ========================================================================== */

.kmsgallery-stage {
    padding-top:56.25%;
    position: relative;
}
.kmsgallery-stage-image {
    position:absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background-size:contain;
    background-repeat: no-repeat;
    background-position: center;
}

.kmsgallery-filmstrip-wrapper {
    position: relative;
}
.kmsgallery-filmstrip-click {
    position:absolute;
    top:0;
    bottom:0;
    width:32px;
    opacity:0;
    background-color: #000;
    background-color: rgba(0,0,0,0.2);
    background-repeat: no-repeat;
	background-position: center;
	z-index:10;
}
.kmsgallery-filmstrip-click.prev {
    left:0;
    background-image:url('/static/frontend/img/prev.png');
}
.kmsgallery-filmstrip-click.next {
    right:0;
    background-image:url('/static/frontend/img/next.png');
}
.kmsgallery-filmstrip {
    white-space:nowrap;
    overflow:hidden;
}

.kmsgallery-thumbnail-image {
    display:inline-block;
    width:133px;
    height:133px;
    margin:10px;
    background-position:center;
    background-size:cover;
    vertical-align:center;
}
.kmsgallery-thumbnail-image img {
    max-width:100%;
}
.kmsgallery.display-slider .flex-viewport li {
    position:relative;
}
.kmsgallery-caption {
    width: 100%;
    padding: 20px;
    left: 0;
    right:0;
    bottom: 0;
    margin:0;
    background: rgba(245,245,245,0.9);
    color: #777777;
    font-size: 14px;
    line-height: 18px;
    position:absolute;
}
.kmsgallery.display-rotate .kmsgallery-images{
    position:relative;
    padding-top:74.3%;
}
.kmsgallery.display-rotate .kmsgallery-image {
    position:absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
    width:100%;
    height:100%;
    background-position:center;
    background-size:cover;
    opacity:0;
    transition:opacity 1s ease;
}
.kmsgallery.display-rotate .kmsgallery-image.active {
    opacity:1;
}
.kmsgallery.display-rotate .kmsgallery-nav {
    text-align:center;
}
.kmsgallery.display-rotate .kmsgallery-nav-item {
    display:inline-block;
    width:12px;
    height:12px;
    border:1px solid black;
    border-radius:12px;
    margin:4px;
    cursor:pointer;
}
.kmsgallery.display-rotate .kmsgallery-nav-item.active {
    background:black;
}
/**** Work around flex slider nav ****/
.flex-direction-nav a  {
    line-height: 40px;
}

/**** alerts ****/
.site-body {
    position:relative;
    overflow:hidden;
}
.alerts {
    padding:0;
}
.alert {
    padding: 15px;
    border: 1px solid transparent;
    border-radius: .25rem;
    margin:1em;
    color: #000;
    background-color: #fff;
    border-color: #666;
}
.alert-info {
    color: #31708f;
    background-color: #d9edf7;
    border-color: #bcdff1;
}
.alert-warning {
    color: #8a6d3b;
    background-color: #fcf8e3;
    border-color: #faf2cc;
}
.alert-danger {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebcccc;
}
.alert-success {
    color: #44a942;
    background-color: #def2de;
    border-color: #ccebcc;
}
.alert-dismissible button.close {
    -webkit-appearance: none;
    padding: 0;
    cursor: pointer;
    background: 0 0;
    border: 0;
}
.alert-dismissible .close {
    float: right;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .2;
    width: auto;
}

/* ==========================================================================
   KMS inline editing
   ========================================================================== */
.inline-edit-wrap {
    position:relative;
}
.inline-edit-controls {
    z-index:9900; /* CKEDitor sits at z-index of 9999, we want to sit just under it */
    position:relative;
}
.inline-edit-wrap::after {
    clear: both;
    content: "";
    display: block;
}

/* Clear inline edit content floats when not editing */
div[data-edit]::after {
    clear: both;
    content: "";
    display: block;
}


/* ==========================================================================
   KMS ckeditor oembed -responsive videos
   ========================================================================== */
.embeddedContent{
    display: block;
    max-width: 100%;
}
.embeddedContent iframe,
.embeddedContent embed,
.embeddedContent object {
    display: block;
    max-width: 100%;
}
/** full size **/
.embeddedContent[data-align="none"],
.embeddedContent.KMS-video {
    position: relative;
    width: 100%;
}
.embeddedContent[data-align="none"]:before,
.embeddedContent.KMS-video:before {
    content:"";
    display: block;
    width: 100%;
    padding-top: 56.25%;
}
.embeddedContent[data-align="none"] iframe,
.embeddedContent[data-align="none"] embed,
.embeddedContent[data-align="none"] object,
.embeddedContent.KMS-video iframe {
    position: absolute;
    top:0;
    left:0;
    width: 100%; /*width set by outer div in kms.js */
    height: 100%;
}

/** responsive/custom **/
.embeddedContent[data-align='center'],
.embeddedContent[data-align='center'] iframe,
.embeddedContent[data-align='center'] embed,
.embeddedContent[data-align='center'] object {
    margin: 0 auto;
}
.embeddedContent[data-align='left'] iframe,
.embeddedContent[data-align='left'] embed,
.embeddedContent[data-align='left'] object {
    margin-right: 20px;
    margin-bottom: 20px;
}
.embeddedContent[data-align='right'] iframe,
.embeddedContent[data-align='right'] embed,
.embeddedContent[data-align='right'] object {
    margin-right: 20px;
    margin-bottom: 20px;
}

@media only screen and (max-width: 760px){
/** stop float + margin **/
    .embeddedContent[data-align="left"],
    .embeddedContent[data-align="right"] {
        float: none !important;
    }
    .embeddedContent[data-align='left'] iframe,
    .embeddedContent[data-align='left'] embed,
    .embeddedContent[data-align='left'] object,
    .embeddedContent[data-align='right'] iframe,
    .embeddedContent[data-align='right'] embed,
    .embeddedContent[data-align='right'] object {
        margin:0;
    }
}

/* ==========================================================================
   KMS general
   ========================================================================== */
.error {
    color: red;
}
.kms-loader {
   display: block;
   width: 100px;
   height: 100px;
   background: url('/static/frontend/img/loading.svg') no-repeat center;
   background-size: contain;
   margin: auto;
   -webkit-animation: spin 2s linear infinite;
   -moz-animation: spin 2s linear infinite;
   animation: spin 2s linear infinite;
}
@-moz-keyframes spin { 100% { -moz-transform: rotate(360deg); } }
@-webkit-keyframes spin { 100% { -webkit-transform: rotate(360deg); } }
@keyframes spin { 100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); } }


/* ==========================================================================
   KMS modal pop up
   ========================================================================== */

 .kms-modal {
    display: block; /* Default display block, but site can override this. */

    /* TODO: media queries for better display */
    width:1920px;
    max-width: 90%;
    height: 1080px;
    max-height: 90%;
    position: fixed;
    z-index: 10100;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: white;
    box-shadow: 0 0 60px 10px rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(0,0,0,.2);
    border-radius: 6px;
    /* overflow: auto; */
}
.kms-modal-closed {
    opacity: 0;
    -webkit-transition: opacity .15s linear;
    -o-transition: opacity .15s linear;
    transition: opacity .15s linear;
}
.kms-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10050;
  background: rgba(0, 0, 0, 0.6);
}
.kms-modal-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: auto;
  padding: 20px 20px 20px 20px;
  box-sizing: border-box;
  height:90vh;
  max-height: 100%;
}

.kms-modal .close-button {
  position: absolute;
  z-index: 1;
  top: 10px;

  /* needs to look OK with or without scrollbar */
  right: 20px;
  border: 0;
  background: transparent;
  color: black;
  padding: 5px 10px;
  font-size: 2rem;
  width: auto;
}