@import '../../theme/mixins';

.Container {
  margin-bottom: 0;
  background-color: var(--color-light);
  overflow: hidden;
}

.AddPost {
  @include whiteBox();

  @media (max-width: 820px) {
    height: 100%;
  }
}

.Post {
  flex-direction: row;
  border-bottom: 1px solid var(--color-border-02);

  @media (max-width: 820px) {
    flex-direction: column;
    border: 0;
    height: 100%;

    .ImageBlock {
      max-width: 100%;
    }
  }
}

.PostInfo {
  position: fixed;
  top: 0;
  left: 0;
  background-color: var(--color-light);
  width: 100%;
  height: 100%;
  z-index: 2001;
}

.Back {
  padding: 0;
  margin: 0;
  border: 0;
  outline: 0;
  background-color: transparent;
  transform: rotate(-90deg);
}

.ImageBlock {
  justify-content: center;
  align-items: center;
  height: 375px;
  width: 100%;
  max-width: 375px;
  cursor: pointer;

  .Image {
    position: absolute;
    width: 375px;
    height: 375px;
    z-index: 1;
    object-fit: cover;
  }
}

.AdditionalBlock {
  flex-shrink: 1;
  width: 100%;

  @media (max-width: 820px) {
    position: static;
  }
}

.AddIcon {
  background-position: -190px -223px;
  background-repeat: no-repeat;
  width: 65px;
  height: 65px;
}

.Title {
  font-weight: 600;
  font-size: var(--medium-font);

  @media (min-width: 820px) {
    display: none;
  }
}

.Close {
  outline: 0;
  border: 0;
  background-color: transparent;
  padding: 0;
  margin: 0;

  @media (min-width: 820px) {
    display: none;
  }
}

.Actions {
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  height: var(--headerHeight);
  padding: 0 var(--spacing-m);
  border-bottom: 1px solid var(--color-border-02);
  background-color: var(--color-light);

  @media (max-width: 820px) {
    z-index: 1;
    width: 100%;
    height: 44px;
    justify-content: space-between;
  }
}

.ShareButton {
  font-size: var(--base-font)!important;
  padding-left: 0;
  padding-right: 0;
}

.Next {
  font-size: var(--base-font)!important;
  padding-left: 0;
  padding-right: 0;

  @media (min-width: 820px) {
    display: none;
  }
}

.IconRotate {
  position: absolute;
  bottom: var(--spacing-m);
  right: var(--spacing-m);
  width: 30px;
  height: 30px;
  background-position: 0 -59px;
  background-size: 89px 89px;
  cursor: pointer;
  z-index: 3;
}

.Caption {
  display: flex;
  color: var(--color-main);
  background: var(--color-light);
  flex-grow: 1;
  max-height: 80px;
  height: 60px;
  outline: 0;
  border: 0;
  padding: var(--spacing-xs) var(--spacing-m);
  border-bottom: 1px solid var(--color-border-02);
  resize: none;
}

.Place {
  margin: 0;
  border: 0;
  outline: 0;
  background-color: var(--color-light);
  color: var(--color-main);
  padding: var(--spacing-xs) var(--spacing-m);
  border-bottom: 1px solid var(--color-border-02);
}
