/* Stiluri pentru Galeria Custom Bootstrap */
.custom-bootstrap-gallery .square_thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 4px; 
    transition: transform 0.2s ease;
}

.custom-bootstrap-gallery .gallery-item-link:hover .square_thumb {
    transform: scale(1.02);
}

.custom-bootstrap-gallery .square_thumb {
    position: relative;
}

.custom-bootstrap-gallery .square_thumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: solid 1px rgba(0, 0, 0, 0.09);
    border-radius: 4px;
    z-index: 1;
}

.custom-bootstrap-gallery .square_thumb.has-overlay::before {
    background-color: rgba(0, 0, 0, 0.3);
}

.custom-bootstrap-gallery .square_thumb.has-overlay::after {
    content: attr(data-remaining);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
