/*
Theme Name: DP Apollo
Theme URI: http://www.doppelpack.com
Author: Timon Scheibner | Doppelpack Werbeagentur GmbH
Author URI: http://www.doppelpack.com
Description: Fast and lightweight mobile first Wordpress theme.
Version: 3.0.8
Tested up to: 5.9
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: dp-apollo
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

DP Apollo is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Bootstrap v4.5 (https://getbootstrap.com/)
Copyright 2011-2019 Twitter, Inc.
Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Base
# Site Header
# Entry Header
# Entry Content
# Entry Footer
# Post Navigation
# Site Footer
# Archives
# Numeric Posts Navigation
# Media Queries - Small devices (landscape phones, 576px and up)
# Media Queries - Medium devices (tablets, 768px and up)
# Media Queries - Large devices (desktops, 992px and up)
# Media Queries - Extra large devices (large desktops, 1200px and up)
---------------------------------------------------------------- */


/* ============================================================= */
/* Base
/* ============================================================= */

html {
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	border: none;
	font-size: 16px;
}

body {
	width: 100%;
	height: 100%;
	word-wrap: break-word;
	word-break: break-word;
	overflow-x: hidden;
}

#page {
	overflow: hidden;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}


/* ============================================================= */
/* Site Header
/* ============================================================= */

#scroll-to-top {
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 90;
	position: fixed;
	right: 10px;
	bottom: 10px;
	width: 50px;
	height: 50px;
	box-shadow: 0 0 5px 0 rgba(0,0,0,0.1);
	border-radius: 100%;
	background-color: var(--wp--preset--color--bg-light, #eeeeee);
	color: var(--wp--preset--color--primary, #f44e1e);
	padding: 15px;
	transform: translateY(100px);
	transition: background-color 0.15s linear, transform 0.3s ease-in-out;
	cursor: pointer;
}

html.no-touch #scroll-to-top:hover {
	background-color: var(--wp--preset--color--bg-dark, #000000);
}

#scroll-to-top.active {
	transform: translateY(0);
}

#scroll-to-top svg {
	width: 100%;
	height: auto;
}

#scroll-to-top path {
	fill: currentColor;
}


/* ============================================================= */
/* Entry Header
/* ============================================================= */

/* Featured Media
/* ------------------------------------------------------------- */

.featured-media {
	position: relative;
	width: 100vw;
	height: 50vw;
	max-height: 70vh;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	margin-left: calc((100vw - 100%) / -2);
	overflow: hidden;
}

.featured-media.height-narrow {
	height: 30vw;
	max-height: 30vh;
}

.featured-media.height-fullscreen {
	height: calc(100vh - 64px); /* 100vh - site-header-margin height*/
	max-height: 100vh;
}

.featured-media > img,
.featured-media > picture {
	position: absolute;
	top: -1px;
	left: -1px;
	width: 1px;
	height: 1px;
}

/* Featured Media - Single Posts */

.featured-media-background {
	width: 100vw;
	max-width: 100vw;
	background-color: var(--wp--preset--color--bg-light, #eeeeee);
	margin-left: calc(50% - 50vw);
	margin-bottom: calc(15% + 20px); /* negative margin of featured media + box shadow */
	margin-right: calc(50% - 50vw);
}

.featured-media-background .featured-media {
	width: 100%;
	height: auto;
	box-shadow: 0 0 20px rgba(0,0,0,0.3);
	padding: calc(10% / 16 * 100) 0 0 0; /* use padding to keep 16:10 ratio on all devices */
	margin-top: 3vw;
	margin-left: 0;
	margin-bottom: -15%;
}

/* Breadcrumbs
/* ------------------------------------------------------------- */

.breadcrumbs {
	margin-top: var(--wp--custom--spacing--small, 15px);
	margin-bottom: var(--wp--custom--spacing--small, 15px);
}

/* Entry Meta
/* ------------------------------------------------------------- */

.posted-on time:not(.updated) {
	display: none;
}


/* ============================================================= */
/* Entry Content
/* ============================================================= */

.entry-content .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.entry-content .alignwide {
	width: 100%;
}


/* ============================================================= */
/* Entry Footer
/* ============================================================= */


/* ============================================================= */
/* Post Navigation
/* ============================================================= */

.post-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
}


/* ============================================================= */
/* Site Footer
/* ============================================================= */

#site-footer {
	z-index: 20;
	width: 100%;
	padding: var(--wp--custom--spacing--medium, 40px) 0;
}

/* Doppelpack Logo
/* ------------------------------------------------------------- */

