.cpvg-wrapper {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
}

.cpvg-top,
.cpvg-bottom {
  flex-direction: column;
  align-items: center;
}
.cpvg-left {
  flex-direction: row;
}
.cpvg-right {
  flex-direction: row-reverse;
}

.cpvg-main {
  flex: 1;
  text-align: center;
}
.cpvg-main img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.cpvg-thumbs-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.cpvg-top .cpvg-thumbs-container,
.cpvg-bottom .cpvg-thumbs-container {
  flex-direction: row;
}
.cpvg-top .cpvg-thumbs,
.cpvg-bottom .cpvg-thumbs {
  flex-direction: row;
}
.cpvg-left .cpvg-thumbs,
.cpvg-right .cpvg-thumbs {
  flex-direction: column;
}

.cpvg-thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.cpvg-thumb {
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.cpvg-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cpvg-thumb:hover {
  border-color: #00a612;
}

.cpvg-arrow {
  background: #2e3e45;
  color: white;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 16px;
  margin: 5px;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.cpvg-arrow:hover {
  background: #86A0D3;
}

.cpvg-top .cpvg-arrow,
.cpvg-bottom .cpvg-arrow {
  align-self: center;
}
.cpvg-left .cpvg-arrow,
.cpvg-right .cpvg-arrow {
  align-self: center;
}

#cpvg-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  display: none;
}
.cpvg-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-height: 90vh;
}