/* ====== aw_popup.css ====== */

/* Popup kontejner – přesně na střed */
#aw_image_popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  box-sizing: border-box;
}

/* Obsah popupu */
#aw_popup_content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  max-width: 1200px;
  width: 100%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  animation: aw_popupFade 0.4s ease;
}

/* Obrázek */
#aw_popup_content img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

/* ====== Zavírací křížek (s pozadím pod bannerem) ====== */
#aw_popup_close {
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 30px;
  cursor: pointer;
  z-index: 20; /* nad bannerem */
  top: -15px;
  right: -15px;
}

/* Bílý kruh pod bannerem */
#aw_popup_close::before {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 1; /* pod bannerem */
}

/* Samotný křížek přesně uprostřed kruhu */
#aw_popup_close::after {
  content: "×";
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 22px;
  font-weight: bold;
  color: #c6a969;
  z-index: 2; /* nad bannerem */
  transition: color 0.2s;
  pointer-events: none; /* aby kliknutí šlo na celé tlačítko */
}

#aw_popup_close:hover::after {
  color: #c6a969;
}
/* Animace */
@keyframes aw_popupFade {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responzivita */
@media (max-width: 600px) {
  #aw_popup_content {
    max-width: 90%;
    border-radius: 10px;
  }

  #aw_popup_close::after {
    font-size: 18px;
  }
  #aw_popup_close::before,
  #aw_popup_close {
    width: 28px;
    height: 28px;
  }
}
