/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(JTUSjIg1_i6t8kCHKm459Wdhyzbi.woff2) format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(JTUSjIg1_i6t8kCHKm459Wlhyw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html{
	height:100vh;
}
body{
	margin:0;
	min-height: 100%;
	/* background-image: linear-gradient(to bottom, rgba(25, 25, 25, .5) 2px, transparent 2px), radial-gradient(rgba(255,255,255,0.3) 5px, transparent 5px); */
	/* background-color: #412; */
	/* background-size: 100% 4px, 10px 10px; */
	/* animation: anim-body-background 0.5s linear infinite; */
	
	/* font-family: Arial; */
	padding: 20px;
	color: black;
	font-family: Montserrat;
}

*{
	box-sizing: border-box;
	margin: 0;
}
h1, h2, h3, h4, h5, h6{
	font-family: Montserrat;
}
img,
svg{
	max-width: 100%;
	max-height: 100%;
}
img{
	display: block;
	height: auto;
}
a{
	color: #1164ff;
}

figure{
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 20px;
}
figure ~ figure{
	margin-top: 50px;
}
figcaption{
	text-align: right;
}
figcaption p{
	margin-top: 20px;
}

figure:nth-of-type(2n+1){
	grid-template-columns: 1fr auto;
}
figure:nth-of-type(2n+1) > :first-child{
	order: 2;
}
figure:nth-of-type(2n+1) figcaption{
	text-align: left;
}

/* Utils */
[col],
[row]{
	display: grid;
	grid-gap: 5px;
}
[col="2"]{
	grid-template-columns: repeat(2, 1fr);
}
[colspan="2"]{
	grid-column: span 2;
}
[rowspan="2"]{
	grid-row: span 2;
}
[row="2"]{
	grid-template-rows: repeat(2, 1fr);
}


/* MAIN */
#main{
	max-width: 1200px;
	margin: auto;
}
section#top{
	padding: 20px;
	margin-bottom: 20px;
	background: #222;
	color: white;
}

section.tag{
	position: relative;
	padding: 10px 20px;
	padding-left: 50px;
	margin-top: 20px;
	background: #222;
	color: white;
}
section.tag.end{
	padding: 20px 20px;
	padding-right: 50px;
	text-align: right;
}
section.tag.sticky{
	position: sticky;
	top: 0;
}
section.tag h1{
	line-height: 1em;
}

section.tag::before {
  content: "";
  display: block;
  height: 100%;
  width: 10px;
  background: white;
  position: absolute;
  top: 0;
  left: 20px;
}
section.tag.end::before{
	left: auto;
	right: 20px;
}
section.tag.sticky::after{
	content: "";
	display: block;
	position: absolute;
	left: 0;
	bottom: 100%;
	width: 100%;
	height: 2px;
	background: black;
}

@media (max-width: 1000px){
	figure,
	figure:nth-of-type(2n+1){
		grid-template-columns: 1fr;
		justify-items: flex-start;
	}
	figure + figure{
		margin-top: 20px;
	}
	figure > :first-child{
		order: 2;
	}
	figure > figcaption{
		text-align: left;
		margin-bottom: 10px;
	}
}