/*
Theme Name: Travelhire
Theme URI: https://travelhire.com
Author: Travelhire, Adam Jones
Description: Travelhire corporate site theme
Version: 1.0.0
Requires at least: 7.0
Tested up to: 7.0
Requires PHP: 8.2
Text Domain: travelhire
*/


/* style overrides that load after legacy theme css */

header .logo {
	color: inherit;
	text-decoration: none;
}

/* Admin bar — avoid double offset and keep nav shadow aligned with logo */
html.admin-bar {
	margin-top: 0 !important;
}

body.admin-bar {
	padding-top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar {
		padding-top: 46px;
	}
}

.site-top {
	position: relative;
}

.site-top .no-shadow {
	top: 210px;
	left: 0;
	right: 0;
}

/* Homepage — flexslider fallback before JS init */
.home .flexslider:not(.flexslider-ready) .slides > li:first-child {
	display: block;
}

/* Single news posts */
.single-post-wrap {
	padding: 0 0 40px;
}

.single-post-inner {
	background-color: #fff;
	box-shadow: 0 0 20px 10px rgba(0, 0, 0, 0.3);
	margin: 0 auto;
	width: 960px;
}

.single-post-inner .post-hero {
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	height: 280px;
	position: relative;
}

.single-post-inner .post-hero__title h2 {
	background: rgba(0, 0, 0, 0.5);
	bottom: 0;
	color: #fff;
	font-size: 1.9em;
	font-weight: lighter;
	left: 0;
	line-height: 50px;
	margin: 0;
	padding: 0 40px 0 115px;
	position: absolute;
	right: 0;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.single-post-inner .post-hero--text {
	background: none;
	border-bottom: dashed 1px #c3c3c3;
	height: auto;
	padding: 35px 115px 25px;
	position: static;
}

.single-post-inner .post-hero--text h1,
.single-post-inner .post-hero--text h2,
.single-post-inner .post-hero--text h3,
.single-post-inner .post-hero--text h4,
.single-post-inner .post-hero--text h5,
.single-post-inner .post-hero--text h6 {
	padding-left: 0;
	padding-right: 0;
}

.single-post-inner .post-hero--text h2 {
	color: #333;
	font-size: 1.9em;
	font-weight: lighter;
	line-height: 1.3;
	margin: 0;
}

.single-post-content {
	padding: 25px 115px 40px;
}

.single-post-content .oneColumn,
.single-post-content .post-content {
	float: none;
}

.single-post-content .post-content h2 {
	padding-left: 0;
	padding-right: 0;
}

.single-post-content .post-content li {
	color: #555;
}

.single-post-content .date {
	margin: 0 0 20px;
	padding-left: 0;
	padding-right: 0;
}

.single .post-content p {
	padding-left: 0;
	padding-right: 0;
	padding-bottom: 1em;
}

.single .post-content p:last-child {
	padding-bottom: 0;
}

/* Page templates — white articleContainer must wrap floated column copy */
.articleContainer::after,
.articleDiv::after {
	content: "";
	display: table;
	clear: both;
}

.articleContainer .oneColumn,
.articleContainer .oneColumnWidth {
	float: none;
}

.articleDiv:not(#newsDiv) p {
	padding-left: 0;
	padding-right: 0;
}

.articleDiv:not(#newsDiv) h3.date {
	padding-left: 0;
	padding-right: 0;
}

#contactArticleContainer h3,
#contactArticleContainer h4 {
	padding-left: 0;
	padding-right: 0;
}

/* Post and page main content — block images, no text wrap */
.post-content img,
.articleDiv p img,
.articleDiv .oneColumn img,
.articleDiv .paddingBottom img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 0 1em;
}

.post-content .alignleft,
.post-content .alignright,
.articleDiv p .alignleft,
.articleDiv p .alignright,
.articleDiv .oneColumn .alignleft,
.articleDiv .oneColumn .alignright {
	float: none;
}

.post-content .aligncenter,
.articleDiv p .aligncenter,
.articleDiv .oneColumn .aligncenter {
	display: block;
	margin: 0 auto 1em;
}

/* Content lightbox — post and page images */
.post-content img:not(.mainEventsImage):not(.driversAside):not(.clientsAside):not(.trackingAside),
.articleDiv p img,
.articleDiv .oneColumn img,
.articleDiv .paddingBottom img,
.articleDiv .contacts img {
	cursor: zoom-in;
}

body.content-lightbox-open {
	overflow: hidden;
}

.content-lightbox {
	align-items: center;
	background: rgba(0, 0, 0, 0.88);
	box-sizing: border-box;
	display: none;
	inset: 0;
	justify-content: center;
	padding: 24px;
	position: fixed;
	z-index: 100000;
}

.content-lightbox.is-open {
	display: flex;
}

.content-lightbox__img {
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
	display: block;
	height: auto;
	max-height: 92vh;
	max-width: min(960px, 92vw);
	width: auto;
}

.content-lightbox__close {
	background: none;
	border: 0;
	color: #fff;
	cursor: pointer;
	font-family: inherit;
	font-size: 2.4rem;
	line-height: 1;
	padding: 8px 12px;
	position: absolute;
	right: 12px;
	top: 8px;
}

/* Post and page content — Gutenberg list blocks */
ul.wp-block-list {
	list-style: disc outside none;
	margin: 0 0 9px 25px;
	padding: 0;
	color: #555;
	font-family: 'Asap', sans-serif;
}

ol.wp-block-list {
	list-style: decimal outside none;
	margin: 0 0 9px 32px;
	padding: 0;
	color: #555;
	font-family: 'Asap', sans-serif;
}

.wp-block-list li {
	font-family: 'Asap', sans-serif;
	font-size: 0.9em;
	line-height: 1.5em;
	color: #555;
}

.wp-block-list ul {
	list-style: disc outside none;
	margin: 8px 0 8px 25px;
	padding: 0;
}

.wp-block-list ol {
	list-style: decimal outside none;
	margin: 8px 0 8px 32px;
	padding: 0;
}
