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

:root {
  --bg: #1a1a1e;
  --surface: #242428;
  --surface-raised: #2e2e33;
  --border: #3a3a40;
  --text: #e8e8ec;
  --text-muted: #8e8e96;
  --accent: #5a7fff;
  --accent-hover: #7094ff;
  --handle-edit: #b53d3b;
  --handle-drag: #5a7fff;
  --handle-resize: #e0a832;
  --mobdal-bg: #0e4f56;
  --modal-img-bg: #006b6b;
  --overlay-bg: rgba(0, 0, 0, 0.7);
  --radius: 6px;
  --default-font: "DM Sans", system-ui, sans-serif;
}

html, body {
  height: 100%;
  font-family: var(--default-font), serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

body.audience-user .toolbar {
  display: none;
}

.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  flex-shrink: 0;
  position: absolute;
  width: 100%;
  bottom: 0;
}

.toolbar-title {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-right: 8px;
  white-space: nowrap;
}

.toolbar-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
  flex-shrink: 0;
}

.add-object-wrap {
  position: relative;
}

.add-btn, .toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font: 500 13px var(--font);
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.add-btn:hover {
  background: var(--accent-hover);
}

.add-btn svg {
  width: 14px;
  height: 14px;
}

.dropdown {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  min-width: 260px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  z-index: 200;
}

.dropdown.open {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.12s;
  font-size: 13px;
}
.dropdown-item img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--border);
}

.dropdown-item:hover {
  background: rgba(90, 127, 255, 0.12);
}

.dropdown-empty {
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.coord-display {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.bg-upload-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bg-upload-wrap label {
  padding: 7px 14px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: 500 13px var(--font);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.bg-upload-wrap label:hover {
  background: var(--border);
}
.bg-upload-wrap input {
  display: none;
}

.bg-label-text {
  font-size: 12px;
  color: var(--text-muted);
}

#osd-viewer {
  flex: 1;
  background: #111113;
  position: relative;
}

.zoom-controls {
  position: absolute;
  top: calc(4vw - 22px);
  right: 40px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  z-index: 50;
}

.zoom-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  transition: background 0.15s;
  user-select: none;
  background-size: 59%;
  background-repeat: no-repeat;
  background-position: 51% 45%;
}

#zoomIn, #modalZoomIn {
  background-image: url(../img/icon-plus.svg);
}

#zoomOut, #modalZoomOut {
  background-image: url(../img/icon-minus.svg);
}

#zoomHome {
  background-image: url(../img/icon-home-1.svg);
}

.search-wrap {
  border: 1px solid var(--border);
  padding-right: 10px;
  border-radius: 500px;
  margin-right: 5vw;
  font-size: 15px;
  display: flex;
  align-items: center;
}
.search-wrap input {
  height: 44px;
  background: transparent;
  border: 0;
  padding: 20px 5px 20px 20px;
  font-family: var(--default-font);
  color: var(--text);
  font-size: 15px;
}
.search-wrap input:focus {
  color: var(--text);
}
.search-wrap input:focus-visible {
  outline: 0;
}
.search-wrap .search-clear {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-size: 16px;
  padding: 4px 8px;
  cursor: pointer;
  line-height: 1;
  visibility: hidden;
}
.search-wrap .search-clear.visible {
  visibility: visible;
}
.search-wrap #objectSearchBtn {
  font-size: 15px;
  height: auto;
  border: 0;
  border-radius: 500px;
  color: var(--text);
  padding: 5px 15px;
  background-color: var(--modal-img-bg);
  font-family: var(--default-font);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
}
.search-wrap #objectSearchBtn svg {
  width: 18px;
  fill: white;
}

