/*
Theme Name: Blocks (2017)
Theme URI: http://www.dcthomson.co.uk
Author: DC Thomson
Author URI: http://www.dcthomson.co.uk
Description: Blocks layout CSS for the Blocks theme (2017).
*/

/**********
Blocks: All
**********/

.block:not(:first-child) {
	margin-top: 20px;
}

.block:not(:last-child) {
	margin-bottom: 20px;
}

.block > .wrap {
	padding-top: 20px;
	padding-bottom: 20px;
	background-color: #fff;
}

.post--grid {
	position: relative;
	padding-bottom: 32px;
}

/* Blocks > All > Titles */
.title--block {
	margin-bottom: 20px;
}

.package--main .title--sm,
.block--feature .title--md {
	margin-top: 10px;
	margin-bottom: 10px;
}

/*************
Block: Premium
*************/

.block--premium .wrap {
	padding-left: 20px;
	padding-right: 20px;
	width: 100%;
	max-width: 980px;
}

.block--premium .post {
	box-sizing: border-box;
}

.block--premium .title--lg {
	margin-bottom: 1rem;
	text-align: center;
}

.block--premium .post__title {
	margin-bottom: .75rem;
}

.block--premium .post__excerpt {
	line-height: 120%;
	font-family: 'Arial', sans-serif;
	font-size: 87.5%;
}

.block--premium .post__excerpt a {
	color: #00f;
}

.block--premium .post__excerpt a:hover,
.block--premium .post__excerpt a:focus {
	text-decoration: underline;
}

.block--premium .label--premium {
	display: inline-block;
	margin-bottom: 1rem;
	padding-bottom: 4px;
	border-bottom: 1px dashed #ddd;
}

/* Block: Premium > Thumbnail */
.block--premium .thumbnail {
	box-sizing: border-box;
}

.block--premium .thumbnail__caption {
	position: relative;
	padding: 10px 10px 10px 40px;
	background-color: #eee;
}

.block--premium .thumbnail__caption:empty {
	display: none;
}

.block--premium .thumbnail__caption:before {
	content: '\f102';
	position: absolute;
	top: 10px;
	left: 10px;
	display: block;
	width: 20px;
	height: 20px;
	font-family: 'Genericons', sans-serif;
	font-size: 20px;
}

.block--premium .thumbnail__caption-text {
	font-size: 75%;
}

/* Block: Premium > Grid: Aside / Grid: List */
.block--premium__grid-aside .thumbnail,
.block--premium__grid-list .thumbnail {
	display: none;
}

.block--premium__grid-aside .thumbnail--show .thumbnail,
.block--premium__grid-list .thumbnail--show .thumbnail {
	display: block;
}

/*************
Block: Package
*************/

/* Block: Package > All */
.package-list {
	padding-top: 5px;
	border-top: 1px solid #e5e5e5;
}

/* Block: Package > Top Package */
.package--top {
	padding-left: 10px;
	padding-right: 10px;
	box-sizing: border-box;
}

.package--top__title--caps {
	display: inline-block;
}

.package--top__title {
	margin-top: .25em;
	margin-bottom: .5em;
}

.package-list--top {
	margin-top: 10px;
}

.package--top .post__meta {
	padding-bottom: 10px;
	border-bottom: 1px dashed #ddd;
}

.package--top .excerpt {
	margin-bottom: 10px;
}

/* Block: Package > Signup */
.package--top__signup {
	position: relative;
	display: block;
	padding: 20px;
	overflow: hidden;
}

.package--top__signup .signup__icon {
	position: relative;
	width: 20px;
	height: 20px;
}

.package--top__signup .signup__title {
	margin-left: 4px;
	margin-right: 0;
	font-size: 87.5%;
}

/* Block: Package > Shared */
.package--top .cta--bg,
.package--top__signup {
	width: 300px;
}

/* Block: Package > Main Packages */

.block--package .title--lg {
	margin-bottom: 1rem;
}

.block--package .row-tablet {
	margin-top: 20px;
}

.package--main {
	margin-bottom: 20px;
}

.package--main:nth-child(2n+1) {
	clear: both;
}

.package--main .post__meta {
	padding-bottom: 10px;
}

/**********
Block: News
**********/

/* Block: News > Feature */
.post--feature {
	margin-bottom: 20px;
}

/* Block: News > Splash */
.block--splash .post__meta {
	padding-top: 10px;
	padding-bottom: 10px;
	border-top: 1px dashed #ddd;
}

.column--splash + .column--splash {
	margin-top: 20px;
}

.post--splash .title--lg {
	margin-top: 10px;
	margin-bottom: 10px;
}

/* Block: News > Grid */
.block--grid .column--grid {
	margin-bottom: 20px;
}

.block--grid .column--grid:nth-child(2n + 1) {
	clear: both;
}

.block--grid .post--grid .title--sm {
	padding-top: 10px;
	padding-bottom: 10px;
}

/*************
Block: Gallery
*************/

/* Block: Gallery > Pager */
.gallery__pager {
	background-color: #fafafa;
}

