:root {
	--colour-r: #ed1c24;
	--colour-y: #fff200;
	--colour-g: #00a651;
	--colour-b: #00aeef;
  
	--bodyFont: "halyard-text", sans-serif;
	--bodyFontSize: 1rem;
	--bodyFontWeight: normal;
	--bodyFontBoldWeight: 200;
	--bodyLineHeight: 1.25;
	--headingFont: "korolev-condensed", sans-serif;
	--headingFontColour: #e94b84;
	--headingFontStyle: normal;
	--headingFontWeight: 900;
	--headingLetterSpacing: 0;
	--navFontSize: 1.5rem;
	--navLetterSpacing: -.1rem;
	--ink: #555;
	--paper: #fff;
	
}

/* global */

body,html {
	background: var(--paper);
	background-attachment: fixed;
	background-image: url("/assets/img/bg.jpg");
	background-repeat: no-repeat;
	background-size: cover;
	color: var(--ink);
	display: flex;
	flex-direction: column;
	font-family: var(--bodyFont);
	font-size: var(--bodyFontSize);
	font-variation-settings: "wght" 300;
	height: 100%;
	line-height: var(--bodyLineHeight);
	margin: 0;
	padding: 0;
	width: 100%;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
	color: var(--headingFontColour);
	font-family:	var(--headingFont);
	font-weight:	var(--headingFontWeight);
	font-style:		var(--headingFontStyle);
	letter-spacing:	var(--headingLetterSpacing);
	text-transform:	lowercase;
}

p strong {
	font-weight: var(--bodyFontBoldWeight);
}

.t-r {
	color: var(--colour-r);
}

.t-y {
	color: var(--colour-y);
}

.t-g {
	color: var(--colour-g);
}

.t-b {
	color: var(--colour-b);
}

a {
	-webkit-transition: all .5s ease-in-out;
	-moz-transition: all .5s ease-in-out;
	-ms-transition: all .5s ease-in-out;
	-o-transition: all .5s ease-in-out;
	transition: all .5s ease-in-out;
}

section {
	flex-grow: 1;
}

/* layout */

.content {
	align-items: stretch;
	display: flex;
	flex-direction: row;
	flex-grow: 2;
	padding: 3rem 0 0;
}

.content .pad {
	padding: 0 3rem;
}

.content .col-end {
	flex-basis: 25%;
}

.content .col-main {
	flex-basis: 50%;
}

.content .col-phat {
	flex-basis: 75%;
}

.content .quoteblock {
	align-self: flex-end;
}

/* nav */

nav {
	display: flex;
	justify-content: flex-end;
	padding: 0;
	width: 100%;
}

.logo {
	display: block;
	opacity: .25;
	padding: 1rem;
}

.logo:hover {
	opacity: .5;
}

.logo .hie {
	display: block;
	height: 2rem;
	width: auto;
}

.logo .hello {
	margin-bottom: .25rem;
}

/* home */

#posts {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 1rem;
	list-style: none;
	margin: 1rem 0;
	padding: 0;
}

#posts li {
	display: flex;
	flex-basis: calc(25% - 1.5rem);
	flex-direction: column;
	flex-grow: 0;
	flex-shrink: 0;
}

#posts li a {
	width: 100%;
}

#posts li a:hover {
	text-decoration: none;
}

#posts li a .img-box {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	position: relative;
	width: 100%;
}

#posts li a .img-box .post-img {
    display: block;
    filter: grayscale(0);
    height: 100%;
    left: 50%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 100%;
    z-index: 50;

	-webkit-transition: all .5s ease-in-out;
	-moz-transition: all .5s ease-in-out;
	-ms-transition: all .5s ease-in-out;
	-o-transition: all .5s ease-in-out;
	transition: all .5s ease-in-out;

}

#posts li a:hover .img-box .post-img {
	filter: grayscale(1);
	height: 108%;
	width: 108%;
}

#posts li a h2 {
	color: var(--colour-r);
	background: #eee;
	display: block;
	font-size: 1.4rem;
	margin: 0;
	padding: .5rem;
	width: 100%;
}

#posts li a span {
	align-content: stretch;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	width: 100%;
}

#posts li a span p {
	color: #fff;
	font-size: .75rem;
	font-weight: 700;
	line-height: 1.5rem;
	margin: 0;
	padding: .1rem .15rem 0;
	text-align: center;
	text-transform: uppercase;
}

#posts li a span p.date {
	background: var(--colour-b);
	flex-basis: 75%;
}

#posts li a span p.view {
	background: var(--colour-g);
	flex-basis: 25%;
}

@media screen and (max-width: 1199px) {

	/*#posts li {
		flex-basis: calc(33% - 1.3rem);
	}*/
	#posts li a h2 {
		font-size: 1.1rem;
	}
	
}

@media screen and (max-width: 991px) {

	#posts li {
		flex-basis: calc(33% - 1.3rem);
	}
	#posts li a h2 {
		font-size: 1rem;
	}

}

@media screen and (max-width: 767px) {

	#posts li {
		flex-basis: calc(50% - .5rem);
	}

}

@media screen and (max-width: 479px) {

	#posts {
		gap: .5rem;
		margin: 1rem -15px;
	}
	#posts li {
		flex-basis: 100%;
	}
	#posts li a span p {
		font-size: .75rem;
		line-height: 1;
		padding: .25rem .5rem;
	}
	#posts li .img-title {
		display: flex;
		flex-direction: row;
	}
	#posts li a .img-box {
		width: 25%;
	}
	#posts li a h2 {
		font-size: 1.2rem;
	}

}

