.gallImg {
  width: 100%;
  display: block;
  margin: 0;
  margin-top: 7px;
  margin-bottom: 15px;
}

.gallImg ul {
  display: block;
  margin: 10px;
  margin: 0;
  padding: 0;
}

.gallImg ul li a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  outline: none;
  color: inherit;
}

.gallImg ul li .image {
  display: block;
  overflow: hidden;
  position: relative;
  width: 100%;
  overflow: visible;
}

.gallImg ul li .image img {
  display: block;
  margin: 0 auto;
}

.gallImg ul li .image .favthumb {
  position: absolute;
  top: 2px;
  left: 81.7%;
  z-index: 10;
  margin: 0px;
}

/* Keyword Matches Highlight styles override */
.gall-card__item .az-match-highlight-nav {
  color: var(--az-body-color) !important;
}

#gall-card--four-by .gall-card-list {
  width: 100%;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 0.313rem 1fr 0.313rem 1fr 0.313rem 1fr;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.313rem;
}

#gall-card--four-by .gall-card__item--clear {
  display: none !important;
}

#gall-card--four-by .gall-card__item {
  display: block;
  min-width: 0;
  word-wrap: break-word;
  background-clip: border-box;
  border: 1px solid var(--az-border-color);
  -webkit-box-shadow: 0px 1px 2px var(--az-gray-500);
  box-shadow: 0px 1px 2px var(--az-gray-500);
  list-style: none;
  cursor: pointer;
}

[data-bs-theme="dark"] #gall-card--four-by .gall-card__item {
  border: 1px solid var(--az-border-color);
  -webkit-box-shadow: 0px 1px 2px var(--az-gray-800);
  box-shadow: 0px 1px 2px var(--az-gray-800);
}

#gall-card--four-by .gall-card.gall-card--link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

#gall-card--four-by .gall-card__body {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.313rem;
}

#gall-card--four-by .favthumb {
  position: absolute;
  top: 2px;
  left: calc(100% - 25px - 2px);
  z-index: 10;
}

#gall-card--four-by .gall-card__body-wrapper {
  height: 140px;
  position: relative;
}

#gall-card--four-by .gall-card__body--image {
  aspect-ratio: auto 4/3;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 100%;
  max-width: 100%;
  margin: auto;
}

#gall-card--four-by .favthumb img {
  height: 24px;
  width: 24px;
}

#gall-card--four-by .gall-card__body-info {
  font-size: 1rem;
  font-weight: normal;
  line-height: normal;
  text-align: center;
  overflow: hidden;
  -o-text-overflow: ellipsis;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Long Description Info */
.lot-details-trigger__icon {
  font-size: 1rem;
  color: var(--az-primary);
}

.lot-details-trigger__icon.is-open {
  color: var(--az-danger);
}

.lot-details-popover {
  border-top: 3px solid var(--az-primary) !important;
  cursor: pointer !important;
}

.lot-details-popover--lg {
  max-width: 400px !important;
  width: 400px !important;
}

.lot-details-popover--sm {
  max-width: 200px !important;
  width: 200px !important;
}

.lot-details-popover .popover-main {
  padding: 0.5rem 1rem;
  max-height: 200px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.lot-details-popover .popover-footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  padding: 0.125rem 1rem;
  background-color: var(--az-popover-bg-secondary);
  border-top: 1px solid var(--az-popover-border) !important;
  border-bottom-left-radius: 0.25rem;
  border-bottom-right-radius: 0.25rem;
}

[data-bs-theme="dark"] .lot-details-popover .popover-footer {
  background-color: var(--az-body-bg-light);
}

.lot-details-popover .popover-footer--between {
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

.lot-details-popover .popover-footer--end {
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
}

.lot-details-popover .popover-footer__lot-number {
  font-size: 0.875rem;
  font-weight: normal;
  -o-text-overflow: ellipsis;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.lot-details-popover .popover-footer__scroll {
  font-size: 1rem;
  color: var(--az-primary);
  -webkit-animation: scrollBounce 1.5s ease-in-out infinite;
  animation: scrollBounce 1.5s ease-in-out infinite;
  pointer-events: none;
  will-change: transform;
}

.lot-details-popover.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow::before,
.bs-popover-bottom>.popover-arrow::before,
.lot-details-popover.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow::after,
.bs-popover-bottom>.popover-arrow::after {
  border-bottom-color: var(--az-primary);
}

@media only screen and (max-width: 767px) {
  #gall-card--four-by .gall-card-list {
    -ms-grid-columns: (minmax(0, 1fr))[2];
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media only screen and (max-width: 359px) {
  #gall-card--four-by .gall-card-list {
    -ms-grid-columns: (minmax(0, 1fr))[1];
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

@media only screen and (max-width: 575px) {
  .lot-details-popover--lg {
    max-width: 330px !important;
    width: 330px !important;
  }
}


/* Smooth bounce */
@-webkit-keyframes scrollBounce {
  0%,
  100% {
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
    opacity: 1;
  }
  50% {
    -webkit-transform: translateY(2px);
    transform: translateY(2px);
    opacity: 0.6;
  }
}

@-moz-keyframes scrollBounce {
  0%,
  100% {
    -moz-transform: translateY(-2px);
    transform: translateY(-2px);
    opacity: 1;
  }
  50% {
    -moz-transform: translateY(2px);
    transform: translateY(2px);
    opacity: 0.6;
  }
}

@-o-keyframes scrollBounce {
  0%,
  100% {
    -o-transform: translateY(-2px);
    transform: translateY(-2px);
    opacity: 1;
  }
  50% {
    -o-transform: translateY(2px);
    transform: translateY(2px);
    opacity: 0.6;
  }
}

@keyframes scrollBounce {
  0%,
  100% {
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    -o-transform: translateY(-2px);
    transform: translateY(-2px);
    opacity: 1;
  }
  50% {
    -webkit-transform: translateY(2px);
    -moz-transform: translateY(2px);
    -o-transform: translateY(2px);
    transform: translateY(2px);
    opacity: 0.6;
  }
}