/*!
Theme Name: Hakai Magazine Theme
Theme URI: https://hakaimagazine.com
Description: Theme
Version: 10.0
*/

/**
 * General
 */

body {
	font-family: "garvis-pro", "Georgia", serif !important;
	}
p {
	letter-spacing: 0 !important;
	}

img.size-page-width {
	width: 100vw !important;
	max-width: 2200px !important;
	margin: 0 0 0.5em 50%;
	padding: 0;
	border: none;
	transform: translateX( -50% );
	vertical-align: bottom;
	}

.singlepagecontainer hr:not(hr.fullwidth) {
	width: auto !important;
	height: auto !important;
	background-image: none !important;
	}
.singlepagecontainer hr:not(hr.fullwidth):after {
	content: '';
	display: block;
	width: 50px;
	height: 12px;
	margin: 0 auto;
	background-image: url( '/wp-content/themes/HakaiMagazine/images/dinkus.svg' );
	background-repeat: no-repeat;
	background-size: 100%;
	}

/**
 * Inline video shortcode [videogif]
 */

@media screen and ( min-width: 1200px ) {
	.gif-video.wide {
		width: 1160px !important;
		margin: 0 0 0.5em 0 !important;
		margin-left: calc(-580px + 50%) !important;
		max-width: 1160px !important;
		padding: 0;
		border: none;
		vertical-align: bottom;
	}
}

@media screen and ( min-width: 980px ) and ( max-width: 1200px ) {
	.gif-video.wide {
		width: 960px !important;
		margin: 0 0 1em 0 !important;
		margin-left: calc(-480px + 50%) !important;
		max-width: 960px !important;
		padding: 0;
		border: none;
		height: auto;
		vertical-align: bottom;
	}
}


/**
 * Share Buttons
 */

.shareicons ul {
	margin-left: 0;
}

.pocket-icon {
	display: inline-block;
}
.pocket-icon svg {
	position: relative;
	bottom: 1px;
	fill: #959591;
	vertical-align: middle;
}
.pocket-icon:hover svg {
	fill: #1e5d6f !important;
}


.mastodon-icon {
	display: inline-block;
}
.mastodon-icon svg {
	position: relative;
	bottom: 1px;
	fill: #959591;
	vertical-align: middle;
}
.mastodon-icon:hover svg {
	fill: #1e5d6f !important;
}


/**
 * Hero video
 */

.embed-container { 
	position: relative; 
	padding-bottom: 56.25%;
	overflow: hidden;
	max-width: 100%;
	height: auto;
} 

