/* mosaique */

.mosaique-grid {
    display: grid;
    grid-gap: 0.5rem;
    grid-template-columns: 1fr;
}

.item {
    cursor: pointer;
}
.item.actuel {
    background-color: #eee; 
    border-radius: 5px;
    box-shadow: 0 0 2px 2px #efefef;
}
.item.selected {
    background-color: var(--color-ok); 
}

/*
filtrage par live search, mots clés, collection
*/

[data-filtersearch] [data-search='hide'] {
    display:none;
}
[data-filtercollection] [data-collection='hide']{
    display: none;
}
[data-filtertags] .item[data-filter="hide"] {
    display:none;
}


[data-listingtype="liste"] .mosaique-grid .item {
    display: grid;
    grid-template-columns: minmax(3rem, 15%) 1fr;
    grid-gap: 1rem;
    border-bottom: 1px dotted var(--color-light);
    padding:0 !important;
} 

[data-listingtype="liste"] .mosaique-grid .item-infos {
    display: flex;
    gap: 1rem;
    align-items: center;
}


/* filtrage (collections) */
#v-collectionclose {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

#collections-container[data-filtered='true'] .collection:not(.filtered) {
    display:none;
}
#collections-container .collection-texte {
    display:none;
}
#collections-container[data-filtered='true'] .grid {
    display: block !important;
}
#collections-container .filtered .collection-texte {
    display:block;
}
#collections-container[data-filtered='true'] .filtered [data-source] {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-gap: 1rem;
}

/* full window */

#fw {

}

[data-toolbar="hide"] #viewer-menu {
    display: none;
}
#viewer-inner[data-show-info="hide"] #fw {
    grid-template-columns: 1fr;
    grid-template-areas:
        "fwvisual";
}
#viewer-inner[data-show-info="hide"] #fw-infos{
    display: none;   
}

#fw-visual {
    grid-area: fwvisual;
    height:100%;
    overflow: hidden;
}
#fw-infos {
    grid-area: fwinfos;
    overflow: auto;
}

#fw-image {
    position:relative;
    max-height: 90vh;
    text-align: center;
}
#fw-image img {
    object-fit: contain;
    max-height: 90vh;
    width:100%;
    display: block;
    cursor:zoom-in;
}

#fw-image img.active {
    object-fit:none; 
    cursor: move;
}

#fw-image img.active ~ div  {
    display: none;
}

.fw-description {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    text-align: center;
    text-shadow: 1px 1px 1px #000;
    color: #fff;
    opacity: 0;
    transition: opacity 1s linear;
}

.fw-description span {
    padding:4px;
    background-color: var(--color-primary);
}

#fw-image:hover .fw-description {
    opacity: 1;
}

.fw-nav {
    position: absolute;
    top: 0;
    left:0;
    height:100%;
    width:20%;
    cursor: url("images/chevron-left-big.svg"), auto;
}
.fw-nav:hover {
    background: linear-gradient(to left, rgba(0,0,0,0),rgba(0,0,0,0.25));
}
.fw-next {
    right:0;
    left: auto;
    cursor: url("images/chevron-right-big.svg"), auto;
}
.fw-next:hover {
    background: linear-gradient(to right, rgba(0,0,0,0),rgba(0,0,0,0.25));
}

#fw-infos img[data-slideshow] {
    cursor:pointer;
}
#fw-infos img[data-slideshow='actuel'] {
    opacity: 0.2;
    background-color: #ccc;
}
#fw-infos img[data-slideshow='actuel']:hover {
    opacity: 0.5;
}
[data-show-info="hide"] .docinfobutton {
    background-color:#d5d5d5;
}

@media (min-width: 576px) {

}

@media (min-width: 768px) {


}

@media (min-width: 992px) {

}

@media (min-width: 1200px) {

}