<style>

/* =========================================
   PRESENTACIÓN GENERAL DE PRODUCTOS
========================================= */

#gallery {
    padding-bottom: 40px;
}

/* Espacio uniforme entre productos */
#gallery .col-md-3,
#gallery .col-sm-6 {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 25px;
}

/* =========================================
   TARJETA DE LA IMAGEN
========================================= */

#gallery .single-work {
    position: relative !important;
    display: block !important;

    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 10;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;
    line-height: 0 !important;

    background: #111111 !important;
    border: 3px solid rgba(255, 255, 255, 0.85);
    border-radius: 16px !important;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.18),
        0 12px 30px rgba(0, 0, 0, 0.10);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

/* Efecto elegante */
#gallery .single-work:hover {
    transform: translateY(-6px);
    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.24),
        0 18px 40px rgba(0, 0, 0, 0.14);
}

/* Enlace de la imagen */
#gallery .single-work > a {
    position: absolute !important;
    inset: 0 !important;

    display: block !important;
    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    line-height: 0 !important;
    border-radius: 13px !important;
    overflow: hidden !important;
}

/* =========================================
   IMÁGENES DEL MISMO TAMAÑO
========================================= */

#gallery .single-work img.work,
#gallery .single-work img.img-responsive {
    position: absolute !important;
    inset: 0 !important;

    display: block !important;

    width: 100% !important;
    height: 100% !important;

    min-width: 100% !important;
    min-height: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: cover !important;
    object-position: center !important;

    border: 0 !important;
    border-radius: 13px !important;

    transition: transform 0.35s ease;
}

/* Zoom suave */
#gallery .single-work:hover img.work {
    transform: scale(1.045);
}

/* =========================================
   TEXTO INTERNO DE LA IMAGEN
========================================= */

/* Ocultamos el texto superpuesto para que no se duplique */
#gallery .work-info {
    display: none !important;
}

/* =========================================
   TEXTO DEBAJO DE LA IMAGEN
========================================= */

#gallery .single-work + a {
    display: block !important;

    margin: 10px 0 0 !important;
    padding: 0 5px !important;

    text-decoration: none !important;
    color: #000000 !important;
}

/* Nombre del producto */
#gallery .single-work + a h5 {
    display: flex !important;
    align-items: flex-start;
    justify-content: center;

    min-height: 44px !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #000000 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    text-align: center !important;

    text-transform: uppercase;
    text-decoration: none !important;
}

/* Cambio de color al pasar el mouse */
#gallery .single-work + a:hover h5 {
    color: #ffffff !important;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 991px) {

    #gallery .col-md-3,
    #gallery .col-sm-6 {
        padding-left: 8px;
        padding-right: 8px;
        margin-bottom: 22px;
    }

    #gallery .single-work {
        aspect-ratio: 16 / 10;
        border-radius: 14px !important;
    }

    #gallery .single-work + a h5 {
        font-size: 13px !important;
        min-height: 42px !important;
    }
}

/* =========================================
   CELULAR
========================================= */

@media (max-width: 767px) {

    #gallery .col-sm-6 {
        width: 50% !important;
        float: left !important;

        padding-left: 6px !important;
        padding-right: 6px !important;

        margin-bottom: 18px !important;
    }

    #gallery .single-work {
        aspect-ratio: 1 / 1;
        border-width: 2px;
        border-radius: 12px !important;
    }

    #gallery .single-work img.work,
    #gallery .single-work img.img-responsive {
        border-radius: 10px !important;
    }

    #gallery .single-work + a {
        margin-top: 7px !important;
        padding: 0 2px !important;
    }

    #gallery .single-work + a h5 {
        min-height: 48px !important;

        font-size: 11px !important;
        line-height: 1.3 !important;
    }
}

/* =========================================
   CELULARES MUY PEQUEÑOS
========================================= */

@media (max-width: 380px) {

    #gallery .col-sm-6 {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    #gallery .single-work + a h5 {
        font-size: 10px !important;
    }
}

/* Corrige flotantes después de cada fila */
#gallery .row::after {
    display: table;
    clear: both;
    content: "";
}

</style>