/* ==============================
   BOLLAROID – POLAROID LIGHTBOX
   ============================== */
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');

/* Hintergrund-Overlay */
.polaroid-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
}

/* Polaroid-Rahmen */
.polaroid-photo {
  background: #fff;
  padding: 20px 20px 60px;
  border: 2px solid #eee;
  box-shadow: 0 5px 20px rgba(0,0,0,0.4);
  max-width: 85vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(-1deg);
  transition: transform 0.25s ease;
  overflow: visible;
}
.polaroid-photo:hover { transform: rotate(0deg); }

/* Das Bild */
.polaroid-photo img {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(85vw - 40px);
  max-height: calc(80vh - 80px);
  object-fit: contain;
}

/* Beschriftung */
.polaroid-caption {
  font-family: 'Pacifico', cursive;
  font-size: 1.1em;
  color: #333;
  margin-top: 8px;
  text-align: center;
}

/* Aktiviert */
.polaroid-overlay.active { display: flex; }

/* Hintergrund unscharf */
body.polaroid-blur main,
body.polaroid-blur .site-content { filter: blur(5px); pointer-events: none; }
