.psp-directory {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--psp-max, 1000px);
    margin: 0 auto;
    padding: 7px;
    background-color: var(--psp-bg, #fff);
    background-image: var(--psp-bg-image, none);
    background-position: var(--psp-bg-position, center center);
    background-size: var(--psp-bg-size, cover);
    background-repeat: var(--psp-bg-repeat, no-repeat);
    background-attachment: var(--psp-bg-attachment, scroll);
    font-family: var(--psp-font, inherit);
}
.psp-directory *, .psp-directory *::before, .psp-directory *::after { box-sizing: border-box; }
.psp-grid {
    display: grid;
    grid-template-columns: repeat(var(--psp-desktop, 4), minmax(0, 1fr));
    gap: var(--psp-gap, 6px);
    width: 100%;
    margin: 0 auto;
    position: relative;
    isolation: isolate;
}
.psp-center-last-two-desktop .psp-card:nth-last-child(2) { grid-column: 2; }
.psp-center-last-two-desktop .psp-card:last-child { grid-column: 3; }
.psp-card { position: relative; z-index: 1; }
.psp-card {
    min-width: 0; min-height: 225px; padding: 16px 10px 13px;
    border-radius: var(--psp-radius, 9px); background: var(--psp-card, #fff);
    color: var(--psp-text, #5b8490); display: flex; flex-direction: column;
    align-items: center; justify-content: flex-start; text-align: center;
    box-shadow: 0 1px 2px rgba(0,0,0,.13);
}
.psp-name, .psp-first, .psp-category { max-width: 100%; overflow-wrap: anywhere; }
.psp-name { font-size: var(--psp-name, 16px); line-height: 1.35; font-weight: 400; text-transform: uppercase; }
.psp-first { margin-top: 5px; font-size: var(--psp-first, 16px); line-height: 1.35; font-weight: 400; }
.psp-photo-wrap { width: var(--psp-photo, 116px); height: var(--psp-photo, 116px); max-width: 100%; margin: 8px auto 10px; flex: 0 0 auto; }
.psp-photo { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.psp-category { margin-top: 0; font-size: var(--psp-category, 15px); line-height: 1.5; font-weight: 400; }
.psp-empty-mask { position: absolute; z-index: 5; background: var(--psp-bg, #fff); pointer-events: none; }
.psp-empty-mask-left, .psp-empty-mask-right { top: 0; bottom: 0; }
@media (max-width: 900px) {
    .psp-center-last-two-desktop .psp-card { z-index: auto; }
    .psp-center-last-two-desktop .psp-card:nth-last-child(2), .psp-center-last-two-desktop .psp-card:last-child { grid-column: auto; }
    .psp-center-last-one-tablet .psp-card:last-child { grid-column: 1 / -1; width: calc((100% - var(--psp-gap, 6px)) / 2); justify-self: center; }
    .psp-grid { grid-template-columns: repeat(var(--psp-tablet, 2), minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .psp-center-last-one-tablet .psp-card:last-child, .psp-center-last-one-mobile .psp-card:last-child { grid-column: auto; width: auto; justify-self: stretch; }
    .psp-grid { grid-template-columns: repeat(var(--psp-mobile, 1), minmax(0, 1fr)); }
    .psp-card { min-height: 0; padding: 14px 8px; }
}
