.image-group {
  border: 1px solid;
  margin-bottom: 1rem;
}

.image-group.condence {
  margin-bottom: 0;
}

.image-group.condence + br {
  display: none;
}

.image-group.no-border {
  border: none;
}

.image-group p {
  margin: 0 !important;
  box-sizing: border-box;
}

.image-group .description {
  font-weight: bold;
  border-bottom: 1px solid;
  padding: 3px 10px;
  font-size: 14px;
}

.image-group.no-border .description {
  border-bottom: none;
}

.image-group .images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-sizing: border-box;
  margin: -1px;
}

.image-group .images img {
  width: 100%;
  height: auto;
  cursor: pointer;
}

.image-group .images .my-popup-wrapper {
  box-sizing: border-box;
  padding: 10px;
  border-bottom: 1px solid;
  border-right: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-group .images .my-popup-wrapper:nth-child(2n-1) {
  border-right: 1px solid;
}

.image-group .images .my-popup-wrapper .my-popup-content img {
  top: 50%;
  position: relative;
  transform: translateY(-50%);
  anchor-name: --popup-img;
}

.image-group.no-border .images .my-popup-wrapper {
  border-bottom: none;
  border-right: none;
}

.image-group .my-popup-trigger { 
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
}

.image-group .my-popup-trigger img {
  flex: 1;
  object-fit: contain;
}

.image-group .my-popup-trigger span {
  flex-shrink: 0;
  text-align: left;
}

.image-group .my-popup-wrapper .image-group-page {
  position: absolute;
  top: 60px;
  background: rgba(16,16,16,0.5);
  padding: 2px 12px;
  border-radius: 20px;
  color: #ccc;
  z-index: 10;
}

.image-group .my-popup-wrapper .image-description {
  position-anchor: --popup-img;
  position: absolute;
  top: calc(anchor(bottom) + 8px);
  color: #ddd;
  left: anchor(left);
  right: anchor(right);
  font-size: .8rem;
  text-align: center;
}

