.preview-dialog .attachment-detail-view {
  position: fixed;
  z-index: 11000;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.42);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100vw;
  height: calc(100 * var(--window-inner-height));
}

.preview-dialog .attachment-detail-view .attachment-detail-toolbar {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  height: 64px;
  min-height: 64px;
  background: rgba(0, 0, 0, 0.72);
  padding-top: env(safe-area-inset-top, 0);
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
  box-sizing: border-box;
}

.preview-dialog .attachment-detail-view .attachment-detail-toolbar button md-icon {
  color: #FFFFFF;
  fill: #FFFFFF;
}

.preview-dialog .attachment-detail-view .attachment-detail-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  position: relative;
  user-select: none;
}

.preview-dialog .attachment-detail-view .attachment-detail-content .attachment-detail-zoom-view {
  width: 100%;
  height: 100%;
  outline: none;
  user-select: none;
}

.preview-dialog .attachment-detail-view .attachment-detail-content .attachment-detail-zoom-view .pan-element .zoom-element {
  display: flex;
  width: 100vw;
  height: calc(calc(100 * var(--window-inner-height)) - 64px - env(safe-area-inset-top, 0));
  justify-content: center;
  align-items: center;
}

.preview-dialog .attachment-detail-view .attachment-detail-content video {
  width: 100%;
  height: 100%;
}

.preview-dialog .attachment-detail-view .attachment-detail-content iframe {
  width: 100%;
  height: 100%;
  border: none;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
}