/* Post Creator Overlay Styles */
#postCreator .carousel{
  width: 25%;
}

#postCreator .carousel-slide > * {  width: 100%; height: 100%; }

#postCreator .carousel-slide button {
	width: 1em;
	height: 1em;
}

.post-creator-plus-btn {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 50%;
  background: var(--sidebarText);
  color: #fff;
  font-size: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  border: none;
  cursor: pointer;
  margin: auto;
  transition: background 0.2s, transform 0.2s;
}

.post-creator-plus-btn:hover { background: #2a7fd1; transform: scale(1.05); }

/* Modal Styles */
.post-creator-modal {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
}

.post-creator-modal-box {
  background: var(--background, #23243a);
  border-radius: 1.5rem;
  padding: 2.2rem 2.2rem 1.5rem 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 32px rgba(0,0,0,0.22);
  min-width: 320px;
  width: 480px; /* Fixed width for all post creator modals */
  max-width: 96vw;
  box-sizing: border-box;
}

.post-creator-modal-title {
  font-weight: bold;
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}

.post-creator-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 90px);
  grid-gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.post-creator-modal-row { width: 90%; }

.post-creator-modal-row-settings { width: 100%; margin: 6px 0; }

.post-creator-modal-row-description {
  display: block !important;
  width: 100%;
  margin: 6px 0;
}

.post-creator-modal-row-description-field {
  min-height: 64px;
  padding: 8px;
  border-radius: 8px;
  color: var(--text);
  background: var(--background2);
  margin-top: 6px;
  outline: none;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 1em;
}

.post-creator-modal-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 90px;
	height: 90px;
	color: var(--accent);
  background: var(--sidebarText);
	border: none;
	border-radius: 1.1rem;
	font-size: 2.2rem;
	cursor: pointer;
	box-shadow: 0 2px 12px rgba(0,0,0,0.13);
	transition: background 0.15s;
}

.post-creator-modal-btn:hover {
  background: #2a7fd1;
}

.post-creator-modal-btn-label {
  font-size: 1rem;
  margin-top: 0.5rem;
}

.media-upload-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  height: 100% !important;
  width: -webkit-fill-available !important;
  height: -webkit-fill-available !important;
}

.media-upload-container img, .media-upload-container video {
  width: -webkit-fill-available;
  width: 100%;
  height: auto;
}

/* Text formatting markdowns */
.formatFade {
  opacity: 60%;
}

.text-slide-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

@media screen and (max-width: 499px) and (orientation: portrait){

  #postCreator .carousel {
    width: 100%;
  }

  #postCreator .carousel-wrapper {
    margin: 0 0 1em 0;
    border-radius: 1em;
  }

}