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

/*************
Media: <=480px
*************/

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

	/* Post > Header: Enhanced */
	.entry-header--enhanced .post-timestamp {
		margin-bottom: 4px;
	}

	.see-more {
		display: none;
	}
}

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

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

	.body--is-header-fixed {
		padding-top: 48px;
	}

	.wrap {
		padding: 0;
		width: 100%;
	}

	.row-package {
		padding: 0;
	}

	.column-tablet-sidebar {
		clear: both;
		float: none;
		padding-top: 20px;
		width: 100%;
	}

	/* Show/hide classes */
	.show-xl,
	.show-lg,
	.show-md,
	.hide-sm {
		display: none !important;
	}

	.show-sm {
		display: block !important;
	}

	/* Typography > Titles */
	.title--lg {
		font-size: 150%;
	}

	.title--md {
		font-size: 125%;
	}

	.title--sm {
		font-size: 125%;
	}

	.title--xs {
		font-size: 100%;
	}

	.entry-title {
		font-size: 175%;
	}

	/* Icons */
	.format-icon {
		top: 4px;
		right: 4px;
		width: 20px;
		height: 20px;
		line-height: 20px;
		font-size: 13px;
	}

	/* Header */
	.site-header--fixed {
		top: 0;
		overflow: visible;
	}

	.admin-bar .site-header--fixed {
		top: 46px;
	}

	.site-header--fixed.js-off {
		top: -48px;
	}

	.site-header > .wrap .column {
		padding-left: 48px;
		padding-right: 96px;
		height: 48px;
	}

	.site-header__flex {
		width: 100%;
		height: 100%;
	}

	.logo {
		padding: 10px;
		width: 100%;
		height: 100%;
		text-align: center;
	}

	.logo__media {
		display: inline-block;
		max-height: 30px;
	}

	/* Navigation > Nav Bar */
	.nav-bar {
		display: none;
	}

	/* Navigation > All Sections */
	.all-sections {
		top: 48px;
	}

	.admin-bar .all-sections {
		top: 94px;
	}

	.all-sections__nav > .menu-item {
		padding: 20px 0;
	}

	.all-sections__nav > .menu-item > a {
		position: static;
		width: auto;
		text-align: left;
	}

	.all-sections__nav .sub-menu .menu-item {
		margin: 12px 0 0 0;
		width: 50%;
	}

	.all-sections__nav .sub-menu .menu-item:nth-child(2n) {
		padding-left: 10px;
	}

	.all-sections__nav .sub-menu .menu-item:after {
		display: none;
	}

	/* Navigation > Pagination */
	.page-numbers.prev,
	.page-numbers.next {
		display: none;
	}

	/* Footer */
	.site-footer .copyright {
		margin-top: 20px;
	}

	.social--footer,
	.site-footer__links {
		margin-bottom: 20px;
	}

	.site-footer .copyright {
		text-align: center;
	}

	/* Footer > DCT Media logo */
	#wpc-dct-media-logo {
		margin-left: auto;
		margin-right: auto;
	}

	/* Search */
	.search-form__text,
	.search-form__submit {
		font-size: 24px;
	}

	.search-form--header {
		z-index: 9001;
		position: fixed;
		top: 48px;
		bottom: 0;
		left: 0;
		right: 0;
		display: block;
		padding: 20px 10px 0 10px;
		width: 100%;
		height: 100vh;
		background-color: #fff !important;
		overflow: auto;
		opacity: 0;
		visibility: hidden;
	}

	.search-form--header.js-on {
		opacity: 1;
		visibility: visible;
	}

	.search-form--header .search-form__text {
		padding: 0 0 10px 0;
		border-bottom: 1px solid #ddd;
		border-radius: 0;
	}

	.search-form__text {
		color: #000 !important;
	}

	.search-form--header,
	.search-form__text {
		box-sizing: border-box;
	}

	/* Post Template: Premium */
	.entry--premium .entry-header {
		padding: 20px;
	}

	.entry--premium .tags-wrap {
		padding-left: 20px;
		padding-right: 20px;
	}

	/* Post > Header: Enhanced */
	.entry-header--enhanced .flex {
		padding: 10px 100px 10px 10px;
	}

	.entry-header--enhanced .byline-pic {
		width: 100px;
	}

	.entry-header--enhanced .socialize {
		position: static;
		margin-right: 0;
		text-align: left;
	}

	/* Post > Header > Meta */
	.entry-meta .flex {
		display: block;
	}

	.entry-header--default .entry-meta .post-timestamp {
		margin-top: 4px;
		margin-bottom: 4px;
	}

	.entry-meta .socialize li {
		margin-right: 8px;
	}

	/* Posts > Content */
	.entry-content {
		padding: 0;
	}

	.single .entry-content > p:first-of-type {
		font-size: 110%;
		line-height: 140%;
	}

	.entry-content .social {
		display: none;
	}

	.sharing-bar.js-on {
		top: 0;
	}

	.socialize--sharing-bar {
		text-align: center;
	}

	.socialize-icon--whatsapp {
		display: none;
	}

	/* Pages */
	.site-content--page > .wrap {
		padding-top: 10px;
		padding-bottom: 10px;
	}

	/* Embeds */
	.post-embed.alignleft,
	.post-embed.alignright,
	.mpu.alignleft,
	.mpu.alignright {
		float: none;
		margin-left: auto !important;
		margin-right: auto !important;
	}

	.post-embed {
		width: 100%;
	}

	.image-gallery.js-gallery-not-ready {
		max-height: 300px;
	}

	/* Archives */
	.archive .block + .wrap {
		margin-top: 20px;
	}

	/* Author */
	.author__meta {
		float: left;
	}

	/* Parts */
	.post--list {
		padding-left: 90px;
		min-height: 48px;
	}

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

	/* Advertising */
	.takeover {
		display: none;
	}

	.billboard-ad {
		margin-top: 10px;
		margin-bottom: 10px;
	}

	/* Plugin: Elastic Press */
	.ep-search__results {
		border-left: 0;
	}

	.ep-search__filters {
		display: none;
	}

	/* Plugin: Yoast SEO */
	.breadcrumb {
		line-height: 150%;
	}

	/* Miscellaneous */
	.icon-list .list__link {
		font-size: 87.5%;
	}

	.signup__wrap:after,
	.signup--post:after {
		background-image: none;
	}

	.signup--block {
		font-size: 100% !important;
	}

	.signup--block .signup__title {
		line-height: 120%;
	}

	.signup--post .signup__icon {
		width: 20px;
		height: 20px;
	}

	.signup--post .signup__title {
		font-size: 87.5%;
	}

	.header-btn {
		border-radius: 0;
		border-width: 0;
		box-shadow: none;
		min-height: 40px;
		min-width: 40px;
	}

	.blaize-login-btn .b-icon-profile {
		min-height: 40px;
		min-width: 40px;
	}
}

