/* Ensure caption block is below image/arrows */
.image-frame-caption-block {
  display: block;
  width: 100%;
  margin-top: 12px;
}
@media (max-width: 600px) {
    .image-frame-row {
      margin-left: 16px;
    }
  .image-frame-container {
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
    margin-right: 0;
    max-width: 100vw;
    width: 100vw;
  }
  .image-frame-main {
    width: 68vw;
    min-width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .image-frame-img {
    max-width: 100%;
    min-width: 140px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }
  .image-frame-sidebar {
    width: 32vw;
    max-width: 32vw;
    min-width: 100px;
    word-break: break-word;
    margin-top: 0;
    margin-right: 10px;
    overflow-wrap: break-word;
    overflow-x: auto;
  }
}
.image-frame-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: center;
}
.image-frame-caption {
  margin-top: 10px;
}
/* Gallery and image detail frame styles */

.image-frame-container {
  margin-bottom: 20px;
  margin-top: 20px;
  margin-right: 10px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 40px;
}
.image-frame-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-frame-arrow {
  font-size: 3em;
  margin-right: 20px;
  margin-left: 20px;
  text-decoration: none;
  color: #333;
}
  .image-frame-arrow {
    font-size: 2em;
  }

.image-frame-arrow:hover {
  text-decoration: none;
}
.image-frame-img {
  max-width: 80%;
  height: auto;
  display: block;
  flex-shrink: 1;
  margin: 0 auto;
}


.image-frame-sidebar {
  flex: 0 0 220px;
  margin-top: 0;
}

.gallery-container {
  clear: both;
  margin-top: 20px;
  max-width: 98vw;
}

.gallery-thumbnails {
  display: inline-block;
  vertical-align: middle;
  width: 90vw;
  overflow-x: auto;
  white-space: nowrap;
}

.gallery-arrow {
  vertical-align: middle;
  font-size: 2em;
  background: none;
  border: none;
  cursor: pointer;
}

.gallery-thumb {
  display: inline-block;
}
