.pustkowie-animal-card {cursor:pointer}
.pustkowie-animal-card:focus-visible {outline:3px solid #76684e;outline-offset:5px}
.pustkowie-animal-dialog {
  position:fixed; margin:auto; width:min(92vw,820px); max-height:min(90dvh,900px);
  padding:0; border:0; border-radius:12px; color:#292924; background:#fff;
  box-shadow:0 18px 65px #0005;
}
.pustkowie-animal-dialog::backdrop {background:rgba(10,18,12,.7)}
.pustkowie-animal-inner {padding:clamp(22px,4vw,44px);overflow-wrap:anywhere}
.pustkowie-animal-close {
  position:sticky;top:12px;float:right;z-index:1;margin:12px 12px 0 0;
  width:40px;height:40px;background:#fff;border:1px solid #ddd;border-radius:50%;
  color:#222;font-size:30px;line-height:1;cursor:pointer;
}
.pustkowie-animal-close:focus-visible {outline:3px solid #76684e;outline-offset:2px}
.pustkowie-animal-image {display:block;width:100%;height:auto;max-height:430px;object-fit:cover;border-radius:8px;margin:0 0 24px}
.pustkowie-animal-image[hidden],.pustkowie-animal-status[hidden] {display:none}
#pustkowie-animal-title {font-size:clamp(26px,3vw,36px);margin:0 0 16px}
.pustkowie-animal-body {line-height:1.75}
.pustkowie-animal-body img {max-width:100%;height:auto}
@media(max-width:600px){.pustkowie-animal-dialog{width:100vw;max-width:100vw;max-height:95dvh;margin:auto 0 0;border-radius:14px 14px 0 0}.pustkowie-animal-inner{padding:22px}}
@media(prefers-reduced-motion:reduce){.pustkowie-animal-card *{transition:none!important}}

/* Keep grid thumbnails uniform even when species photographs differ in ratio. */
.gdlr-core-personnel-item-holder:has(.pustkowie-animal-id) .pustkowie-animal-card .gdlr-core-personnel-list-image img {
  width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover;
}
.pustkowie-animal-nav {display:flex;justify-content:space-between;gap:12px;margin-top:30px;padding-top:18px;border-top:1px solid #e6e1d8}
.pustkowie-animal-nav[hidden]{display:none}
.pustkowie-animal-nav button{border:1px solid #92856b;background:#fff;color:#292924;border-radius:5px;padding:9px 14px;cursor:pointer}
.pustkowie-animal-nav button:disabled{opacity:.35;cursor:default}
.pustkowie-animal-nav button:focus-visible{outline:3px solid #76684e;outline-offset:2px}
@media(max-width:600px){.pustkowie-animal-nav button{padding:9px 10px;font-size:13px}}

/* Odstęp między zdjęciem a nazwą zwierzęcia */
.gdlr-core-personnel-list:has(.pustkowie-animal-id)
.gdlr-core-personnel-list-content-wrap {
    padding-top: 12px !important;
}

/* Stały gradient pod podpisami zwierząt */
.pustkowie-animal-card .gdlr-core-hover-opacity {
    opacity: 1 !important;
    background: linear-gradient(
        to bottom,
        transparent 35%,
        rgba(0, 0, 0, 0.10) 60%,
        rgba(0, 0, 0, 0.65) 100%
    ) !important;
}
