.collage-fullscreen-wrapper {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999999999;
}

.collage-fullscreen-image {
  max-width: 94vw;
  max-height: 94vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 0 10px 5px rgba(255, 255, 255, 0.5);
  cursor: zoom-in;
  display: block;
}

/* Desktop: clicking always closes, so always show zoom-out cursor */
@media (hover: hover) and (pointer: fine) {
  .collage-fullscreen-image {
    cursor: zoom-out;
  }
}

.collage-zoomed {
  cursor: grab;
}

.collage-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
  cursor: pointer;
  user-select: none;
  z-index: 10000;
  padding: 6px 8px;
  transition: color 0.2s ease;
}

.collage-prev {
  left: 20px;
}

.collage-next {
  right: 20px;
}

.collage-arrow:hover {
  color: #ffcc00;
}

.collage-caption {
  position: absolute;
  bottom: 40px;
  left: 15px;
  color: white;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.8);
  padding: 5px 8px;
  border-radius: 4px;
  max-width: 85%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  z-index: 10001;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Each line: flex row so label is exactly its natural width,
   link fills the rest and wraps with a matching indent */
.caption-line {
  display: flex;
  align-items: flex-start;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Labels: natural width, never shrink, never wrap */
.caption-post,
.caption-post-twomodels,
.caption-model {
  font-weight: bold;
  color: white;
  white-space: nowrap;
  flex-shrink: 0;
  padding-right: 4px;
}

/* Indent Post: to align colon with Model: below */
.caption-post {
  padding-left: 12px;
}

.caption-post-twomodels {
  padding-left: 19px;
}

/* Links: fill remaining space, wrap word by word aligned under first word */
.collage-caption a,
.caption-post-link,
.caption-model-link,
.caption-model-link2 {
  color: white;
  text-decoration: none;
  display: inline;
  white-space: normal;
  word-break: break-word;
  min-width: 0;          /* allows flex child to shrink and wrap correctly */
}

/* Optional hover color */
.collage-caption a:hover,
.caption-post-link:hover,
.caption-model-link:hover,
.caption-model-link2:hover {
  color: #ffcc00;
}

/* Zoomed state on mobile: full screen height, allow horizontal scroll */
.collage-zoomed-fullheight {
  height: 100dvh;
  width: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
  display: block;
}

/* Column container: image on top, hints directly below — mirrors fit-inner */
.collage-fit-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 94vw;
  max-height: 98dvh;
}

/* Hints row below the image — mirrors fit-caption */
.collage-hints {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-top: 8px;
  pointer-events: none;
}