.cg-09c8b954-grid {
    display: grid;
    /* Default is handled by the wrapper selector inline style from the Elementor control */
    gap: 20px;
}

.cg-09c8b954-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    display: block;
    aspect-ratio: 1 / 1;
    text-decoration: none;
    background: #000;
}

.cg-09c8b954-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.3s ease;
}

.cg-09c8b954-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    align-items: flex-end;
}

.cg-09c8b954-title {
    color: #fff;
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
    transition: color 0.3s ease;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.cg-09c8b954-item:hover .cg-09c8b954-bg {
    opacity: 0.4;
}

.cg-09c8b954-item:hover .cg-09c8b954-title {
    color: #ffcc00; /* Default highlight, overridden by Elementor setting */
}
