
/******************************************
 	Blog 
******************************************/

body.blog { overflow-x: unset; }

.blog-header {
	background-image: url("../img/header-blog.jpg");
    background-size: cover;
    background-position: center center;
    max-height: 55vh;
}

.blog .main { min-height: 0; }

.blog-header + .main { margin-top: 0; }



/******************************************
 	Blog Header
******************************************/

.single-post h1 {
	font-size: 22px; 
	color: var(--darkgrey);
}

.single-post h2, .blog-post h2 { font-size: 20px; }
.single-post h2 strong, .blog-post h2 strong { font-weigh: 600; }

@media only screen and (min-width: 667px) {
	.single-post h1 { font-size: 28px; }
	.single-post h2, .blog-post h2  { font-size: 24px; }
}

@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) {
	.single-post h1 { font-size: 28px; }
	.single-post h2, .blog-post h2  { font-size: 24px; }
}

@media only screen and (min-width: 992px) {
	.single-post h1 { font-size: 42px; }
	.single-post h2, .blog-post h2  { font-size: 30px; }
}

@media only screen and (min-width: 1200px) {
	.single-post h1 { font-size: 48px; }
	.single-post h2, .blog-post h2  { font-size: 36px; }
} 

.blog-post {
    padding: 10% 0;
    border-bottom: 1px solid var(--lightgrey);
}

.blog-post.single { padding-top: 0; }

.blog-post:first-child {
    padding-top:0;
    margin-top: 0;
}

.blog-post:last-child { border:0; }

.author-image,
.blog-metas {
    display: inline-block;
    vertical-align: middle;
}

.author-image img {
    margin-right: 15px;
    width: 60px;
}

.blog-metas .author-name a { border-color: transparent; }

.blog-post h2 a {
    border-bottom: none! important;
    color: var(--darkgrey);
}

.blog-post-img {
    margin: 0;     
    max-height: 400px;
    overflow: hidden;
    align-items: center;
    justify-content: center; 
    flex: 0 auto;
    background-color: transparent;
}

.blog-post-img-caption {
	margin-top: 5px;
	color: var(--lightgrey);
	font-style: italic;
}

.single-post .blog-post-img {
	max-height: none;
/* 	background: var(--lightgrey); */
}

.blog-post-img a {
	display: block;
	width: 100%;
}

.blog-post-img a img,
.blog-post-img img { width: 100%; }

.single-post p + h2, .blog-post p + h2 { margin-top: 30px; }




/******************************************
 	Pagination
******************************************/

.pagination {
    background: var(--superlightgrey);
    border-radius: 0;
    margin-bottom: 0;
    color: var(--darkgrey);
    padding: 50px 0;
    width: 100%!important;
    text-align: center;
}

.pagination h2 { display: none; }

.nav-links { font-size: 17px; }

.nav-links .current,
.nav-links a:hover {
	color: var(--superdarkbrown);
}

.nav-links a,
.nav-links span {
	display: inline-block;
   border-bottom: 0;
   margin: 8px 0;
   padding: 4px 10px;    
}

.nav-links a.next,
.nav-links a.prev {
	margin: 0 15px;
}

/*
.current {
    background: var(--color1);
    padding: 4px 10px;
}
*/

#searchform input.field {
    border:0;
    background: white;
    padding: 12px 30px;
    width: 30%;
    min-width: 300px;
    opacity: 1;
}

.wp-caption.aligncenter { margin: 50px auto; }

.wp-caption-text {
    font-size: 14px;
    margin: 10px 0;
    line-height: 1.6;
    color: var(--grey);
}

.blog .author-image a { border: 0; }

.blog-metas p {
    margin-bottom: 0;
    font-size: 13px;
    line-height: 1.4;
    display: block;
}

.categories p { font-size: 13px; }

@media only screen and (min-width: 992px) {
    .blog-metas p { font-size: 16px; }
    .categories p { font-size: 16px; }
}

.main.blog { padding: 0; }

h4.arrow-right {
	padding-right: 30px;
	background: url("../img/icon-chevron-orange-right.svg") no-repeat right top;
	background-size: 12px;
	line-height: 1.5;
	text-align: right;
}

h4.arrow-left {
	padding-left: 30px;
	background: url("../img/icon-chevron-orange-left.svg") no-repeat left top;
	background-size: 12px;
	line-height: 1.5;
}

@media only screen and (min-width: 667px) {
	
	h4.arrow-right,
	h4.arrow-left {
		font-size: 16px;
		background-position-y: 1px;
		background-size: 12px;
	}
}

@media only screen and (min-width: 992px) {
/*
	h4.arrow-right,
	h4.arrow-left {
		background-position-y: 5px;
	}
*/
}

.post-info {
	display: flex;
	flex-direction: row;
	align-items: center;
	margin-top: 15px;
	margin-bottom: 15px;
	text-transform: none;
	color: var(--grey);
	letter-spacing: normal;
	font-size: 13px;
}

.post-info small,
.post-info small.post-author:last-child {
	margin-bottom: 0 !important;
	text-transform: none;
	color: var(--grey);
	letter-spacing: normal;
	font-size: 13px;
}

.post-info strong { font-weight: 500; }

.post-info img {
	border-radius: 50%;
	margin-right: 10px;
	overflow: hidden;
	width: 32px;
	height: auto;
}

