/* i881 free-AV homepage grid, gilhuybrecht.com flat look on the
   ORIGINAL textured background: borderless uniform tiles (16:10 crop),
   small light-grey label BELOW each image (title left, 1 line, ellipsis),
   no card chrome, rows aligned. Materialize s6/m3/l2 gives 2 cols
   phone, 4 tablet, 6 desktop.
   2026-12-02 */


#masonry-grid.row {
    max-width: 1440px;
    margin: 0 auto 20px auto;
    padding: 8px 10px 30px 10px;
}


/* flat tiles: no card box, no shadow, no rounding, no fill */
#masonry-grid .card,
#masonry-grid .card.z-depth-2 {
    margin: 0 0 28px 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

/* uniform 16:10 tiles: source ratios cropped so every card
   lines up in evenly distributed rows */
#masonry-grid .card .card-image {
    position: relative;
    padding-top: 62.5%;
    overflow: hidden;
    background: #1b1b1f;
}

#masonry-grid .card .card-image a {
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}

#masonry-grid .card .card-image img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
}

#masonry-grid .card .card-image a:hover img {
    opacity: 0.75;
    transition: opacity 0.3s ease;
}

/* small light-grey label below the image */
#masonry-grid .card .card-content {
    padding: 8px 2px 0 2px;
    min-height: 28px;
    background: transparent;
}

#masonry-grid .card .card-title,
#masonry-grid .card .card-content .card-title {
    display: block;
    margin: 0;
    height: 20px;
    overflow: hidden;
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.87);
    word-break: break-all;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#masonry-grid .card .card-title a,
#masonry-grid .card .card-content .card-title a {
    color: rgba(255, 255, 255, 0.87);
    font-size: 13px;
}

#masonry-grid .card .card-title a:hover,
#masonry-grid .card .card-title a:focus {
    color: #fff;
}

/* kill the legacy purple fill hover from style.css */
#masonry-grid .card:hover .card-content {
    background: transparent;
}

@media only screen and (min-width: 993px) {
    #masonry-grid .card .card-title,
    #masonry-grid .card .card-title a {
        font-size: 14px;
    }
}