.gallery__page {
	float: left;
	position: relative;
	padding: 10px;
	width: 33.333%;
	line-height: 130%;
	background-color: #eee;
	font-size: 75%;
}

.gallery__page:hover {
	background-color: #ddd;
}

.gallery__page.js-pager-active {
	color: #fff;
}

.gallery__page.js-pager-active:before {
	content: '\f500';
	z-index: 1000;
	position: absolute;
	top: -18px;
	left: 50%;
	display: block;
	margin-left: -10px;
	width: 20px;
	height: 20px;
	line-height: 20px;
	font-family: 'Genericons', sans-serif;
	font-size: 20px;
}

.gallery__pager--default {
	width: 100%;
}

.gallery__pager--default > .gallery__page {
	display: block;
	width: 100%;
	font-size: 100%;
}

/* Block: Gallery > Gallery */
.gallery__viewport {
	position: relative;
}

.gallery__container {
	position: relative;
	overflow: hidden;
}

.gallery__container:before {
	background-color: transparent;
}

.gallery__container.js-gallery-not-ready img {
	display: none;
}

.gallery__group {
	position: relative;
	left: 0;
	width: 1000%;
	background-color: #333;
	overflow: hidden;
}

.gallery__group.gallery-position__0 {
	left: 0;
}

.gallery__group.gallery-position__1 {
	left: -100%;
}

.gallery__group.gallery-position__2 {
	left: -200%;
}

.gallery__group.gallery-position__3 {
	left: -300%;
}

.gallery__group.gallery-position__4 {
	left: -400%;
}

.gallery__group.gallery-position__5 {
	left: -500%;
}

.gallery__group.gallery-position__6 {
	left: -600%;
}

.gallery {
	float: left;
	width: 10%;
	overflow: hidden;
}

.gallery.js-gallery-active {
	opacity: 1;
}

.gallery__slide {
	width: 100%;
	height: 100%;
	overflow: hidden;
}

/* Block: Gallery > Images */
.gallery__link {
	position: relative;
	display: block;
	height: 100%;
	background-color: #222;
}

.gallery__media {
	display: block;
	margin: 0 auto;
	width: auto;
	height: 100%;
	opacity: .95;
}

.gallery__media:hover {
	opacity: 1;
}

/* Block: Gallery > Meta */
.gallery__meta {
	padding-bottom: 16px;
	max-height: 0;
}

.js-active-gallery .gallery__meta {
	max-height: 300px;
}

/* Block: Gallery > Meta > Captions */
.gallery-caption__wrap {
	position: relative;
	padding: 10px 118px 10px 10px;
	min-height: 48px;
}

.gallery-caption {
	display: block;
	font-size: 81.25%;
	color: #fff;
}

.gallery-caption__read-more {
	position: absolute;
	top: 10px;
	right: 10px;
	display: block;
	padding: 4px 6px;
	border: 1px solid #555;
	background-color: transparent;
	font-weight: 600;
	font-size: 11px;
	text-transform: uppercase;
	color: #fff;
	border-radius: 4px;
}

.gallery-caption__read-more:hover {
	border-color: #fff;
	background-color: #fff;
	color: #000;
}

/* Block: Gallery > Meta > Gallery Thumbnails */
.gallery__thumbs {
	padding: 8px;
	border-top: 1px solid #444;
	width: auto;
	height: 64px;
	list-style: none;
	white-space: nowrap;
	overflow-x: scroll;
}

.gallery__thumbs::-webkit-scrollbar {
	height: 8px;
}

.gallery__thumbs::-webkit-scrollbar-track {
	background-color: #222;
}

.gallery__thumbs::-webkit-scrollbar-thumb {
	border-radius: 4px;
}

.gallery__thumb-item {
	display: inline-block;
	margin-right: 4px;
	border: 1px solid #333;
	width: 80px;
	height: 48px;
	background-color: #eee;
	opacity: .33;
	vertical-align: top;
}

.gallery__thumb-item:hover {
	cursor: pointer;
	opacity: 1;
}

.gallery__thumb-item.cycle-pager-active {
	border-color: #999;
	opacity: 1;
}

.gallery__thumb-item.format-video-play {
	position: relative;
	background-color: #222;
}

.gallery__thumb-item.format-video-play:before {
	position: absolute;
	top: 50%;
	left: 50%;
	margin-top: -10px;
	margin-left: -10px;
	width: 20px;
	height: 20px;
	line-height: 20px;
	font-size: 16px;
	text-align: center;
	text-indent: 2px;
	color: #fff;
}

.gallery__media,
.gallery__thumb-item {
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
}

/**************
Block: Carousel
**************/

.block--carousel__title {
	position: relative;
}

.block--carousel__title {
	margin-bottom: 20px;
	min-height: 32px;
}

.block--carousel__title > .title--block {
	margin-bottom: 0;
	padding-left: 40px;
	padding-right: 40px;
	min-height: 32px;
	line-height: 32px;
}

