/*
Theme Name: Out From The Mist
Author: WebServ
Author URI: https://webserv.com.au
Requires at least: 5.9
Tested up to: 6.9
Version: 2.0.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: outfromthemist
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Lato:wght@300;400;700;900&family=Open+Sans:wght@400;500;600;700&display=swap');

/* Defaults------------------------------- */

html {
	box-sizing: border-box;
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

*,
*::before,
*::after {
	box-sizing: inherit;
}

a,
button,
input:focus,
input[type="button"],
input[type="submit"],
textarea:focus,
.wp-block-button__link {
	transition: all 0.2s ease-in-out;
}

a,
a:focus,
a:hover {
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

ol,
ul {
	margin: 0;
	padding: 0;
}

/* b,
strong {
	font-weight: var(--wp--custom--font-weight--medium);
} */

img {
	height: auto;
	max-width: 100%;
	vertical-align: top;
}

blockquote {
	margin: 0;
}

.wp-site-blocks > * + * {
    margin-top: 0 !important;
}

/* Site Blocks------------------------------- */

.wp-block-navigation__responsive-container {
	animation: fadein 0.25s;
}

.wp-site-blocks {
	animation: fadein 0.5s;
}

@keyframes fadein {

	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}

}

/* Blocks------------------------------- */

/* Button */

input[type="button"],
input[type="submit"],
.wp-block-button__link,
.wp-block-post-comments input[type="submit"],
.wp-block-search__button {
	background-color: var(--wp--preset--color--gold);
	border: 2px solid var(--wp--preset--color--gold);
	border-radius: 0;
	color: var(--wp--preset--color--primary);
	cursor: pointer;
	font-family: var(--wp--preset--font-family--secondary);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: var(--wp--custom--font-weight--medium);
	padding: 12px 25px;
	text-decoration: none;
	text-transform: uppercase;
	white-space: normal;
	width: auto;
}

input[type="button"]:focus,
input[type="button"]:hover,
input[type="submit"]:focus,
input[type="submit"]:hover,
.wp-block-button__link:focus,
.wp-block-button__link:hover,
.wp-block-search__button:focus,
.wp-block-search__button:hover {
	background-color: var(--wp--preset--color--secondary);
	border: 2px solid var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.wp-block-button__link.has-background:focus,
.wp-block-button__link.has-background:hover {
	color: var(--wp--preset--color--secondary);
	filter: brightness(110%);
}

.wp-block-button__link.has-primary-color.has-background:focus,
.wp-block-button__link.has-primary-color.has-background:hover {
	color: var(--wp--preset--color--primary);
}

/* Button - Fill Secondary */

.wp-block-button.is-style-fill-secondary .wp-block-button__link {
	background-color: var(--wp--preset--color--secondary);
	border: 2px solid var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--primary);
}

.wp-block-button.is-style-fill-secondary .wp-block-button__link:focus,
.wp-block-button.is-style-fill-secondary .wp-block-button__link:hover {
	background-color: transparent;
	border: 2px solid var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--secondary);
}

/* Button - Outline */

.wp-block-button.is-style-outline .wp-block-button__link {
	background-color: transparent;
	border: 2px solid;
	border-color: currentColor;
	color: var(--wp--preset--color--primary);
	padding: 12px 25px;
}

.wp-block-button.is-style-outline .wp-block-button__link:focus,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--secondary);
}

/* Button - Outline Secondary */

.wp-block-button.is-style-outline-secondary .wp-block-button__link {
	background-color: transparent;
	border: 2px solid;
	border-color: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--secondary);
}

.wp-block-button.is-style-outline-secondary .wp-block-button__link:focus,
.wp-block-button.is-style-outline-secondary .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--primary);
}

/* Caption */

.wp-block-embed figcaption,
.wp-block-gallery figcaption,
.wp-block-image figcaption,
.wp-block-pullquote figcaption,
.wp-block-quote figcaption,
.wp-block-table figcaption {
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--x-small);
	margin-bottom: 0;
	margin-top: 10px;
	text-align: center;
}

.wp-block-gallery figcaption {
	margin-top: 0;
}

/* Code */

.wp-block-code code {
	overflow-wrap: normal;
	overflow-x: scroll;
	white-space: pre;
}

*:not(.wp-block-code) > code,
kbd {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--secondary);
	font-size: var(--wp--preset--font-size--small);
	padding: 5px 8px;
	position: relative;
	top: -1px;
}

