.elementor-widget-sos-gallery .container {
    display: grid;
    grid-auto-rows: auto;
}

.elementor-widget-sos-gallery .item {
    position: relative;
}

.elementor-widget-sos-gallery .item img {
    width: 100%;
    height: 100%;
}

.elementor-widget-sos-gallery .overlay {
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.5s ease;
    display: flex;
    column-count: 1;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.elementor-widget-sos-gallery .item:hover .overlay {
    opacity: 1;
}

.elementor-widget-sos-gallery .sos-gallery-item__content {
    display: flex;
    align-items: center;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
}

.elementor-widget-sos-gallery .sos-gallery-item__content .sos-gallery-item__title,
.elementor-widget-sos-gallery .sos-gallery-item__content .sos-gallery-item__description  {
    opacity: 0;
    color: #ffffff;
    font-weight: bold;
}

.elementor-widget-sos-gallery .sos-gallery-item__content .sos-gallery-item__description  {
    font-weight: normal;
}

.elementor-widget-sos-gallery a:hover .sos-gallery-item__content .sos-gallery-item__title,
.elementor-widget-sos-gallery a:hover .sos-gallery-item__content .sos-gallery-item__description  {
    opacity: 1;
}
