/*
 Theme Name:     Divi Child
 Theme URI:      https://www.munki-boy.co.uk/
 Description:    Divi Child Theme
 Author:         munki-boy
 Author URI:     https://www.munki-boy.co.uk
 Template:       Divi
 Version:        1.0.0
*/


/* ---------- Logo font ---------- */

@font-face {
	font-family: 'munki-boylogo';
	src: url('fonts/munki-boylogo.woff') format('woff'),
		url('fonts/munki-boylogo.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}

.munki-logo {
	font-family: 'munki-boylogo';
	line-height: 1;
}


/* ---------- Header: logo and burger on one line ---------- */

body #page-container .et_pb_text:has(.munki-logo) {
	position: absolute !important;
	top: 0;
	left: 0;
	z-index: 10;
	margin: 0 !important;
}

/* Burger at all sizes */
.et_pb_menu .et_pb_menu__menu {
	display: none !important;
}
.et_pb_menu .et_mobile_nav_menu {
	display: block !important;
}

/* Full width so the list can sit under the logo */
.et_pb_menu .et_pb_menu__wrap,
.et_pb_menu .et_mobile_nav_menu,
.et_pb_menu .mobile_nav {
	width: 100%;
}
body #page-container .et_pb_menu .et_pb_menu__wrap,
body #page-container .et_pb_menu .et_mobile_nav_menu,
body #page-container .et_pb_menu .mobile_nav {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

/* Burger button, outlined */
.et_pb_menu .mobile_menu_bar {
	width: fit-content;
	margin-left: auto;
	border: 2px solid #fff;
	border-radius: 6px;
	padding: 2px 10px;
}
.et_pb_menu .mobile_menu_bar:before {
	color: #fff !important;
}

/* Open menu: in the header, no white box */
body #page-container .et_pb_menu .et_mobile_menu {
	position: static !important;
	width: 100% !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 10px 0 !important;
	text-align: left !important;
}
body #page-container .et_pb_menu .et_mobile_menu li {
	list-style: none !important;
	background: none !important;
}
body #page-container .et_pb_menu .et_mobile_menu li a {
	color: rgba(255, 255, 255, 0.6) !important;
	background: none !important;
	border: 0 !important;
	font-size: 22px;
	padding: 12px 0 !important;
}
body #page-container .et_pb_menu .et_mobile_menu li a:hover,
body #page-container .et_pb_menu .et_mobile_menu .current-menu-item > a {
	color: #fff !important;
}


/* ---------- Shortcodes in Divi Text modules ---------- */

/* Divi wraps a shortcode in a paragraph that ends up empty */
.et_pb_text_inner p:empty {
	display: none;
}

/* Hide the empty heading on walk pages */
h1:empty {
	display: none;
}


/* ---------- Cards: walks, galleries, photos, videos ---------- */

.walk-list,
.photo-list {
	display: grid;
	gap: 30px;
}
.walk-list {
	grid-template-columns: repeat(4, 1fr);
}
.photo-list {
	grid-template-columns: repeat(3, 1fr);
}
.walk-card,
.photo-card {
	display: block;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 4px;
	overflow: hidden;
	color: inherit !important;
	background: #fff;
}
.walk-card img,
.photo-card img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	display: block;
}
.walk-card-body {
	padding: 30px;
}
.walk-card-body h3 {
	padding-bottom: 20px;
}
.photo-card-body {
	padding: 20px 30px;
}
@media (max-width: 1200px) {
	.walk-list {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media (max-width: 980px) {
	.walk-list,
	.photo-list {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 600px) {
	.walk-list,
	.photo-list {
		grid-template-columns: 1fr;
	}
}

/* Gallery page numbers */
.photo-paging {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding-top: 30px;
}
.photo-paging a,
.photo-paging span {
	padding: 6px 12px;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 4px;
}
.photo-paging span {
	font-weight: bold;
}


/* ---------- Single walk ---------- */

.walk-top,
.walk-step {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 60px;
	align-items: start;
}
.walk-step {
	padding-top: 60px;
}
.walk-subtitle {
	padding-bottom: 10px;
}
.walk-map img,
.walk-step-images img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 4px;
}
.walk-spec {
	padding: 40px 0 0 20px !important;
}
.walk-spec li {
	padding: 2px 0;
}
.walk-step-images figure {
	margin: 0 0 20px;
}
.walk-step-images figcaption {
	font-size: 14px;
	opacity: 0.7;
	padding-top: 6px;
}
@media (max-width: 980px) {
	.walk-top,
	.walk-step {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}
.walk-disclaimer {
	font-size: 13px;
	opacity: 0.7;
	padding-top: 60px;
}
.walk-locations {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 10px;
}
.walk-locations a {
	border: 1px solid currentColor;
	border-radius: 20px;
	padding: 4px 12px;
	font-size: 14px;
}


/* ---------- Single photo ---------- */

.photo-full {
	width: 100%;
	height: auto;
	display: block;
}

/* Gallery links as solid buttons, like the old site */
.photo-galleries {
	list-style: none !important;
	padding: 0 !important;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}
.photo-galleries a {
	display: inline-block;
	background: #007bff;
	color: #fff !important;
	border-radius: 4px;
	padding: 10px 24px;
}

/* Click the photo to see it full size */
.photo-zoom {
	display: block;
	cursor: zoom-in;
}
.photo-modal {
	padding: 0;
	border: 0;
	background: transparent;
	max-width: 95vw;
	max-height: 95vh;
	overflow: visible;
}
.photo-modal::backdrop {
	background: rgba(0, 0, 0, 0.9);
}
.photo-modal img {
	display: block;
	max-width: 95vw;
	max-height: 95vh;
	width: auto;
	height: auto;
	cursor: zoom-out;
}
.photo-modal-close {
	position: fixed;
	top: 15px;
	right: 20px;
	background: none;
	border: 0;
	color: #fff;
	font-size: 40px;
	line-height: 1;
	cursor: pointer;
}


/* ---------- Single video ---------- */

.video-body iframe {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
}