/* ============================================================
   MediaPress — Galeria de Cobertura Mediática
   Usa a tipografia herdada do tema WordPress activo
   ============================================================ */

/* ── Wrap ── */
.lfmp-wrap {
    width: 100%;
    margin: 0 auto;
}

/* ── Filtros ── */
.lfmp-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    justify-content: center;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 32px;
    padding-bottom: 0;
}

.lfmp-filter {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #999;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 10px 18px;
    margin-bottom: -1px;
    transition: color 0.2s ease, border-color 0.2s ease;
    outline: none;
    white-space: nowrap;
}

.lfmp-filter:hover { color: #222; }

.lfmp-filter.active {
    color: #222;
    border-bottom-color: #222;
}

/* ── Grelha ── */
.lfmp-grid {
    display: grid;
    gap: 20px;
}

.lfmp-cols-2 { grid-template-columns: repeat(2, 1fr); }
.lfmp-cols-3 { grid-template-columns: repeat(3, 1fr); }
.lfmp-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .lfmp-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .lfmp-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .lfmp-cols-2,
    .lfmp-cols-3,
    .lfmp-cols-4 { grid-template-columns: 1fr; }
}

/* ── Item (card) ── */
.lfmp-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.09);
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.lfmp-item:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

.lfmp-item.lfmp-hidden { display: none; }

/* ── Link / trigger ── */
.lfmp-trigger {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* ── Imagem rectangular 16:9 ── */
.lfmp-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f0f0f0;
}

.lfmp-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.lfmp-item:hover .lfmp-img-wrap img {
    transform: scale(1.04);
}

.lfmp-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.25s ease;
    pointer-events: none;
}

.lfmp-item:hover .lfmp-overlay {
    background: rgba(0,0,0,0.07);
}

/* ── Título por baixo da imagem ── */
.lfmp-caption {
    padding: 10px 12px;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 500;
    color: #444;
    line-height: 1.4;
    text-align: left;
}

/* ── Lightbox ── */
.lfmp-lb {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,0.88);
    align-items: center;
    justify-content: center;
}

.lfmp-lb.lfmp-lb-open { display: flex; }

.lfmp-lb-inner {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lfmp-lb-inner img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    border: none;
}

.lfmp-lb-close {
    position: fixed;
    top: 18px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
    z-index: 100000;
    opacity: 0.7;
    transition: opacity 0.2s;
    padding: 0;
    font-family: inherit;
}

.lfmp-lb-close:hover { opacity: 1; }
