/* ── Botons ─────────────────────────────────────── */
.pg-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}
.pg-btn {
    padding: 5px 12px !important;
    border: 2px solid currentColor;
    background: transparent;
    cursor: pointer;
    font-size: .9rem;
    letter-spacing: .03em;
    transition: background .25s, color .25s;
}
.pg-btn:hover,
.pg-btn.is-active {
    background: #48BBD0;
    color: #fff;
    border-color: #48BBD0;
}

/* ── Grid (Isotope ho gestiona, però necessita altura) */
.pg-grid {
    position: relative;     /* requerit per Isotope */
}
.pg-item {
    width: calc(100% / var(--pg-cols, 3) - 3rem);
    margin: 1rem;
	
}

/* ── Targeta ─────────────────────────────────────── */
.pg-item a {
    display: block;
    position: relative;
    overflow: hidden;
    line-height: 0;         /* elimina espai sota img */
}
.pg-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.pg-item:hover img {
    transform: scale(1.05);
}

/* ── Overlay ─────────────────────────────────────── */
.pg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    opacity: 0;
    transition: opacity .3s;
    line-height: 1.3;
}
.pg-item:hover .pg-overlay { opacity: 1; }

.pg-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    padding: 0 .75rem;
}
.pg-link-icon {
    color: #fff;
    font-size: 1.3rem;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
    .pg-item { width: calc(50% - .5rem); }
}
@media (max-width: 480px) {
    .pg-item { width: 100%; }
}