/* pagination */

.pagination {
	display: flex;
	flex-direction: row;
	gap: .5rem;
	justify-content: center;
	margin: 1rem 0;
}

.pagination .page-item .page-link {
	background: transparent;
	border: none;
	color: var(--colour-b);
	text-transform: uppercase;
}

.pagination .page-item.active .page-link {
	background-color: transparent;
	color: var(--colour-g);
	font-weight: 700;
}

.pagination .page-item .page-link.prev , .pagination .page-item .page-link.next {
	color: var(--colour-r);
	/*font-family: var(--headingFont);*/
}

/* post page */

section {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.box {
	display: flex;
	flex-direction: row;
	/*height: 15rem;
	margin-right: 2rem;*/
	max-width: 60rem;
	position: relative;
}

.box:after {
	bottom: -.25rem;
	content: '';
	height: .25rem;
	left: 0;
	max-width: 60rem;
	position: absolute;
	width: calc(100% - 3rem);
	
	background: #ED1C24;
	background: -webkit-linear-gradient(to right, #ED1C24 0%, #ED1C24 25%, #FFF200 25%, #FFF200 50%, #00A651 50%, #00A651 75%, #00AEEF 75%);
	background: -moz-linear-gradient(to right, #ED1C24 0%, #ED1C24 25%, #FFF200 25%, #FFF200 50%, #00A651 50%, #00A651 75%, #00AEEF 75%);
	background: linear-gradient(to right, #ED1C24 0%, #ED1C24 25%, #FFF200 25%, #FFF200 50%, #00A651 50%, #00A651 75%, #00AEEF 75%);
}

.box .img {
	aspect-ratio: 1 / 1;
	background: rgba(0,0,0,.25);
	height: 14.25rem;
}

.box .info {
	background: #fff;
	height: 14.25rem;
	/*max-width: 45rem;*/
	padding: 1rem;
	width: 100%;
}

.box .info h1 {
	color: var(--colour-r);
	font-size: 1.75rem;
	margin-bottom: .25rem;
	margin-top: -.25rem;
}

.box .info p {
	font-size: .9rem;
}

.image {
	height: auto;
	margin-bottom: 2rem;
	position: relative;
	width: 100%;
}

/*.image:after {
	background: #ED1C24;
	background: -webkit-linear-gradient(to right, #ED1C24 0%, #ED1C24 25%, #FFF200 25%, #FFF200 50%, #00A651 50%, #00A651 75%, #00AEEF 75%);
	background: -moz-linear-gradient(to right, #ED1C24 0%, #ED1C24 25%, #FFF200 25%, #FFF200 50%, #00A651 50%, #00A651 75%, #00AEEF 75%);
	background: linear-gradient(to right, #ED1C24 0%, #ED1C24 25%, #FFF200 25%, #FFF200 50%, #00A651 50%, #00A651 75%, #00AEEF 75%);
	bottom: 5px;
	content: '';
	display: block;
	height: 5px;
	left: 0;
	opacity: 0;
	position: absolute;
	width: 100%;

}*/

.box .info .date {
	background: var(--colour-b);
	color: #fff;
	display: inline-block;
	font-size: .75rem;
	font-weight: 700;
	line-height: 1;
	margin: 0 0 .5rem -1rem;
	padding: .25rem .5rem .15rem 1rem;
	position: relative;
	text-transform: uppercase;
}

.box .back {
	background: var(--colour-g);
	color: #fff;
	display: inline-block;
	font-size: .75rem;
	font-weight: 700;
	height: 1.5rem;
	line-height: 1rem;
	padding: .3rem .5rem .2rem;
	position: relative;
	transform: rotate(90deg) translate(.75rem, .75rem);
	text-transform: uppercase;
}

.box .back i {
	margin-left: .25rem;
}

/*.box .back:after {
	border-bottom: .75rem solid transparent;
	border-left: .75rem solid red;
	border-right: .75rem solid transparent;
	border-top: .75rem solid red;
	display: block;
	height: 1.5rem;
	position: absolute;
	top: 0;
	right: 0;
	width: 1.5rem;
}*/

.box .back:hover {
	background: var(--colour-b);
	text-decoration: none;
}

@media screen and (max-width: 767px) {
	.box {
		flex-direction: column-reverse;
	}
	.box:after {
		width: 100%;
	}
	.box .back {
		text-align: right;
		transform: rotate(0) translate(0, 0);
	}
	.box .info {
		height: auto;
	}
	.box .img {
		height: auto;
	}
	.box .img .image {
		margin-bottom: 0;
	}
}

@media screen and (min-width: 401px) and (max-width: 767px) {
	.box .img {
		height: 15rem;
	}
	.box .img .image {
		height: 15rem;
		width: 15rem;
	}
}

/* footer */

footer {
	align-items: flex-end;
	display: flex;
	height: 4rem;
	justify-content: flex-end;
	padding: 1rem;
}

footer p {
	font-size: .75rem;
	margin-bottom: 0;
	opacity: .75;
	text-transform: lowercase;
}

footer a {
	text-decoration: underline;
	text-decoration-color: var(--colour-y);
}

footer a:hover {
	text-decoration: underline;
	text-decoration-color: var(--colour-r);
}

footer a.sc {
	color: var(--colour-g);
}

footer a.fv {
	color: var(--colour-b);
}