.images-gallery {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
  position: relative;
}
.images-gallery.visible {
  opacity: 1;
  visibility: visible;
}

.images-gallery-main {
  width: 100%;
  height: 450px;
  align-self: stretch;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  transition: transform 0.4s ease, cursor 0.2s ease;
}

#full-page-image {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  justify-content: center;
  align-items: center;
  cursor: default;
}

.fullpage-overlay {
  position: absolute;
  inset: 0;
  background: rgba(31, 31, 31, 0.9);
  z-index: 1;
}

.fullpage-swiper {
  position: relative;
  z-index: 2;
  width: 80%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.images-gallery-main img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.images-gallery-thumbs {
  margin-top: 16px;
  height: 90px;
  flex: 1 0 0;
}

.images-gallery-thumbs img,
.images-gallery-thumbs .video-thumb-wrapper,
.images-gallery-thumbs .panorama-thumb-wrapper {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
}

.mobile-images-gallery-thumbs {
  display: none;
}

.fullpage-gallery img {
  max-width: 90%;
  max-height: 90%;
  -o-object-fit: contain;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.fullpage-gallery .swiper-button-close {
  position: fixed;
  top: 20px;
  right: 30px;
  cursor: pointer;
  z-index: 10000;
  line-height: 1;
}

.fullpage-gallery .swiper-button-close svg {
  color: var(--white1);
}

.fullpage-gallery .swiper-button-next,
.fullpage-gallery .swiper-button-prev {
  color: white;
}

.fullpage-gallery .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  /* width: 100vw;
  height: 100dvh; */
  box-sizing: border-box;
  width: 100%;
  height: auto;
}

.fullpage-gallery .swiper-slide video,
.fullpage-gallery .swiper-slide img {
  max-width: 100%;
  max-height: 100%;
  -o-object-fit: contain;
  object-fit: contain;
  display: block;
}

.fullpage-gallery .swiper-slide iframe {
  width: 100vw;
  height: 90vh;
  max-width: 100%;
  max-height: 100%;
  -o-object-fit: contain;
  object-fit: contain;
  border: none;
}

/* video */
.video-slide {
  display: flex !important;
  justify-content: center;
  align-items: center;
  background: #000;
}

.video-slide video {
  display: block !important;
  max-width: 100%;
  max-height: 100%;
  -o-object-fit: contain;
  object-fit: contain;
  background: #000;
}

.video-thumb-wrapper,
.panorama-thumb-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-thumb-wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  border-radius: 8px;
}

.video-thumb-wrapper .play-icon {
  position: absolute;
  pointer-events: none;
}

.panorama-thumb-wrapper .panorama-icon {
  position: absolute;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panorama-thumb-wrapper .panorama-icon img {
  height: 20px;
  display: block;
  -webkit-filter: invert(1);
  filter: invert(1);
  opacity: 0.9;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.panorama-thumb-wrapper:hover .panorama-icon img {
  transform: scale(1.1);
  opacity: 1;
}

.images-gallery-main .panorama-slide {
  position: relative;
}

.images-gallery-main .panorama-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  cursor: zoom-in;
  z-index: 5;
  background: transparent;
}

/* Sold */
.sold-info-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--black1, #1f1f1f);
  color: var(--white1);
  padding: 24px 32px;
  border-radius: 8px;
  width: 90%;
  max-width: 408px;
  text-align: center;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sold-info-icon {
  display: flex;
  justify-content: center;
  margin-bottom: -4px;
}

.sold-info-icon img {
  width: 32px;
  height: 32px;
}

.sold-info-date {
  color: var(--blue1);
}

.sold-info-actions {
  display: flex;
  gap: 12px;
}

.sold-info-btn-outline {
  display: flex;
  height: 40px;
  padding: 10px 24px;
  justify-content: center;
  align-items: center;
  background-color: var(--black1);
  color: var(--white1);
  gap: 10px;
  border-radius: 4px;
  border: 1px solid var(--white1, #fff);
}

.sold-info-actions .btn-component {
  flex: 1 0 0;
  padding: 12px 24px;
  cursor: pointer;
  height: 40px;
}

/* Warning */
.gallery-warning-banner {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--redError);
  color: var(--white1);
  padding: 12px 16px;
  z-index: 20;
}

.warning-banner-content .warning-banner-icon {
  width: 30px;
  height: 30px;
}
.warning-banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;

  .caption2 {
    flex: 1 1 auto;
    white-space: normal;
    display: block;
  }
}

.seller-banner-text-desktop {
  display: block;
}

.seller-banner-text-mobile {
  display: none;
}

.warning-banner-close {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  width: 24px;
  height: 24px;
  flex-shrink: 0;

  svg {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
  }
}

/* not select images */
.images-gallery,
.images-gallery * {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  outline: none;
}

/* Swiper arrows */
.swiper-button-next::after,
.swiper-button-prev::after {
  display: none;
}

