.cbnb-yacht-viewer {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(4, 12, 18, 0.96);
  color: #fff;
}

.cbnb-yacht-viewer::backdrop {
  background: rgba(4, 12, 18, 0.96);
}

.cbnb-yacht-viewer-open {
  overflow: hidden;
}

.yacht-page .gallery-shem-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.yacht-page .gallery-shem-nav__item {
  width: 100%;
  height: auto;
  aspect-ratio: 312 / 195;
  background-color: #dbe6eb;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

@media only screen and (max-width: 1022px) {
  .yacht-page .gallery-shem-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media only screen and (max-width: 800px) {
  .yacht-page .gallery-shem-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media only screen and (max-width: 520px) {
  .yacht-page .gallery-shem-nav {
    grid-template-columns: minmax(0, 1fr);
  }
}

.cbnb-yacht-viewer__top {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 24px;
  pointer-events: none;
}

.cbnb-yacht-viewer__actions {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.cbnb-yacht-viewer button {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.cbnb-yacht-viewer__close {
  width: 44px;
  height: 44px;
  font-size: 30px;
  line-height: 1;
}

.cbnb-yacht-viewer__count {
  font-size: 18px;
  font-weight: 600;
}

.cbnb-yacht-viewer__figure {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 72px 88px 64px;
}

.cbnb-yacht-viewer__image {
  display: block;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.16s ease;
}

.cbnb-yacht-viewer.is-ready .cbnb-yacht-viewer__image {
  opacity: 1;
}

.cbnb-yacht-viewer__loader {
  position: absolute;
  width: 46px;
  height: 46px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cbnb-yacht-viewer-spin 0.8s linear infinite;
}

.cbnb-yacht-viewer.is-ready .cbnb-yacht-viewer__loader,
.cbnb-yacht-viewer.has-error .cbnb-yacht-viewer__loader {
  display: none;
}

.cbnb-yacht-viewer__previous,
.cbnb-yacht-viewer__next {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 64px;
  height: 80px;
  transform: translateY(-50%);
  font-size: 64px;
}

.cbnb-yacht-viewer__previous {
  left: 8px;
}

.cbnb-yacht-viewer__next {
  right: 8px;
}

.cbnb-yacht-viewer__caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  max-width: calc(100% - 48px);
  transform: translateX(-50%);
  font-size: 18px;
  text-align: center;
}

@keyframes cbnb-yacht-viewer-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 767px) {
  .cbnb-yacht-viewer__top {
    padding: 10px 12px;
  }

  .cbnb-yacht-viewer__figure {
    padding: 64px 44px 56px;
  }

  .cbnb-yacht-viewer__previous,
  .cbnb-yacht-viewer__next {
    width: 42px;
    font-size: 48px;
  }

  .cbnb-yacht-viewer__previous {
    left: 0;
  }

  .cbnb-yacht-viewer__next {
    right: 0;
  }
}
