@charset "UTF-8";

.front-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(0, 0, 0, 0.55);
}

.front-popup-overlay[hidden],
.front-popup-card[hidden] {
  display: none !important;
}

.front-popup-stack {
  display: flex;
  flex-direction: row;
  /* flex-wrap: wrap; */
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  /* max-width: min(1180px, 100%); */
  /* max-height: calc(100vh - 64px); */
  overflow: auto;
}

.front-popup-card {
  display: flex;
  flex-direction: column;
  width: clamp(320px, 90vw, 500px);
  /* max-height: clamp(340px, 80vh, 800px); */
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  color: #111827;
}

.front-popup-image-link {
  display: block;
  flex: 0 1 auto;
  min-height: 0;
}

.front-popup-card img {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  /* max-height: calc(100vh - 150px); */
  object-fit: contain;
  background: #fff;
}

.front-popup-actions {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #e5e7eb;
}

.front-popup-actions button {
  min-height: 44px;
  border: 0;
  border-right: 1px solid #e5e7eb;
  background: #fff;
  color: #111827;
  cursor: pointer;
  /* font: inherit; */
  font-size: 16px;
  font-weight: 800;
  padding: 10px;
}

.front-popup-actions button:last-child {
  border-right: 0;
}

body.front-popup-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .front-popup-stack {
    flex-direction: column;
  }
  .front-popup-overlay {
    padding: 0;
  }
}