/* WP Justified Grid Styles - v1.3 */

.wjg-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
    padding: 0; 
    margin: 0;
}

/* --- STANDARD ITEMS --- */
.wjg-item {
    display: block;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: var(--wjg-gap, 5px);
    transition: width 0.2s ease, height 0.2s ease;
}

/* Ensure the Link fills the container */
.wjg-item a, 
.wjg-feature-main a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none; /* remove underline */
}

.wjg-item img,
.wjg-feature-main img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    object-fit: cover; 
    vertical-align: bottom;
}

/* --- MAGAZINE LAYOUT (Vertical Spans) --- */
.wjg-feature-block {
    display: flex;
    width: 100%;
    margin-bottom: var(--wjg-gap, 5px);
    box-sizing: border-box;
}

.wjg-feature-main {
    flex-shrink: 0; 
    margin-right: var(--wjg-gap, 5px);
    overflow: hidden;
    position: relative;
}

.wjg-feature-stack {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.wjg-item i { display: none; }