.gall-fav-wrapper {
  padding: 0.5rem 0;
  margin: 0.625rem 0 1.25rem 0;
}

.gall-fav-wrapper img {
  vertical-align: top;
}

.gall-fav__link {
  font-size: 1rem;
  color: var(--az-link-primary-color);
  -webkit-text-decoration: underline 2px rgba(0, 0, 0, 0);
  text-decoration: underline 2px rgba(0, 0, 0, 0);
  -webkit-transition: color 0.2s ease-in-out,
    -webkit-text-decoration 0.2s ease-in-out;
  transition: color 0.2s ease-in-out,
    -webkit-text-decoration 0.2s ease-in-out;
  -o-transition: color 0.2s ease-in-out,
    text-decoration 0.2s ease-in-out;
  transition: color 0.2s ease-in-out,
    text-decoration 0.2s ease-in-out;
  transition: color 0.2s ease-in-out,
    text-decoration 0.2s ease-in-out,
    -webkit-text-decoration 0.2s ease-in-out;
}

.gall-fav__link:hover {
  color: var(--az-link-primary-hover-color);
  -webkit-text-decoration-color: var(--az-link-primary-hover-underline);
  text-decoration-color: var(--az-link-primary-hover-underline);
}

.gall-fav__link:focus {
  color: var(--az-link-primary-focus-color);
  -webkit-text-decoration-color: var(--az-link-primary-focus-underline);
  text-decoration-color: var(--az-link-primary-focus-underline);
}

.imgGall {
  font-size: 0.75rem;
}