/**************
Media: <=1024px
**************/

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

	/* Navigation */
	.all-sections-btn__text {
		display: none;
	}

	/* Post Template: Premium */
	.entry--premium .entry-content .wrap,
	.entry--premium .entry-content .sm-12 {
		padding: 0;
	}

	/* Post > Meta */
	.entry--standard .entry-meta .flex,
	.entry--featured .entry-meta .flex {
		width: 100%;
	}
}

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

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

	.wrap {
		width: 100%;
	}

	.row-tablet > .lg-8 {
		float: left;
		width: calc(100% - 320px);
	}

	.column-tablet-sidebar {
		margin-right: 10px;
		padding: 0;
		width: 300px !important;
	}

	/* Grid */
	.md-12 {
		width: 100%;
	}

	.md-11 {
		width: 91.66667%;
	}

	.md-10 {
		width: 83.33334%;
	}

	.md-9 {
		width: 75%;
	}

	.md-8 {
		width: 66.66667%;
	}

	.md-7 {
		width: 58.33334%;
	}

	.md-6 {
		width: 50%;
	}

	.md-5 {
		width: 41.66667%;
	}

	.md-4 {
		width: 33.33334%;
	}

	.md-3 {
		width: 25%;
	}

	.md-2 {
		width: 16.66667%;
	}

	.md-1 {
		width: 8.33334%;
	}

	/* Show/hide classes */
	.show-xl,
	.show-lg,
	.hide-md,
	.show-sm {
		display: none !important;
	}

	.show-md {
		display: block !important;
	}

	/* Header > Verticals */
	.verticals {
		z-index: 1000;
		position: absolute;
		top: 30px;
		left: 0;
		right: 0;
		display: none;
		padding: 10px;
		background-color: #f5f5f5;
	}

	.verticals.js-on {
		display: block;
	}

	.js-off .verticals.js-on {
		display: none;
	}

	.verticals__btn.js-on {
		background-color: #f5f5f5;
	}

	.verticals li {
		float: left;
		width: 25%;
		line-height: 120%;
	}

	.verticals a {
		font-size: 81.25%;
		color: #000;
	}

	/* Post Templates */
	.entry-content .column {
		float: none;
	}

	.entry-meta .socialize {
		float: right;
	}

	.entry-meta .socialize li {
		margin-right: 4px;
	}

	/* Miscellaneous */
	.icon-list .list__item {
		padding-top: 3px;
		padding-bottom: 3px;
	}

	/* Advertising */
	.billboard-ad {
		margin-top: 10px;
		margin-bottom: 10px;
	}

	/* Embeds */
	.image-gallery.js-gallery-not-ready {
		max-height: 440px;
	}
}

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

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

	.body--is-header-fixed {
		padding-top: 165px;
	}

	/* Header */
	.site-header--fixed {
		top: 0;
		height: 165px;
	}

	.admin-bar .site-header--fixed {
		top: 32px;
	}

	.site-header--fixed.js-off {
		top: -32px;
		height: 96px;
	}

	.admin-bar .site-header--fixed.js-off {
		top: 0;
	}

	.site-header__flex {
		padding-top: 15px;
		padding-bottom: 15px;
	}

	.site-header__flex:after {
		content: '';
		display: block;
		clear: both;
	}

	.logo,
	.no-logo {
		float: left;
	}

	.logo__media {
		max-height: 100%;
	}

	/* Footer */
	.site-footer .copyright {
		margin-left: 20px;
	}

	/* Post > Header: Enhanced */
	.entry-header--enhanced .flex {
		padding: 10px 120px 10px 20px;
	}

	.entry-header--enhanced .excerpt {
		padding-right: 350px;
	}

	.entry-header--enhanced .byline-pic {
		width: 120px;
	}

	/* Post > Sharing bar */
	.sharing-bar.js-on {
		top: 64px;
	}

	.admin-bar .sharing-bar.js-on {
		top: 96px;
	}

	/* Post Template: Premium */
	.entry--premium .entry-header .sm-12 {
		padding: 20px 10px;
	}

	/* Search Form (Header) */
	.search-form--header {
		float: right;
		width: 220px;
	}

	/* Author */
	.author__title {
		float: left;
		margin-right: 20px;
	}

	.author__meta {
		float: right;
	}

	.all-sections-btn .genericon {
		margin-left: 10px;
	}

	/* Plugin: 24LiveBlog */
	#LB24 .lb24-theme-block .lb24-base-news-container:not(.lb24-base-news-top) {
		display: grid;
		grid-template: 1em 1em 1fr / 1fr 3fr;
		grid-column-gap: 1em;
	}
	#LB24 .lb24-base-news-editor {
		grid-row: 1;
		grid-column: 1;
		align-self: start;
	}

	#LB24 .lb24-base-news-head.lb24-base-head-has-editor {
		grid-row: 2;
		grid-column: 1;
		align-self: start;
	}

	#LB24 .lb24-theme-block .lb24-base-news-container .lb24-base-news-head .lb24-base-news-date {
		margin: 0;
		padding: 0;
		align-self: start;
	}

	#LB24 .lb24-base-news-body {
		grid-column: 2 / -1;
		grid-row: 1 / -1;
	}

	#LB24 .lb24-base-news-footer {
		grid-row: 3;
		grid-column: 1;
		align-self: end;
	}

	#LB24 .lb24-base-news-footer li {
		display: block !important;
		width: 100% !important;
	}
}

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

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

	.wrap {
		width: 980px;
	}

	.wrapped {
		margin: 0 auto;
		width: 980px;
	}

	.wrapped .breakout {
		left: -190px;
		right: -190px;
		width: 980px;
	}

	/* Grid */
	.lg-12 {
		width: 100%;
	}

	.lg-11 {
		width: 91.66667%;
	}

	.lg-10 {
		width: 83.33334%;
	}

	.lg-9 {
		width: 75%;
	}

	.lg-8 {
		width: 66.66667%;
	}

	.lg-7 {
		width: 58.33334%;
	}

	.lg-6 {
		width: 50%;
	}

	.lg-5 {
		width: 41.66667%;
	}

	.lg-4 {
		width: 33.33334%;
	}

	.lg-3 {
		width: 25%;
	}

	.lg-2 {
		width: 16.66667%;
	}

	.lg-1 {
		width: 8.33334%;
	}

	/* Show/hide classes */
	.show-xl,
	.hide-lg,
	.show-md,
	.show-sm {
		display: none !important;
	}

	.show-lg {
		display: block !important;
	}

	/* Header > Verticals */
	.verticals .menu-item {
		float: left;
	}

	.verticals .menu-item:not(:last-child) {
		margin-right: 12px;
	}

	.verticals a {
		display: block;
		height: 29px;
		line-height: 29px;
		font-size: 12px;
	}

	/* Post > Header > Meta > Timestamps */
	.entry--standard .entry-meta .flex {
		width: 66%;
	}

	.entry--featured .entry-meta .flex {
		width: 100%;
	}

	.entry-meta .post-timestamp--revised:hover > .genericon {
		cursor: pointer;
	}

	.entry-meta .post-timestamp--revised:hover > .post-timestamp__revised {
		opacity: 1;
		visibility: visible;
	}

	.entry-meta .socialize li {
		margin-left: 4px;
	}

	/* Post Template: Standard */
	.entry--standard .dct-cta--subscribe .dct-cta__flex {
		max-width: 100%;
	}

	/* Embeds */
	.image-gallery.js-gallery-not-ready {
		max-height: 564px;
	}
}

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

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

	.flex {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
	}

	/* Header */
	.site-header__flex {
		-webkit-box-pack: justify;
		-ms-flex-pack: justify;
		justify-content: space-between;
	}

	.site-header__flex:after {
		display: none;
	}

	.logo,
	.no-logo {
		float: none;
	}

	/* Search Form */
	.search-form {
		-ms-flex-flow: row nowrap;
		flex-flow: row nowrap;
	}

	.search-form--header {
		float: none;
	}

	.search-form__label {
		-webkit-box-flex: 0;
		-ms-flex: 0 1 100%;
		flex: 0 1 100%;
	}

	.search-form__submit {
		-webkit-box-flex: 0;
		-ms-flex: 0 0 40px;
		flex: 0 0 40px;
	}

	.search-form__label,
	.search-form__submit {
		position: static;
	}

	/* Template Parts > Premium Content labels */
	.post__meta {
		-webkit-box-align: start;
		-ms-flex-align: start;
		align-items: flex-start;
	}

	/* Author */
	.author__title {
		float: none;
	}

	/* Post > Header: Enhanced */
	.entry-header--enhanced .post-timestamp {
		-webkit-box-ordinal-group: 2;
		-ms-flex-order: 1;
		order: 1;
	}

	.entry-header--enhanced .byline {
		-webkit-box-ordinal-group: 3;
		-ms-flex-order: 2;
		order: 2;
	}

	/* Plugin: 24LiveBlog */
	#LB24 .lb24-base-news-footer ul {
		display: flex;
		flex-flow: row nowrap;
		justify-content: space-between;
	}

	/* <=480px */
	@media only screen and (max-width: 480px) {

		/* Post > Header: Enhanced */
		.entry-header--enhanced .flex {
			-webkit-box-orient: vertical;
			-webkit-box-direction: normal;
			-ms-flex-direction: column;
			flex-direction: column;
		}

		.entry-header--enhanced .byline,
		.entry-header--enhanced .post-timestamp {
			width: 100%;
			text-align: left;
		}
	}

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

		/* Post > Header: Enhanced */
		.entry-header--enhanced .flex {
			-ms-flex-flow: row nowrap;
			flex-flow: row nowrap;
			-webkit-box-pack: justify;
			-ms-flex-pack: justify;
			justify-content: space-between;
		}

		.entry-header--enhanced .flex {
			-webkit-box-align: center;
			-ms-flex-align: center;
			align-items: center;
		}
	}

	/* <=767px */
	@media only screen and (max-width: 767px) {

		/* Header */
		.site-header__flex {
			-webkit-box-pack: center;
			-ms-flex-pack: center;
			justify-content: center;
			-webkit-box-align: center;
			-ms-flex-align: center;
			align-items: center;
		}

		/* Header > Logo */
		.logo {
			display: -webkit-box;
			display: -ms-flexbox;
			display: flex;
			-webkit-box-pack: center;
			-ms-flex-pack: center;
			justify-content: center;
		}

		.logo__media {
			-ms-flex-item-align: center;
			-ms-grid-row-align: center;
			align-self: center;
		}

		/* Footer */
		.site-footer .flex {
			-webkit-box-orient: vertical;
			-webkit-box-direction: normal;
			-ms-flex-direction: column;
			flex-direction: column;
		}

		/* Search */
		.search-form--header.js-on {
			display: -webkit-box;
			display: -ms-flexbox;
			display: flex;
		}

		/* Author */
		.author__title {
			margin-bottom: 10px;
		}

		.author__flex {
			display: block;
		}

		/* Post > Header: Enhanced */
		.entry-header--enhanced .flex {
			display: -webkit-box;
			display: -ms-flexbox;
			display: flex;
		}

		/*  Full Width Post Block Posts */
		.block--fwposts .column:nth-child(n+3) .thumbnail {
			display: none;
		}

		.block--fwposts .column:nth-child(n+3) .post__meta {
			display: none;
		}
	}

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

		/*  Full Width Post Block Posts */
		.block--fwposts .column:nth-child(n+2) .thumbnail {
			display: none;
		}
	}

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

		/*  Full Width Post Block Posts */
		.block--fwposts .column:nth-child(n+2) .post {
			border-bottom: 1px solid #e5e5e5;
		}
	}

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

		/* Verticals */
		.verticals__wrap {
			display: -webkit-box;
			display: -ms-flexbox;
			display: flex;
			flex-flow: row nowrap;
			-webkit-box-align: center;
			-ms-flex-align: center;
			align-items: center;
		}

		/* Verticals > Resetting Non-Flexbox fallbacks */
		.verticals__wrap .datestamp,
		.verticals__wrap .social,
		.verticals__wrap .nav:not(:last-child),
		.verticals__wrap .nav:last-child,
		.verticals__btn {
			float: none;
		}

		/* Footer */
		.site-footer .flex {
			-ms-flex-flow: row nowrap;
			flex-flow: row nowrap;
		}

		/* Template parts */
		.post .entry-meta .flex {
			-ms-flex-flow: row nowrap;
			flex-flow: row nowrap;
			-webkit-box-pack: start;
			-ms-flex-pack: start;
			justify-content: flex-start;
		}

		.entry .entry-meta .flex {
			-ms-flex-flow: row nowrap;
			flex-flow: row nowrap;
			-webkit-box-pack: justify;
			-ms-flex-pack: justify;
			justify-content: space-between;
		}

		/* Entry meta */
		.entry-meta .flex {
			-ms-flex-flow: row nowrap;
			flex-flow: row nowrap;
		}

		/* Author */
		.author__flex {
			-ms-flex-flow: row nowrap;
			flex-flow: row nowrap;
			-webkit-box-pack: justify;
			-ms-flex-pack: justify;
			justify-content: space-between;
			-webkit-box-align: center;
			-ms-flex-align: center;
			align-items: center;
		}

		.author__flex:after {
			display: none;
		}
	}
}

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

