#dynamic-image-container {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
}

#dynamic-image-container:active {
  cursor: grabbing;
}

#dynamic-image-container img {
  width: auto !important;
  height: 100% !important;
  min-width: 100%;
  max-width: none;
  display: block;
  user-select: none !important;
  pointer-events: none !important;
  transition: opacity 0.2s ease;
  object-fit: cover;
}

.pano-button-container {
  position: fixed;
  bottom: calc(var(--footerHeight) + 10px);
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--colorBrandSecondary90) !important;
  background-color: black;
  box-sizing: border-box;
  z-index: 10;
  display: flex;
  gap: 6px;
  flex-direction: row;
  flex-wrap: nowrap;
  border-radius: 3em;
  padding: 4px 4px;
  border: solid 1px rgba(255, 255, 255, 0.3);
  transition: box-shadow 0.3s ease;
  width: fit-content;
  pointer-events: auto;
}

.pano-button-container button {
  padding: 0.2rem 1rem;
  background-color: rgba(255, 255, 255, 0) !important;
  color: white;
  border: none;
  border-radius: 2rem;
  cursor: pointer;
  font-family: var(--fontRegular);
  font-size: max(0.85rem, 13px);
  user-select: none;
  transition: all 0.3s ease !important;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pano-button-container button:hover {
  background: var(--buttonColor) !important;
  color: var(--buttonTextColor) !important;
}

.unit-button.active {
  background: var(--buttonColor) !important;
  box-shadow: var(--buttonOverOutline);
  pointer-events: none !important;
  font-family: var(--fontBig);
  color: var(--buttonTextColor);
}

/* Smooth horizontal scrolling on mobile */
#dynamic-image-container {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* Style horizontal scrollbar */
#dynamic-image-container::-webkit-scrollbar {
  height: 8px;
}

#dynamic-image-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}

#dynamic-image-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 4px;
}

#dynamic-image-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.6);
}
