/* GOOV-productieportretten — eigen klassen, algemene Mensen-kaarten blijven intact. */

.entry-content .goov-production-gallery {
    position: relative;
    width: min(1280px, calc(100vw - 48px));
    max-width: none;
    margin: 55px 0 45px 50%;
    padding: 0;
    transform: translateX(-50%);
    box-sizing: border-box;
    clear: both;
}

.goov-production-gallery h2 {
    font-family: inherit;
    font-size: clamp(29px, 3vw, 43px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    color: #063452;
    margin: 0 0 25px;
}

.goov-production-gallery .goov-pg-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 19px;
    align-items: start;
}

.goov-production-gallery figure.goov-pg-person {
    position: relative !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    aspect-ratio: 2 / 3;
    min-width: 0;
    border: 0;
    border-radius: 12px;
    overflow: visible;
    background: transparent;
    perspective: 1100px;
    isolation: isolate;
    box-shadow: none;
    transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}

.goov-production-gallery figure.goov-pg-person::before,
.goov-production-gallery figure.goov-pg-person::after {
    content: none !important;
    display: none !important;
}

.goov-production-gallery .goov-pg-inner {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transition: transform .75s cubic-bezier(.3, 1.4, .45, 1);
}

.goov-production-gallery .goov-pg-person.is-open .goov-pg-inner {
    transform: rotateY(180deg);
}

.goov-production-gallery .goov-pg-face {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #0b1720;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    isolation: isolate;
}

.goov-production-gallery .goov-pg-face::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        #0000 45%,
        #00000099 85%
    );
    pointer-events: none;
}

.goov-production-gallery .goov-pg-back {
    transform: rotateY(180deg);
}

.goov-production-gallery img.goov-pg-photo {
    position: absolute !important;
    display: block !important;
    inset: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center 25%;
    border: 0 !important;
    border-radius: 0 !important;
    transform: none !important;
    z-index: 0;
}

.goov-production-gallery .goov-pg-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #124563, #063452);
    color: #f5c033;
    font-size: 70px;
    font-weight: 800;
    z-index: 0;
}

.goov-production-gallery figcaption.goov-pg-caption {
    position: absolute !important;
    inset: auto 0 0 !important;
    padding: 28px 13px 23px !important;
    margin: 0 !important;
    z-index: 2;
    color: #fff !important;
    text-align: center !important;
    line-height: 1.35 !important;
    background: none !important;
    pointer-events: none;
}

.goov-production-gallery .goov-pg-small {
    display: block;
    color: #fff;
    font-size: clamp(11px, 1vw, 15px);
    font-weight: 500;
    line-height: 1.5;
    margin: 0 0 9px;
}

.goov-production-gallery .goov-pg-caption strong {
    display: block;
    color: #fff;
    font-size: clamp(17px, 1.6vw, 24px);
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: -.25px;
    word-break: normal;
    overflow-wrap: break-word;
    text-shadow: 0 2px 8px #0004;
}

.goov-production-gallery .goov-pg-back-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 18px 20px;
    color: #fff;
    z-index: 2;
    pointer-events: none;
}

.goov-production-gallery .goov-pg-back-label::before {
    content: "";
    display: block;
    width: 26px;
    height: 3px;
    background: #f5c033;
    margin-bottom: 8px;
}

.goov-production-gallery .goov-pg-back-name {
    display: block;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.2px;
    overflow-wrap: break-word;
}

.goov-production-gallery button.goov-pg-flip {
    position: absolute !important;
    display: block !important;
    inset: 0 !important;
    z-index: 3 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    color: #fff !important;
    box-shadow: none !important;
    transform: none !important;
    cursor: pointer !important;
}

.goov-production-gallery button.goov-pg-flip > span,
.goov-production-gallery button.goov-pg-flip::before,
.goov-production-gallery button.goov-pg-flip::after {
    display: none !important;
}

.goov-production-gallery button.goov-pg-flip:focus-visible {
    outline: 3px solid #f5c033 !important;
    outline-offset: 4px !important;
}

@media (hover: hover) and (pointer: fine) {
    .goov-production-gallery figure.goov-pg-person:hover {
        transform: translateY(-5px);
    }

    .goov-production-gallery .goov-pg-person:hover .goov-pg-face {
        box-shadow: 0 16px 26px #06345233;
    }
}

@media (max-width: 1100px) {
    .goov-production-gallery .goov-pg-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 17px;
    }

    .goov-production-gallery .goov-pg-caption strong {
        font-size: 23px;
    }

    .goov-production-gallery .goov-pg-small {
        font-size: 13px;
    }
}

@media (max-width: 800px) {
    .goov-production-gallery .goov-pg-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 15px;
    }

    .goov-production-gallery .goov-pg-caption strong {
        font-size: 22px;
    }
}

@media (max-width: 600px) {
    .entry-content .goov-production-gallery {
        width: calc(100vw - 40px);
        margin-top: 40px;
        margin-bottom: 35px;
    }

    .goov-production-gallery .goov-pg-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px;
    }

    .goov-production-gallery h2 {
        font-size: 31px;
        margin-bottom: 20px;
    }

    .goov-production-gallery figcaption.goov-pg-caption {
        padding: 22px 10px 18px !important;
    }

    .goov-production-gallery .goov-pg-caption strong {
        font-size: 20px;
    }

    .goov-production-gallery .goov-pg-small {
        font-size: 12px;
        margin-bottom: 7px;
    }

    .goov-production-gallery .goov-pg-back-label {
        padding: 12px 13px 14px;
    }
}

@media (max-width: 350px) {
    .goov-production-gallery .goov-pg-caption strong {
        font-size: 17px;
    }

    .goov-production-gallery .goov-pg-small {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .goov-production-gallery figure.goov-pg-person,
    .goov-production-gallery .goov-pg-inner {
        transition: none !important;
    }

    .goov-production-gallery figure.goov-pg-person:hover {
        transform: none;
    }

    .goov-production-gallery .goov-pg-person.is-open .goov-pg-inner {
        transform: none;
    }

    .goov-production-gallery .goov-pg-back {
        transform: none;
        opacity: 0;
    }

    .goov-production-gallery .goov-pg-person.is-open .goov-pg-front {
        visibility: hidden;
    }

    .goov-production-gallery .goov-pg-person.is-open .goov-pg-back {
        opacity: 1;
    }
}