@supports ((display: -ms-grid) or (display: grid)) {
	.grid {
		display: -ms-grid;
		display: grid;
	}
}

/****
Print
****/

@media print {

	body {
		padding-top: 0;
	}

	.wrap {
		width: 620px;
	}

	/* Header */
	.site-header {
		margin-bottom: 20px;
	}

	.logo--header {
		display: block;
		padding-top: 10px;
		padding-bottom: 10px;
	}

	/* Navigation */
	.nav-bar {
		list-style: none;
		padding-top: 10px;
		padding-bottom: 10px;
		border-bottom: 1px solid #eee;
	}

	.nav-bar .menu-item {
		float: left;
		margin-right: 1em;
	}

	/* Footer */
	.site-footer > .wrap {
		padding-top: 10px;
		padding-bottom: 10px;
	}

	.site-footer > .wrap > .row:first-child {
		display: none;
	}

	/* Typography */
	.entry-title,
	.title--lg {
		margin-bottom: .5em;
		font-size: 175%;
	}

	.title--md,
	.title--block {
		font-size: 150%;
	}

	.title--sm {
		font-size: 125%;
	}

	.title--xs {
		font-size: 100%;
	}

	/* Content */
	.entry-meta {
		padding-top: 10px;
		padding-bottom: 10px;
		border-top: 1px solid #eee;
	}

	.entry-meta .post-timestamp {
		float: right;
	}

	/* Blocks */
	.block {
		margin-bottom: 20px;
	}

	.row-package {
		padding-right: 0;
	}

	.block--news .post,
	.block--papertray .post {
		margin-bottom: 20px;
		padding-top: 10px;
	}

	.block .timestamp,
	.post .thumbnail {
		display: none;
	}

	.block--grid .post--grid .title {
		min-height: 0 !important;
	}

	.package {
		margin-bottom: 20px;
	}

	.package--top .thumbnail {
		display: block;
	}

	.package-list {
		list-style: none;
	}

	.editors-picks .post {
		margin-top: 20px;
		margin-bottom: 20px;
	}

	/* Blacklist! */
	.-hide-print,
	#bottomAd,
	.nav-bar > .menu-item > .sub-menu,
	.pagination .page-numbers.prev,
	.pagination .page-numbers.next,
	.no-thumbs .thumbnail,
	.package .cta--bg,
	.papertray .screen-reader-text,
	.PDS_Poll,
	.results__header + .pagination,
	.site-header,
	.site-footer,
	nav,
	.navigation,
	.jw-player,
	.jw-wrapper,
	.blaize-verticals,
	.blaize-mobile-dropdown,
	.verticals,
	iframe,
	.sharing-bar,
	.dct-cta-wrap,
	.dct-cta,
	article figure[data-urn],
	article .block,
	.qc-cmp-persistent-link,
	.wpc-message-logged-in-user {
		display: none !important;
	}
}
