html, body {
	height: 100%;
	overflow: hidden;
	margin: 0;
}
body {
	background: #000;
	font-size: 2.45lvh;
	font-family: "Lato", sans-serif;
	font-weight: 800;
	color: #fff;
}
.wrapper {
	display: flex;
	flex-flow: column;
	height: 100%;
	overflow: hidden;
}
h2 {
	text-align: center;
	text-transform: uppercase;
	font-weight: 900;
	font-size: 3.675lvh;
}
@media screen and (max-width: 420px) {
 h2 {
  transform: scale(.8, .9);
 }
}
.scene {
  display: flex;
  flex-flow: column-reverse;
	flex: 1 0 auto;
	width: 40lvh;
	margin: 0 auto;
	position: relative;
}
.post {
	text-wrap: balance;
	line-height: 1.22;
	padding: .25em 0;
}
.post:not(.calculated) {
	position: absolute;
	width: 100%;
}
.post.first-right.calculated span:nth-child(1) {
	text-align: right;
	text-align-last: right;
	width: fit-content;
	margin-left: auto;
}
.post.first-left.calculated span:nth-child(1) {
	text-align: left;
	text-align-last: left;
	width: fit-content;
	margin-right: auto;
}
.post.last-right.calculated span:nth-last-child(1) {
	text-align: right;
	text-align-last: right;
	width: fit-content;
	margin-left: auto;
}
.post.last-left.calculated span:nth-last-child(1) {
	text-align: left;
	text-align-last: left;
	width: fit-content;
	margin-right: auto;
}
.post.cleargap {
  margin-bottom: -.8rem;
}
@container (width >= 800px) {
	
}
.post:nth-child(1) {
	text-align-last: justify;
}
.post:nth-child(even) {
	text-align: right;
}
.post span {
	text-align: justify;
	text-align-last: justify;
  /*background: red;*/
  color: white;
}

.post.calculated span {
	display: block;
}
.post.hidden {
	/*opacity: 0;*/
	/*pointer-events: none;*/
}
.post.absolute {
	position: absolute;
	width: 100%;
}

.post span:hover {
	/*background: orange;*/
}



/* Animacja wejścia */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(5px) scaleY(1.2);
		filter: blur(120px);
  }
	60% {
		filter: blur(5px);
	}
  100% {
    opacity: 1;
    transform: translateY(0) scaleY(1);
		filter: blur(0);
  }
}
/* Animacja wyjścia */
@keyframes fadeOut {
	0% {
		opacity: 100;
		transform: translateY(0);
		filter: blur(0);
	}
	100% {
		opacity: 0;
		transform: translateY(-10px);
		filter: blur(25px);
	}
}

/* Każdy post animuje */
.post {
  opacity: 0;
  animation: fadeUp 3.4s ease-out forwards;
  animation-delay: 2s;
}
.post.triggered {
	animation-delay: 0s;
	animation-duration: 1.7s;
}
.post.fadeout {
	animation: fadeOut 4.2s ease-out forwards;
}
