/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Aug 19 2025 | 13:58:21 */
/* ==================== IMAGE POPUP - APF ==================== */
.wapf-popup {
  cursor: pointer;
  font-size: 18px;
  color: #007bff;
  transition: transform 0.2s;
  display: block;         /* block istället för inline-block för bättre kolumnlayout */
  width: 100%;            /* fyll ut kolumnens yta */
  height: auto;           /* behåll proportionerna */
  margin-left: 0;         /* ta bort tidigare margin så den centrerar bättre */
  position: relative;
  z-index: 2;
}

.wapf-popup img {
  display: block;
  width: 100%;            /* gör att bilden fyller kolumnen */
  height: auto;           /* behåll proportionerna */
  border-radius: 5px;
  object-fit: contain;    /* säkerställer att bilden inte klipps */
}

.wapf-image-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: none; /* ändras till flex med JS */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.wapf-image-popup img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.wapf-image-popup .close-popup {
  position: fixed;
  top: 15px;
  right: 15px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  user-select: none;
  z-index: 2147483648;
}

.wapf-hide-label label {
  display: none !important;
}

@media (max-width: 600px) {
  .wapf-image-popup img {
    max-width: 95%;
    max-height: 80%;
  }

  .wapf-image-popup .close-popup {
    top: 10px;
    right: 10px;
    font-size: 30px;
  }
}
