/* ── Grid ─────────────────────────────────────────── */
.pg-section {
    margin: 0;
}
.pg-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 14px;
}
.pg-label {
    font-family: Khand, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
}
.pg-count {
    font-size: .75rem;
    color: #666;
    letter-spacing: .04em;
}

.pg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
        "feat feat b"
        "feat feat c"
        "d    e    f";
    gap: 6px;
}

.pg-featured {
    grid-area: feat;
    aspect-ratio: unset; /* deixa o featured esticar para preencher */
}

/* os demais itens em ordem */
.pg-item:nth-child(2) { grid-area: b; }
.pg-item:nth-child(3) { grid-area: c; }
.pg-item:nth-child(4) { grid-area: d; }
.pg-item:nth-child(5) { grid-area: e; }
.pg-item:nth-child(6) { grid-area: f; } /* card +N */

.pg-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: #111;
    cursor: pointer;
    aspect-ratio: 16/9;
}
.pg-featured { aspect-ratio: 16/9; }

.pg-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s cubic-bezier(.25,.46,.45,.94),
                filter .4s ease;
    filter: brightness(.92);
}
.pg-item:hover img {
    transform: scale(1.06);
    filter: brightness(.6);
}

/* Overlay hover */
.pg-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s ease;
}
.pg-overlay svg {
    width: 28px;
    height: 28px;
    color: #fff;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.6));
}
.pg-item:hover .pg-overlay { opacity: 1; }

/* +N card */
.pg-more-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.72);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: background .3s;
}
.pg-more:hover .pg-more-overlay { background: rgba(0,0,0,.55); }
.pg-more-num {
    font-family: Khand, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
.pg-more-txt {
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.55);
}

/* ── Lightbox ─────────────────────────────────────── */
.pg-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.pg-lightbox.open { display: flex; }

.pgl-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.pgl-stage {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 88vw;
    animation: pgl-in .25s ease;
}
@keyframes pgl-in {
    from { opacity:0; transform: scale(.96); }
    to   { opacity:1; transform: scale(1); }
}

#pgl-img {
    max-width: 88vw;
    max-height: 72vh;
    border-radius: 6px;
    display: block;
    box-shadow: 0 24px 80px rgba(0,0,0,.8);
    transition: opacity .2s;
}
#pgl-img.loading { opacity: 0; }

.pgl-info {
    margin-top: 12px;
    display: flex;
    gap: 16px;
    align-items: center;
}
#pgl-counter {
    font-size: .75rem;
    letter-spacing: .1em;
    color: rgba(255,255,255,.4);
    font-family: Khand, sans-serif;
}

/* Nav */
.pgl-nav {
    position: absolute;
    z-index: 3;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: background .2s, border-color .2s;
}
.pgl-nav:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.3); }
.pgl-prev { left: 16px; }
.pgl-next { right: 16px; }
.pgl-nav svg { width: 18px; height: 18px; }

/* Close */
.pgl-close {
    position: absolute;
    top: 18px; right: 22px;
    z-index: 4;
    background: none;
    border: none;
    color: rgba(255,255,255,.5);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: color .2s;
    padding: 4px 8px;
}
.pgl-close:hover { color: #fff; }

/* Filmstrip */
.pgl-filmstrip {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 6px;
    margin-top: 14px;
    max-width: 88vw;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.pgl-filmstrip::-webkit-scrollbar { display: none; }
.pgl-thumb {
    flex-shrink: 0;
    width: 56px; height: 36px;
    border-radius: 3px;
    object-fit: cover;
    cursor: pointer;
    opacity: .4;
    border: 1.5px solid transparent;
    transition: opacity .2s, border-color .2s;
}
.pgl-thumb.active {
    opacity: 1;
    border-color: rgba(255,255,255,.7);
}
.pgl-thumb:hover { opacity: .8; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 480px) {
    .pg-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pg-featured {
        grid-column: 1 / 3;
    }
}