.gallHeading {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 0.375rem 1.25rem;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  text-shadow: 0 1px 0 #fff;
  border-top: 1px solid var(--az-gray-200);
  border-left: 1px solid var(--az-gray-200);
  border-right: 1px solid var(--az-gray-200);
  -moz-border-radius-topleft: 5px;
  -moz-border-radius-topright: 5px;
  -moz-border-radius-bottomright: 0px;
  -moz-border-radius-bottomleft: 0px;
  border-radius: 5px 5px 0px 0px;
  background: #fefefe;
  background: -o-linear-gradient(top, #fefefe 0%, #dadada 100%);
  background: -webkit-gradient(linear, left top, left bottom, from(#fefefe), to(#dadada));
  background: linear-gradient(top, #fefefe 0%, #dadada 100%);
}

[data-bs-theme="dark"] .gallHeading {
  background: var(--az-body-bg);
  text-shadow: none;
  border-top: 1px solid var(--az-border-color);
  border-left: 1px solid var(--az-border-color);
  border-right: 1px solid var(--az-border-color);
}

.viewListing,
.viewFavorite {
  text-decoration: none !important;
  line-height: 28px !important;
}

.gallHeading .viewListing {
  background: url(/images/returnGalleryListing.png) no-repeat 0 5px;
  padding: 0 0 0 28px;
}

.gallHeading a.moreInfoAZL {
  position: relative;
  top: -6px;
  font-weight: bold;
  left: 3px;
}

.gallHeading .perPage {
  display: block;
  background: transparent;
  line-height: 28px;
}

.gall-nav__left,
.gall-nav__center,
.gall-nav__right {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 33.3333%;
  flex: 1 1 33.3333%;
}

.gall-nav__left {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;
}

.gall-nav__center {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.gall-nav__right {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
  gap: 0.5rem;
}

.gall-nav a {
  font-size: 0.875rem;
  font-weight: normal;
  color: var(--az-link-primary-color);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  outline: none;
  text-decoration: none;
  -webkit-transition: color 0.2s ease-in-out;
  -o-transition: color 0.2s ease-in-out;
  transition: color 0.2s ease-in-out;
}

.gall-nav a:hover {
  color: var(--az-link-primary-hover-color);
}

.gall-nav a:focus {
  color: var(--az-link-primary-focus-color);
}

.gall-nav__btn--share {
  padding: 0 !important;
  border: none !important;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.gall-nav__btn--share:hover .gall-nav__btn--share-icon {
  color: var(--az-link-primary-hover-color);
}

.gall-nav__btn--share:focus .gall-nav__btn--share-icon {
  color: var(--az-link-primary-focus-color);
}

.gall-nav__btn--share-icon {
  color: var(--az-link-primary-color);
  font-size: 1rem;
}

.imgGall .perPage {
  font-size: 0.875rem;
  color: var(--az-body-color);
}

.imgGall select {
  color: var(--az-body-color);
  background-color: var(--az-body-bg);
  border: 1px solid var(--az-gray-200);
  border-radius: 0.25rem;
}

[data-bs-theme="dark"] .imgGall select {
  border: 1px solid var(--az-border-color);
}

.gallImg {
  width: 100%;
  display: block;
  margin: 0 auto;
  background-color: var(--az-body-bg);
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  border: 1px solid var(--az-gray-200);
  border-radius: 0px 0px 5px 5px;
}

[data-bs-theme="dark"] .gallImg {
  border: 1px solid var(--az-border-color);
}

.gallImg .pageList {
  display: block;
  color: var(--az-body-color);
  font-size: 0.875rem;
  font-weight: normal;
  line-height: 1.15;
  text-align: center;
  margin: 0 0.625rem 0.625rem 0.625rem;
}

.pageList span[style*="color: blue;"] {
  color: var(--az-link-primary-color) !important;
}

.pageList span[style*="color: red;"] {
  color: var(--az-link-danger-color) !important;
  font-weight: bold;
}

.gallImg ul {
  margin: 0;
  padding: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: space-evenly;
  -ms-flex-pack: space-evenly;
  justify-content: space-evenly;
}

.gallImg ul li {
  list-style: none;
  background-color: var(--az-body-bg);
  max-width: 150px;
  width: 150px;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  float: left;
  margin: 10px 15px;
  -webkit-box-shadow: 0px 1px 5px var(--az-gray-200);
  box-shadow: 0px 1px 5px var(--az-gray-200);
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  cursor: pointer;
}

[data-bs-theme="dark"] .gallImg ul li {
  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);
}

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

.gallImg ul li .image {
  display: block;
  position: relative;
  text-align: center;
  width: 100%;
  margin: 0 auto;
}

.gallImg ul li .image img {
  aspect-ratio: auto 4/3;
  display: block;
  margin: 0 auto;
  margin-bottom: 10px;
  max-height: 140px;
}

.gallImg ul li .image span {
  margin: 0;
  font-size: 11px;
  color: var(--az-body-color);
  line-height: 1.1;
  word-break: break-word;
  text-align: center;
}

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

.gallImg ul li .image .favthumb img {
  width: 100%;
  aspect-ratio: 24 / 24;
}

.gallImg ul li a.larger {
  display: block;
  padding: 5px 0 0;
  background: url('/images/gallLarger.png') no-repeat 15px 5px;
  font-size: 13px;
  text-align: center;
  font-weight: bold;
}

.imgGall .gall__title {
  text-align: center;
  margin: 0.625rem 1.25rem;
}

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

.gall-card__item .az-match-highlight-nav.az-match-highlight-nav--selected {
  color: var(--az-dark) !important;
}

.scroll-up {
  z-index: 10;
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-up__btn {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  font-size: 1.25rem;
  color: var(--az-white);
  border: 1px solid var(--az-white);
  background-color: rgba(var(--az-black-rgb), 0.8);
  border-radius: 50% !important;
  opacity: 0;
  transform: translateY(0.5rem);
  pointer-events: none;
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.scroll-up__btn.scroll-up__show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media only screen and (max-width: 814px) {
  .gallImg ul {
    -ms-flex-pack: distribute;
    justify-content: space-around;
  }
}

@media only screen and (max-width: 767px) {
  .gallHeading {
    padding: 0.375rem 0.625rem;
  }

  .gallImg ul li {
    margin: 0.625rem 0;
  }

  .gall-nav__left,
  .gall-nav__center {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
  }

  .gall-nav__center {
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
  }

  .gall-nav__right {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 100%;
    flex: 1 1 100%;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
  }

  .gall-nav__right:has(.perPage:empty) {
    -webkit-box-flex: 0;
    -ms-flex: 0;
    flex: 0;
  }
}

@media only screen and (max-width: 575px) {
  .imgGall .gall__title {
    margin: 0.5rem !important;
  }

  .gall-fav-wrapper {
    margin: 0.5rem !important;
  }
}

/* Container */
.az-container {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.az-blue-button {
  height: 40px;
  padding: 10px 30px;
  background-color: var(--az-btn-primary-bg);
  font: bold 16px Arial, Helvetica, sans-serif !important;
  color: var(--az-btn-color);
  border: 0px;
  border-radius: 5px;
  outline: none;
  cursor: pointer;
}

.az-blue-button:hover {
  background-color: var(--az-btn-primary-hover-bg);
}

.az-blue-button:focus {
  outline: none;
  background-color: var(--az-btn-primary-focus-bg);
}

.az-blue-button:disabled {
  background-color: var(--az-btn-primary-disabled-color);
  cursor: default;
}

/* Banner */
.banner {
  background-color: var(--bs-body-bg);
  min-height: 100px;
  padding: 1rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 1rem;
}

.banner__main {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 1rem;
}

.banner__main--icon {
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  line-height: 50px;
  text-align: center;
  background-color: #d8262d;
  width: 50px;
  height: 50px;
  display: inline-block;
  position: relative;
  border-radius: 50%;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.banner__main--icon span {
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 1.25rem;
}

.banner__main--icon i {
  font-size: 2rem;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  opacity: 0.5;
  color: rgba(255, 255, 255, 0.75);
  -webkit-filter: blur(1px);
  -moz-filter: blur(1px);
  filter: blur(1px);
}

/* Long Description Info */
.lot-details-trigger__icon {
  font-size: 0.75rem;
  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;
  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) {
  .banner__main--text {
    font-size: 1rem;
  }

  .banner {
    padding: 0.5rem;
  }
}

@media only screen and (max-width: 575px) {
  .banner__main--text {
    display: none;
  }

  .banner__btn {
    margin-left: 1rem;
  }

  .banner,
  .banner__main {
    gap: 0rem;
  }

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

@media only screen and (max-width: 370px) {
  .gallHeading {
    padding: 0.375rem;
  }
}

@media only screen and (max-width: 359px) {
  .gallHeading {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    padding: 0.375rem 0.625rem;
  }
}

/* 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;
  }
}

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