html, body {
  margin: 0;
  height: 100%;
  font-family: Times, serif;
}

.painting-wrap {
  position: relative;
  min-height: 100vh;
  background-image: url("winter-sunset.webp");
  background-size: cover;
  background-position: center;
}

.overlay {
  position: absolute;
  inset: 0; /* shorthand for top/left/right/bottom: 0 */
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none; /* allow clicks to pass through to guestbook */
}

.text {
  position: relative;
  z-index: 1;
  color: white;
  max-width: 600px;
  width: 100%;
  padding: 2.5rem 1rem;
  box-sizing: border-box;
}

.text h1 {
  margin: 0 0 1rem 0;
  font-size: 2.5rem;
  font-weight: 600;
}

.text p {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.9;
}

.corner-img {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 100px;
  height: auto;
  z-index: 2;
  transform: rotate(-8deg);
  transition: transform 0.25s ease;
}

.corner-img:hover {
  transform: rotate(-10deg) scale(1.10);
}

img {
  max-width: 100%;
  height: auto;
}

/* make overlay transparent to clicks */
.overlay {
  pointer-events: none;
}

/* center guestbook and float above everything */
#guestbook-container {
  position: absolute;          /* float over background */
  top: 50%;                    /* vertical center */
  left: 50%;                   /* horizontal center */
  transform: translate(-50%, -50%);
  z-index: 10;                 /* above overlay, text, corner image */
  width: 80%;
  max-width: 800px;
}

#guestbook-container iframe {
  width: 100%;
  height: 500px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  pointer-events: auto;        /* allow interaction */
}

/* responsive on mobile */
@media (max-width: 600px) {
  #guestbook-container iframe {
    height: 300px;
  }
}
