/* Masonry Grid CSS Columns Implementation */
.mlg-grid-919c477e {
    width: 100%;
}

/* Base item styling */
.mlg-item-919c477e {
    break-inside: avoid;
    page-break-inside: avoid; /* fallback */
    display: block;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    -webkit-column-break-inside: avoid;
}

.mlg-item-919c477e:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* Image wrapper to handle overflow and zoom properly */
.mlg-img-wrap-919c477e {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    overflow: hidden;
}

.mlg-img-wrap-919c477e img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
    object-fit: cover;
}

/* Gradient Overlay */
.mlg-overlay-919c477e {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%; /* Gradient covers bottom half */
    pointer-events: none;
    z-index: 1;
}

/* Title Styling */
.mlg-title-919c477e {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
}

.mlg-title-919c477e span {
    display: block;
    width: 100%;
}