.block--carousel__title .title--block__link:hover {
	color: #000;
}

.carousel {
	height: 320px;
}

.carousel.js-off {
	background: #FFFFFF url(../images/icons/carousel-loader.gif) center center no-repeat;
}

.carousel__ui {
	z-index: 1000;
	position: absolute;
	top: 10px;
	display: block;
	width: 32px;
	height: 32px;
	line-height: 32px;
	text-align: center;
	font-size: 24px;
	font-weight: bold;
}

.carousel__ui:hover {
	cursor: pointer;
}

.carousel__ui:focus {
	background-color: blue;
}

.carousel__prev {
	left: 0;
}

.carousel__next {
	right: 0;
}

.carousel__slide {
	padding-left: 10px;
	padding-right: 10px;
	vertical-align: top;
}

.carousel__slide .post {
	margin: 0 auto;
	max-width: 320px;
	box-sizing: border-box;
}

.carousel__slide .category-label {
	z-index: 1;
}

.carousel__slide .title--sm {
	padding-top: 10px;
	padding-bottom: 10px;
}

.carousel__slide a {
	white-space: normal;
}

.carousel.js-off {
	height: auto;
	overflow: visible;
}

.carousel.js-off .carousel__slide {
	float: left;
	width: 31%;
	min-height: 340px;
}

@media screen and (max-width: 895px ) {
	.carousel.js-off .carousel__slide {
		width: 46%;
	}
}

@media screen and (max-width: 600px ) {
	.carousel.js-off .carousel__slide {
		width: 100%;
	}
}

/*****************
Block: Advertising
*****************/

.block--advertising > .wrap {
	max-width: 1120px;
}

.block--advertising,
.block--advertising > .wrap {
	padding: 0;
}

/**********
Block: Text
**********/

.block--text .cms {
	padding-left: 10px;
	padding-right: 10px;
}

.block--text .cms p:first-of-type {
	padding-bottom: 0;
	border-bottom: 0;
	line-height: 150%;
	font-family: inherit;
	font-size: 100%;
}

/**********
Block: Poll
**********/

.poll__wrap {
	margin-left: auto;
	margin-right: auto;
	padding: 20px;
	width: 50%;
	min-width: 300px;
	background-color: #fff;
}

/***************
Block: Papertray
***************/

.block--papertray {
	min-height: 270px;
}

.block--papertray .lazyload_container:last-of-type > .post--list:last-of-type {
	border-bottom: 0;
}

/************
Block Widgets
************/

/* Block Widgets > All */
.block-widget__title {
	padding-bottom: 8px;
	border-bottom: 2px solid #e5e5e5;
	line-height: 100%;
	color: #000;
}

.block-widget--mpu,
.block-widget--promotion {
	max-width: 300px;
}

/* Block Widgets > MPU */
.block-widget--mpu {
	margin-bottom: 0;
}

.block-widget--mpu > .dfp-ad {
	margin-bottom: 20px;
}

/* Block Widgets > Collection */
.block-widget--collection .category-label {
	display: none;
}

.block-widget--collection .excerpt {
	display: block;
	font-size: 75%;
}

.block-widget--collection .package-list {
	padding-top: 5px;
	border-top: 1px solid #ddd;
}

.block-widget--collection .post--list {
	border: 0;
}

/* Block Widgets > Promotion */
.block-widget--promotion__link {
	display: block;
}

/* Block Widgets > Template Parts */
.block-widget .post--list {
	padding-left: 90px;
	min-height: 48px;
}

.block-widget .thumbnail {
	width: 80px;
	height: 48px;
}

/* Block Widgets > Text */
.block-widget--text .cms p:first-of-type {
	padding-bottom: 0;
	border-bottom: 0;
	line-height: 150%;
	font-size: 100%;
}

/* Block Widgets > Video */
.block-widget--video .block-widget__title {
	margin-bottom: 10px;
	line-height: 20px;
}

.block-widget--video .genericon {
	float: left;
	margin-right: 6px;
	padding: 2px;
	width: 16px;
	height: 16px;
	line-height: 16px;
	background-color: #555;
	font-size: 12px;
	color: #fff;
}

/* Block Widgets > Third Party */
.block-widget--dianomi iframe {
	display: block;
	margin: 10px auto 0 !important;
}

/***********
Post Package
***********/

.package--post {
	margin-bottom: 0;
}

.package--post .thumbnail {
	float: left;
	width: 66%;
	width: calc(100% - 320px);
}

.package--post .package-list {
	float: right;
	width: 34%;
	width: 300px;
}

.entry--featured .icon-list .list__item {
	padding-top: 5px;
	padding-bottom: 5px;
}

.entry--featured .icon-list .list__link {
	font-size: 87.5%;
	font-weight: 300;
}

/*********************
Premium Content blocks
*********************/

.block--post-grid,
.block--post-list {
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	max-width: 980px;
	box-sizing: border-box;
}

.block--post-grid > .title,
.block--post-list > .title {
	margin-bottom: 20px;
}

