/* Reset */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow: hidden; /* prevent scrolling */
  font-family: Arial, sans-serif;
}

/* Main wrapper */
main {
  position: relative;
  width: 100vw;
  height: 100vh;
}

/* PlayCanvas iframe */
iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Overlay covering whole screen */
.imgOverlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  z-index: 100;
}

/* Image container (modal box) */
.imgBox {
  position: relative;
  /* background: #ffffff;
  padding: 20px;
  border-radius: 10px; */

  /* RESPONSIVE LIMITS */
  width: auto;
  /* max-width: 85vw;
  max-height: 85vh; */

  display: flex;
  align-items: center;
  justify-content: center;

  /* box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35); */
}


/* Floorplan image */
#selectedImg {
  width: auto;
  height: auto;

  max-width: 100%;
  max-height: 100%;

  object-fit: contain;
  border-radius: 20px;
}


/* Close (X) button */
.closeBtn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.closeBtn:hover {
  background: #f2f2f2;
}

/* Utility */
.hidden {
  display: none;
}
@media (max-width: 768px) {
  .imgBox {
    max-width: 92vw;
    max-height: 75vh;
    padding: 12px;
  }
}