.wall-object {
  position: absolute;
  cursor: default;
  transition: outline-color 0.15s;
  z-index: 1;
  height: auto !important;
  aspect-ratio: var(--obj-ratio, 1);
}
.wall-object img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-filter: drop-shadow(5px 5px 5px #222);
  filter: drop-shadow(5px 5px 5px #222);
}

/**

.wall-object:hover {
  outline-color:var(--accent);
}
.wall-object.dragging {
  outline-color:var(--handle-drag)!important;
  opacity:0.85;
}
.wall-object.selected {
  outline-color:var(--accent);
}

**/
.wall-reload-btn {
  background: transparent;
  border: 0;
  width: 100%;
  height: 100%;
}

.handle-edit, .handle-drag, .handle-resize {
  display: flex;
  justify-content: center;
  align-items: center;
}

.handle-edit {
  position: absolute;
  bottom: -6px;
  right: 56px;
  width: 22px;
  height: 22px;
  background: var(--handle-edit);
  border: 2px solid #fff;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 2;
  touch-action: none;
  cursor: pointer;
}

.wall-object:hover .handle-edit, .wall-object.selected .handle-edit, .wall-object.dragging .handle-edit {
  opacity: 1;
}
.wall-object:hover .handle-drag, .wall-object.selected .handle-drag, .wall-object.dragging .handle-drag {
  opacity: 1;
}

.handle-drag {
  position: absolute;
  bottom: -6px;
  right: 24px;
  width: 22px;
  height: 22px;
  background: var(--handle-drag);
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: grab;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 2;
  touch-action: none;
}

.handle-drag:active {
  cursor: grabbing;
}

.handle-resize {
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  background: var(--handle-resize);
  border: 2px solid #fff;
  border-radius: 2px;
  cursor: nwse-resize;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 2;
  touch-action: none;
}

.wall-object:hover .handle-resize, .wall-object.selected .handle-resize {
  opacity: 1;
}

.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--overlay-bg);
  z-index: 500;
  align-items: center;
  justify-content: center;
}

.sidebar-background {
  position: absolute;
  width: 100vw;
  height: 8vw;
  top: 0;
  background: #212121;
  z-index: 2;
}

.modal-backdrop.open {
  display: flex;
  width: 100vw;
  height: 100vh;
}

