#main_results0 {
    display: none; /* To avoid flicking before changing DOM */
}

.magnifier-lens {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 10%;
    border: 2px solid #fff;
    background-repeat: no-repeat;
    pointer-events: none;
    display: none;
    z-index: 9999;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 1s ease;
}

.magnifier-smalllens {
    position: absolute;
    width: 133px;
    height: 133px;
    border-radius: 25%;
    border: 2px dashed #fff;
    background-repeat: no-repeat;
    pointer-events: none;
    display: none;
    z-index: 9999;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

#sidebar {
    display: none;
}

.previewContainer {
    width: 100%;
    height: 98%;
}

.preview {
    margin: auto;
    display: block;
}

.thumbnails {
  direction: ltr;
  margin-left: 5px;
  font-size: 0;
  min-width:10px;
  /* display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, auto));
  justify-content: center;
  gap: 10px; */
}

.image_thumbnail {
  box-shadow: 0 0 0 2px black; /* offset-x, offset-y, blur, spread, color */
/* max-height: 250px; min is 150px */
   /* margin: auto;
    display: block; */
    /* border: 1px solid white; */
}

.swipe-horizontal
{
    display: flex;
    height: 100%;
}

.mybutton {
    width: 25px;
    height: 25px;
}

.result-images-source img {
    width: 100%;
}

#mybuttons {
    overflow: hidden;
}

.quickInfo {
    margin-top: 20px;
    text-align: center;
    font-weight: bold;
}

.fieldheader {
    font-weight: bold;
}

#categories_container {
    margin-top: 5px;
    margin-right: 100px;
}

.result-images-labels {
    padding-left: 10px;
}

#filter-bar {
    /* margin: 10px; */
    display: flex;
    /* flex-wrap: wrap; */
    overflow: auto;
}

#filter-items {
    display: flex;
    text-align: center;
    overflow: auto;
    white-space: pre-line;
}

#filter-bar span {
  margin: 4px;
  padding: 3px 10px;
  border: 1px solid #888;
  cursor: pointer;
  background: #333;
  color: white;
  display: flex;
  align-items: center; /* vertical centering */
}

#filter-bar span:hover {
  background: #666;
}

#filter-bar .active {
  background: #eee;
  color: black;
}

/* .item {
  margin: 6px 0;
} */

.filter-toggle {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  cursor: pointer;
}

img {
  transition: opacity 0.4s ease;
}

#loading {
    /* flex: 1; */
    width: 100%;
    inset: 0;
    background: #000000;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    z-index: 9999;
    font-family: sans-serif;
}

.spinner {
    width: 80px;
    height: 80px;
    border: 10px solid #ddd;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.5rem;
    color: #555;
}