.block--post-grid .post .title {
	padding-top: 10px;
	padding-bottom: 10px;
}

.block--post-list .post--list {
	padding-left: 90px;
	border-bottom: 1px solid #e5e5e5;
	min-height: 68px;
	list-style: none;
	box-sizing: border-box;
}

.block--post-list .thumbnail {
	width: 80px;
	height: 48px;
}

/*************
Error Handling
*************/

.block__error-message {
	padding: 20px;
	background: url('../images/backgrounds/bg_error.png') repeat;
}

.block__error-title,
.block__error-desc {
	float: left;
	padding: 10px;
	background-color: #fff;
}

.block__error-title {
	font-size: 150%;
}

.block__error-title .genericon {
	font-size: 24px;
}

.block__error-desc {
	clear: both;
	line-height: 140%;
	font-size: 87.5%;
}

.block__error-desc > strong {
	font-weight: 700;
}


/*************
Media: <=767px
*************/

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

	/* Blocks */
	.title--block {
		margin-bottom: 10px;
		font-size: 150%;
	}

	.block {
		margin-top: 10px;
		margin-bottom: 10px;
	}

	.block > .wrap {
		padding-top: 10px;
		padding-bottom: 10px;
	}

	/* Block: Premium */
	.block--premium .thumbnail {
		margin-bottom: 10px;
	}

	.block--premium .thumbnail__caption {
		display: none;
	}

	.block--premium .post__excerpt {
		margin-bottom: 12px;
	}

	/* Block: Premium > Grid: Main */
	.block--premium__grid-main {
		padding-bottom: 10px;
		border-bottom: 3px solid #eee;
	}

	.block--premium__grid-main .title {
		line-height: 110%;
		font-size: 150%;
	}

	/* Block: Premium > Grid: Aside */
	.block--premium__grid-aside .title--sm {
		margin-bottom: .5rem;
		line-height: 115%;
		font-size: 112.5%;
	}

	/* Block: Premium > Grid: List */
	.block--premium__grid-list .title--sm {
		margin-bottom: 0;
		line-height: 125%;
		font-size: 1rem;
		font-weight: 400;
	}

	/* Block: Premium > Shared styles */
	.post__premium--default {
		padding-top: 12px;
		padding-bottom: 12px;
	}

	.block--premium__grid-aside .post__excerpt,
	.block--premium__grid-list .post__excerpt,
	.block--premium__grid-list .byline {
		display: none;
	}

	.block--premium__grid-aside .post,
	.block--premium__grid-list .post:not(:last-child) {
		border-bottom: 1px solid #ddd;
	}

	.block--premium__grid-aside .post,
	.block--premium__grid-list .post {
		position: relative;
	}

	.block--premium__grid-aside .post.thumbnail--show,
	.block--premium__grid-list .post.thumbnail--show {
		padding-left: 120px;
		min-height: 86px;
	}

	.block--premium__grid-aside .thumbnail,
	.block--premium__grid-list .thumbnail {
		position: absolute;
		top: 15px;
		left: 0;
		width: 100px;
	}

	/* Block: Package > Top Package */
	.row-package {
		display: block;
	}

	.synopsis__package--top,
	.package--top .package-list {
		position: static;
		margin-top: 10px;
		width: 100%;
	}

	.package--top .thumbnail {
		margin-bottom: 10px;
	}

	.package--top .cta--bg,
	.package--top__signup {
		position: relative;
		bottom: auto;
		right: auto;
		margin: 20px auto 0 auto;
		width: 100%;
	}

	.package--top .post__meta {
		margin-bottom: 10px;
	}

	.package--top .label--premium {
		margin-left: auto;
	}

	/* Block: Package > Main Packages */
	.package--main {
		margin-top: 20px;
		margin-bottom: 0;
	}

	/* Block: Splash */
	.block--splash .label--premium {
		margin-left: auto;
	}

	/* Block: Splash */
	.block--feature .label--premium {
		margin-left: auto;
	}

	/* Block: Gallery */
	.gallery__pager {
		display: block;
		height: auto;
		background-color: transparent;
		overflow: hidden;
	}

	.gallery__page {
		display: block;
		float: none;
		margin: 0;
		padding-left: 30px;
		border-bottom: 1px dashed #ddd;
		width: 100%;
		height: auto;
		min-height: 40px;
		background-color: transparent;
		font-size: 87.5%;
		text-align: left;
	}

	.gallery__page:last-child {
		border: 0;
	}

	.gallery__page.js-pager-active {
		background-color: transparent;
	}

	.gallery__page.js-pager-active:before {
		content: '\f429';
		position: relative;
		top: -1px;
		left: 0;
		float: left;
		margin-left: -30px;
		padding: 2px;
		width: 16px;
		height: 16px;
		line-height: 16px;
		font-family: 'Genericons', sans-serif;
		font-size: 20px;
		font-weight: bold;
		text-indent: -1px;
		color: #fff;
		border-radius: 50%;
	}

	.gallery__page.js-pager-active:after {
		content: '';
		position: absolute;
		bottom: 65%;
		left: 8px;
		display: block;
		width: 4px;
		height: 600px;
	}

	.gallery .cycle-slideshow {
		min-height: 0;
	}

	.gallery-caption__wrap {
		padding: 10px;
	}

	.gallery-caption__text {
		position: static;
		display: block;
		margin: 20px auto 10px auto;
		padding: 10px;
		border-color: #fff;
		width: 120px;
		background-color: #fff;
		font-size: 15px;
		text-align: center;
		color: #000;
	}

	/* Post Package > Default */
	.package--post .thumbnail {
		float: none;
		width: 100%;
	}

	.package--post .package-list {
		float: none;
		margin-top: 10px;
		width: 100%;
	}

	.gallery__pager--default > .gallery__page {
		border-bottom: 1px dashed #ddd;
		font-weight: 600;
	}

	/* Premium Content blocks */
	.block--post-grid,
	.block--post-list {
		padding-left: 20px;
		padding-right: 20px;
	}

	.block--post-grid .post:not(:last-child),
	.block--post-list .post:not(:last-child) {
		margin-bottom: 20px;
	}

	.block--post-list .post--list:last-child {
		border-bottom: 0;
	}
}