.swiper-button-next svg,
.swiper-button-prev svg {
  width: unset;
  height: unset;
}

.swiper-button-next,
.swiper-button-prev {
  top: 57%;
}

.thumbs-prev,
.thumbs-next {
  top: 50%;
}

.swiper-button-next,
.swiper-button-prev,
.thumbs-prev,
.thumbs-next {
  position: absolute;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 2px;
  background: rgba(31, 31, 31, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--white1);
}

/* Left arrows */

.thumbs-prev {
  left: 10px;
}

.swiper-button-prev {
  left: 20px;
}

.images-gallery-main .swiper-button-prev svg,
.images-gallery-main .thumbs-prev svg,
.images-gallery-thumbs .thumbs-prev svg,
.similar-cars-prev svg {
  transform: rotate(180deg);
}

/* Right arrows */
.thumbs-next {
  right: 10px;
}

.swiper-button-next {
  right: 20px;
}

/* Zoom container */
.swiper-zoom-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-zoom-container img {
  max-width: 100%;
  max-height: 100%;
  -o-object-fit: contain;
  object-fit: contain;
  display: block;
  width: 100%;
  height: 100%;
}

/* responsive */
@media (max-width: 1664px) {
  .fullpage-swiper {
    width: 85%;
  }
}
@media (max-width: 1289px) {
  .swiper-button-next,
  .swiper-button-prev {
    top: 56%;
  }
}
@media (max-width: 1217px) {
  .swiper-button-next,
  .swiper-button-prev {
    top: 58%;
  }
}
@media (max-width: 1040px) {
  .swiper-button-next,
  .swiper-button-prev {
    top: 0;
    bottom: 0;
    margin: auto;
    transform: none;
  }

  .fullpage-gallery .swiper-button-next,
  .fullpage-gallery .swiper-button-prev {
    margin: unset;
  }
}
@media (max-width: 973px) {
  .fullpage-gallery .swiper-button-next,
  .fullpage-gallery .swiper-button-prev {
    margin: unset;
    top: 51%;
  }
}
@media (max-width: 768px) {
  .images-gallery-main {
    width: 100%;
    aspect-ratio: 16/9;
  }
  .swiper-button-next {
    right: 10px;
  }
  .swiper-button-prev {
    left: 10px;
  }
  .swiper-button-next,
  .swiper-button-prev {
    width: 34px;
  }

  .thumbs-prev,
  .thumbs-next {
    display: none;
  }
  .desktop-images-gallery-thumbs {
    display: none;
  }
  .mobile-images-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(57px, 1fr));
    gap: 8px;
    width: 100%;
  }

  .mobile-images-gallery-thumbs .thumb {
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
  }
  .mobile-images-gallery-thumbs .thumb.active {
    border: 1px solid var(--blue1);
  }
  .images-gallery-thumbs {
    height: unset;
  }
  .fullpage-gallery img {
    max-width: 100%;
    max-height: 100%;
    height: 100%;
    width: 100%;
  }
  .fullpage-gallery .fullpage-swiper {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .fullpage-gallery .swiper-button-close {
    right: 10px;
    top: 10px;
  }
  .fullpage-gallery .swiper-button-next,
  .fullpage-gallery .swiper-button-prev {
    margin: auto;
  }

  .fullpage-gallery .swiper-button-next,
  .fullpage-gallery .swiper-button-prev {
    top: 5%;
  }

  .video-thumb-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
  }

  .fullpage-gallery .swiper-slide.panorama-slide {
    background: #000;
    display: flex !important;
    justify-content: center;
    align-items: center;
  }

  .fullpage-gallery .swiper-slide iframe {
    height: 300px;
  }

  .sold-info-card {
    top: 44%;
  }
}

@media (max-width: 513px) {
  .seller-banner-text-desktop {
    display: none;
  }
  .seller-banner-text-mobile {
    display: block;
  }
  /* Sold */
  .sold-info-card {
    padding: 16px;
    top: 50%;
    left: 16px;
    right: 16px;
    transform: translateY(-50%);
    width: auto;
    max-width: none;
  }

  .images-gallery-wrapper.has-warning .sold-info-card {
    top: 19px;
    transform: none;
    left: 16px;
    right: 16px;
    bottom: 80px;
    width: auto;
    max-width: none;
  }

  .sold-info-actions {
    flex-direction: column-reverse;
  }

  .sold-info-icon {
    margin-bottom: -8px;
  }

  .sold-info-icon img {
    width: 24px;
    height: 24px;
  }

  .images-gallery-main.hide-arrows .swiper-button-next,
  .images-gallery-main.hide-arrows .swiper-button-prev {
    display: none;
  }
}

@media (max-width: 370px) {
  .images-gallery-wrapper.has-warning .sold-info-card {
    bottom: 85px;
  }
}

@media (max-width: 324px) {
  .images-gallery-wrapper.has-warning .sold-info-card {
    bottom: 95px;
    gap: 12px;
  }
}