/*
 * When inline code is selected, the Editor applies contextual styling. Since
 * our code color is near white, we need to reset to the default text color.
 */
.rich-text:focus > code[data-rich-text-format-boundary],
.rich-text:focus > kbd[data-rich-text-format-boundary] {
	color: currentColor;
}

/* Column */

.wp-block-column.post-content {
	margin-left: 0 !important;
}

.wp-block-columns.no-gap .wp-block-column:not(:first-child) {
 margin-left: 0;
}

.wp-block-columns.team-columns {
	margin-top: 1.5em;
}

.wp-block-columns.team-columns figcaption {
	display: none;
}

.border-left {
	border-left: 1px solid var(--wp--preset--color--grey);
}

.border-right {
	border-right: 1px solid var(--wp--preset--color--grey);
}

.prize-columns:not(:last-of-type) {
	padding-bottom: 2em;
	border-bottom: 1px solid #202020;
}

.has-primary-color .prize-columns:not(:last-of-type) {
	padding-bottom: 2em;
	border-bottom: 1px solid #ECECEC;
}

/* Comments */

.wp-block-post-comments label,
.wp-block-post-comments .comment-form-cookies-consent,
.wp-block-post-comments .comment-meta,
.wp-block-post-comments .comment-notes,
.wp-block-post-comments .logged-in-as {
	font-size: var(--wp--preset--font-size--small);
}

.wp-block-post-comments input:not([type=submit]),
.wp-block-post-comments textarea {
	border: 2px solid var(--wp--preset--color--primary);
}

.wp-block-post-comments .commentlist {
	margin-bottom: 40px;
	margin-top: 40px;
}

.wp-block-post-comments .commentlist .comment p {
	line-height: var(--wp--custom--line-height--body);
}

.wp-block-post-comments .form-submit {
	margin-bottom: 0;
}

/* Comment Author Avatar */

.wp-block-post-comments .comment-author .avatar {
	height: 48px;
	margin-top: 2px;
	width: 48px;
}

/* Cover */

/* Forms */ 

.gform_wrapper .gfield_required {
	color: var(--wp--preset--color--secondary);
}

#gform_wrapper_2 form {
	max-width: 70%;
	display: flex;
	margin: 0 auto;
}

#gform_wrapper_2 form .gform_body {
	flex-grow: 1;
}

#gform_wrapper_2 form .gform_footer {
	margin: 0 !important;
	padding: 0 !important;
}

.notify-form input[type="submit"] {
	background-color: var(--wp--preset--color--primary);
	border: 2px solid var(--wp--preset--color--primary);
	color: var(--wp--preset--color--secondary) !important;
}

.notify-form input[type="submit"]:hover {
	background-color: var(--wp--preset--color--secondary);
	border: 2px solid var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary) !important;
}

.notify-form input[type="email"] {
	background-color: var(--wp--preset--color--light-gold-2);
	border: none;
	padding: 0.75em 1em !important;
    width: calc(100% - 5px) !important;
	height: 41px;
	width: 100% !important;
	margin: 0 !important;
}

.notify-form input[type="submit"] {
	padding: 10px;
	min-width: 150px;
    text-transform: none;
    color: black;
}

/* Group */

.wp-block-group.justify-left > * {
	margin-left: 0 !important;
}

.wp-block-group.justify-right > * {
	margin-right: 0 !important;
}

/* Image */

.wp-block-image .alignleft {
	margin-right: 30px;
}

.wp-block-image .alignright {
	margin-left: 30px;
}

.wp-block-image {
	position: relative;
}

.wp-block-image figcaption {
	/* color: var(--wp--preset--color--secondary); */
	/* position: absolute;
    right: 5em;
    bottom: 3em; */
	/* background:rgba(0, 0, 0, 0.4); */
	/* border: 1px solid var(--wp--preset--color--secondary); */
	padding: 0.75em 2em;
}

/* List */

ol:where(:not([class*='wp-block'])),
ol:where(.wp-block-list),
ul:where(:not([class*='wp-block'])),
ul:where(.wp-block-list) {
	/* margin-bottom: 30px; */
}

ol li:where(:not([class*='wp-block'])),
ol li:where(.wp-block-list),
ul li:where(:not([class*='wp-block'])),
ul li:where(.wp-block-list) {
	margin-left: 14px;
    padding-left: 14px;
    /* margin-bottom: 1em; */
	font-size: 16px;
}

