/* ---------------------- POST CARD ----------------------*/
.post {
  display: grid;
  margin: 0.25rem;
  border: 3px solid var(--PrimaryColor);
  border-radius: 10px;
  justify-items: center;
  align-items: baseline;
  background-color: var(--postBkgColor);
  padding: 1rem !important;
  color: var(--MainFontColor);
  position: relative;
}

.post P {
  text-align: left;
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.postTitle {
  text-align: center !important;
  font-size: 1.2rem !important;
  padding-inline: 1rem;
  margin-bottom: 1rem;
  font-weight: bold;
  color: var(--PrimaryColor);
}

.postKeywords {
  text-align: left !important;
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.postHashtags {
  color: var(--PrimaryColor);
}

.postSugImageText {
  text-align: center !important;
  padding-inline: 1rem;
  font-style: italic;
}

.postBody {
  text-align: justify;
}

.postBodyHighlight:hover {
  outline-color: var(--formButtonHoverColor);
  outline-style: solid;
  outline-width: 2px;
}

.post_img__square {
  aspect-ratio: 1/1;
}

.post_img__portrait {
  aspect-ratio: 9/16;
}

.post_img__landscape {
  aspect-ratio: 6/5;
}

.post_base_layer {
  display: grid;
  align-items: center;
  justify-items: center;
  width: 100%;

  margin-bottom: 1rem;
}

.post_image_layer {
  display: grid;
  align-items: center;
  justify-items: center;
  width: 100%;
  padding: 1rem !important;
  margin-bottom: 1rem;

  position: absolute;
  left: 0;
  top: 0;
}

.base_layer {
  z-index: 1;
}

.api_layer {
  z-index: 3;
}

.filter_layer {
  z-index: 5;
}

.highlight_layer {
  z-index: 7;
}

.overlay_layer {
  z-index: 9;
}

.frame_layer {
  z-index: 11;
}

.top_layer {
  z-index: 20;
}

.spinner_layer {
  z-index: 20;
}

.post:hover .post_img_toolbox_ellipse {
  display: flex;
}

.post_img_toolbox_ellipse {
  display: none;
  justify-content: center;
  align-items: center;
  position: absolute;
  cursor: pointer;
  padding: 0.1rem;
  border-radius: 2px;
  background: var(--formInputBkgColor);
  left: 0;
  top: 0;
  margin-top: 8px;
  margin-left: 8px;
  z-index: 999;
}

.post_img_toolbox_ellipse:hover {
  background: var(--PrimaryColor);
  color: rgb(255, 255, 255);
}

.post_img_toolbox {
  display: none;
  flex-direction: column;
  align-items: left;
  position: absolute;
  padding: 0.5rem;
  border-radius: 5px;
  background: rgba(25, 25, 25, 0.7);
  top: 40px;
  left: 40px;
  z-index: 999;
}

.post_img_toolbox span {
  font-size: 0.7rem;
  text-transform: uppercase;
  margin-top: 0.5rem;
  padding-inline: 0.5rem;
  border-radius: 2px;
  cursor: pointer;
  color: white;
}

.generateNewCompleteImageSpan {
  margin-bottom: 2rem;
}

.addMotionToImageSpan {
  margin-bottom: 2rem;
}

.editTextSpan {
  margin-bottom: 2rem;
}

.savePostSpan {
  margin-top: 3rem !important;
}

.post_img_toolbox span:hover {
  color: var(--formButtonHoverColor);
}

.post_image_spinner {
  display: none;
  max-width: 100px;
  position: absolute;
  cursor: pointer;
  z-index: 900;
}

.drafts-message {
  grid-area: contentRow1;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  padding-bottom: 1rem;
  /* Center left to right */
  justify-items: center;
  /* Center top to bottom */
  align-items: center;
}

.drafts-grid {
  grid-area: contentRow3;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 62em) {
  .drafts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}

.draft-pagination {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.draft-range-info {
  margin-top: 1rem;
  text-align: center;
}
