/* === Image Pop-up custom - CLEAN VERSION === */
.competition-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  background-color: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 20px;
}

.competition-popup-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.competition-popup-content {
  position: relative;
  width: auto;
  max-width: 550px;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.95);
  transition: transform 0.4s ease;
  padding: 0;
}

.competition-popup-overlay.is-visible .competition-popup-content {
  transform: scale(1);
}

.competition-popup-content a.popup-main-link {
  display: block;
  line-height: 0;
  width: 100%;
  text-align: center;
}

.competition-popup-content img {
  display: block;
  max-width: 100%;
  max-height: calc(90vh - 80px);
  width: auto;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Close btn */
.popup-close-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  background-color: #000;
  border: 2px solid #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 101;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.popup-close-btn svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
}

.popup-footer {
  text-align: center;
  margin-top: 15px;
  width: 100%;
}

.popup-footer .popup-secondary-link {
  display: inline-block;
  background-color: #111;
  color: #fff !important;
  padding: 10px 25px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  border: 2px solid var(--primary-pink);
  transition: all 0.2s ease;
}

.popup-footer .popup-secondary-link:hover {
  background-color: var(--primary-pink);
  color: #fff !important;
}

@media (max-width: 600px) {
  .popup-close-btn {
    top: 10px;
    right: 10px;
  }
}
