/* CyberAspireGallery Plugin v1.0.0 [2021-01-01]
 * Author: Sourav Kar
 * Website: http://cyberaspire.com
 * Copyright: CyberAspire Web Services */

/***** CYBERASPIRE GALLERY *****/
#cagallery {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0;
    display: grid;
    position: relative;
    /*grid-template-rows: repeat(10, 5vw);*/
    grid-gap: 0.4rem;
    overflow: hidden;
}

#cagallery .figurecontainer {
    width: 100%;
    height: 100%;
    margin: 0;
    margin: 0;
    padding: 2px 2px;
    display: flex;
    position: relative;
    text-align: center;
    text-transform: capitalize;
    background: none;
    border-radius: 10px;
    box-sizing: border-box;
    cursor: pointer;
    overflow: hidden;
}

#cagallery .figurecontainer:hover {
    background: linear-gradient(to bottom, #fff37c, #3ff360);
}

#cagallery figure {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    text-align: center;
    text-transform: capitalize;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-sizing: border-box;
    cursor: pointer;
    overflow: hidden;
}

#cagallery img {
    margin: 0 auto;
    padding: 0;
    display: block;
    position: relative;
    object-fit: fill;
    text-align: center;
    background-color: #fff;
    border: none;
    cursor: pointer;
}

#cagallery figcaption {
    width: 100%;
    margin: 0;
    padding: 5px;
    display: block;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
    text-overflow: ellipsis;
    color: #39424e;
    background-color: #f9f9f9;
    white-space: nowrap;
    outline: none;
    overflow: hidden;
}

#cagallery .directory {
    padding: 3px;
    display: inline-block;
    border: 1px solid #ddd;
    border-radius: 3px;
}

#cagallery .directory figcaption {
    font-weight: bold;
}

#cagallery .thumbnail {
    padding: 0;
    display: inline-block;
}

#cagallery .thumbnail .zoom {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.1) url("zoom.png") no-repeat 50%;
}

#cagallery .thumbnail:hover .zoom {
    display: block;
}

#cagallery .preloader {
    display: inline-block;
    background: #fff url("preloader.gif") no-repeat center center;
}

#cagallery .noselect {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#cagallery #back {
    margin: 0;
    padding: 0;
    display: block;
    position: relative;
    font-family: "Oswald", Helvetica, Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid #ccc;
    cursor: pointer;
    transition: 0.3s;
}

#cagallery #back:hover {
    background-color: #c5c5c5;
}

#cagallery #back>img {
    margin: 0;
    padding: 0;
    vertical-align: text-top;
    border: 0px solid #f00;
}

/***** IMAGE POPUP *****/
#imagepopup {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    display: block;
    position: relative;
    font-size: 1.2em;
    background: none;
    z-index: 100;
}

#imagebox {
    width: 100%;
    height: 100%;
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.9);
    border: 0px solid #f00;
    overflow: hidden;
    z-index: 99;
}

#imagebox table,
#imagebox table tbody,
#imagebox table tr {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    display: block;
    position: relative;
    border: 0;
    overflow: hidden;
    z-index: 98;
}

#imagebox table td {
    width: 100%;
    height: 100vh;
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 0px solid #99ff00;
    overflow: hidden;
}

#imagebox img {
    width: 100%;
    height: 100%;
    margin: auto;
    padding: 0;
    position: relative;
    object-fit: contain;
    transform: scale(0.75);
    transform-origin: center center;
    transition: transform 0.3s ease;
    border: 0px solid #f00;
    /* border-radius: 1px;
    box-shadow: 0 0 20px #222; */
    overflow: hidden;
}

#imagecontrolscontainer {
    width: 100%;
    position: absolute;
    bottom: 20px;
    text-align: center;
    border: 0px solid #ff6600;
    z-index: 99;
}

#imagecontrols {
    margin: 0 auto;
    padding: 2px;
    display: inline-flex;
    position: relative;
    text-align: center;
    background-color: rgb(0, 0, 0, 0.6);
    border-radius: 4px;
}

#imagedetails {
    height: 36px;
    margin: auto;
    padding: 0 50px;
    display: flex;
    flex-direction: column;
    border: 0px solid #f00;
}

#imagelabel {
    margin: 0;
    margin-top: 3px;
    margin-bottom: auto;
    padding: 0;
    display: block;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 1rem;
    font-weight: bold;
    text-overflow: ellipsis;
    color: #ddd;
    white-space: nowrap;
    overflow: hidden;
    border: 0px solid #ff0;
}

#imagecount {
    margin: 0;
    margin-top: auto;
    margin-bottom: 3px;
    padding: 0;
    display: block;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 1rem;
    color: #fff;
    border: 0px solid #fff;
}

#plus,
#minus {
    width: 40px;
    height: 36px;
    position: absolute;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 2.2rem;
    color: #fff;
    line-height: 32px;
    border: 0px solid #f00;
    border-radius: 2px;
    cursor: pointer;
}

#plus {
    right: 2px;
}

#minus {
    left: 2px;
}

#plus:hover,
#minus:hover {
    background-color: #444444;
}

#plus:active,
#minus:active {
    background-color: #222222;
}

#imageclose {
    margin: 0;
    padding: 0;
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 4rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: #f1f1f1;
    cursor: pointer;
    z-index: 99;
}

#imageclose:after {
    content: "\00d7";
    display: inline-block;
}

#imageclose:hover {
    color: #99ff00;
}

#imageclose:active {
    color: #64dd17;
}

#imageprev,
#imagenext {
    width: 40px;
    height: 40px;
    display: block;
    position: absolute;
    top: 48%;
    background-color: #444;
    border-radius: 50%;
    cursor: pointer;
    z-index: 99;
}

#imageprev {
    left: 20px;
}

#imagenext {
    right: 20px;
}

#imageprev:after,
#imagenext:after {
    content: '';
    width: 10px;
    height: 10px;
    margin: 15px 0 0 4px;
    display: inline-block;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(135deg);
    -webkit-transform: rotate(135deg);
}

#imageprev:after {
    margin: 15px 0 0 4px;
    transform: rotate(135deg);
    -webkit-transform: rotate(135deg);
}

#imagenext:after {
    margin: 15px 4px 0 0;
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
}

#imageprev:hover,
#imagenext:hover {
    background-color: #0066ff;
}

#imageprev:active,
#imagenext:active {
    background-color: #0033cc;
}

/***** RESPONSIVE WEB DESIGN *****/
@media screen and (max-width: 920px) {
    #imagebox img {
        transform: scale(1.25);
    }
}