/*************************
Media: >=768px && <=1024px
*************************/

@media only screen and (min-width: 768px) and (max-width: 1024px) {

	.block .wrap {
		width: 100%;
	}

	/* Block: Gallery */
	.gallery__page {
		font-size: 75%;
	}

	/* Post Blocks */
	.package--post .icon-list .list__item {
		padding-top: 5px;
		padding-bottom: 5px;
	}

	/* Post Package > Gallery */
	.gallery__pager--default > .gallery__page {
		padding: 15px;
		text-align: center;
	}
}

/*************
Media: >=768px
*************/

@media only screen and (min-width: 768px) {

	/* Block: Premium */
	.block--premium img {
		opacity: 1;
		-webkit-transition: opacity ease .2s;
		transition: opacity ease .2s;
	}

	.block--premium .thumbnail__link {
		background-color: #444;
	}

	.block--premium .thumbnail__link:focus img {
		opacity: .8;
	}

	.block--premium .byline__name {
		display: inline-block;
		border-bottom: 2px solid transparent;
		box-sizing: border-box;
	}

	.block--premium .byline:hover > .byline__name,
	.block--premium .byline:focus > .byline__name {
		border-color: #000;
	}

	.post__premium--main .post__excerpt {
		margin-bottom: 1rem;
	}

	.post__premium--default .thumbnail {
		margin-bottom: 10px;
	}

	.post__premium--default .post__excerpt {
		margin-bottom: .5rem;
	}

	.block--premium__grid-main {
		padding-bottom: 20px;
		border-bottom: 4px solid #eee;
	}

	.block--premium__grid-aside {
		margin-left: 20px;
		padding-left: 20px;
		border-left: 1px solid #ddd;
	}

	.block--premium__grid-aside .post:first-child {
		padding-bottom: 15px;
		border-bottom: 1px solid #ddd;
	}

	.block--premium__grid-aside .post:last-child,
	.block--premium__grid-list {
		margin-top: 20px;
	}

	.block--premium__grid-list .post {
		padding-top: 30px;
	}

	.block--premium__grid-list .post:first-child,
	.block--premium__grid-list .post:nth-child(2),
	.block--premium__grid-list .post:nth-child(3) {
		padding-top: 0;
	}

	.block--premium__grid-list .post:nth-child(3n + 1) {
		padding-right: 20px;
	}

	.block--premium__grid-list .post:nth-child(3n + 2) {
		padding-left: 20px;
		padding-right: 20px;
		border-left: 1px solid #ddd;
		border-right: 1px solid #ddd;
	}

	.block--premium__grid-list .post:nth-child(3n + 3) {
		padding-left: 20px;
	}

	/* Block: Premium: Fallbacks */
	.block--premium__grid {
		position: relative;
		padding-right: calc(25% + 40px);
	}

	.post__premium--main-columns {
		position: relative;
		padding-right: calc(50% + 20px);
		min-height: 230px;
	}

	.post__premium--main-columns .thumbnail {
		position: absolute;
		top: 0;
		right: 0;
		width: 50%;
	}

	.block--premium__grid-aside {
		position: absolute;
		top: 0;
		right: 0;
		width: 25%;
	}

	.block--premium__grid-list-wrap:after {
		content: '';
		display: block;
		clear: both;
	}

	.block--premium__grid-list .post {
		float: left;
		width: 33.3%;
	}

	.block--premium__grid-list .post:nth-child(3n + 1) {
		clear: left;
	}

	/* Block: Splash */
	.block--splash .post__meta {
		float: left;
	}

	/* Block: Package */
	.row-package {
		position: relative;
		padding-right: 320px;
	}

	.package--top {
		float: none;
		width: 100%;
	}

	.package--top__synopsis {
		position: absolute;
		top: 0;
		bottom: 0;
		right: 0;
		width: 300px;
	}

	.gallery__page {
		box-shadow: inset 1px 1px 0 rgba(0,0,0,.05);
	}

	/* Widgets > JSON Feed > Block */
	.block--text .wpc-shortcode-json-feed__item:not(.wpc-shortcode-json-feed__item--no-thumb) {
		padding-left: 150px;
		min-height: 84px;
	}

	.block--text .wpc-shortcode-json-feed__title {
		line-height: 110%;
		font-size: 125% !important; /* Overrides .cms h3 {...} */
		font-weight: 600;
	}

	.block--text .wpc-shortcode-json-feed__item:after,
	.block--text .wpc-shortcode-json-feed__thumbnail {
		width: 140px;
		height: 84px;
	}

	.block--text .cms .wpc-shortcode-json-feed__excerpt {
		display: block;
		margin: 10px 0 0 0;
		font-size: 87.5% !important; /* Overrides .block--text .cms p:first-of-type {...} */
	}

	/* Post template: Premium */
	.entry--premium-wrap {
		padding-left: 10px;
		padding-right: 10px;
	}

	/* Premium template blocks > Grid fallbacks */
	.block--post-grid .grid,
	.block--post-list .grid {
		margin-left: -20px;
		width: calc(100% + 20px);
	}

	.block--post-grid .grid:after,
	.block--post-list .grid:after {
		content: '';
		display: block;
		clear: both;
	}

	.block--post-grid .post--grid,
	.block--post-list .post--list {
		float: left;
		margin-left: 20px;
		width: calc(33.334% - 20px);
	}

	.block--post-list .post--list:nth-child(3n + 1) {
		clear: left;
	}
}