.embed-container iframe,
.embed-container object,
.embed-container embed { 
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.hero-video-caption {
	margin-top: 10px !important;
}


/**
 * Custom front page
 */

.introduction {
	width: 100%;
	padding: 0 2em 0.5em 2em;
	font-family: 'nimbus-sans', 'Arial', sans-serif;
	font-size: 1.3em;
}

@media all and ( max-width: 980px ) {

	.introduction {
		padding: 1em 0;
		font-size: 1.3em;
	}

}

@media all and ( max-width: 480px ) {

	.introduction {
		padding: 0.5em 0;
		font-size: 1.25em;
	}

}

.order-1 {
	order: 1;
}
.order-2 {
	order: 2;
}
aside.frontpagethumbholder.order-1 {
	margin-left: 0 !important;
	margin-right: 30px !important;
}

.custom-content {
	padding: 1em 0;
}
.custom-content.red,
.custom-content.blue {
	color: #fff;
}
.custom-content.red {
	background-color: #82080B;
}
.custom-content.blue {
	background-color: #1E5D6F;
}
.custom-content.grey {
	background-color: #F3F1ED;
	color: #333;
}

.custom-content-heading h2 {
	font-weight: bold;
}
.custom-content-subheading h4 {
	margin-top: 0;
	margin-bottom: 1.5em;
}
		.custom-content-item img {
			width: 100%;
			height: auto;
		}

		.custom-content.red .buttonlink a,
		.custom-content.blue .buttonlink a {
			background: #fff;
		}
		.custom-content.red .buttonlink a {
			color:  #82080B;
		}
		.custom-content.blue .buttonlink a {
			color: #1E5D6F;
		}

@media all and ( max-width: 980px ) {

	.custom-content-item {
		aspect-ratio: 16 / 9;
	}
	.custom-content .frontpagethumbinfo {
		position: absolute;
		height: auto;
		background: linear-gradient( 180deg, rgba( 0, 0, 0, 0 ) 25%, black 100% );
	}

}


/**
 * Custom gallery layouts
 */

.hakai-gallery {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 10px;
	width: 100%;
    max-width: 100% !important;
	margin: 0 0 1em 0;
	padding: 0 !important;
	list-style: none;
	}
.hakai-gallery.wide {
	width: 916px;
	max-width: 916px !important;
	margin: 0 0 1em calc( -458px + 50% );
	}
.hakai-gallery.full {
	width: 1160px;
	max-width: 1160px !important;
	margin: 0 0 1em calc( -580px + 50% );
	}
	.hakai-gallery > li {
		flex-grow: 1;
		flex-shrink: 1;
		flex-basis: auto;
		position: relative;
		display: block;
		width: calc( 50% - 5px );
		min-width: 0;
		height: auto;
		margin: 0 !important;
		padding: 0 !important;
		}
		.hakai-gallery li img {
			object-fit: cover;
			width: 100%;
			max-width: 100% !important;
			height: 100%;
			margin: 0 !important;
			vertical-align: middle;
			}

@media all and ( max-width: 1200px ) {

	.hakai-gallery,
	.hakai-gallery.wide,
	.hakai-gallery.full {
		width: 1024px;
		max-width: 1024px !important;
		margin: 0 0 1em calc( -512px + 50% );
		}

}

@media all and ( max-width: 1060px ) {

	.hakai-gallery,
	.hakai-gallery.wide,
	.hakai-gallery.full {
		width: 916px;
		max-width: 916px !important;
		margin: 0 0 1em calc( -458px + 50% );
		}

}

@media all and ( max-width: 979px ) {

	.hakai-gallery,
	.hakai-gallery.wide,
	.hakai-gallery.full {
		width: 100%;
		max-width: 100% !important;
		margin: 0 0 1em 0;
		}

}


.hakai-gallery.hakai-gallery-horizontal-1 > li:first-child {
	width: 100%;
	height: auto;
	}

.hakai-gallery.hakai-gallery-horizontal-2 > li:last-child {
	width: 100%;
	height: auto;
	}

.hakai-gallery.hakai-gallery-vertical-1 > li {
	flex-direction: column;
	width: calc( 50% - 5px );
	height: auto;
	}

	.hakai-gallery.hakai-gallery-vertical-1 > li:nth-child(2) > div {
		display: flex;
		flex-wrap: wrap;
		gap: 10px;
		}

.hakai-gallery.hakai-gallery-vertical-2 > li {
	flex-direction: column;
	width: calc( 50% - 5px );
	height: auto;
	}
.hakai-gallery.hakai-gallery-vertical-2 > li:first-child {
	order: 2;
	}
.hakai-gallery.hakai-gallery-vertical-2 > li:nth-child(2) {
	order: 1;
	}
	.hakai-gallery.hakai-gallery-vertical-2 > li:nth-child(2) > div {
		display: flex;
		flex-wrap: wrap;
		gap: 10px;
		}


/**
 * Descriptive Text
 */

.descriptive-text.descriptive-text-v2 {
	overflow: hidden;
	padding-top: 0;
	padding-bottom: 0;
	}
	.descriptive-text.descriptive-text-v2 p {
		margin-top: 1em;
		margin-bottom: 1em;
		}
		.descriptive-text.descriptive-text-v2 p img {
			vertical-align: top;
			}
	.descriptive-text.descriptive-text-v2 .pagetitle {
		margin-top: 0.3em;
		margin-bottom: 0.3em;
		font-size: 2.2em;
		}
	.descriptive-text.descriptive-text-v2 .dek {
		margin-top: 0.6em;
		margin-bottom: 0.6em;
		padding: 0;
		font-size: 1.1em;
		}
	.descriptive-text.descriptive-text-v2 .singlebydatewords {
		margin-top: 0;
		margin-bottom: 1em;
		padding: 0;
		color: #494948;
		}


/**
 * hm-embed shortcode for embedded video that normally uses an iframe.
 */

.arve-wrapper {
	width: 100vw !important;
	max-width: 1160px;
	margin-left: 50%;
	transform: translateX( -50% );
	}

@media all and ( max-width: 1200px ) {

.arve-wrapper {
	width: 100vw !important;
	max-width: 960px;
	}

	}

@media all and ( max-width: 980px ) {

	.arve-wrapper {
		width: 100% !important;
		}
	
	}

.arve {
	max-width: 100% !important;
	}


/**
 * Metaslider
 */

.metaslider .flexslider {
	margin: 0 0 60px !important;
	}
.metaslider .flexslider .flex-direction-nav li a {
	top: auto !important;
	bottom: -36px !important;
	height: 27px !important;
	opacity: 1 !important;
	}
.metaslider .flex-direction-nav .flex-prev {
	left: -0 !important;
	}
.metaslider .flex-direction-nav .flex-next {
	right: 0 !important;
	}
.metaslider .flex-control-nav {
	bottom: -37px !important;
	}


/**
 * Donate page.
 */

.page-template-donate .singlepagecontainer {
	width: 100%;
	max-width: 1060px;
	}
	.page-template-donate .singlepagecontainer header {
		position: relative;
		}
		.donate-button.buttonlink {
			display: none;
			}
	.donate-columns {
		display: flex;
		flex-wrap: wrap;
		align-items: stretch;
		gap: 40px;
		margin: 2em 0 40px 0;
		}
		.donate-columns > div:first-child {
			flex-grow: 1;
			flex-basis: 360px;
			}
		.donate-columns > div:last-child {
			flex-grow: 0;
			flex-basis: 425px;
			text-align: center;
			margin-top: 1em;
			}
		.faq {
			position: relative;
			margin-bottom: -30px;
			padding: 3em 0;
			}
			.faq h2 {
				color: #494948 !important;
				}
			.faq-item {
				margin: 2em 0;
				}
			.faq:after {
				content: '';
				display: block;
				position: absolute;
				top: 0;
				bottom: 0;
				left: 50%;
				z-index: -1;
				width: 100vw;
				transform: translateX( -50% );
				background: #b2dfb7;
				}
				.faq a, .faq a:visited {
					color: #000;
					text-decoration: underline !important;
					}
				.faq a:hover {
					color: #1e5d6f;
					text-decoration: none !important;
					}

		.donate-columns h1,
		.donate-columns h2 {
			color: #152A2C !important;
			}

@media all and ( max-width: 883px ) {

		.donate-button.buttonlink {
			position: absolute;
			top: -6px;
			right: 40px;
			display: block;
			}
			.donate-button.buttonlink a {
				padding-left: 20px;
				padding-right: 20px;
				}

			.donate-columns > div:last-child {
				display: flex;
				justify-content: center;
				flex-grow: 1;
				}

}

@media only screen and ( min-width: 0 ) and ( max-width: 980px ) {

.page-template-donate .container {
    overflow: visible;
	}

}