*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  overflow-x: hidden;
  background-image: url('../billeder/Fingeren_KP1__Kuglepen_på_Papir_|_A5_|_450DKK.JPG');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.image-container img {
  position: absolute;
  cursor: pointer;
  transition: transform 0.3s;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.image-container img:hover {
  transform: scale(1.1);
}

/* Popup styles */
.popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px; /* Tilføj evt. padding for mobil */
  box-sizing: border-box;
}

.popup-content {
  background: white;
  padding: 20px;
  text-align: center;
  animation: fadeIn 0.5s ease-in-out;
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
  position: relative;
  border-radius: 10px;
  box-sizing: border-box;
}

.popup img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

#popup-close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
}