/* Match the Workshops page typography, buttons and card spacing. */
.ws-page #private-workshops {
    background: #fff;
    border-top: 1px solid #e4ebe7;
}

.ws-page #private-workshops h2 {
    color: #07262e;
    font-size: clamp(32px, 4vw, 48px);
}

.ws-page #private-workshops p:not(.ws-kicker):not(.small) {
    color: #52635f;
    font-size: 17px;
    line-height: 1.85;
}

.ws-page #private-workshops .pw-contact {
    padding-left: 24px;
    border-left: 1px solid #dce5df;
}

.ws-page #private-workshops .pw-gallery {
    gap: 24px;
    margin-top: 32px;
}

.ws-page #private-workshops .pw-photo {
    border-radius: 14px;
}

@media (max-width: 991px) {
    .ws-page #private-workshops .pw-contact {
        padding-left: 0;
        border-left: 0;
    }
}

@media (max-width: 575px) {
    .ws-page #private-workshops .pw-gallery {
        gap: 16px;
        margin-top: 24px;
    }

    .ws-page #private-workshops .pw-photo img {
        aspect-ratio: 3 / 2;
    }
}

/* Scoped to the private workshop gallery; source photos remain unchanged. */
#private-workshops .pw-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px
}

#private-workshops .pw-photo {
    position: relative;
    margin: 0;
    min-width: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #e9ece7;
    isolation: isolate
}

#private-workshops .pw-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3/2;
    object-fit: cover;
    object-position: center 58%;
    filter: brightness(1.03) saturate(.8) contrast(.95)
}

#private-workshops .pw-lift img {
    filter: brightness(1.13) saturate(.78) contrast(.91)
}

#private-workshops .pw-warm img {
    filter: brightness(1.02) saturate(.65) contrast(.94)
}

#private-workshops .pw-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(transparent 55%, rgba(13, 35, 28, .4))
}

#private-workshops figcaption {
    position: absolute;
    inset: auto 12px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 1
}

#private-workshops figcaption span {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    padding: 6px 10px;
    border-radius: 20px
}

#private-workshops .pw-event-tag {
    background: #fff;
    color: #173e34
}

#private-workshops .pw-diy-tag {
    background: #173e34;
    color: #fff
}

@media(max-width:991px) {
    #private-workshops .pw-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media(max-width:575px) {
    #private-workshops .pw-gallery {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px
    }

    #private-workshops .pw-photo img {
        aspect-ratio: 4/5
    }

    #private-workshops figcaption {
        inset: auto 8px 8px;
        gap: 4px
    }

    #private-workshops figcaption span {
        font-size: 12px;
        padding: 4px 7px
    }
}