.footer-logo-wrapper {
	text-align: center;
}

#footer-logo-dp svg {
	width: 100px;
	height: auto;
}


/* ============================================================= */
/* Archives
/* ============================================================= */

.posts-grid {
	display: flex;
	flex-flow: row wrap;
	justify-content: flex-start;
	gap: 20px;
}

.posts-grid article {
	flex: 0 1 100%;
	display: flex;
	flex-flow: column nowrap;
	background-color: var(--wp--preset--color--bg-light, #eeeeee);
}

.posts-grid .featured-media {
	flex: 0 1 auto;
	width: 100%;
	height: auto;
	padding: calc(10% / 16 * 100) 0 0 0; /* use padding to keep 16:10 ratio on all devices */
	margin: 0;
}

.posts-grid .entry-header {
	display: flex;
	flex-flow: column nowrap;
	width: 100%;
	height: 100%;
	flex: 0 1 auto;
	padding: var(--wp--custom--spacing--medium, 40px);
	margin: 0;
}

.posts-grid .entry-title {
	font-size: var(--wp--preset--font-size--large, 1.5rem);
	margin-top: 0;
}

.posts-grid .entry-title > a {
	text-decoration: none;
}

.posts-grid .entry-meta {
	font-size: var(--wp--preset--font-size--small, 0.8rem);
}

.posts-grid .entry-header > *:last-child {
	margin-top: auto;
	margin-bottom: 0;
}

/* 404 */

body.error404 #site-content {
	text-align: center;
}


/* ============================================================= */
/* Numeric Posts Navigation
/* ============================================================= */

.num-posts-navigation {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0 var(--wp--custom--spacing--medium, 40px);
	margin: var(--wp--custom--spacing--small, 15px) 0;
}

.num-posts-navigation ul {
	position: relative;
	display: flex;
	gap: 5px;
	list-style: none;
	padding: 0;
}

.num-posts-navigation li {
	display: flex;
	justify-content: center;
	align-items: center;
}

.num-posts-navigation > ul > li:before,
.num-posts-navigation > ul > li:after {
	display: none;
}

.num-posts-navigation li a {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 30px;
	height: 30px;
	color: var(--wp--preset--color--primary, #f44e1e);
	line-height: 30px;
	border-radius: 50px;
	background-color: transparent;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.15s linear;
}

.num-posts-navigation li a:hover {
	color: #fff;
	background-color: var(--wp--preset--color--primary, #f44e1e);
}

.num-posts-navigation li.active a {
	color: #fff;
	background-color: var(--wp--preset--color--primary, #f44e1e);
}

/* Previous and Next */
.num-posts-navigation li.previous {
	position: absolute;
	right: 100%;
}

.num-posts-navigation li.next {
	position: absolute;
	left: 100%;
}

.num-posts-navigation li.previous svg path,
.num-posts-navigation li.next svg path {
	fill: currentColor;
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {

}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {

	/* ============================================================= */
	/* Base
    /* ============================================================= */

	html {
		font-size: 18px;
	}


	/* ============================================================= */
	/* Site Header
    /* ============================================================= */

	#scroll-to-top {
		right: 15px;
		bottom: 15px;
	}


	/* ============================================================= */
	/* Entry Header
    /* ============================================================= */

	/* Featured Media
	/* ------------------------------------------------------------- */

	.featured-media.height-fullscreen {
		height: calc(100vh - 74px);
	}

}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {

	/* ============================================================= */
	/* Entry Content
    /* ============================================================= */

	/* Disable "alignfull", if sidebar is shown on the left or right side of the content */
	body.has-sidebar .entry-content .alignfull {
		width: 100%;
		max-width: 100%;
		margin-left: 0;
		margin-right: 0;
	}

}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {

	/* ============================================================= */
	/* Entry Header
    /* ============================================================= */

	/* Featured Media
	/* ------------------------------------------------------------- */

	.featured-media.height-fullscreen {
		height: calc(100vh - 80px);
	}


	/* ============================================================= */
	/* Entry Content
    /* ============================================================= */

	.entry-content .alignwide {
		width: calc(50% + 50vw);
		max-width: calc(50% + 50vw);
		margin-left: calc(25% - 25vw);
		margin-right: calc(25% - 25vw);
	}


	/* ============================================================= */
	/* Archives
    /* ============================================================= */

	.posts-grid article {
		flex-basis: calc((100% - 40px) / 3);
	}

	/* Search */

	body.search .posts-grid article {
		flex-basis: 100%;
	}

}