/* --- colcade --- */


.wp-block-gallery {
    /*display: inherit;*/
}

.wp-block-gallery .blocks-gallery-item {
    margin: 0;
    width: 100%;
}

.grid {
    border: none;
}

.grid:after {
    display: block;
    content: '';
    clear: both;
}

.grid-col {
    float: left;
    width: 49%;
}

.grid-col--4 { margin-right: 0; }

/* hide two middle */
.grid-col--2, .grid-col--3 { display: none; }

@media ( min-width: 768px ) {
    .grid-col { width: 32%; }
    .grid-col--2 { display: block; }
}

@media ( min-width: 1200px ) {
    .grid-col { width: 23.5%; }
    .grid-col--2, .grid-col--3 { display: block; }
}

.wp-block-gallery .blocks-gallery-item .grid-item-inner {
    margin: 0 10px 10px 0;
}

.wp-block-gallery .blocks-gallery-item .grid-item-inner a {
    background-color: white;
    border-radius: 5px;
    border: 4px solid white;
    /*box-shadow: 0 1px 4px 0 rgba(128,128,128,.5);*/
    overflow: hidden;
    z-index: 5;
}

.wp-block-gallery .blocks-gallery-item .grid-item-inner .fg-caption {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    width: calc(100% - 10px);
    max-height: 100%;
    overflow: hidden;
    font-weight: 400;
    line-height: 1.3;
    border: none;
    text-align: center;
    cursor: pointer;
    margin: 0 10px 10px 0;
    background: rgba(0,0,0,.4);
    display: block;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    transition-property: visibility,opacity,background-color;
    border-radius: 5px;
    z-index: 8;
    pointer-events: none;
}

.wp-block-gallery .blocks-gallery-item .grid-item-inner:hover .fg-caption {
    visibility: visible;
    opacity: 1;
}

.wp-block-gallery .blocks-gallery-item .grid-item-inner .fg-caption .fg-caption-inner {
    width: 100%;
    padding: 10px;
    max-height: 100%;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.wp-block-gallery .blocks-gallery-item .grid-item-inner .fg-caption-title {
    font-size: 200%;
    font-weight: 400;
    color: #fff !important;
}

.wp-block-gallery .blocks-gallery-item .grid-item-inner .fg-caption-desc {
    font-size: 120%;
    font-weight: 400;
    color: #fff !important;
}

.wp-block-gallery .blocks-gallery-item .grid-item-inner .fg-caption .fg-caption-inner i {
    font-size: 250%;
}

.wp-block-gallery .blocks-gallery-item .grid-item-inner img {
    border-radius: 5px;
    transition-timing-function: ease;
    transition-duration: .3s;
    backface-visibility: hidden;
}

.wp-block-gallery .blocks-gallery-item .grid-item-inner:hover img {
    transform: scale(1.05);
}

@media only screen and (max-width: 992px) {
    .wp-block-gallery .blocks-gallery-item .grid-item-inner .fg-caption .fg-caption-inner i {
        font-size: 200%;
    }

    .wp-block-gallery .blocks-gallery-item .grid-item-inner .fg-caption-title {
        font-size: 180%;
    }

    .wp-block-gallery .blocks-gallery-item .grid-item-inner .fg-caption-desc {
        font-size: 100%;
    }
}

@media only screen and (max-width: 768px) {
    .wp-block-gallery .blocks-gallery-item .grid-item-inner .fg-caption .fg-caption-inner i {
        font-size: 160%;
    }

    .wp-block-gallery .blocks-gallery-item .grid-item-inner .fg-caption-title {
        font-size: 140%;
    }

    .wp-block-gallery .blocks-gallery-item .grid-item-inner .fg-caption-desc {
        font-size: 90%;
    }
}


@media only screen and (max-width: 576px) {
    .wp-block-gallery .blocks-gallery-item .grid-item-inner .fg-caption .fg-caption-inner i {
        display: none;
    }

    .wp-block-gallery .blocks-gallery-item .grid-item-inner .fg-caption-title {
        font-size: 100%;
    }

    .wp-block-gallery .blocks-gallery-item .grid-item-inner .fg-caption-desc {
        font-size: 90%;
    }
}





/* --- lightgallery --- */

.lg-backdrop {
    background-color: white;
}

.lg-progress-bar {
    background-color: transparent;
}

.lg-progress-bar .lg-progress {
  background-color: rgba(178,34,34,.50);
  height: 5px;
  width: 0;
}

.lg-toolbar {
    padding: 0 20px;
    background-color: rgba(255, 255, 255, 0.3);
}

.lg-toolbar .lg-icon, #lg-actual-size {
    font-size: 200%;
    padding: 20px;
}

.lg-toolbar button {
    color: #666 !important;
}

.lg-toolbar button:hover {
    color: #b22222 !important;
}

#lg-counter {
    color: #666 !important;
    font-size: 150%;
}

.lg-fullscreen {
    display: none;
}

.lg-actions .lg-next::before,
.lg-actions .lg-prev::after {
    font-size: 150%;
}

.lg-actions .lg-next, .lg-actions .lg-prev {
    color: #666;
}

.lg-actions .lg-next:hover, .lg-actions .lg-prev:hover {
    color: #b22222;
}

.lg-outer .lg-thumb-outer {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 0 10px;
}

.lg-outer .lg-toggle-thumb {
    background-color: rgba(0, 0, 0, 0.2);
}

.lg-outer .lg-toggle-thumb {
    color: #666;
}

.lg-outer .lg-toggle-thumb:hover {
    color: #b22222;
}

.lg-sub-html {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    font-size: 16px;
    padding: 10px;
    position: absolute;
    text-align: center;
    z-index: 1070;
    top: calc(50vh - 50px);
    bottom: auto !important;
    left: auto;
}

.lg-sub-html h4 {
    color: #666;
    font-size: 160%;
}

.lg-sub-html h5 {
    color: #666;
    font-size: 120%;
}

/*.lg {*/
    /*background:  url("bkgd-220x166.jpg") no-repeat;*/
/*}*/

.lg .lg-inner {
    width: 70%;
}

.lg .lg-inner img {
    margin: 5%;
    max-height: 90%;
}

.lg .lg-sub-html {
    width: 29%;
    right: 80px;
}

#lg-actual-size {
    display: none;
}

/* dessins : without text and img center */
.dessins .lg-sub-html {
    display: none;
}

.dessins .lg .lg-inner {
    width: 100%;
}


@media only screen and (max-width: 1400px) {
}

@media only screen and (max-width: 1200px) {

}

@media only screen and (max-width: 992px) {
    #lg-counter {
        font-size: 100%;
    }

    .lg-toolbar .lg-icon, #lg-actual-size {
        font-size: 200%;
        padding: 10px;
    }

    .lg-sub-html h4 {
        font-size: 140%;
    }

    .lg-sub-html h5 {
        font-size: 110%;
    }



}

@media only screen and (max-width: 768px) {
    #lg-counter, .lg-thumb-outer, .lg-rotate-left, .lg-rotate-right, .lg-autoplay-button, .lg-actions {
        display: none;
    }

    .lg .lg-inner {
        width: 100%;
    }

    .lg .lg-sub-html {
        width: 100%;
        right: inherit;
        top: auto !important;
        bottom: 0 !important;
    }

    .lg .lg-inner img {
        margin: 0;
        max-height: 100%;
    }

    .lg-sub-html h4 {
        color: #333;
        font-size: 110%;
    }

    .lg-sub-html h5 {
        color: #333;
        font-size: 90%;
    }

}


