/*
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: <=767px
*************/

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

	body {
		padding-top: 80px;
	}

	.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;
	}

	/* Gigya (SSO) */
	.admin-bar #sso-login-bar {
		top: 46px;
	}

	#sso-login-bar.js-off {
		top: -32px;
	}

	.admin-bar #sso-login-bar.js-off {
		top: -78px;
	}

	/* Header */
	.site-header {
		top: 32px;
		overflow: visible;
	}

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

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

	.site-header > .wrap .column {
		padding: 0 48px;
		height: 48px;
	}

	.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;

		width: 100%;
		height: 100%;
	}

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

	.logo__media {
		display: inline-block;
	}

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

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

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

	.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 */
	.social--footer,
	.site-footer__links {
		margin-bottom: 20px;
	}

	/* 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 {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;

		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 {
		-moz-box-sizing: border-box;
		-ms-box-sizing: border-box;
		-o-box-sizing: border-box;
		-webkit-box-sizing: border-box;
		box-sizing: border-box;
	}

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

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

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

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

	.intro__cell:only-child > a {
		padding: 10px;
		line-height: 100%;
	}

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

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

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

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

	/* 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%;
	}

	/* 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: 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%;
	}

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

	/* Block: News */
	.block--grid .post--grid .title {
		min-height: 0 !important;
	}

	/* Block: Gallery */
	.gallery__pager {
		display: block !important;
		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';
		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;
	}
}

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

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

	/* 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;
		right: 0;
		display: none;
		max-width: 300px;
		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: 50%;
		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;
	}

	.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) {

	body {
		padding-top: 196px;
	}

	/* Header */
	.site-header {
		top: 32px;
		height: 164px;
	}

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

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

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

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

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

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

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

	/* 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;
	}

	.package--top__synopsis-wrap,
	.package--top__synopsis-wrap > div,
	.package--top__synopsis-wrap > ul,
	.package--top__synopsis-wrap > a {
		display: -webkit-box;
		display: -webkit-flex;
		display: -ms-flexbox;
		display: flex;

		-webkit-flex-direction: column;
		-ms-flex-direction: column;
		flex-direction: column;
	}

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

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

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

	.author__meta {
		float: right;
	}
}

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

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

	.wrap {
		width: 980px;
	}

	.wrapped {
		margin: 0 auto;
		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;
	}

	/* Gigya (SSO) */
	#sso-login-wrapper {
		margin: 0 auto;
		width: 960px;
	}

	/* Header > Verticals */
	.verticals {
		float: right;
	}

	.verticals .menu-item {
		float: left;
		margin-left: 15px;
	}

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

	/* Posts > Entry 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;
	}

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

	/* 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;
	}
}

/***************
Feature: Flexbox
***************/

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

	/* Flexbox */
	.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;
	}

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

	.block--package .package--main,
	.block--grid .row-full .column {
		float: none;
		width: 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;
	}

	.carousel__slide .timestamp {
		-ms-flex-item-align: start;
		align-self: flex-start;
	}

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

	@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--grid .post--grid {
			height: 90%;
			height: calc(100% - 32px);
		}
	}

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

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

		.author__flex {
			display: block;
		}
	}

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

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

			-ms-flex-flow: row nowrap;
			flex-flow: row nowrap;
		}

		.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-justify-content: space-between;
			justify-content: space-between;

			height: 100%;
		}

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

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

		.gallery__page {
			-ms-flex-direction: column;
			-webkit-flex-direction: column;
			flex-direction: column;
		}

		/* 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-justify-content: space-between;
			justify-content: space-between;
			-webkit-box-align: center;
			-ms-flex-align: center;
			align-items: center;
		}

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

/****
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 {
		display: none !important;
	}
}