/**************
Media: >=1025px
**************/

@media only screen and (min-width: 1025px) {

	/* Block: Package > Main Packages */
	.package--main .title {
		height: 75px;
	}

	/* Post Package > Default */
	.package--post .icon-list .list__item {
		padding-top: 10px;
		padding-bottom: 10px;
		border-bottom: 1px solid #eee;
	}

	.package--post .icon-list .list__item:last-of-type {
		border: 0 none;
	}

	/* Post Package > Gallery */
	.gallery__pager--default > .gallery__page {
		padding: 20px;
		text-align: center;
	}

	.gallery__pager--default > .gallery__page.js-pager-active:before {
		top: -31px;
		margin-left: -16px;
		width: 32px;
		height: 32px;
		line-height: 32px;
		font-size: 32px;
	}
}

/*************
Supports: Flex
*************/

@supports ((display: -ms-flex) or (display: flex)) {

	/* Block: Premium */
	.block--premium .label--premium {
		-ms-flex-item-align: start;
		align-self: flex-start;
	}

	/* Block: Package */
	.row-package {
		position: static;
		padding: 0;
	}

	.block--package .package--main,
	.block--grid .row-full .column {
		float: none;
		width: auto;
	}

	.package-list--top {
		margin-top: auto;
	}

	/* Block: Carousel */
	.cycle-carousel-wrap {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-ms-flex-flow: row nowrap;
		flex-flow: row nowrap;
	}

	.carousel__slide {
		display: -webkit-inline-box !important;
		display: -ms-inline-flexbox !important;
		display: inline-flex !important;
	}

	.carousel__slide .post {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-ms-flex-flow: column nowrap;
		flex-flow: column nowrap;

		height: 100%;
	}

	.carousel__slide .title {
		-webkit-box-flex: 1;
		-ms-flex-positive: 1;
		flex-grow: 1;
	}

	/* >=481px */
	@media only screen and (min-width: 481px) {

		/* Blocks: Package, News */
		.block--package .row-tablet .column--no-pad,
		.block--grid .row-full {
			display: -webkit-box;
			display: -ms-flexbox;
			display: flex;
			-ms-flex-flow: row wrap;
			flex-flow: row wrap;
		}

		.block--grid .row-full:before {
			display: none;
		}

		.block--package .package--main,
		.block--grid .row-full .column {
			-webkit-box-flex: 1;
			-ms-flex: 1 1 50%;
			flex: 1 1 50%;
		}

		.block--package .package--main,
		.block--grid .row-full .column {
			-webkit-box-flex: 1;
			-ms-flex: 1 1 50%;
			flex: 1 1 50%;
		}

		.block--grid .post--grid {
			height: 90%;
			height: calc(100% - 32px);
		}
	}

	/* >=768px */
	@media only screen and (min-width: 768px) {

		/* Block: Premium */
		.post__premium--main-columns {
			display: -webkit-box;
			display: -ms-flexbox;
			display: flex;
			-webkit-box-orient: horizontal;
			-webkit-box-direction: reverse;
			-ms-flex-direction: row-reverse;
			flex-direction: row-reverse;
		}

		.post__premium--main .thumbnail {
			padding-left: 20px;

			-webkit-transition: -webkit-box-flex ease-in-out .3s;
			transition: -webkit-box-flex ease-in-out .3s;
			transition: flex ease-in-out .3s;
			transition: flex ease-in-out .3s, -webkit-box-flex ease-in-out .3s, -ms-flex ease-in-out .3s;
		}

		.post__premium--main .post__content {
			-webkit-box-flex: 0;
			-ms-flex: 0 1 auto;
			flex: 0 1 auto;
		}

		.post__premium--main .post__content {
			display: -webkit-box;
			display: -ms-flexbox;
			display: flex;
			-webkit-box-orient: vertical;
			-webkit-box-direction: normal;
			-ms-flex-direction: column;
			flex-direction: column;
		}

		.post__premium--main .byline {
			margin-top: auto;
		}

		/* Block: Package */
		.row-package {
			display: -webkit-box;
			display: -ms-flexbox;
			display: flex;
			-ms-flex-flow: row nowrap;
			flex-flow: row nowrap;
		}

		.package--top__synopsis-wrap,
		.package--top__synopsis-wrap > .flex--column {
			display: -webkit-box;
			display: -ms-flexbox;
			display: flex;
			-webkit-box-orient: vertical;
			-webkit-box-direction: normal;
			-ms-flex-direction: column;
			flex-direction: column;
		}

		.package--top__thumbnail {
			-webkit-box-flex: 0;
			-ms-flex: 0 1 auto;
			flex: 0 1 auto;
		}

		.package--top__synopsis {
			-webkit-box-flex: 0;
			-ms-flex: 0 0 300px;
			flex: 0 0 300px;

			position: static;
			padding-left: 20px;
			width: auto;
		}

		.package--top__synopsis-wrap {
			-webkit-box-pack: justify;
			-ms-flex-pack: justify;
			justify-content: space-between;

			height: 100%;
		}

		/* Block: Gallery */
		.gallery__pager,
		.gallery__page {
			display: -webkit-box;
			display: -ms-flexbox;
			display: flex;
		}

		.gallery__pager {
			-ms-flex-flow: row;
			flex-flow: row;
			-ms-flex-wrap: wrap;
			flex-wrap: wrap;
		}

		.gallery__page {
			-webkit-box-orient: vertical;
			-webkit-box-direction: normal;
			-ms-flex-direction: column;
			flex-direction: column;
		}

		.block--grid.block--fwposts .row-full .column {
			-ms-flex: 1 1 20%;
			flex: 1 1 20%;
		}
	}

	/* >=768px && <=1024px */
	@media only screen and (min-width: 768px) and (max-width: 1024px) {

		/* Block: Premium */
		.post__premium--main .thumbnail {
			-webkit-box-flex: 1;
			-ms-flex: 1 0 50%;
			flex: 1 0 50%;
		}
	}

	/* >=1025px */
	@media only screen and (min-width: 1025px) {

		/* Block: Premium */
		.post__premium--main .thumbnail {
			-webkit-box-flex: 1;
			-ms-flex: 1 0 66.66%;
			flex: 1 0 66.66%;
		}
	}
}

