﻿/* .imageGalleryBlock {
    display: flex;
    flex-direction: column;
    max-width: 50em;
    height: 20em; */
/* margin: 0 auto;  this will center the gallery*/
/*  position: relative;
    background-color: #000;
} */
.imageGalleryBlockWrap{
    display:flex;
    margin:.5em 0 .5em 0;
    justify-content:center;
    align-items:center;
}
.rotatorTitle{
    display:flex;
    justify-content:center;
    align-items:center;
}
.imageGalleryBlock .rotatorCaption {
    display: none;
    padding: 0.2em;
    background: rgba(0, 0, 0, 0.4);
    margin-bottom: 2px;
}

.imageGalleryBlock {
    display: flex;
    flex-direction: column;
    height: 20em;
    position: relative;
    background-color: #000;
    max-width: 50em;
    min-width: 25em;
    flex: 1 1 auto;
}
/* Screen-reader only (visually hidden, still accessible) */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Make it visible when keyboard-focused */
.sr-only-focusable:focus,
.sr-only-focusable:active {
    position: absolute !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
    /* Present it nicely */
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2000;
    padding: 0.5rem 0.75rem;
    background: #fff;
    color: #000;
    border: 2px solid #000;
    border-radius: 0.25rem;
    text-decoration: none;
}

@media screen and (max-width: 1270px) {
    .imageGalleryBlock {
        max-width: unset;
        min-width: unset;
        width: 100%;
    }
}

.imageGalleryBlock .theGallery {
    flex: 1;
    position: relative;
    width:100%;
}

.imageGalleryBlock .imageSlide {
    display: none;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: 50%;
    background-size: cover;
    overflow: hidden;
}
.imageGalleryBlock .imagePortrait {
    background-size: contain;
}

.imageGalleryBlock a.icon-resize-full-alt,
.imageGalleryBlock a.icon-resize-full-alt:visited {
    color: #ffffff;
    text-decoration: none;
    position: absolute;
    right: 0;
    top: 0;
    transition: 0.6s ease;
    font-size: 1.5em;
    opacity: 0.5;
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.15);
}

    .imageGalleryBlock a.icon-resize-full-alt.show,
    .imageGalleryBlock a.icon-resize-full-alt:hover,
    .imageGalleryBlock a.icon-resize-full-alt:active {
        text-decoration: none;
        opacity: 1;
    }

.imageGalleryBlock:hover .icon-resize-full-alt {
    padding: 0.5em 0.25em;
}

.imageGalleryBlock.full-image .imageSlide {
    background-size: contain;
}

.imageGalleryBlock .captionBox {
    position: absolute;
    width: 100%;
    font-size: 1.7em;
    bottom: 24px;
    color: #fff;
}

    .imageGalleryBlock .captionBox.alignTop {
        bottom: unset;
        top: 0;
    }

.captionBox .captionText {
    /* display: none; */
    padding: 0.25em 0 0 0.5em;
    margin-top: 0.25em;
    border-top: 2px solid rgba(255, 255, 255, 0.25);
    width: 100%;
    color: #fff;
    font-size: 0.6em;
    text-align: left;
    box-sizing: border-box;
}

    .captionBox .captionText.show {
        display: block;
    }

.imageGalleryBlock .galleryControls {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.imageGalleryBlock .prev,
.imageGalleryBlock .next,
.imageGalleryBlock .expand {
    position: absolute;
    top: 2em;
    opacity: 0.5;
    font-size: 4em;
    transition: 0.6s ease;
    color: #fff;
    margin: 0;
    line-height:0;
    padding: .1em 0 .1em 0;
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}
.imageGalleryBlock .expand {
    top:.2em;
    font-size:2em;
    right:0;
}
.imageGalleryBlock:hover .prev,
.imageGalleryBlock:hover .next {
    top: 1.5em;
    font-size: 5em;
}



.imageGalleryBlock:hover .prev,
.imageGalleryBlock:hover .next,
.imageGalleryBlock:hover .expand,
.imageGalleryBlock:hover .icon-resize-full-alt {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.15);
}

.imageGalleryBlock [class^="icon-"]:before,
.imageGalleryBlock [class*=" icon-"]:before {
    width: unset !important;
}

.imageGalleryBlock .next {
    right: 0;
}

    .imageGalleryBlock .prev:hover,
    .imageGalleryBlock .next:hover,
    .imageGalleryBlock .expand:hover,
    .imageGalleryBlock .icon-resize-full-alt:hover {
        /* opacity: 1; */
        background-color: rgba(0, 0, 0, 0.5);
        text-decoration: none;
    }

    .imageGalleryBlock .prev:visited,
    .imageGalleryBlock .next:visited {
        color: #fff;
    }

.imageGalleryBlock .indicatorBox {
    position: absolute;
    bottom: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    height: 24px;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
}

.imageGalleryBlock .indicator {
    cursor: pointer;
    height: 1em;
    width: 1em;
    margin: 0.3em 0.2em;
    background-color: rgba(255, 255, 255, 0.6);
    display: block;
    transition: background-color 0.6s ease;
}

    .imageGalleryBlock .indicator-active,
    .imageGalleryBlock .indicator:hover {
        background-color: #fff;
    }

.imageGalleryBlock .selectedLink {
    position: absolute;
    width: 100%;
    height: 100%;
}

.imageGalleryBlock .ppGalContainer {
    position: absolute;
    bottom: 0;
    right: 0.2em;
    z-index: 1100;
    font-size: 1.1em;
}

.imageGalleryBlock .autoPlayGal {
    font-size: 1.2em;
    color: #fff;
}

/* .imageGalleryBlock .autoPlayGal.playGal {
} */
.imageGalleryBlock a.galleryItemLink {
    display: none;
    width: 100%;
    height: 100%;
}

;

.imageGalleryBlock .rotatorCaption {
    display: none;
    padding: 0.2em;
    background: rgba(0, 0, 0, 0.4);
    margin-bottom: 2px;
}


.imageGalleryBlock .img-active,
.captionBox .img-active,
.imageGalleryBlock .galleryItemLink {
    display: block;
}

.imageGalleryBlock .fade {
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1s;
    animation-name: fade;
    animation-duration: 1s;
}

/*Center via sharepoint*/
.immGal .ms-rte-embedcode.ms-rte-embedwp {
    display: flex;
    justify-content: center;
}
.fade:not(.show){
    opacity:1;
}
@-webkit-keyframes fade {
    from {
        opacity: 0.4;
    }

    to {
        opacity: 1;
    }
}

@keyframes fade {
    from {
        opacity: 0.4;
    }

    to {
        opacity: 1;
    }
}

@media screen and (max-width: 720px) {
    .imageGalleryBlock {
        width: 100%;
        overflow: hidden;
        display: inline-flex;
        flex-direction: column;
        position: relative;
        background-color: #e2e2e2;
    }
}
