.cv-property-single__gallery-wrap {
  width: 100%;
}

.cv-property-single__gallery {
  position: relative;
  margin-bottom: 24px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}
.cv-property-single__gallery .swiper-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.cv-property-single__gallery .swiper-pagination {
  left: 12px;
  right: auto;
  width: auto;
  bottom: 10px;
  text-align: left;
}
.cv-property-single__gallery .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.5;
}
.cv-property-single__gallery .swiper-pagination-bullet-active {
  background: #fff;
  opacity: 1;
}

.cv-gallery-controls {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 10;
  display: flex;
  gap: 6px;
}

.cv-gallery-view-all,
.cv-gallery-watch-video {
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.75);
  color: #333;
  border: none;
  border-radius: 3px;
  font-size: 0.6875rem;
  font: inherit;
  cursor: pointer;
}
.cv-gallery-view-all:hover,
.cv-gallery-watch-video:hover {
  background: rgba(255, 255, 255, 0.95);
}

.cv-video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}
.cv-video-modal[aria-hidden=true] {
  display: none;
}
.cv-video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}
.cv-video-modal__inner {
  position: relative;
  z-index: 1;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 20px;
  box-sizing: border-box;
}
.cv-video-modal__close {
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cv-video-modal__close:hover {
  background: rgba(255, 255, 255, 0.3);
}
.cv-video-modal__player {
  position: relative;
  width: 100%;
  max-width: 1200px;
  aspect-ratio: 16/9;
}
.cv-video-modal__player iframe,
.cv-video-modal__player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 4px;
}

.cv-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}
.cv-gallery-modal[aria-hidden=true] {
  display: none;
}
.cv-gallery-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.96);
}
.cv-gallery-modal__inner {
  position: relative;
  z-index: 1;
  height: 100vh;
  overflow-y: auto;
  padding: 56px 20px 20px;
}
.cv-gallery-modal__close {
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.12);
  border: none;
  color: #333;
  font-size: 1.5rem;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cv-gallery-modal__close:hover {
  background: rgba(0, 0, 0, 0.2);
}
.cv-gallery-modal__grid {
  column-count: 3;
  column-gap: 8px;
}
@media (max-width: 768px) {
  .cv-gallery-modal__grid {
    column-count: 2;
  }
}
@media (max-width: 480px) {
  .cv-gallery-modal__grid {
    column-count: 1;
  }
}
.cv-gallery-modal__item {
  display: block;
  break-inside: avoid;
  margin-bottom: 8px;
  cursor: zoom-in;
}
.cv-gallery-modal__item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}