ul.horizontal-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	list-style: none;	
}

ul.horizontal-list li {
	margin-bottom: 0;
}

ul.horizontal-list li:not(:first-child) {
	padding-left: 1em;
	margin-left: 0;
}
ul.horizontal-list li::before {
  content: '|';
  color: var(--wp--preset--color--grey-1);
  font-size: larger;
  padding-right: 1em;
}

ul.horizontal-list li:first-child::before {
	content: ' ';
	font-size: larger;
	padding-right: 0;
}

/* Media Text */

.wp-block-media-text {
	overflow: hidden;
}

/* Navigation */

.wp-block-navigation,
.wp-block-navigation .wp-block-page-list,
.wp-block-navigation__container,
.wp-block-navigation__responsive-container-content {
	gap: 0 !important;
}

.wp-block-navigation__responsive-container.is-menu-open {
	padding: 40px;
}

.wp-block-navigation .wp-block-navigation__container > li:not(:first-child) {
	padding-left: 20px;
}

.wp-block-navigation__responsive-close {
	margin-left: auto;
	margin-right: auto;
	max-width: 1280px;
}

.wp-block-navigation .has-child:where(:not(.open-on-click)):hover>.wp-block-navigation__submenu-container {
	min-width: 250px;
}

.wp-block-navigation__responsive-container-close,
.wp-block-navigation__responsive-container-open {
	border: 2px solid var(--wp--preset--color--primary);
	padding: 2px;
}

.wp-block-navigation__responsive-container-close svg,
.wp-block-navigation__responsive-container-open svg {
	height: 30px;
	width: 30px;
}

.wp-block-navigation .current-menu-item a {
	color: var(--wp--preset--color--gold);
}

/* Navigation Submenu */

.wp-block-navigation :where(.wp-block-navigation__submenu-container) .wp-block-navigation-item__content {
	padding: 5px;
}

.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
	border-color: var(--wp--preset--color--primary);
	padding: 10px;
}

.wp-block-navigation :where(.wp-block-navigation__submenu-container) a {
	padding: 2px 10px;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container {
	padding-left: 10px;
	padding-right: 0;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container {
	gap: 5px;
	padding: 5px 0 0 0;
}

/* Paragraph */

p.has-background {
	padding: 20px 30px;
}

/* Preformatted */

.wp-block-preformatted {
	overflow-wrap: normal;
	overflow-x: scroll;
	white-space: pre;
}

/* Pullquote */

.wp-block-pullquote {
	text-align: center;
}

.wp-block-pullquote p,
.wp-block-pullquote.alignleft p,
.wp-block-pullquote.alignright p,
.wp-block[data-align=left]>.wp-block-pullquote p,
.wp-block[data-align=right]>.wp-block-pullquote p {
	font-size: var(--wp--preset--font-size--large);
	line-height: var(--wp--custom--line-height--medium);
	margin-bottom: 0;
}

.wp-block-pullquote cite,
.wp-block-pullquote__citation {
	display: block;
	font-size: var(--wp--preset--font-size--x-small);
	font-style: inherit;
	margin-top: 10px;
	text-transform: inherit;
}

/* Quote */

.wp-block-quote.has-text-align-center,
.wp-block-quote.has-text-align-left,
.wp-block-quote.has-text-align-right,
.wp-block-quote.is-style-large {
	border: 1px solid var(--wp--preset--color--primary);
	margin-bottom: 35px;
	padding: 40px;
}

.wp-block-quote p:last-of-type {
	margin-bottom: 0;
}

.wp-block-quote cite,
.wp-block-quote.is-style-large p,
.wp-block-quote.is-style-large cite {
	font-style: inherit;
}

.wp-block-quote.is-style-large p {
	font-size: var(--wp--preset--font-size--x-large);
	line-height: var(--wp--custom--line-height--medium);
}

.wp-block-quote cite,
.wp-block-quote.is-style-large cite {
	display: block;
	font-size: var(--wp--preset--font-size--x-small);
	margin-top: 10px;
	text-align: inherit;
}

/* Separator */

.wp-block-separator {
	opacity: 1;
}

.wp-block-separator:not(.is-style-dots),
.wp-block-separator.has-background:not(.is-style-dots) {
	border-bottom: 1px solid currentColor;
	height: 1px;
}

.wp-block-separator.is-style-dots:before {
	font-family: inherit;
	font-size: var(--wp--preset--font-size--large);
	letter-spacing: 10px;
	padding-left: 10px;
}

/* Site Content */

.site-content {
	margin-top: 0;
}

/* Site Title */

.wp-block-site-title a, .wp-block-post-title a {
	text-decoration: none;
}



/* Custom------------------------------- */

.behind-header {
	margin-top: -14em !important;
}

/* Countdown */
.wp-block-ctb-countdown-time .countdownItems .countdownItem {
	flex-direction: column-reverse;
	margin-right: 0 !important;
}

.wp-block-ctb-countdown-time .countdownItems .countdownItem .digit {
	font-family: var(--wp--preset--font-family--primary);
	letter-spacing: 5px;
	margin-top: 0.5em;
}

.wp-block-ctb-countdown-time .countdownItems .countdownItem:not(:first-of-type) {
	border-left: 1px solid var(--wp--preset--color--grey-2);
	border-radius: 0 !important;
}

/* Link Block */

.link-block, .link-block:hover {
	text-decoration: none;
	display: block;
}

.link-block:hover {
	opacity: 0.7;
}

/* Entries Block */

.entries {
	display: grid;
	grid-gap: 3em;	
}

.entry {
	display: grid;
	grid-gap: 1em;
}

.entry .entry_title h2 {
	margin: 0;
}

.entry .entry_type {
	flex-shrink: 0;
}

.entry .entry_type span {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--secondary);
	padding: 0.5em 1em;
}

.entry .entry_details {
	display: flex;
	gap: 2em;
	flex-wrap: wrap;
}

.entry .entry_details img {
	max-width: 275px;
	height: auto;
}

.entry-wrapper {
	display: flex;
	gap: 3em;
}

.entry-wrapper .entry-left { 
	flex-basis: 65%;
	flex-shrink: 0;
}

.entry-wrapper .entry-right .judge-completed-entry:not(:last-of-type) {
	border-bottom: 2px solid var(--wp--preset--color--primary);
}

/* Judge Entry Types Block */

.entry-types {
	display: flex;
	gap: 1em;
}

.entry-types .entry-type {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--secondary);
	padding: 0.5em 1em;
}

