/*--------------------------------------------------------------
# Gallery Tiles
--------------------------------------------------------------*/

.ca-gallery-tiles{
    display: flex;
    flex-wrap: wrap;
}

.ca-gallery-tiles.loading{
    opacity: 0.2;
}

.ca-gallery-tiles.loading *{
    pointer-events: none;
}

.ca-gallery-tile-wrap{
    padding: 5px;
    width: 25%;
}

.ca-gallery-tile{
    background: #fff;
    border: solid 1px #888888;
    height: 100%;
    text-align: center;
}

.ca-gallery-tile .ca-gallery-tile--slideshow{
    padding-top: calc( 188.86/ 249.6 * 100%);
    position: relative;
    cursor: pointer;
}

.ca-gallery-tile .ca-gallery-tile--slideshow .ca-gallery-tile--slide img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.ca-gallery-tile .ca-gallery-tile--slideshow .ca-gallery-tile--slide.active img{
    z-index: 1;
    opacity: 1;
}

.ca-gallery-tile .ca-gallery-tile--caption{
    padding: 20px;
    text-align: center;
}

.ca-gallery-tile .ca-gallery-tile--caption h4{
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #000 !important;
    text-transform: capitalize !important;
}

.ca-gallery-tile .ca-gallery-tile--thumbnails{
    display: inline-flex;
    margin-top: -40px;
    position: relative;
    z-index: 2;
}

.ca-gallery-tile .ca-gallery-tile--thumbnail{
    width: 60px;
    height: 60px;
    border: 3px solid #ffffff;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.ca-gallery-tile .ca-gallery-tile--thumbnail .ca-gallery-tile--thumbnail--count{
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.67);
}

.ca-gallery-tile .ca-gallery-tile--thumbnail img{
    transition: transform 0.3s ease;
}

.ca-gallery-tile .ca-gallery-tile--thumbnail img:hover{
    transform: scale( 1.2 );
}

.ca-gallery-tile .ca-gallery-tile--thumbnail img{
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Images */

.ca-gallery-tile .ca-gallery-tile--images{
    display: none;
}

/*--------------------------------------------------------------
# Gallery UI
--------------------------------------------------------------*/

.ca-gallery{
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    /*padding: 100px 40px 0 40px;*/
}

.ca-gallery.active{
    display: block;
}

body.admin-bar .ca-gallery{
    top: 32px;
}

.ca-gallery--topbar{
    position: absolute;
    height: 100px;
    left: 0;
    top: 0;
    right: 0;
    padding: 10px 20px;
    clear: both;
}

.ca-gallery--topbar .ca-page-counter{
    float: left;
    color: #999 !important;
    font-size: 26px;
    padding-top: 9px;
}

.ca-gallery--topbar .ca-close{
    float: right;
    background: none;
    border: none;
    color: #999;
    font-size: 48px;
    padding: 0 !important;
}

.ca-gallery--content-wrap{
    position: absolute;
    top: 100px;
    bottom: 200px;
    right: 0;
    left: 0;
}

.ca-gallery--content{
    display: block;
    position: relative;
    height: 100%;
}

.ca-gallery--content-images{
    height: 100%;
    position: relative;
}

.ca-gallery--content-images img{
    height: 100%;
    object-fit: contain;
    margin: auto;
}

.ca-gallery--content .ca-button{
    position: absolute;
    top: 50%;
    cursor: pointer;
    display: block;
    font-size: 22px;
    margin-top: -10px;
    padding: 6px;
    z-index: 1080;
    outline: none;
    border: none;
    color: #000000;
    border-radius: 50%;
    background: #FBD409;
    width: 22px;
    height: 22px;
    box-sizing: content-box;
}

 .ca-gallery--content .ca-button:hover{
    color: #565656 !important;
}

.ca-gallery--content .ca-prev{
    left: 20px;
}

.ca-gallery--content .ca-next{
    right: 20px;
}

.ca-gallery--content .ca-img-slide{
    opacity: 0;
   /* height: 0;
    width: 0;*/
    height: 100%;
    width: 100%;
    transition: opacity 0.3s ease;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none !important;
}

.ca-gallery--content .ca-img-slide.active{
    opacity: 1;
    pointer-events: auto !important;
}

.ca-gallery--content .ca-img-slide.active img{
    width: auto;
}

.ca-gallery--captions{
    position: absolute;
    bottom: 100px;
    height: 100px;
    left: 40px;
    right: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ca-gallery--captions h5{
    color: #ffffff !important;
}

.ca-gallery--captions .ca-caption{
    display: none;
    text-align: center;
}

.ca-gallery--captions .ca-caption.active{
    display: block;
}

.ca-gallery--thumbnails-wrap{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: hidden;
    height: 100px;
    text-align: center;
}

.ca-gallery--thumbnails{
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

.ca-gallery--thumbnails.ui-draggable{
    cursor: grab;
}

.ca-gallery--thumbnails .ca-thumbnail{
    width: 100px;
    min-width: 100px;
    height: 80px;
    float: left;
    margin-right: 5px;
    margin-bottom: 5px;
    border-radius: 4px;
    border: 2px solid #fff;
    cursor: pointer;
    cursor: inherit;
    transition: border-color 0.3s ease;
}

.ca-gallery--thumbnails .ca-thumbnail:hover,
.ca-gallery--thumbnails .ca-thumbnail.active{
    border-color: #a90707;
}

.ca-gallery--thumbnails .ca-thumbnail img{
    object-fit: cover;
    height: 100%;
    width: 100%;
}

@media only screen and (max-width:  600px){
    body.admin-bar .ca-gallery{
        top: 0;
    }
}


/*--------------------------------------------------------------
# Media Queries
--------------------------------------------------------------*/

/* XL DISPLAY BREAKPOINT - 1681px - 2560px 
- 1920px
- 2560px 
*/
@media only screen and (min-width : 1681px) {

}

/* LRG DESKTOP BREAKPOINT - 1367px - 1680px
- 1440px
- 1536px
- 1680px 
*/
@media only screen and (max-width : 1680px) {

}

/* DESKTOP BREAKPOINT - 1201px - 1366px
- 1280px
- 1366px
*/
@media only screen and (max-width : 1366px) {

}

/* BOOTSTRAP LRG BREAKPOINT - 1025px - 1200px
*/
@media only screen and (max-width : 1200px) {

}

/* TABLET BREAKPOINT - 993px - 1024px
- 1024px
*/
@media only screen and (min-width : 1024px) {
}

/* BOOTSTRAP MED BREAKPOINT - 769px - 992px 
- 800px
*/
@media only screen and (max-width : 992px) {
    .ca-gallery-tile-wrap{
        width: 25%;
    }
}

/* BOOTSTRAP SML BREAKPOINT - 450px - 768px
- 768px
- 600px
*/
@media only screen and (max-width : 768px) {
    .ca-gallery-tile-wrap{
        width: 33.3%;
    }
        .ca-gallery-tile--caption h4{
        font-size: 12px;
    }
    .ca-open-gallery-btn{
        font-size: 10px;
    }
}

/* MOBILE DEVICES
- 320px
- 360px
- 414px
*/
@media only screen and (max-width : 450px) {
    .ca-gallery-tile-wrap{
        width: 50%;
    }
}