.px-gallery {
  width: 100%;
}
.px-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--spacing-lg, 14px);
  min-height: clamp(25rem, 20.6081081081rem + 21.9594594595vw, 41.25rem);
}
.px-gallery__column {
  display: grid;
  gap: var(--spacing-lg, 14px);
  min-height: 0;
  min-width: 0;
}
.px-gallery__column--left {
  grid-template-rows: minmax(0, 1fr) clamp(13.75rem, 10.7094594595rem + 15.2027027027vw, 25rem);
}
.px-gallery__column--right {
  grid-template-rows: clamp(13.75rem, 10.7094594595rem + 15.2027027027vw, 25rem) minmax(0, 1fr);
}
.px-gallery__split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--spacing-lg, 14px);
  min-height: 0;
}
.px-gallery__wide, .px-gallery__cell {
  position: relative;
  overflow: hidden;
  min-height: 0;
  min-width: 0;
}
.px-gallery__wide {
  min-height: clamp(13.75rem, 10.7094594595rem + 15.2027027027vw, 25rem);
}
.px-gallery__link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}
.px-gallery__link img,
.px-gallery__link video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.px-gallery__link:focus-visible {
  outline: none;
}
.px-gallery__link:focus-visible::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 3px #ff2d2d, inset 0 0 0 4px rgba(255, 255, 255, 0.6);
}
.px-gallery__lightbox-video {
  max-width: min(1100px, 90vw);
  margin: 0 auto;
  background: #000;
}
.px-gallery__lightbox-video video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 85vh;
}
.px-gallery__split .px-gallery__link, .px-gallery__wide .px-gallery__link {
  position: absolute;
  inset: 0;
}
@media screen and (max-width: 960px) {
  .px-gallery__grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .px-gallery__column--left, .px-gallery__column--right {
    grid-template-rows: unset;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg, 14px);
  }
  .px-gallery__wide {
    min-height: clamp(12.5rem, 10.472972973rem + 10.1351351351vw, 20rem);
    aspect-ratio: 16/10;
  }
  .px-gallery__split .px-gallery__link, .px-gallery__wide .px-gallery__link {
    position: relative;
    inset: auto;
  }
  .px-gallery__split .px-gallery__cell {
    aspect-ratio: 4/5;
  }
}