* {
  box-sizing: border-box;
}
/*
body {
  margin: 0;
  font-family: Arial, sans-serif;
}
*/
.viewer,
.viewer * {
  user-select: none;
  -webkit-user-drag: none;
}

.viewer {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  background: #000;
}

/* CONTROLS */

.controls {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}

.controls button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  font-size: 22px;
  background: rgba(255,255,255,.9);
  cursor: pointer;
  transition: opacity .2s;
}

.controls button:disabled {
  opacity: .4;
  cursor: default;
}

/* SCENE */

.scene {
  position: absolute;
  transform-origin: 0 0;
  cursor: grab;
}

.scene img {
  width: 100vw;
  display: block;
  pointer-events: none;
}

.scene img.marker-icon {
  width: 20px;
}

/* MARKERS */

.marker {
  position: absolute;
  transform: translate(-50%, -100%);
  text-align: center;
  cursor: pointer;
}

.marker svg {
  width: 20px;
  height: 20px;
  fill: #e53935;
}

.marker .label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 2px 4px rgba(0,0,0,.8);
}

/* MODAL */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 14px;
  width: 600px;
  max-width: 90%;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 26px;
  border: none;
  background: none;
  cursor: pointer;
}

.modal-layout {
  display: flex;
  gap: 20px;
}

.modal-image img {
  width: 200px;
  border-radius: 8px;
}

.modal-button {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 16px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
}


/* custom */

.modal-content {
  padding: 0;
}

.modal-text {
  padding: 18px 18px 18px 0;
}

#modalTitle {
  font-size: 20px;
}

#modalText {
  font-size: 14px;
  line-height: 1.1em;
}

.modal-image img {
  height: 200px;
  width: auto;
  max-width: inherit;
  border-radius: 0;
  vertical-align: middle;
}

.modal-button {
  padding: 5px 10px;
  background: rgba(62,96,123,1);
  font-size: 14px;
}

.modal-button:hover {
  background: black;
  color: #fff;
}