.no-margin {
	margin: 0 !important;
}

/* Judge Entries */

.judge-entry {
	display: flex;
	gap: 3em;
}

.judge-entry .entry-left { 
	flex-basis: 65%;
	flex-shrink: 0;
}

.judge-entry .entry_details iframe {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
}

.judge-completed-entry {
	display: flex;
	flex-direction: column;
	/* gap: 1em; */
}

.judge-completed-entry p {
    margin: 0 0 0.5em 0;
}


.judge-completed-entry .score p:first-child {
	font-weight: bold;
}

.entry-link-button, .modal-button, .fea-submit-button {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--secondary);
	padding: 0.5em 1em;
}

.pagination {
	display: flex;
	gap: 1em;
}

.pagination__next a, .pagination__previous a {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--secondary);
	padding: 0.5em 1em;
	text-decoration: none;
}

.thumbnails {
	display: flex;
	flex-wrap: wrap;
	gap: 1em;
}
.thumbnails a div {
	display: none;
}

.caption-button {
	position: absolute;
	top: 0;
	color: #000;
    right: 0;
    background-color: var(--wp--preset--color--gold);
    text-decoration: none;
    padding: 0.5em 1em;
    height: 100%;
}

/* kadence image */

header .wp-block-kadence-image img {
	max-height: 400px;
	object-fit: cover;
	width: 100%;
}

.kb-gallery-ul .kadence-blocks-gallery-item .kadence-blocks-gallery-item-inner .kadence-blocks-gallery-item__caption
{
	text-align: right;
}

/* Styles */

.is-style-boxshadow {
	box-shadow: 0 0 16px rgb(0 0 0 / 60%);
}

.full-content .wp-block-media-text__content {
	height: 100%;
    padding: 0;
}

.full-content .wp-block-media-text__media {
	height: 100%;
}

.full-content .wp-block-media-text__media img {
	    max-width: 100%;
		width: 100%;
		height: 100%;
		object-fit: cover;
}

.background-dark figure {
	background-color: var(--wp--preset--color--primary);
	border-radius: 999px;
}

