/* Popup Banner Styling */
.popup-banner {
  display: none; /* Default hidden */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-content {
  background-color: #303030;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  width: auto;
  max-width: 600px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.popup-image {
  width: 100%; /* Gambar mengisi lebar kontainer */
  height: auto; /* Menjaga proporsi gambar */
  max-height: 600px; /* Membatasi tinggi gambar agar tidak terlalu besar */
  object-fit: contain; /* Menyesuaikan gambar agar tidak terdistorsi */
  margin-bottom: 0px;
}

.popup-button {
  background-color: #303030;
  color: #C99114;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1.2em;
  display: inline-block;
}

.popup-button:hover {
  background-color: #C99114;
  color: #303030;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 2em; /* Increased font size for mobile */
  color: #333;
  cursor: pointer;
  padding: 10px; /* Ensure clickable area is larger */
}

.close-button:hover {
  color: #C99114;
}

/* Media Query for Portrait Devices */
@media (orientation: portrait) {
  .popup-content {
    width: 90%; /* More space for content on portrait mode */
    max-width: 500px; /* Slightly reduced max-width */
  }

  .popup-image {
    max-height: 400px; /* Limit the height of the image for portrait orientation */
  }

  .popup-button {
    font-size: 1.1em; /* Slightly smaller button text */
    padding: 8px 18px; /* Adjust button padding */
  }

  .close-button {
    font-size: 2.5em; /* Larger close button in portrait */
    padding: 12px; /* Larger clickable area */
  }
}

/* Media Query for Mobile Devices */
@media (max-width: 768px) {
  .popup-content {
    padding: 15px; /* Ensure content fits well on small screens */
  }

  .popup-image {
    max-height: 100%; /* Limit the height further on mobile */
  }

  .close-button {
    font-size: 3em; /* Bigger close button on mobile */
    padding: 15px; /* Larger clickable area */
  }
}