/*************
Supports: Grid
*************/

@supports ((display: -ms-grid) or (display: grid)) {

	/* >=768px */
	@media only screen and (min-width: 768px) {

		/** Block: Premium */
		.block--premium__grid {
			-ms-grid-columns: [c1] 1fr [c2] 1fr [c3] 1fr [c4] 1fr [c5];
			grid-template-columns: [c1] 1fr [c2] 1fr [c3] 1fr [c4] 1fr [c5];
		}

		.block--premium__grid-main {
			grid-column: c1 / c4;
			grid-row: 1 / 2;
		}

		.block--premium__grid-aside {
			grid-column: c4 / c5;
			-ms-grid-row: 1;
			grid-row-start: 1;
		}

		.block--premium__grid-list {
			display: -ms-grid;
			display: grid;
			grid-column: c1 / c4;
			-ms-grid-columns: (1fr)[3];
			grid-template-columns: repeat(3, 1fr); /* Non-subgrid fallback */
			-ms-grid-row: 2;
			grid-row-start: 2;
		}

		.block--premium__grid-aside[data-count="3"],
		.block--premium__grid-list[data-count="3"] {
			grid-row-end: 3;
		}

		.block--premium__grid-aside[data-count="6"],
		.block--premium__grid-list[data-count="6"] {
			grid-row-end: 4;
		}

		.block--premium__grid-aside[data-count="9"],
		.block--premium__grid-list[data-count="9"] {
			grid-row-end: 5;
		}

		.block--premium__grid-list-wrap {
			display: -ms-grid;
			display: grid;
			grid-area: list;
			-ms-grid-columns: 1fr calc(33% + 16px) 1fr;
			grid-template-columns: 1fr calc(33% + 16px) 1fr;
		}

		.block--premium .post__premium--default {
			display: -webkit-box;
			display: -ms-flexbox;
			display: flex;
			-webkit-box-orient: vertical;
			-webkit-box-direction: normal;
			-ms-flex-direction: column;
			flex-direction: column;
		}

		/* Block: Premium: Clear fallbacks */
		.post__premium--main-columns {
			min-height: unset;
		}

		.block--premium__grid,
		.post__premium--main-columns {
			position: static;
			padding: 0;
		}

		.post__premium--main-columns .thumbnail,
		.block--premium__grid-aside {
			position: static;
			top: auto;
			right: auto;
			width: auto;
		}

		.block--premium__grid-list .post {
			float: none;
			width: auto;
		}

		.block--premium__grid-list .post:nth-child(3n + 1) {
			clear: none;
		}

		/* Premium Content blocks */
		.block--post-grid .grid,
		.block--post-list .grid {
			-ms-grid-columns: (1fr)[3];
			grid-template-columns: repeat(3, 1fr);
			grid-column-gap: 20px;

			margin: 0;
			width: 100%;
		}

		.block--post-grid .post--grid,
		.block--post-list .post--list {
			float: none;
			margin: 0;
			width: auto;
		}
	}

	/* >=768px && <=1024px */
	@media only screen and (min-width: 768px) and (max-width: 1024px) {

		/* Block: Premium */
		.block--premium .post__premium--default .byline {
			margin-top: auto;
		}
	}

	/* >=1025px */
	@media only screen and (min-width: 1025px) {

		/* Block: Premium */
		.block--premium .post:nth-child(2) .byline,
		.block--premium__grid-list .byline {
			margin-top: auto;
		}
	}


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

		/* Block: Full Width Posts */
		.block--fwposts .grid {
			display: grid;
			-ms-grid-columns: 	   [c1] 1fr [c2] 1fr [c3] 1fr [c4] 1fr [c5];
			grid-template-columns: [c1] 1fr [c2] 1fr [c3] 1fr [c4] 1fr [c5];
			grid-template-rows: repeat(4, [row] auto);
			position: static;
			padding: 0;
			grid-row-gap: 15px;
			align-items: start;
			align-content: start;
		}

		.block--fwposts .grid .column--grid {
			-webkit-box-flex: unset;
			-ms-flex: unset;
			flex: unset;
			display: grid;
			margin-bottom: 0;
			padding-bottom: 0;
		}

		.block--fwposts .column--grid:nth-child(n+1):not(:nth-child(n+3)) {
			grid-column: c1 / c2;
		}

		.block--fwposts .column--grid:nth-child(n+2):not(:nth-child(n+3)) {
			grid-column: c2 / c3;
		}

		.block--fwposts .column--grid:nth-child(n+3) {
			grid-column: c3 / c5;
			grid-row: 1 / 2;
			align-self: start;
		}

		.block--fwposts .column--grid:nth-child(4) {
			grid-row: 2 / 3;
		}

		.block--fwposts .column--grid:nth-child(5) {
			grid-row: 3 / 4;
		}

		.block--fwposts .column--grid:not(:nth-child(n+3)) {
			grid-row: 1 / 4;
		}

		.block--fwposts .column--grid:nth-child(n+3) .post--grid {
			height: 0;
		}
	}

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

		/* Block: Full Width Posts */
		.block--fwposts .grid {
			grid-template-rows: repeat(5, [row] auto);
		}

		.block--fwposts .column--grid:nth-child(n+1):not(:nth-child(n+2)) {
			grid-column: c1 / c3;
		}

		.block--fwposts .column--grid:nth-child(n+2) {
			grid-column: c3 / c5;
			grid-row: 1 / 2;
			align-self: start;
		}

		/* Override */
		.block--fwposts .column--grid:nth-child(n+2):not(:nth-child(n+3)) {
			grid-column: c3 / c5;
		}

		.block--fwposts .column--grid:nth-child(3) {
			grid-row: 2 / 3;
		}

		.block--fwposts .column--grid:nth-child(4) {
			grid-row: 3 / 4;
		}

		.block--fwposts .column--grid:nth-child(5) {
			grid-row: 4 / 5;
		}

		.block--fwposts .column--grid:not(:nth-child(n+2)) {
			grid-row: 1 / 4;
		}

		.block--fwposts .column--grid:nth-child(n+2) .post--grid {
			height: 0;
		}
	}
}

/****************
Supports: Subgrid
****************/

@supports ((-ms-grid-rows: subgrid) or (grid-template-rows: subgrid)) {

	@media only screen and (min-width: 768px) {

		.block--premium__grid-aside {
			display: -ms-grid;
			display: grid;
			-ms-grid-rows: subgrid;
			grid-template-rows: subgrid;
		}

		.block--premium__grid-list {
			-ms-grid-columns: subgrid;
			grid-template-columns: subgrid;
			-ms-grid-rows: subgrid;
			grid-template-rows: subgrid;
		}
	}
}

/*************
Media: <=590px
*************/


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

	/* Block: Full Width Posts */
	.block--fwposts .grid,
	.block--fwposts .grid .column--grid {
		display: block;
	}

	.block--fwposts .column--grid {
		margin-bottom: 25px;
	}

	.block--fwposts .column--grid:nth-child(n+2) .post--grid {
		height: auto;
		margin-bottom: 5px;
		padding-bottom: 0;
	}
}
