/* ==========================================
   MINI GALLERY
   Layout 1 - Mosaic
   ========================================== */

.mini-gallery {
    width: 100%;
}


/* Layout */
.mini-gallery-layout-1 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
}


/* Columnas */
.mini-gallery-layout-1 .mini-gallery-column {
    display: flex;
    flex-direction: column;
    gap: 4px;
}


/* Cada imagen */
.mini-gallery-layout-1 .mini-gallery-item {
    display: block;
    position: relative;
    overflow: hidden;
    width: 100%;
}


/* Imagen */
.mini-gallery-layout-1 .mini-gallery-item img {
    display: block;
    width: 100%;
    height: auto;
}


/* Degradado inferior */
.mini-gallery-layout-1 .mini-gallery-item::after {
    content: "";
    position: absolute;

    z-index: 1;

    left: 0;
    right: 0;
    bottom: 0;

    height: 35%;

    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.55) 100%
    );

    opacity: 0;

    transition: opacity .25s ease;

    pointer-events: none;
}


/* Título */
.mini-gallery-layout-1 .mini-gallery-title {
    position: absolute;

    z-index: 2;

    left: 15px;
    right: 15px;
    bottom: 12px;

    color: #fff;

    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;

    opacity: 0;

    transform: translateY(5px);

    transition:
        opacity .25s ease,
        transform .25s ease;

    pointer-events: none;
}


/* Hover */
.mini-gallery-layout-1 .mini-gallery-item:hover::after {
    opacity: 1;
}

.mini-gallery-layout-1 .mini-gallery-item:hover .mini-gallery-title {
    opacity: 1;
    transform: translateY(0);
}