/* Public popup artwork fills the card; only the action footer stays white. */
.display-public-popups {
  --popup-card-width: min(450px, calc(100vw - 24px), calc(67.5vh - 42px));
  padding: 0;
  width: fit-content;
  max-width: calc(100vw - 24px);
  max-height: 90vh;
  overflow: hidden;
  background: #fff;
}

.display-public-popups > .display-popup-images {
  display: flex;
  flex-direction: row;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: calc(100vw - 24px);
  margin: 0;
}

.display-popup-images > a {
  display: block;
  flex: 0 0 var(--popup-card-width);
  width: var(--popup-card-width);
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.display-public-popups img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

.display-popup-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  padding: 10px 16px;
  background: #fff;
}

.display-popup-footer label {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  line-height: 1.35;
}

.display-popup-footer button {
  flex: none;
  border: 0;
  padding: 6px 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .display-popup-footer {
    padding-inline: 12px;
    font-size: 14px;
  }
}
