a[data-wosp-lightbox] { cursor: zoom-in; }
a[data-wosp-lightbox][aria-busy="true"] { cursor: progress; }
a[data-wosp-lightbox]:focus-visible { outline: 3px solid #e5212d; outline-offset: 5px; }

.pswp.wosp-lightbox {
  --pswp-bg: #24121c;
  --pswp-placeholder-bg: #fff7f0;
  --pswp-icon-color: #fff7f0;
  --pswp-icon-color-secondary: #24121c;
  --pswp-icon-stroke-color: transparent;
  --pswp-icon-stroke-width: 0;
  --pswp-preloader-color: #64313e;
  --pswp-preloader-color-secondary: #ffc93c;
  --pswp-error-text-color: #fff7f0;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.wosp-lightbox .pswp__top-bar {
  height: 88px;
  padding: 18px 24px;
  gap: 10px;
  align-items: center;
}
.wosp-lightbox .pswp__wosp-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-right: auto;
  color: #fff7f0;
}
.wosp-lightbox__heart {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #e5212d;
  color: #fff7f0;
  font-size: 30px;
  line-height: 1;
  transform: rotate(-6deg);
  box-shadow: 3px 3px 0 #ffc93c;
}
.wosp-lightbox__title-copy { display: grid; gap: 3px; min-width: 0; }
.wosp-lightbox__eyebrow {
  color: #ffc93c;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.3;
  text-transform: uppercase;
}
.wosp-lightbox__title-copy strong {
  overflow: hidden;
  font-family: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  font-size: 19px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wosp-lightbox .pswp__counter {
  flex: none;
  height: auto;
  margin: 0 8px 0 0;
  color: #fff7f0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-shadow: none;
  opacity: .8;
}
.wosp-lightbox .pswp__preloader {
  position: absolute;
  top: 78px;
  left: calc(50% - 25px);
  width: 50px;
  height: 50px;
  margin: 0;
  pointer-events: none;
}
.wosp-lightbox .pswp__button,
.wosp-lightbox .pswp__button:focus {
  flex: none;
  width: 48px;
  height: 48px;
  margin: 0;
  border: 1px solid #754957;
  border-radius: 50%;
  background: #402330;
  opacity: 1;
  transition: background .15s ease, border-color .15s ease;
}
.wosp-lightbox .pswp__button:hover,
.wosp-lightbox .pswp__button:active {
  border: 1px solid #ffc93c;
  background: #613141;
}
.wosp-lightbox .pswp__button:focus-visible {
  outline: 3px solid #ffc93c;
  outline-offset: 4px;
}
.wosp-lightbox .pswp__button .pswp__icn { top: 7px; left: 7px; }
.wosp-lightbox .pswp__button--close,
.wosp-lightbox .pswp__button--close:focus {
  width: 128px;
  border-color: #e5212d;
  border-radius: 999px;
  background: #e5212d;
}
.wosp-lightbox .pswp__button--close::after {
  content: "Zamknij";
  padding-left: 29px;
  color: #fff7f0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
}
.wosp-lightbox .pswp__button--close:hover,
.wosp-lightbox .pswp__button--close:active { background: #b91925; }
.pswp.wosp-lightbox .pswp__button--arrow {
  margin-top: -24px;
  visibility: visible;
  box-shadow: 0 8px 30px #0003;
}
.wosp-lightbox .pswp__button--arrow--prev { left: 20px; }
.wosp-lightbox .pswp__button--arrow--next { right: 20px; }
.wosp-lightbox .pswp__button--arrow .pswp__icn {
  top: 7px;
  left: 7px;
  right: auto;
  width: 32px;
  height: 32px;
  margin-top: 0;
}
.wosp-lightbox .pswp__button--arrow:disabled { opacity: .3; }
.wosp-lightbox .pswp__img {
  border-radius: 10px;
  box-shadow: 0 0 0 7px #fff7f0, 0 20px 65px #0005;
}
.pswp.wosp-lightbox .pswp__wosp-footer {
  position: absolute;
  bottom: max(22px, env(safe-area-inset-bottom));
  left: 50%;
  width: min(760px, calc(100% - 48px));
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}
.wosp-lightbox__caption {
  display: -webkit-box;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 12px 22px;
  overflow: hidden;
  border: 1px solid #fff;
  border-radius: 18px;
  background: #fff7f0;
  box-shadow: 0 8px 28px #0002;
  color: #24121c;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.wosp-lightbox__hint {
  margin-top: 12px;
  color: #e6cbd7;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .01em;
}
.wosp-lightbox__touch-hint { display: none; }
.wosp-lightbox .pswp__error-msg { max-width: 28rem; padding: 24px; text-align: center; line-height: 1.6; }

@media (pointer: coarse) {
  .wosp-lightbox__mouse-hint { display: none; }
  .wosp-lightbox__touch-hint { display: inline; }
}
@media (max-width: 699px) {
  .wosp-lightbox .pswp__top-bar { height: 76px; padding: 12px 14px; gap: 8px; }
  .wosp-lightbox .pswp__wosp-title { gap: 9px; }
  .wosp-lightbox__heart { flex-basis: 34px; width: 34px; height: 36px; border-radius: 11px; font-size: 25px; }
  .wosp-lightbox__eyebrow { font-size: 8px; letter-spacing: .04em; }
  .wosp-lightbox__title-copy strong { font-size: 14px; }
  .wosp-lightbox .pswp__counter { position: absolute; top: calc(100vh - 156px); top: calc(100dvh - 156px); left: 50%; margin: 0; transform: translateX(-50%); line-height: 44px; }
  .wosp-lightbox .pswp__button,
  .wosp-lightbox .pswp__button:focus { width: 44px; height: 44px; }
  .wosp-lightbox .pswp__button .pswp__icn { top: 5px; left: 5px; }
  .wosp-lightbox .pswp__button--close::after { content: none; }
  .pswp.wosp-lightbox .pswp__button--arrow { top: auto; bottom: 112px; margin: 0; }
  .wosp-lightbox .pswp__button--arrow--prev { left: calc(50% - 88px); }
  .wosp-lightbox .pswp__button--arrow--next { right: calc(50% - 88px); }
  .wosp-lightbox .pswp__img { border-radius: 7px; box-shadow: 0 0 0 5px #fff7f0, 0 16px 40px #0005; }
  .pswp.wosp-lightbox .pswp__wosp-footer { bottom: max(14px, env(safe-area-inset-bottom)); width: calc(100% - 32px); }
  .wosp-lightbox__caption { padding: 9px 14px; border-radius: 14px; font-size: 12px; -webkit-line-clamp: 2; }
  .wosp-lightbox__hint { margin-top: 9px; font-size: 10px; }
  .wosp-lightbox .pswp__preloader { top: 64px; }
}
@media (max-width: 359px) {
  .wosp-lightbox__heart { display: none; }
  .wosp-lightbox__eyebrow { font-size: 8px; }
}
@media (max-height: 499px) and (orientation: landscape) {
  .wosp-lightbox .pswp__top-bar { height: 62px; padding-top: 8px; padding-bottom: 8px; }
  .pswp.wosp-lightbox .pswp__wosp-footer { bottom: 12px; }
  .wosp-lightbox__caption { padding: 8px 14px; font-size: 12px; -webkit-line-clamp: 1; }
  .wosp-lightbox__hint { display: none; }
  .pswp.wosp-lightbox .pswp__button--arrow { top: 50%; bottom: auto; margin-top: -22px; }
  .wosp-lightbox .pswp__button--arrow--prev { left: 12px; }
  .wosp-lightbox .pswp__button--arrow--next { right: 12px; }
  .wosp-lightbox .pswp__counter { position: static; transform: none; margin-right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .wosp-lightbox .pswp__button,
  .wosp-lightbox .pswp__hide-on-close { transition: none; }
  .wosp-lightbox .pswp__preloader .pswp__icn { animation: none; }
}