.is-style-frame {
	border: 2px solid var(--wp--preset--color--primary);
	padding: 28px;
}

.is-style-full-height {
	align-items: center;
	display: grid;
	min-height: 100vh;
}

p.is-style-no-margin,l
.is-style-no-margin,
.wp-block-column.is-style-no-margin,
.wp-block-image.is-style-no-margin {
	margin: 0;
}

.margin-top-bottom {
	margin-top: 1em;
	margin-bottom: 1em;
}

/* Site Header */

header {
	position: relative;
	z-index: 1;
}

.kb-slide-item {
	padding: 0 !important;
	margin: 0 !important;
}

.wp-block-site-logo a {
	text-align: center;
}

.wp-block-site-logo a:hover {
	opacity: 0.7;
}

.wp-block-site-logo img {
	max-width: 90%;
}

.oftm_item {
	visibility: hidden;
}

.line-before {
	display: flex;
	align-items: center;
}
.line-before::before {
	content: '';
	height: 2px;
	width: 2.5em;
	margin-right: 1em;
	background-color: currentColor;
}

.wp-block-post-content > *  {
	margin: 0 !important;
}

/* Site Footer------------------------------- */

.site-footer {
	margin-top: 0;
}

/* Media Queries------------------------------- */

@media (min-width: 781px) and (max-width: 1160px) { 
	.wp-site-blocks > .wp-block-group:not(.slider-outer) {
		padding-left: 1em;
		padding-right: 1em;
	}	

	.page .wp-site-blocks > .wp-block-group {
		padding-left: 3em;
		padding-right: 3em;
	}

	
}
@media only screen and (max-width: 780px) {
	.wp-site-blocks > *:not(.wp-block-media-text) > * {
		padding-left: 1em;
		padding-right: 1em;
	}

	.wp-block-columns:not(.no-gap) {
		grid-gap: 2em;
		justify-content: center;
	}

	.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column:nth-child(2n) {
		margin-left: 0;
	}

	.wp-block-image figcaption {
		position: unset;
		border: unset;
		margin-top: 0;
	}

	ul.horizontal-list {
		flex-direction: column;
		list-style: none;
		text-align: center;
		grid-gap: 1em;
	}

	ul.horizontal-list li {
		padding: 0 !important;
		margin: 0 !important;
	}
	ul.horizontal-list li::before {
		content: '' !important;
		display: none !important;
	}

	.hide-mobile {
		display: none;
	}

	.small-padding-mobile {
		margin-top: 2em !important;
	}

	/* footer .wp-block-column:nth-child(1) {
		order: 3;
	}

	footer .wp-block-column:nth-child(2) {
		order: 1;
	}

	footer .wp-block-column:nth-child(3) {
		order: 2;
	}	 */

	.wp-block-media-text.is-stacked-on-mobile {
		grid-template-columns: 1fr;
	}

	.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content {
		grid-column: 1;
		grid-row: 1;
	}

	.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media {
		grid-column: 1;
		grid-row: 2;
	}

	.entry-wrapper {
		flex-direction: column;
	}

	.entry-wrapper .entry-left {
		flex-basis: unset;
	}
}
@media only screen and (max-width: 600px) {
	
	
}
@media only screen and (max-width: 400px) {
	
}
@media only screen and (min-width: 781px) {

	/* Image
	--------------------------------------------- */

	.wp-block[data-align=full] .wp-block-image,
	.wp-block[data-align=wide] .wp-block-image {
		margin-left: auto;
		margin-right: auto;
		max-width: 800px;
	}

	.wp-block-image.alignfull,
	.wp-block-image.alignwide {
		margin-left: -40px;
		margin-right: -40px;
	}

	/* Pullquote
	--------------------------------------------- */

	.wp-block[data-align=left] .wp-block-pullquote,
	.wp-block[data-align=right] .wp-block-pullquote,
	.wp-block-pullquote.alignleft,
	.wp-block-pullquote.alignright {
		max-width: 300px;
	}

	.wp-block[data-align=left] .wp-block-pullquote,
	.wp-block-pullquote.alignleft {
		float: left;
		margin-left: -100px !important;
		margin-right: 30px !important;
	}

	.wp-block[data-align=right] .wp-block-pullquote,
	.wp-block-pullquote.alignright {
		float: right;
		margin-left: 30px !important;
		margin-right: -100px !important;
	}


	ol ol {
		margin-left: 2em;
	}
}