.wspg-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.wspg-card {
  position: relative;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
}

.wspg-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.wspg-play-btn {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 54px;
  height: 54px;

  border: 0px !Important;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  pointer-events: none;
}

.wspg-play-btn img {
  max-width: 40px;
  max-height: 40px;
  object-fit: contain;
}

.wspg-play-triangle {
  display: block;
  margin-left: 3px;
  width: 0;
  height: 0;
  border-left: 14px solid #d47c24;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}

.wspg-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.82);
  padding: 20px;
}

.wspg-modal.active {
  display: flex;
}

.wspg-modal-inner {
  position: relative;
  width: min(420px, 92vw);
}

.wspg-video-wrap {
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
}

.wspg-video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.wspg-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

body.wspg-modal-open {
  overflow: hidden;
}

@media (max-width: 991px) {
  .wspg-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .wspg-gallery {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
