/* Fullscreen popup wrapper */
#entryPopup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Black transparent overlay */
  .popup-overlay {
    position: absolute;
    background: rgba(0, 0, 0, 0.5); /* 50% black */
    width: 100%;
    height: 100%;
  }
  
  /* Popup content box */
  .popup-content {
    position: relative;
    background: white;
    padding: 1rem;
    border-radius: 10px;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    z-index: 1;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
  }
  
  /* X Close Button */
  .popup-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: #000;
    z-index: 10;
    padding: 0;
    line-height: 1;
  }
  
  .popup-close:hover {
    color: red;
  }
  
  /* Wrapper to position button relative to image */
  .popup-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
  
  /* Image inside popup */
  .popup-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  /* Button positioned lower inside the image */
  .popup-image-wrapper .styrkja-button {
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: black;
    color: white;
    border-color: black;
    padding: 0.8rem 2rem;
    font-size: clamp(0.8rem, 3.5vw, 1.1rem); /* responsive text */
    white-space: nowrap;
    max-width: 100%;
    min-width: auto;
    box-sizing: border-box;
  }
  
  
  /* Inverted hover effect */
  .popup-image-wrapper .styrkja-button:hover {
    background-color: white;
    color: black;
  }
  
  /* Mobile adjustments */
  @media (max-width: 480px) {
    .popup-content {
      padding: 0.5rem;
      max-width: 85vw;
    }
  
    .popup-image-wrapper {
      max-width: 85vw;
    }
  
    .popup-close {
      top: 4px;
      right: 8px;
      font-size: 1.2rem;
    }
  
    /* Shrink the styrkja-button */
    .popup-image-wrapper .styrkja-button {
      font-size: 0.88rem; /* original was 1.1rem → reduced ~20% */
      padding: 0.6rem 1.6rem; /* slightly reduced */
    }
  }
  