/*
Theme Name: Difference 2025
Theme URI: https://olliewp.com
Description: Child theme, based on Ollie.
Author: Difference
Author URI: https://difference.co.nz
Template:     ollie
Version: 20251106095644
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Tags:         blog, portfolio, entertainment, grid-layout, one-column, two-columns, three-columns, four-columns, block-patterns, block-styles, custom-logo, custom-menu, editor-style, featured-images, full-site-editing, full-width-template, rtl-language-support, style-variations, template-editing, theme-options, translation-ready, wide-blocks
Text Domain: ollie-child
*/

html {
	-webkit-font-smoothing: auto;
}

h1, h2, h3, h4, h5, h6 {
	font-weight: 500;
}

.desktop-header {
	display: none;
}

.mobile-header {
	display: block;
}

@media(min-width: 782px) {
	.desktop-header {
		display: block;
	}
	
	.mobile-header {
		display: none;
	}
}

body.wp-admin .desktop-header,
body.wp-admin .mobile-header {
	display: block !important;
}

.mobile-nav-toggle-group .toggler {
	width: 30px;
	height: 25px;
	background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='Layer_1' data-name='Layer 1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 35 25'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: none; %7D %3C/style%3E%3C/defs%3E%3Crect class='cls-1' width='35' height='25'/%3E%3Cg%3E%3Crect x='2.5' y='5.25' width='30' height='2'/%3E%3Crect x='2.5' y='17.75' width='30' height='2'/%3E%3C/g%3E%3C/svg%3E");
	background-position: right center;
	background-size: 25px;
	background-repeat: no-repeat;
	margin: 0 !important;
	cursor: pointer;
}

.mobile-nav-toggle-group .toggler.toggler-white {
	background-image: url("data:image/svg+xml,%3Csvg id='Layer_1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 35 25'%3E%3Crect fill='none' width='35' height='25'/%3E%3Cg%3E%3Crect x='2.5' y='5.25' width='30' height='2' fill='%23fff'/%3E%3Crect x='2.5' y='17.75' width='30' height='2' fill='%23fff'/%3E%3C/g%3E%3C/svg%3E");
}

.mobile-nav-toggle-group .toggler.active {
	
}

.mobile-nav {
	display: none;
}

.mobile-nav .wp-block-navigation__container.wp-block-navigation {
	width: 100%;
}

.mobile-nav .wp-block-navigation__container.wp-block-navigation .wp-block-navigation-item,
.mobile-nav .wp-block-navigation__container.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	width: 100%;
}

.header-logo,
.wp-block-site-logo {
	width: 200px;
	height: auto;
	line-height: 1;
}

.wp-block-site-logo h1 {
	font-size: 12px;
	line-height: 1;
	margin: 0;
}

.header-logo svg,
.wp-block-site-logo svg {
	width: 100%;
	height: auto;
}

footer a {
	text-decoration: none;
}

footer a:hover {
	text-decoration: underline;
}

.work-item-group {
	aspect-ratio: 5/3;
	width: 100%;
	height: auto;
	position: relative;
}

.work-item-group .work-item-text {
	opacity: 1;
	transition: opacity 200ms ease;
}

.work-item-group:hover .work-item-text {
	opacity: 0;
}

.work-item-text {
	position: absolute;
	width: 100%;
	height: 100%;
	max-width: unset;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	background-color: rgba(0, 0, 0, 0.85);
	cursor: pointer;
}

.work-item-text h2 {
	font-weight: 400;
	font-size: clamp(28px, 3vw, 44px);
	margin-top: 0;
	margin-bottom: clamp(20px, 2vw, 35px);
	text-box: trim-both cap alphabetic;
}

.work-item-text h2 a {
	text-decoration: none;
}

.work-item-text h2:focus-visible,
.work-item-text h2 a:focus-visible {
	outline: 0 !important;
	background: transparent !important;
	text-decoration: none !important;
}

.work-item-text h2 a::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
}

.work-item-text p {
	margin: 0;
	text-box: trim-both cap alphabetic;
}

.entry-content h1 {
	font-weight: 500;
	text-box: trim-both cap alphabetic;
}

.entry-content p[style="text-decoration:none"] a:not(:hover) {
  text-decoration: none;
}


/* Gravity Forms Customisations */

.gform_required_legend,
.gfield_required {
	display: none !important;
}

.gfield.gfield_contains_required label {
	font-weight: 500 !important;
}

.charleft.ginput_counter {
	display: none !important;
}

.gfield input,
.gfield textarea {
	font-size: 16px !important;
}

h3.gsection_title {
	margin-top: 0;
	text-box: trim-both cap alphabetic;
}

.gfield.gfield--type-section {
	margin-top: 40px;
	border-bottom: 1.5px solid black !important;
}

.gform_fields.top_label .gfield.gfield--type-section:first-of-type {
	margin-top: 0;
}

.gform_confirmation_message {
	background: black;
	color: white;
	padding: 15px 20px;
	border: 1px solid white;
	border-radius: 10px;
	font-weight: 500;
	font-size: 20px;
}

/* END: Gravity Forms Customisations */


/* Make the full page black BG on contact pages so no white gap on form submit */
body.wp-singular.page-id-84 {
	background: black;
}

/* Make the full page black BG on About page so no white gap on form submit */
body.wp-singular.page-id-298 {
	background: black;
}