@media (max-width: 768px) {
  .left, .right {
    float: none;
    width: 100%;
  }
}

/* Billede X af Y: over billedet på mobil, skjult på PC */
.numbertext {
  position: static !important;
  display: block !important;
  padding: 4px 0 !important;
}
@media (min-width: 769px) {
  .numbertext {
    display: none !important;
  }
}

/* Billedcontainer: border følger billedets størrelse */
.rotpic1 {
  display: inline-block !important;
  height: auto !important;
  width: auto !important;
}
.rotpic1 img {
  max-height: calc(60vh - 80px) !important; /* 80px = thumbnail-strip højde */
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
}
@media (max-width: 768px) {
  .rotpic1 img {
    max-height: 60vh !important;
  }
}
/* Thumbnail-strip: fyld hele .left-kolonnens bredde */
.sol-thumbstrip {
  width: 100%;
}
.containerdetail {
  height: auto !important;
  width: fit-content !important;
  position: relative !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

/* Viewer.js: LUK-knap */
.viewer-button.viewer-close {
  border-radius: 4px !important;
  width: 60px !important;
  height: 34px !important;
  right: 8px !important;
  top: 8px !important;
  overflow: visible !important;
  font-size: 15px !important;
  font-weight: bold !important;
  color: white !important;
  line-height: 34px !important;
  text-align: center !important;
}
.viewer-button.viewer-close::before {
  display: none !important;
}

/* Viewer.js toolbar: afstand før prev/next og rotate-grupperne */
.viewer-prev,
.viewer-rotate-left {
  margin-left: 20px !important;
}

/* PC-only thumbnail strip */
.sol-thumbstrip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  overflow: hidden;
}
.sol-thumbs-wrapper {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  max-width: calc(100% - 80px);
  scroll-behavior: smooth;
  padding-bottom: 4px;
}
.sol-thumb {
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 3px;
  overflow: hidden;
  opacity: 0.55;
  transition: opacity 0.2s, border-color 0.2s;
}
.sol-thumb:hover {
  opacity: 0.85;
}
.sol-thumb-active {
  border-color: #a38a25 !important;
  opacity: 1 !important;
}
.sol-thumb img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  display: block;
}
.sol-thumb-nav {
  cursor: pointer;
  font-size: 20px;
  padding: 4px 6px;
  color: #555;
  flex-shrink: 0;
  user-select: none;
  text-decoration: none;
}
.sol-thumb-nav:hover {
  color: #a38a25;
}

/* Skjul thumbnail-strip på mobil */
@media (max-width: 768px) {
  .sol-thumbstrip {
    display: none !important;
  }
}

/* Bladre-pile i billedet: kun på mobil */
a.prev, a.next {
  display: none !important;
}
@media (max-width: 768px) {
  a.prev, a.next {
    display: block !important;
  }
}
