.cew-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* default desktop */
    gap: 20px;
}

/* TABLET */
@media (max-width: 1024px) {
    .cew-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOBILE */
@media (max-width: 767px) {
    .cew-gallery {
        grid-template-columns: 1fr;
    }
}

/* ITEM */
.cew-item {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
}

/* IMAGE */
.cew-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

/* HOVER */
.cew-item:hover img {
    transform: scale(1.08);
}

/* GLASS BOX */
.cew-glass {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    transform: translateY(20px);
    opacity: 0;
    transition: 0.4s ease;
}

/* SHOW ON HOVER (DESKTOP) */
@media (hover: hover) {
    .cew-item:hover .cew-glass {
        opacity: 1;
        transform: translateY(0);
    }
}

/* MOBILE FIX (NO HOVER DEVICES) */
@media (hover: none) {
    .cew-glass {
        opacity: 1;
        transform: translateY(0);
    }
}

/* TEXT */
.cew-glass h3 {
    margin: 0;
    font-size: 18px;
    margin-top: 0 !important;
}

.cew-glass p {
    margin: 5px 0 0;
    font-size: 16px;
    opacity: 0.85;
}