/* RWS Popup — samodzielny modal, bez Bootstrapa. */
.rws-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.rws-popup[hidden] {
  display: none;
}
.rws-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  cursor: pointer;
}
.rws-popup__dialog {
  position: relative;
  z-index: 1;
  max-width: 900px;
  width: 100%;
  animation: rws-popup-in .25s ease;
}
@keyframes rws-popup-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rws-popup__link,
.rws-popup__picture {
  display: block;
}
.rws-popup__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.rws-popup__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #011c23;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
  padding: 0;
}
.rws-popup__close:hover {
  background: #f1f1f1;
}
/* Mobile: pionowy baner węższy, krzyżyk w rogu obrazka. */
@media (max-width: 767px) {
  .rws-popup {
    padding: 16px;
  }
  .rws-popup__dialog {
    max-width: 420px;
  }
  .rws-popup__close {
    top: 6px;
    right: 6px;
    width: 34px;
    height: 34px;
  }
}
