/*
 Theme Name:   BWR
 Theme URI:    https://brendanwalshracing.com
 Description:  Custom theme for Brendan Walsh Racing
 Author:       Anthill Inc.
 Author URI:   https://anthill.net
 Template:     generatepress
 Version:      1.0
*/

img.horse-photo,
img.horse-profile-img-thumbnail {
	display: block;
}

#hero-image {
	min-height: calc(100vh - 60px);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-left: auto;
	margin-right: auto;
	z-index: 1;
	position: relative;
	background-repeat: no-repeat;
	background-position: center top;
	background-size: cover;
	background-color: rgba(0, 0, 0, 0.4);
	z-index: 0;
}

.admin-bar #hero-image {
	min-height: calc(100vh - 92px);
}

#hero-image::before {
	content: "";
	display: block;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1;
	background-color: rgba(0, 0, 0, 0.4);
}

div.site-title {
	text-align: center;
	vertical-align: middle;
	z-index: 2;
}

div.site-title h1 {
	color: #fff;
	font-size: 80px;
	margin-bottom: 0;
	padding: 0 30px;
}

.site-title h1:hover {
	cursor: default;
}

@keyframes fadeInUp {
	0% {
		transform: translateY(100%);
		opacity: 0;
	}

	100% {
		transform: translateY(0%);
		opacity: 1;
	}
}

.fadeInUp-animation {
	animation: 1.5s fadeInUp;
}

a img {
	opacity: 1;
	transition: opacity 0.3s ease-out;
	-moz-transition: opacity 0.3s ease-out;
	-webkit-transition: opacity 0.3s ease-out;
	-o-transition: opacity 0.3s ease-out;
}

a img:hover {
	opacity: 0.8;
}

.bwr-wins-wrapper {
	display: flex;
	justify-content: center;
	row-gap: 20px;
	column-gap: 60px;
}

.bwr-win-col {
	text-align: center;
}

p.bwr-win-number {
	font-family: "Roboto Condensed", sans-serif;
	font-size: 50px;
	margin-bottom: 10px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: bold;
}

p.bwr-win-label {
	font-family: "Roboto Condensed", sans-serif;
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.blue {
	color: #5269b5;
}

.white {
	color: #fff;
}

.single-post .entry-meta time.entry-date {
	background-color: #5269b5;
	padding: 3px 5px;
	color: #fff;
	font-family: "Roboto Condensed", sans-serif;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.entry-content .wp-block-image,
.entry-content .wp-block-gallery {
	margin-bottom: 30px;
}

.post-image-below-header.post-image-aligned-center
	.inside-article
	.featured-image {
	margin-top: 0 !important;
}

div.no-access-msg {
	width: 100%;
	text-align: center;
}

.owner-horses-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
}

.horse-wrapper {
	width: calc((100% / 3) - (((3 - 1) / 3) * 30px));
	background-color: var(--base-2);
}

div.horse-meta {
	padding: 20px 30px 30px 30px;
	text-align: center;
}

h2.horse-name {
	font-size: 24px;
	margin-bottom: 10px;
}

.horse-age-gender span,
.horse-sire-dam span {
	font-weight: bold;
	font-size: 16px;
}

div.no-access-msg {
	padding: 150px 0;
}

.tml-field-wrap label {
	font-family: "Roboto Condensed", sans-serif;
	color: var(--contrast-2);
}

.tml-field-wrap button {
	width: 100%;
}

ul.tml-links {
	list-style: none;
	margin: 10px 0;
}

ul.tml-links li.tml-lostpassword-link,
ul.tml-links li.tml-login-link {
	text-decoration: none;
	text-align: center;
}

ul.tml-links li.tml-lostpassword-link a,
ul.tml-links li.tml-login-link a {
	color: var(--contrast-2);
	font-size: 16px;
}

ul.tml-links li.tml-lostpassword-link a:hover,
ul.tml-links li.tml-login-link a:hover {
	color: var(--accent);
}

div.horse-profile-wrapper {
	display: flex;
	gap: 30px;
}

div.horse-profile-image {
	width: 50%;
}

div.horse-profile-meta {
	width: 50%;
}

h1.horse-profile-title {
	border-bottom: 3px solid var(--accent);
	padding-bottom: 10px;
	margin-bottom: 20px;
}

p.horse-profile-data {
	font-family: "Roboto Condensed", sans-serif;
	font-size: 18px;
	color: var(--contrast-2);
	margin-bottom: 10px;
}

p.horse-profile-data span {
	font-weight: bold;
	margin-right: 10px;
}

p.horse-profile-updated-date {
	font-size: 14px;
	padding-top: 20px;
}

html {
	scroll-padding-top: 60px;
}

div.horse-profile-menu-wrapper {
	margin-bottom: 30px;
	text-align: center;
}

a.horse-profile-menu-link {
	font-family: "Roboto Condensed", sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	font-size: 12px;
	margin: 0 10px;
	font-weight: bold;
}

h2.horse-profile-heading {
	border-bottom: 3px solid var(--accent);
	padding-bottom: 10px;
	font-size: 28px;
	padding-top: 40px;
}

div.horse-profile-gallery-wrapper {
	display: flex;
	flex-wrap: wrap;
}

div.gallery-img-wrapper {
	width: 33%;
}

div.horse-profile-vid-embed {
	text-align: center;
	margin-bottom: 30px;
}

.horse-profile-vid-embed {
	overflow: hidden;
	padding-top: 56.25%;
	position: relative;
}
.horse-profile-vid-embed iframe {
	border: 0;
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
}

div.featured-image div.wp-caption p.wp-caption-text {
	margin-top: 10px;
	line-height: 1.5;
}

/**** Pedigree Chart ****/
table,
td,
th {
	border: none;
}

.horse-pedigree-wrapper table {
	width: 100%;
	border-collapse: separate;
	border: none;
}

.horse-pedigree-wrapper th,
.horse-pedigree-wrapper td {
	vertical-align: bottom;
}

.horse-pedigree-wrapper th {
	border-bottom: 2px solid black;
	text-align: left;
}

.horse-pedigree-wrapper td {
	padding-left: 1rem;
	padding-bottom: 0.25rem;
}

.line-bottom {
	border-bottom: 1px solid black;
}

.line-left-down {
	border-left: 1px solid black;
}

.line-left-up {
	border-left: 1px solid black;
}

.line-left {
	border-left: 1px solid white;
}

div.horse-data {
	height: 460px;
}

@media screen and (max-width: 768px) {
	.bwr-wins-wrapper {
		flex-wrap: wrap;
	}
	.bwr-win-col {
		width: 100%;
	}
	p.bwr-win-number {
		font-size: 60px;
		margin-bottom: 0;
	}
	div.site-title h1 {
		font-size: 50px;
	}
	.horse-wrapper {
		width: calc((100% / 2) - (((2 - 1) / 2) * 30px));
	}
	div.horse-profile-wrapper {
		flex-wrap: wrap;
	}
	div.horse-profile-image {
		width: 100%;
	}
	div.horse-profile-meta {
		width: 100%;
		padding: 0;
	}
	div.gallery-img-wrapper {
		width: 50%;
	}
	.horse-pedigree-wrapper table {
		font-size: 12px;
	}
}

@media screen and (max-width: 500px) {
	.horse-wrapper {
		width: 100%;
	}
}