@media only screen and (min-width: 992px) {
	.post-info img { width: 44px; }
	.post-info small { font-size: 15px; }
}

@media only screen and (min-width: 667px) {
	.blog .alignleft {
		float: left;
		margin: 0 15px 15px 0;
	}
}



/******************************************
	Cat List
******************************************/

ul.cat-list {
	position: sticky;
	position: -webkit-sticky;
	top: 150px;
}

ul.cat-list,
ul.cat-list ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

ul.cat-list li { font-size: 14px; }

@media only screen and (min-width: 992px) {
	ul.cat-list li { font-size: 16px; }
}

@media only screen and (min-width: 1200px) {
	ul.cat-list li { font-size: 17px; }
}

.current-cat { font-weight: 700; }



/******************************************
	Table
******************************************/

.blog-post .table-responsive {
	overflow: auto;
}

.blog-post .table-responsive table {
	width: 100%;
	margin-bottom: 30px;
}

.blog-post .table-responsive table th,
.blog-post .table-responsive table td {
	padding: 10px;
/* 	white-space: nowrap; */
	text-align: left;
}

.blog-post .table-responsive table th {
	background-color: var(--lightgrey);
	font-size: 13px;
	vertical-align: bottom;
	font-weight: 600;
}

@media only screen and (min-width: 1200px) {
	.blog-post .table-responsive table { table-layout: auto; }
}



/******************************************
	AJAX Posts
******************************************/

.ajax-posts__row:after {
	content: '';
	position: absolute;
	display: block !important;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	background-color: var(--color4light);
}

@media only screen and (min-width: 992px) {
	.ajax-posts__row:after { width: 85%; }
}

@media only screen and (min-width: 1200px) {
	.ajax-posts__row:after { width: 80%; }
}

@media only screen and (min-width: 667px) {
	.ajax-posts__grid {
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-end;
		gap: 30px;
	}
}

.ajax-posts__item {
	position: relative;
	background-color: white;
	margin-bottom: 32px;
}

.ajax-posts__item--first { min-height: 480px; }

@media only screen and (min-width: 667px) {
	.ajax-posts__item { width: calc(40% - 16px); flex: 0 0 auto; margin-bottom: 0; }
	.ajax-posts__item--first { width: calc(60% - 15px); min-height: 0; }
}

@media only screen and (min-width: 1440px) {
	.ajax-posts__item { width: calc(27% - 20px); }
	.ajax-posts__item--first { width: calc(46% - 20px); }
}

.ajax-posts__thumb {
	margin: 0;
	display: block;
	position: relative;
	width: 100%;
	height: 240px;
	overflow: hidden;
}

.ajax-posts__thumb img {
	position: absolute;
	object-fit: cover;
	object-position: center;
	width: 100%;
	height: 100%;
	transition: .3s ease-in-out all;
}

.ajax-posts__thumb:hover img {
	transform: scale(1.1);
}

.ajax-posts__content {
	padding: 24px;
	position: relative;
	z-index: 1;
}

@media only screen and (min-width: 992px) {
	.ajax-posts__content { padding: 32px; }
}

.ajax-posts__title  {
	font-size: 20px;
	font-weight: 500;
	line-height: 1.3;
	margin-bottom: 16px;
}

.ajax-posts__title a { color: var(--darkgrey); }

.ajax-posts__excerpt { margin-bottom: 0; }

.ajax-posts__readingtime {
	font-size: 80%;
	color: var(--grey) !important;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	margin-block: 12px 0;
}

.ajax-posts__item--first.ajax-posts__item {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;	
}

.ajax-posts__item--first .ajax-posts__thumb {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

@media only screen and (min-width: 992px) {
	.ajax-posts__item--first .ajax-posts__title { font-size: 24px; }
}

.ajax-posts__item--first .ajax-posts__thumb:before {
	content: '';
	position: absolute;
	display: block;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 80%;
	z-index: 1;
	background-image: linear-gradient(transparent, rgba(0, 0, 0, .85));
}

.ajax-posts__item--first .ajax-posts__thumb img {
	position: absolute;
	object-fit: cover;
	object-position: center;
	height: 100%;
	width: 100%;	
}

@media only screen and (min-width: 1200px) {
	.ajax-posts__item--first .ajax-posts__content { width: 75%; }
}

.ajax-posts__item--first .ajax-posts__readingtime { opacity: .7; }

.ajax-posts__item--first .ajax-posts__title a,
.ajax-posts__item--first .ajax-posts__excerpt,
.ajax-posts__item--first .ajax-posts__readingtime { color: white !important; }

.ajax-posts__load {
	text-align: center;
	margin-top: 48px;
}

.ajax-posts__load button {
	cursor: pointer;
}

.ajax-posts__load button:focus,
.ajax-posts__load button:active,
.ajax-posts__load button:hover {
	background-color: transparent !important;
	color: var(--color1);
}

.ajax-posts__load button.loading .lds-ring{
	display: inline-block;
}


.lds-ring {
  display: none;
  position: relative;
  width: 24px;
  height: 24px;
  margin-top: -12px;
}
.lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 20px;
  height: 20px;
  margin: 8px;
  border: 2px solid var(--color1);
  border-radius: 50%;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: var(--color1) transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
  animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
  animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
  animation-delay: -0.15s;
}
@keyframes lds-ring {
  0% {
	transform: rotate(0deg);
  }
  100% {
	transform: rotate(360deg);
  }
}