.pjg-gallery {
  --pjg-gap: 20px;
  display: flex;
  flex-direction: column;
  gap: var(--pjg-gap);
  width: 100%;
}

.pjg-row {
  display: flex;
  align-items: stretch;
  gap: var(--pjg-gap);
  width: 100%;
}

.pjg-item {
  display: block;
  flex: var(--pjg-ratio, 1) 1 0;
  min-width: 0;
  overflow: hidden;
  line-height: 0;
}

.pjg-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pjg-row-single .pjg-item {
  flex: 0 1 auto;
  width: 100%;
}

.pjg-row-single .pjg-item img {
  width: 100%;
  height: auto;
}

.pjg-center-single-last .pjg-row-single:last-child .pjg-item {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 767px) {
  .pjg-row {
    flex-direction: column;
  }

  .pjg-item,
  .pjg-row-single .pjg-item {
    width: 100%;
    flex: none;
  }

  .pjg-item img {
    width: 100%;
    height: auto;
  }
}
