/* Időszakos popup: a régi snippet inline stílusai szerint (75%-os sötét háttér,
   legfeljebb 900 px / 88vw széles, 82vh magas kép, kerek fehér bezárógomb). */

dialog.popup {
  max-width: none;
  max-height: none;
  padding: 20px;
  border: 0;
  background: none;
  overflow: visible;
}
dialog.popup::backdrop {
  background: rgba(0, 0, 0, 0.75);
}

.popup-doboz {
  position: relative;
}

.popup-doboz img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(900px, 88vw);
  max-height: 82vh;
  border-radius: 8px;
}

.popup-bezar {
  position: absolute;
  top: -14px;
  right: -14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
/* láthatatlan, 44 px-es érintési felület */
.popup-bezar::before {
  content: '';
  position: absolute;
  inset: -4px;
}
