.ppsg-front-gallery {
    max-width: 1180px;
    margin: 72px auto 20px;
    padding: 0 20px;
}

.ppsg-front-head {
    max-width: 760px;
    margin-bottom: 24px;
}

.ppsg-kicker {
    display: block;
    margin-bottom: 9px;
    color: #b27318;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
}

.ppsg-front-head h2 {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.08;
    color: #26170f;
}

.ppsg-front-head p {
    margin: 0;
    color: #6b5a4f;
    font-size: 16px;
    line-height: 1.6;
}

.ppsg-front-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.ppsg-front-item {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 6px;
    background: #eee7df;
    border: 1px solid #eadfd3;
}

.ppsg-front-item[hidden] {
    display: none !important;
}

.ppsg-front-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .22s ease;
}

.ppsg-front-item:hover img {
    transform: scale(1.025);
}

.ppsg-more-wrap {
    text-align: center;
    margin-top: 22px;
}

.ppsg-more {
    border: 1px solid #2a190f;
    background: transparent;
    color: #2a190f;
    padding: 12px 24px;
    border-radius: 3px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.ppsg-more:hover {
    background: #2a190f;
    color: #fff;
}

.ppsg-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(18, 10, 6, .94);
    padding: 54px 70px;
}

.ppsg-lightbox.is-open {
    display: flex;
}

.ppsg-lightbox img {
    display: block;
    max-width: min(1500px, 94vw);
    max-height: 88vh;
    object-fit: contain;
    box-shadow: 0 15px 55px rgba(0,0,0,.35);
}

.ppsg-lightbox button {
    position: absolute;
    border: 0;
    background: rgba(255,255,255,.11);
    color: #fff;
    cursor: pointer;
}

.ppsg-lightbox-close {
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 30px;
}

.ppsg-lightbox-prev,
.ppsg-lightbox-next {
    top: 50%;
    width: 48px;
    height: 64px;
    margin-top: -32px;
    border-radius: 5px;
    font-size: 42px;
}

.ppsg-lightbox-prev {
    left: 18px;
}

.ppsg-lightbox-next {
    right: 18px;
}

html.ppsg-lock {
    overflow: hidden;
}

@media (max-width: 900px) {
    .ppsg-front-grid {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }
}

@media (max-width: 650px) {
    .ppsg-front-gallery {
        margin-top: 48px;
        padding: 0 14px;
    }

    .ppsg-front-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 8px;
    }

    .ppsg-lightbox {
        padding: 55px 12px;
    }

    .ppsg-lightbox-prev,
    .ppsg-lightbox-next {
        width: 40px;
        height: 54px;
        font-size: 34px;
    }

    .ppsg-lightbox-prev {
        left: 6px;
    }

    .ppsg-lightbox-next {
        right: 6px;
    }
}
