@charset "utf-8";

/*
    ************************************************
    folderHorizon gallery.css loaded in project.tpl
    ************************************************
*/

/**********************************
    gallery :: grid view

        If set *justify-content: space-between;* etc.
        uncomment .items>figure.thumb:last-child {...}
**********************************/
.items {
    display: -webkit-box;
    /* OLD - iOS 6-, Safari 3.1-6, BB7 */
    display: -moz-box;
    /* OLD - Firefox 19- (buggy but mostly works) */
    display: -ms-flexbox;
    /* TWEENER - IE 10 */
    display: -webkit-flex;
    /* OR -webkit-flexbox; ?:: NEW - Safari 6.1+. iOS 7.1+, BB10 */
    display: flex;
    /* NEW, Spec - Firefox 20+, Chrome, Opera 12.1 */
    /* - */
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    /* - */
    -webkit-justify-content: center;
    justify-content: center;
    /* - */
    gap: 1.25rem;
}

/***** gallery :: rows view ******/

.items.rows {
    display: block;
}

/* toggle grid/rows view + button */

.gallery-view {
    text-align: right;
    margin-bottom: 1.25rem;
}

.gallery-view>button {
    background-image: url(../img/button_view.rows.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-color: transparent;
    width: 1.5rem;
    height: 1.5rem;
    margin: 0;
    padding: 0;
    border: none;
    cursor: pointer;
}

.gallery-view>button.rows {
    background-image: url(../img/button_view.grid.svg);
}

/********* figure global *********/

.items>figure>a:hover {
    color: inherit !important;
}

/******** thumbnail image ********/

/* thumbnail height :: grid view */
.items>figure.thumb {
    height: 7.5rem;
}

/* if flex "justify-content: space-between;" etc... */
/*
.items>figure.thumb:last-child {
    -webkit-flex: 1;
    flex: 1;
}
*/

/* thumbnail height :: rows view */
.items.rows>figure.thumb {
    height: auto;
}

.items>figure.thumb img {
    width: auto;
    max-width: 100%;
    height: 100%;
}

/* hide/show thumbnail captions in grid/rows view  */
.items>figure figcaption {
    display: none;
}

.items.rows>figure figcaption.pswp-caption-content {
    display: none;
}

.items.rows>figure figcaption {
    display: block;
}

/******* on gallery show *********/

/* backgraund for svg/png images with transparent/alpha */
img.pswp__img {
    background: #ffffff;
}

/* don't display zoom button */
.pswp__button--zoom {
    display: none !important;
}

/******* phone thumbnail *********/

@media screen and (max-device-width: 767px) {
    .items {
        gap: 1rem;
    }

    .items>figure.thumb {
        height: 12rem;
    }

    .items>figure.thumb img {
        margin: 0 auto;
    }
}

@media screen and (max-device-width: 320px) {
    .items>figure.thumb {
        height: 8rem;
    }
}

/******* on gallery show *********/

/* background, ovverride default */
.pswp {
    --pswp-bg: #000;
}

.pswp__bg {
    opacity: 0.95 !important;
}

/* counter display */
.pswp__counter {
    display: none;
    /*
    font-size: 0.8em !important;
    font-weight: normal !important;
    */
}

/* caption */

/* important */
.pswp__dynamic-caption {
    color: #fff;
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    transition: opacity 120ms linear !important;
    font-size: 0.75rem !important;
    /* font-weight: normal !important; */
}

.pswp__dynamic-caption a {
    color: #fff;
    text-decoration: underline;
}

/* set as default */
.pswp__dynamic-caption--below {
    width: auto;
    max-width: 44rem;
    padding: 1rem 0 1.25rem 0;
}

/* other options */
.pswp__dynamic-caption--aside {
    width: auto;
    max-width: 19rem;
    padding: 1.25rem 1rem 1.25rem 1.25rem;
    margin-top: 4.5rem;
}

.pswp__dynamic-caption--mobile {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.75rem 1rem;
    right: 0;
    bottom: 0;
    top: auto !important;
    left: 0 !important;
}

.pswp__dynamic-caption--on-hor-edge {
    padding-left: 1rem;
    padding-right: 1rem;
}

.pswp__dynamic-caption--faded {
    opacity: 0 !important;
}