.modal {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--mobdal-bg);
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  padding: 50px;
}
@media screen and (max-width: 768px) {
  .modal {
    padding: 10px;
  }
}
.modal .modal-header {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.modal .modal-header .modal-close {
  width: 80px;
  height: 80px;
  display: flex;
  fill: var(--text);
  cursor: pointer;
  transition: background 0.15s;
}
.modal .modal-header .modal-close:hover {
  fill: var(--text-muted);
}
.modal .modal-body {
  display: flex;
  flex-direction: row;
  flex-grow: 1;
  gap: 50px;
  max-height: 100%;
  max-width: 100%;
  padding: 20px;
  min-height: 0;
}
@media screen and (max-width: 768px) {
  .modal .modal-body {
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
  }
}
.modal .modal-body .modal-object-gallery {
  display: flex;
  flex-direction: column;
  flex: 1;
  background: var(--modal-img-bg);
  overflow: hidden;
  min-height: 0;
  position: relative;
}
@media screen and (max-width: 768px) {
  .modal .modal-body .modal-object-gallery {
    flex: 0 0 300px;
    height: 300px;
  }
}
.modal .modal-body .modal-object-gallery #modalSwiper {
  width: 100%;
  flex: 1;
  min-height: 0;
}
.modal .modal-body .modal-object-gallery #modalSwiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 50px 20px;
}
.modal .modal-body .modal-object-gallery #modalSwiper .swiper-slide .swiper-zoom-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}
.modal .modal-body .modal-object-gallery #modalSwiper .swiper-zoom-controls {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 999;
  display: flex;
  flex-direction: row;
  gap: 8px;
}
.modal .modal-body .modal-object-gallery #modalSwiper .swiper-zoom-controls button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(0, 107, 107, 0.431372549);
  backdrop-filter: blur(3px);
  color: white;
  border: 1px solid var(--text);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
  line-height: 1;
  padding: 0;
  background-size: 59%;
  background-repeat: no-repeat;
  background-position: 51% 45%;
}
@media (max-width: 768px) {
  .modal .modal-body .modal-object-gallery #modalSwiper .swiper-zoom-controls {
    top: 5px;
    right: 5px;
  }
  .modal .modal-body .modal-object-gallery #modalSwiper .swiper-zoom-controls button {
    width: 35px;
    height: 35px;
    font-size: 20px;
  }
}
.modal .modal-body .modal-object-gallery #modalSwiper .swiper-button-prev, .modal .modal-body .modal-object-gallery #modalSwiper .swiper-button-next {
  color: var(--text);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--text);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.15s;
  background: rgba(0, 107, 107, 0.431372549);
  backdrop-filter: blur(3px);
  z-index: 10;
}
.modal .modal-body .modal-object-gallery #modalSwiper .swiper-button-prev {
  padding: 12px 15px 12px 12px;
  left: 15px;
}
.modal .modal-body .modal-object-gallery #modalSwiper .swiper-button-next {
  padding: 12px 12px 12px 15px;
  right: 15px;
}
.modal .modal-body .modal-object-gallery #modalSwiper .swiper-pagination {
  top: 0;
  bottom: auto;
  left: auto;
  right: 20px;
  width: auto;
  font-size: 22px;
  color: var(--modal-img-bg);
  padding: 10px;
  background-color: var(--text);
  font-variant-numeric: tabular-nums;
}
.modal .modal-body .modal-object-gallery #modalSwiper .swiper-pagination-bullet.swiper-pagination-bullet-active {
  background: var(--text);
}
.modal .modal-body .modal-object-gallery #modalSwiperThumbs {
  width: 100%;
  flex: 0 0 80px;
  padding: 8px;
  background: var(--modal-img-bg);
}
.modal .modal-body .modal-object-gallery #modalSwiperThumbs .swiper-slide {
  width: 64px !important;
  height: 64px;
  opacity: 0.5;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.7098039216);
  transition: opacity 0.2s, border-color 0.2s;
}
.modal .modal-body .modal-object-gallery #modalSwiperThumbs .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}
.modal .modal-body .modal-object-gallery #modalSwiperThumbs .swiper-slide.swiper-slide-thumb-active {
  opacity: 1;
  border-color: var(--text);
}
.modal .modal-body .modal-object-gallery .modal-img {
  max-width: calc(100% - 140px);
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.modal .modal-body .modal-object-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 20px;
  overflow-y: auto;
}
.modal .modal-body .modal-object-info .modal-object-title {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.modal .modal-body .modal-object-info #modalObjectNr {
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 50%;
  color: var(--mobdal-bg);
  font-weight: 600;
  aspect-ratio: 1/1;
  margin-top: 2px;
}
.modal .modal-body .modal-object-info h2 {
  font-size: 35px;
  font-weight: 600;
  margin-bottom: 6px;
}
.modal .modal-body .modal-object-info .modal-meta-wrap {
  background-color: var(--modal-img-bg);
  padding: 15px 15px 5px 15px;
}
.modal .modal-body .modal-object-info .modal-meta-wrap .modal-meta {
  border-collapse: collapse;
  font-size: 16px;
  color: var(--text);
  width: 100%;
  text-align: center;
}
.modal .modal-body .modal-object-info .modal-meta-wrap .modal-meta tr:has(td[colspan]) th {
  font-weight: 600;
  padding: 0 20px 10px 0;
  white-space: nowrap;
}
.modal .modal-body .modal-object-info .modal-meta-wrap .modal-meta tr:has(td[colspan]) td {
  padding: 0 0 10px 0;
}
.modal .modal-body .modal-object-info .modal-meta-wrap .modal-meta .meta-label-row th {
  font-size: 0.75em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6facb3;
  padding: 12px 10px 4px 0;
  white-space: nowrap;
  width: 33%;
}
.modal .modal-body .modal-object-info .modal-meta-wrap .modal-meta .meta-label-row:first-of-type th {
  padding-top: 0;
}
.modal .modal-body .modal-object-info .modal-meta-wrap .modal-meta .meta-value-row td {
  padding: 0 10px 8px 0;
  vertical-align: top;
  width: 33%;
}
.modal .modal-body .modal-object-info p {
  font-size: 18px;
  font-weight: 400;
}

.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-80px);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 18px;
  font-size: 13px;
  color: var(--text-muted);
  z-index: 400;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.navigator {
  border: 0 !important;
  background: transparent !important;
  z-index: 2;
  margin-left: 20px !important;
}

.displayregion {
  border: 2px solid rgba(255, 100, 100, 0.8) !important;
  background: rgba(255, 100, 100, 0.15) !important;
  z-index: 6 !important;
}

.logo-museum {
  width: 250px;
  height: 39px;
  background-image: url(../img/logo-museum-weiss.svg);
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  bottom: 20px;
  left: 40px;
  z-index: 2;
}

/*# sourceMappingURL=object-wall.css.map */
