.flora-dialog {
  width: min(1080px, calc(100% - 28px));
}

.dialog-layout {
  grid-template-columns: minmax(360px, 1.1fr) minmax(330px, .9fr);
}

.dialog-gallery {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 24px;
  background: #edf5f1;
}

.dialog-gallery-stage {
  position: relative;
  display: flex;
  min-height: 390px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 16px;
  background: #dcebe4;
}

.dialog-gallery-stage > img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 470px;
  object-fit: contain;
}

.dialog-gallery-caption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(7, 63, 50, .88);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
}

.dialog-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.dialog-gallery-thumb {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}

.dialog-gallery-thumb.is-active {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(8, 124, 91, .14);
}

.dialog-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dialog-gallery-thumb > span {
  position: absolute;
  right: 2px;
  bottom: 2px;
  left: 2px;
  overflow: hidden;
  padding: 3px 2px;
  border-radius: 4px;
  background: rgba(7, 63, 50, .84);
  color: #fff;
  font-size: 7px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dialog-gallery > p {
  margin: 12px 2px 0;
  color: #687a73;
  font-size: 11px;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .dialog-layout {
    grid-template-columns: 1fr;
  }

  .dialog-gallery {
    padding: 16px;
  }

  .dialog-gallery-stage {
    min-height: 270px;
  }

  .dialog-gallery-thumbs {
    grid-template-columns: repeat(6, minmax(46px, 1fr));
    overflow-x: auto;
  }

  .dialog-copy {
    padding-top: 26px;
  }
}
