/* --- Posts --- */
#feed {
  width: 25%;
}

.carousel {
  display: flex;
  height: 100vh;
}

.carousel-wrapper {
  position: relative;
  margin: 1em 0;
  width: 100%;
  overflow: hidden;
  background: var(--sidebar, black);
  border-radius: 1em;
  max-width: 100vw;
  box-sizing: border-box;
}

.carousel-inner { position: relative; width: 100%; height: 100%; background: var(--sidebar)}
.carousel-slide { display: flex; width: 100%; height: 100%; position: absolute; top: 0; left: 0; justify-content: center; align-items: center; transition: transform 0.4s ease; }
.carousel-slide > * { width: 100%; height: auto; object-fit: contain; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: gray; margin: 0 2px; transition: transform 0.2s; }
.carousel-dot.active { background: white; transform: scale(1.4); }
.carousel-dots { position: absolute; top: 8px; right: 8px; display: flex; z-index: 3; }

.carousel-nav {
	position: absolute;
	bottom: 8px;
	z-index: 3;
	display: flex;
	justify-content: space-between;
	padding: 0 1em;
  width: -webkit-fill-available;
	width: 97%;
	right: -10px;
}

.nav-btn {
  display: flex;
  background: rgba(255,255,255,0.1);
  border: 2px solid var(--text, white);
  color: var(--text, white);
  border-radius: 100%;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  font-family: 'Material Icons';
  cursor: pointer;
}

.profile-header {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 3;
}
.profile-header img {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
}
.profile-header .info {
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
}
.profile-header .name {
  font-weight: bold;
}

.text-media {
  width: 100%;
  word-break: break-word;
  padding: 0 18%
}
.text-large { font-size: 48px; text-align: center; }
.text-med { font-size: 26px; text-align: center;}
.text-smol { font-size: 18px; text-align: left; }

video::-webkit-media-controls,
video::-webkit-media-controls-panel,
video::-webkit-media-controls-play-button,
video::-webkit-media-controls-volume-slider,
video::-webkit-media-controls-mute-button,
video::-webkit-media-controls-timeline,
video::-webkit-media-controls-current-time-display,
video::-webkit-media-controls-time-remaining-display,
video::-webkit-media-controls-fullscreen-button {
  display: none !important;
}
video::-moz-media-controls,
video::--ms-media-controls {
  display: none !important;
}
video {
  width: 100%;
  pointer-events: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.post-actions-bar {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%) scale(90%);
  display: flex;
  flex-direction: column;
  gap: 1em;
  z-index: 3;
  align-items: center;
  opacity: 0.4;
  transition: opacity 0.3s ease, transform 0.3s ease;
}


.post-actions-bar:hover,
.post-actions-bar:active {
  opacity: 1;
}

/* Action buttons */
.action-btn {
  background: var(--sidebar, rgba(30,30,30,0.85));
  border: none;
  border-radius: 50%;
  color: var(--text, black);
  padding: 8px 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--accent, rgba(0,0,0,0.12));
  transition: background 0.2s;
  outline: none;
  margin: 6px 0;
  transition: transform 0.5s ease;
}

.action-btn.close-button { padding: 1px}

.action-btn:hover, .action-btn:focus {
  background: rgba(255,255,255,0.18);
  transform: scale(90%);
}

.action-btn:active {
  transform: scale(110%);
}

.action-btn .material-icons {
  display: block;
  font-size: 20px;
  padding: 8px;
}

/* --- Comment action buttons --- */
.comment-action-btn {
  background: var(--sidebar, rgba(30,30,30,0.85));
  border: none;
  border-radius: 50%;
  color: var(--text, black);
  padding: 2px 2px;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--accent, rgba(0,0,0,0.12));
  transition: background 0.2s, transform 0.2s;
  outline: none;
  margin-left: 0.2em;
  margin-right: 0.2em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comment-action-btn:hover, .comment-action-btn:focus {
  background: rgba(255,255,255,0.18);
  transform: scale(0.95);
}

.comment-action-btn:active {
  transform: scale(1.08);
}

.comment-action-btn .material-icons {
  font-size: 16px !important;
  padding: 4px;
  display: block;
  line-height: 1;
}

/* --- Tablet Viewport --- */
@media screen and (max-width: 1199px) and (orientation: portrait){
  #feed {
    position: absolute;
    display: flex;
    flex-direction: column;
    width: -webkit-fill-available;
    width: 100%;
  }

  .carousel {
    display: flex;
    justify-content: center;
    width: -webkit-fill-available;
  }

  .carousel-wrapper {
    margin: 6em 0;
    width: 55%;
  }
}

/* --- Phone Viewport ---  */
@media screen and (max-width: 499px) and (orientation: portrait){
  .carousel-wrapper {
    border-radius: 0;
    margin: 0 0 4em;
    width: 100vh;
  }
}