/** Gallery **/
#gallery {
    position: relative;
    padding: 15px;
}

#gallery a {
    position: absolute;
    display: block;
    overflow: hidden;
    transition: transform 0.3s ease;
}

#gallery img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

/** Effet hover : overlay + loupe **/
#gallery a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

#gallery a::after {
    content: 'search';
    font-family: 'Material Icons';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

#gallery a:hover::before,
#gallery a:hover::after {
    opacity: 1;
}

/** Surcharge du style glightbox natif **/
.glightbox-clean .gslide-description {
    background-color: #000000 !important;
}
.glightbox-clean .gslide-description {
    background: #000;
    color: #fff;
    text-align: center;
}

.glightbox-clean .gslide-description .gdesc-inner {
    color: #fff;
}

.glightbox-clean .gdesc-inner h4,
.glightbox-clean .gdesc-inner p {
    color: #fff;
}

/** GLIGHTBOX - counter **/
.gcounter::after {
    content: attr(data-indicator);
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    color: white;
    padding: 10px;
    z-index: 10000000;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50px;
    font-size: 13px;
}