.fpg-filter-select {
    min-width: 160px;
}
/* =========================
   GRID LAYOUT (DESKTOP)
========================= */
.fpg-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
}

/* =========================
   LEFT COLUMN (FEATURED)
========================= */
.fpg-main {
    display: flex;
    height: 100%;
}

.fpg-main .fpg-card {
    flex: 1;
}

/* =========================
   RIGHT COLUMN (2x2 GRID)
========================= */
.fpg-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    height: 100%;
}

/* =========================
   CARD BASE
========================= */
.fpg-card {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 0;
    display: block;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    font-family: 'gellix-semibold';
}

/* =========================
   IMAGE BEHAVIOUR
========================= */
.fpg-card img {
    position:absolute;
    inset:0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.fpg-card:hover img {
    transform: scale(1.05);
}
/* =========================
   TEXT OVERLAY
========================= */
/* 🔥 GRADIENT OVERLAY */
.fpg-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.2) 20%, rgba(0, 0, 0, 0.0) 90%);
    z-index: 1;
    pointer-events: none;
}

/* TEXT CONTAINER */
.fpg-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    color: #fff;
}

/* TITLE */
.fpg-card-content h4 {
    margin: 0 0 4px;
    font-size: 16px;
    line-height: 1.2;
}

/* DATE */
.fpg-card-content .fpg-date {
    font-size: 12px;
    padding-left:10px;
}
.fpg-card h4 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 10px;
    color: #fff;
    font-size: 16px;
}

/* FEATURED CARD */
.fpg-large h4 {
    font-size: 22px;
}

/* SMALL CARDS */
.fpg-small h4 {
    font-size: 14px;
}

/* Max-height just for desktop */
@media (min-width: 901px) {
    .fpg-main,
    .fpg-side {
        height: 400px;
    }
     .fpg-card {
        overflow: hidden;
    }
}
/* =========================
   TABLET (REMOVE FEATURED FEEL)
========================= */
@media (max-width: 900px) {

    .fpg-grid {
        grid-template-columns: 1fr;
    }

    .fpg-side {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    /* Remove forced equal-height behavior */
    .fpg-main {
        display: block;
    }

    .fpg-card {
        aspect-ratio: 1 / 1;
        height: auto;
    }
}

/* =========================
   MOBILE (ALL EQUAL CARDS)
========================= */
@media (max-width: 600px) {

    .fpg-grid {
        grid-template-columns: 1fr;
    }

    .fpg-side {
        grid-template-columns: 1fr;
    }

    .fpg-card {
        aspect-ratio: 4 / 3;
        height: auto;
    }

    .fpg-card h4 {
        font-size: 14px;
    }
}