.wallabypostgrid-wrapper {
    width: 100%;
}

/* FEATURED */
.wallabypostgrid-featured {
    position: relative;
    aspect-ratio: 30 / 9;
    overflow: hidden;
    color: #fff;
    border: 2px solid var(--accent);
}

.wallabypostgrid-media {
    position: absolute;
    inset: 0;	
}

.wallabypostgrid-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.wallabypostgrid-featured:hover img,
.wallabypostgrid-card:hover img {
    transform: scale(1.05);
}

/* OVERLAY */
.wallabypostgrid-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}

/* CONTENT */
.wallabypostgrid-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    z-index: 2;
}

/* TEXT */
.wallabypostgrid-featured h4 {
    font-size: 32px;
}

.wallabypostgrid-card h4 {
    font-size: 18px;
}

/* GRID */
.wallabypostgrid-grid {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

/* état actif */
.wallabypostgrid-wrapper.is-open .wallabypostgrid-grid {
    display: grid;
}

.wallabypostgrid-toggle {
    margin-top: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;

    background: transparent;
    border: none;

    color: var(--accent);
    font-size: 16px;
    font-weight: 500;

    cursor: pointer;

    transition: all 0.3s ease;
}

.wallabypostgrid-toggle:hover {
    transform: translateY(2px);
}

.wallabypostgrid-toggle-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.wallabypostgrid-card {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
	border: 2px solid var(--accent);
}

/* BADGES */
.wallabypostgrid-featured-cat,
.wallabypostgrid-slide-cat {
    background: rgba(255,255,255,0.2);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 10px;
}

/* LINKS */
.wallabypostgrid-featured-link,
.wallabypostgrid-card-link {
    text-decoration: none;
    color: #fff;	
}

/* MOBILE */
@media (max-width: 768px) {

    .wallabypostgrid-grid {
        grid-template-columns: 1fr;
    }

    .wallabypostgrid-featured h4 {
        font-size: 22px;
    }

    .wallabypostgrid-card h4 {
        font-size: 16px;
    }

    .wallabypostgrid-featured p {
        display: none;
    }
	.wallabypostgrid-featured {
    aspect-ratio: 16 / 9;
}
}



.wallabypostgrid-media img {
  display: block !important;
}
.wallabypostgrid-card-link,
.wallabypostgrid-featured-link {
    color: #fff !important;
}

.wallabypostgrid-card-link *,
.wallabypostgrid-featured-link * {
    color: #fff !important;
}

.wallabypostgrid-slide-cat {
    display: inline-block;
    width: auto;
    max-width: max-content;
}
.wallabypostgrid-card:hover h4,
.wallabypostgrid-featured:hover h4 {
    color: var(--accent) !important;
}

.wallabypostgrid-slide-cat.WallabyBouton,
.wallabypostgrid-featured-cat.WallabyBouton {
    display: inline-flex;
    align-items: center;
    width: fit-content;

    padding: 5px 10px;
    border-radius: 20px;

    color: var(--accent);
    border: 1px solid var(--accent);

    background: transparent;
    transition: all 0.3s ease;
}
