/*
Theme Name: Prologue
Theme URI: 
Author: EVERGIB
Author URI: 
Description: A custom block theme developed for Prologue Hospitality
Requires at least: 
Tested up to: 6.6
Requires PHP: 7.3
Version: 1.0
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: prologue
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

Prologue WordPress Theme, (C) 2023 Mike McAlister.
Prologue is distributed under the terms of the GNU GPL.
*/

/* CSS Reset
---------------------------------------------------------------------------- */

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

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

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

b,
strong {
	font-weight: var(--wp--custom--font-weight--semi-bold);
}

ol,
ul {
	padding: 0;
}

ol:where(:not([class*="wp-block"])),
ol:where(.wp-block-list),
ul:where(:not([class*="wp-block"])),
ul:where(.wp-block-list) {
	padding-inline-start: var(--wp--preset--spacing--small);
	font-size: var(--wp--preset--font-size--x-small);
}

ul:where(.evg-list-revert) {
	font-size: var(--wp--preset--font-size--default);
}

/* Override standard details block li bottom margin */
.entry-content ul li {
	margin-bottom: 0;
}



div[class*="wp-block-"] figcaption {
	color: var(--wp--preset--color--secondary);
	font-size: var(--wp--preset--font-size--x-small);
	margin-bottom: 0;
	margin-top: 20px;
	text-align: center;
}

/* Standardize form styling
--------------------------------------------- */

input,
button,
textarea,
select {
	font: inherit;
}

input[type="button"],
input[type="email"],
input[type="search"],
input[type="submit"],
input[type="text"],
textarea {
	appearance: none;
	-webkit-appearance: none;
}

input[type="submit"] {
	font-size: 15px !important;
	font-family: inter !important;
	text-transform: uppercase !important;
	letter-spacing: 4px !important;
}

input:not([type="submit"]),
select,
textarea,
.wp-block-post-comments-form input:not([type="submit"]):not([type="checkbox"]),
.wp-block-post-comments-form textarea {
	color: var(--wp--preset--color--main);
	border-radius: 5px;
	border: solid 1px var(--wp--preset--color--main-accent);
	padding: .5em 1em;
	font-size: var(--wp--preset--font-size--small);
	width: 100%;
}

input:focus-visible,
textarea:focus-visible {
	outline-color: var(--wp--preset--color--primary);
}

input[type="checkbox"],
input[type="image"],
input[type="radio"] {
	width: auto;
}

label {
	width: 100%;
	display: block;
}

::placeholder {
	color: var(--wp--preset--color--secondary);
	font-size: var(--wp--preset--font-size--medium);
	opacity: 0.75;
}

/* Helper styles that can't be done via theme.json
---------------------------------------------------------------------------- */

a.more-link {
	display: block;
}

/* Inline code */
*:not(.wp-block-code) > code {
	background-color: var(--wp--preset--color--tertiary);
	font-weight: var(--wp--custom--font-weight--medium);;
	padding: 3px 5px;
	position: relative;
	border-radius: 3px;
}

/* Adjust terms at bottom of posts */
.single .wp-block-group .wp-block-post-terms,
.blog .wp-block-group .wp-block-post-terms {
	margin-bottom: -8px !important;
}

/* Remove margin on term description on archive pages */
.wp-block-term-description p:last-child {
	margin-bottom: 0;
}

/* Remove last separator on post list */
.remove-border-and-padding .wp-block-post-template li:last-child .wp-block-separator {
	display: none;
}

/* Hide post meta div if no tags assigned */
.single .wp-block-group:has(> .post-meta:empty) {
	display: none;
}

/* Positioning of the callout box peeking up from bottom of hero section */
.color-callout {
	z-index: 12000 !important;
}

/* Positioning of the line-art illustration on header section */
.hero-illustration {
	width: 450px;
}

/* Remove border from Gravity Form input boxes of size 'Large' and replace with bottom border line + remove box shadow */
.form-contact-field .ginput_container .large {
	border: none;
	border-bottom: 1px solid;
	box-shadow: none;
	padding-bottom: 20px;
}

/* Remove border from Gravity Form input boxes of size 'Medium' and replace with bottom border line + remove box shadow + font size */
.form-contact-field .ginput_container .medium {
	border: none;
	border-bottom: 1px solid;
	box-shadow: none;
	padding-bottom: 20px;
	font-size: 18px;

}

/* Gravity Forms client input text styles */
body .gform_wrapper .gform_body .gform_fields .gfield input {
	font-size: 18px;
}

/* Remove border from Gravity Form 'First Name' and 'Last Name' and replace with bottom border line + remove box shadow */
 #input_1_1_3, #input_1_1_6 {
	border: none;
	border-bottom: 1px solid;
	box-shadow: none;
	padding-bottom: 20px;

}

/* Font opacity of Gravity Form placeholder text */
.gform-theme--framework ::placeholder {
	opacity: .5;

}

/* Gravity Forms button style */
input#gform_submit_button_1.gform_button {
	font-family: inter !important;
	width: 180px !important;
	padding: 18px;

}

#gfield_description_1_3.gfield_description {
	font-family: var(--wp--preset--font-family--rethink-sans);
}

.evg-thick-separator{
	height: 6px !important;
}

.evg-details-separator {
	height: 20px !important;
}



/* Email mailto: links styling */
.email-link a{
	text-decoration: none;
	color: var(--wp--preset--color--primary);
}

/* stretches the homepage logo/drawing coloums a little wider so that the line drawing won't get cut off on the sides */
.xwide-columns {
	max-width: 1350px !important;
}

/*  ---------------------------------------
/
/ DETAILS BLOCK
/ Add a custom transition when opening/closing. 
/
---------------------------------------  */

.wp-block-details {
	transition: all .5s ease-in-out;
	width: 100%;
}

/* open/close for Team Bio details block - slower */
details.wp-block-details.evg-details-bio {
	transition: all 5s linear;
	width: 100%;
}

.wp-block-details summary {
	display: flex;
	justify-content: space-between;
}

.wp-block-details summary::marker {
	content: none;
}

.wp-block-details summary::before {
	content: none;
}

summary::-webkit-details-marker {

	display: none;
	content: none;
 }

.wp-block-details summary::-webkit-details-marker {

	display: none;
	content: none;
 }

 .evg-details-block .wp-block-details summary::-webkit-details-marker {

	display: none;
	content: none;
 }

 .wp-block-details summary::before {
	content: " ";
	content: none;
}

.evg-details-block .wp-block-details summary::before {
	content: " ";
	content: none;
}



.wp-block-details summary::after {
	content: " +";
	float: right;
	text-align: right;
	color: #ffffff;
	font-size: 64px;
	font-family: 'Inter';
	font-weight: 100;
}

.evg-details-block .wp-block-details summary::after {
	content: " +";
	float: right;
	text-align: right;
	color: var(--wp--preset--color--primary);
	font-size: 64px;
	font-family: 'Inter';
	font-weight: 100;
}

/* Move + - Detail block opener to upper right corner of box */
@media (min-width: 780px) {
.evg-details-bio.wp-block-details summary::after {
	content: " +";
	float: right;
	text-align: right;
	color: #ffffff;
	font-size: 64px;
	font-family: 'Inter';
	font-weight: 100;
	position: absolute;
	top: 16px;
	right: 16px;

}
}

.wp-block-details[open] summary::after {
	content: " –";
}


.evg-about-details-heading.wp-block-details summary {
	padding-bottom: 32px;
	background: var(--wp--preset--color--primary);
	
}

.evg-about-details-heading.wp-block-details summary {
	padding-bottom: 32px;
	background: var(--wp--preset--color--primary);
	
}

/* Where We've Worked -- Scroller on Mobile only */
@media (max-width: 768px) {
.evg-details-about-group {
	height: 400px;
	overflow-y: scroll;
}
}


@media (min-width: 768px) {
	.wp-block-details p{
		width: 80%;
	}
  }


/* DETAILS dropdowns - Equipment */
.wp-block-details.evg-details-heading summary{
	font-size: 2.5rem;
	letter-spacing: .3rem;
	font-weight: var(--wp--custom--font-weight--semi-bold);
	line-height: 1.75rem;
	padding-left: 32px;
	padding-right: 24px;
}

/* FONT SIZE FOR SERVICES EQUIPMENT DETAILS BLOCK AT MOBILE SCREEN SIZE */
@media (max-width: 768px) {
	.wp-block-details.evg-details-heading summary{
		/* font-size: var(--wp--preset--font-size--large); */
		font-size: 16px;
  }
}
/* DETAILS dropdowns - About Page 'SELECT BRAND PARTNERSHIPS' */
.wp-block-details.evg-about-details-heading summary{
	font-size: var(--wp--preset--font-size--x-large);
	letter-spacing: .25rem;
	font-weight: var(--wp--custom--font-weight--semi-bold);
	line-height: 2.2rem;
	padding-left: 40px;
	padding-right: 24px;
}

  .evg-grid-container {
	align-items: center;
  }

  /* Raise the Z-Index to cover over the dangling vector illustrations creeping into rows below */
  .is-zindex-level9 {
	z-index: 9999;
  }

/* FOOTER nav list into flexbox row */
  .evg-nav-page-list {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	text-transform: capitalize;
  }


  .evg-nav-page-list {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	text-transform: capitalize;
  }

  @media (max-width: 768px) {
	.evg-nav-page-list {
	justify-content: flex-start;
	}
  }

  /* HEADER NAV menu items */

  .evg-main-nav {
	z-index: 20000;
  }

  .evg-nav-item a{
	padding: 8px 24px;
	background-color: none;
	border-radius: 50px;
    transition: background-color 300ms ease-in-out;

  }

  .evg-nav-item a:hover{
	background-color: var(--wp--preset--color--primary-accent);
	padding: 8px 24px;
	border-radius: 50px;
	text-decoration: none;
  }

  .evg-nav-item a:active{
	background-color: #FCBA63;
	padding: 8px 24px;
	border-radius: 50px;
	text-decoration: none;
	transition: background-color 300ms ease-in-out;

  }

  [aria-current]:not([aria-current="false"]) {
	background-color: var(--wp--preset--color--primary-accent);
	padding: 8px 24px;
	border-radius: 50px;
	text-decoration: none;
  }



  ul a {
  	list-style-type: none;
  }




  @media (min-width: 600px) {
  .evg-main-nav {
	position: absolute;
	top: 0;
	width: 100%;
  }
}

/* About page - team member photos */
@media (max-width: 781px) {
.about-team-photo {
height: 400px;
}
}


.left-right-animate {
	animation: sweep .5s ease-in-out;
  }
  
  @keyframes sweep {
	0%    {opacity: 0; transform: translateX(-10px)}
	100%  {opacity: 1; transform: translateX(0)}
  }

details[open] summary ~ * {
	animation: sweep .5s ease-in-out;
  }
  
  @keyframes sweep {
	0%    {opacity: 0; transform: translateX(-10px)}
	100%  {opacity: 1; transform: translateX(0)}
  }

  details
  {
	transition: height 1s ease;
	height: auto;
	max-height: 2.5rem; /* set to line height */


  }
  
  details:not([open])
  {
	/* height: auto; */
	padding-bottom: 60px;
  }
  
  details[open]
  {
	max-height: 99rem;
  }


.evg-details-block .wp-block-details[open] {
	border-bottom: 20px Solid var(--wp--preset--color--primary-accent) !important;
  }

  /*
  .wp-block-post-comments-form input:not([type="submit"])

  ul:where(.evg-list-revert) {
	font-size: var(--wp--preset--font-size--default);
}
	*/

	.evg-img-overflow {
		overflow: visible;
	}
/* Flickity Carousel Left/Right Slide Change arrow buttons */
.flickity-button.flickity-prev-next-button {
	background: var(--wp--preset--color--primary-accent);
	color: var(--wp--preset--color--primary);
}

.flickity-button.flickity-prev-next-button:hover {
	background: #ECB56D;
	color: var(--wp--preset--color--primary);
}

/* Flickity Carousel dots color and dimensions */
.flickity-page-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 10000;
	position: relative !important;
	bottom: 0px !important;
}

/* Flickity Dot indicators - Unselected */
.flickity-page-dots .dot {
	background: #999999 !important;
	height: 8px !important;
	width: 8px !important;
	line-height: 20px;
}

/* Flickity Dot indicator - Selected */
.flickity-page-dots .dot.is-selected {
	background: var(--wp--preset--color--primary) !important;
	padding: 6px 6px !important;

}

/* Margin setting for Testimonials carousel on Incubator page */
.carousel-cell {
	margin-left: 40px;
	margin-right: 40px;
}

/* Revert margin to 0px on mobile devices so headline doesn't go off the page */
@media (max-width: 781px) {
.evg-header-heading {
	margin-right: 0 !important;
}
}


@media (min-width: 780px) {
.show {
	position: fixed; /* Set the navbar to fixed position */
	top: 0; /* Position the navbar at the top of the page */
	width: 100%;
	min-width: 768px;
	max-width: 1260px;
	margin-right: 160px;
	opacity: 1;
	animation-name: fadeInOpacity;
	animation-iteration-count: 1;
	animation-timing-function: ease-in;
	animation-duration: 200ms;
}

@keyframes fadeInOpacity {
	0% {
		opacity: 0;
		transform: translateY(-100%);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}
}

a:hover {
	text-decoration: none;
}

/* Hover states change color for CTA Buttons */
.wp-block-button.button-blue  a:hover {
	background-color: #4F97EE !important;
}

.wp-block-button.button-peach  a:hover {
	background-color: #ECB56D !important;
}



/* .evg-details-about-group {
	margin-left: -32px;
	margin-right: -32px;

} */

@media (max-width: 780px) {
.wp-block-navigation-item__label{
	font-size: 1.5rem;
	padding-left: 16px;
}
}

.evg-hero-header {
	overflow-x: hidden;
}

/* Grid Layout for logos on Mobile to 2 columns */
@media (max-width: 782px) {
	.evg-grid-squish {
		grid-template-columns: repeat(auto-fill, minmax(min(5rem, 100%), 1fr));
	}
	}

/* Footer Colophon credit links to KCD and EVERGIB */
.evg-colophon-link a{
color: var(--wp--preset--color--primary);
/* text-decoration: none; */
}

/* remove pill shaped border radius from mobile site logo in nav menu */
.evg-nav-logo-mobile a {
	border-radius: 4px !important;
}

/* reverse column direction when stacked on mobile */
@media (max-width: 782px) {
    .mobile-reverse-column-direction {
        flex-direction: column-reverse;
    }
}


/* Client Portal Password Protection Form Styles */
.page-template-client-portal .post-password-form {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--wp--preset--color--background);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Add logo to the form */
.page-template-client-portal .post-password-form::before {
    content: '';
    display: block;
    width: 300px;
    height: 120px;
    margin: 0 auto 2rem;
    background-image: url('/wp-content/uploads/2025/03/PLH_Logo_Navy.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.page-template-client-portal .post-password-form p:first-of-type {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--wp--preset--color--foreground);
    text-align: center;
}

.page-template-client-portal .post-password-form label {
    display: block;
    margin-bottom: 0;
}

/* Container for password input and submit button */
.page-template-client-portal .post-password-form p:last-of-type {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 0;
}

.page-template-client-portal .post-password-form input[type="password"] {
    display: block;
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.5rem;
    border: 1px solid var(--wp--preset--color--contrast);
    border-radius: 4px;
    font-size: 1rem;
    background-color: #f5f5f5 !important;
    -webkit-appearance: none;
    appearance: none;
}

.page-template-client-portal .post-password-form input[type="submit"] {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--wp--preset--color--secondary) !important;
    color: var(--wp--preset--color--primary) !important;
    border: none !important;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
    align-self: flex-end;
    white-space: nowrap;
}

.page-template-client-portal .post-password-form input[type="submit"]:hover {
    opacity: 0.9;
}

@media (max-width: 767px) {
    .page-template-client-portal .post-password-form p:last-of-type {
        flex-direction: column;
        gap: 1rem;
    }
    
    .page-template-client-portal .post-password-form input[type="submit"] {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .page-template-client-portal .post-password-form {
        padding: 3rem;
    }
}

/*  ---------------------------------------
/
/ Client Portal Styles
/
---------------------------------------  */


/* Client Portal post link button */
.gib-btn-post-link-group {
	display: flex;
	flex-direction: row;
	gap: 16px;
	justify-content: center;
}

/* ---------------------------------------
/
/ Client Portal Job Information Block Bindings
/
-------------------------------------- */
.evg-scan-date::before {
	content: "Scan Date: ";
}

.evg-deliverables-date::before {
	content: "Deliverables: ";
}

.evg-project-manager::before {
	content: "Prologue PM: ";
}

.evg-hosting-expiration::before {
	content: "Hosting Exp: ";
}

.evg-downloads-expiration::before {
	content: "*All download links will be archived after: ";
}

/* Style for buttons with empty or no href */
.wp-block-button__link[href=""],
.wp-block-button__link:not([href]),
.wp-block-button__link[href="#"] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background-color: #cccccc !important;
    border-color: #cccccc !important;
    color: #666666 !important;
}

/* Add disabled state styling for outline buttons */
.is-style-outline .wp-block-button__link[href=""],
.is-style-outline .wp-block-button__link:not([href]),
.is-style-outline .wp-block-button__link[href="#"] {
    border-color: #cccccc !important;
    color: #666666 !important;
    background-color: transparent !important;
}

/* IVION Viewer Styles  */

body {
	overflow: unset !important;
}

ivion {
	--wp--style--global--content-size: 100%;

	display: block;
	position: relative;
	width: 100%;
	height: auto;
	max-height: 85vh;
	background-image: url('/wp-content/uploads/2025/04/animated_blue_ring_only_transparent.gif');
	background-position: center;
	background-repeat: no-repeat;
}

div[data-viewer-available="true"] {
	position: relative;
	overflow: hidden;
}

div[data-viewer-available="true"] > ivion {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: block;
	width: 100%;
	height: 100% !important;
	max-height: 100% !important;
	min-height: 0;
}

/* Style for archived portal cards */
.wp-block-group.evg-portal-card:has(.status-label.status-selected:contains("Archived")) {
    opacity: 0.6;
    filter: grayscale(100%);
    position: relative;
}

/* Disable all links and buttons in archived cards */
.wp-block-group.evg-portal-card:has(.status-label.status-selected:contains("Archived")) a,
.wp-block-group.evg-portal-card:has(.status-label.status-selected:contains("Archived")) .wp-block-button__link {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    background-color: #cccccc !important;
    border-color: #cccccc !important;
    color: #666666 !important;
    text-decoration: none !important;
}

/* Style for outline buttons in archived cards */
.wp-block-group.evg-portal-card:has(.status-label.status-selected:contains("Archived")) .is-style-outline .wp-block-button__link {
    border-color: #cccccc !important;
    color: #666666 !important;
    background-color: transparent !important;
}

/* Style for post title in archived cards */
.wp-block-group.evg-portal-card:has(.status-label.status-selected:contains("Archived")) .wp-block-post-title a {
    color: #666666 !important;
    background-color: transparent !important;
}

/* Add archived overlay badge */
/* .wp-block-group.evg-portal-card:has(.status-label.status-selected:contains("Archived"))::before {
    content: "Archived";
    position: absolute;
    top: 60px;
    right: 16px;
    background-color: var(--wp--preset--color--primary);
    color: #FFFFFF;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 10;
} */

/* === Archived Portal Card Styles (force override) === */
.wp-block-group.evg-portal-card.is-archived {
    opacity: 0.6 !important;
    filter: grayscale(100%) !important;
    pointer-events: none !important;
    position: relative;
}

.wp-block-group.evg-portal-card.is-archived a,
.wp-block-group.evg-portal-card.is-archived button,
.wp-block-group.evg-portal-card.is-archived .wp-block-button__link {
    pointer-events: none !important;
    cursor: not-allowed !important;
    opacity: 0.5 !important;
    background-color: #cccccc !important;
    border-color: #cccccc !important;
    color: #666666 !important;
    text-decoration: none !important;
}

/* .wp-block-group.evg-portal-card.is-archived::after {
    content: "Archived";
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: var(--wp--preset--color--primary, #003f70);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 10;
} */


/* More specific selector to override default WordPress block button padding */
.ivion-viewer-link-button .wp-block-button__link,
.drone-viewer-link-button .wp-block-button__link,
.benaco-viewer-link-button .wp-block-button__link,
.model-viewer-link-button .wp-block-button__link,
.matterport-viewer-link-button .wp-block-button__link {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
    line-height: 24px !important;
}

/* Custom styles for Advanced Tabs compatibility */
.wp-block-atbs-tabs .tabs-titles .tab-title.disabled,
.wp-block-atbs-tabs .tabs-titles .tab-title.disabled:hover,
.wp-block-atbs-tabs .tabs-titles .tab-title.disabled:focus {
    background-color: #CBCBCB !important; /* Solid Gray */
    color: #E4E4E4 !important;           /* Light Gray Text */
    opacity: 1 !important;                /* Fully Opaque */
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* Ensure no pseudo-elements are inadvertently creating an overlay on disabled tabs */
.wp-block-atbs-tabs .tabs-titles .tab-title.disabled::before,
.wp-block-atbs-tabs .tabs-titles .tab-title.disabled::after {
    display: none !important;
    content: "" !important;
    background: none !important;
    opacity: 0 !important;
}

/* Responsive Ivion Viewer Container */
/* .evg-ivion-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
}

.evg-ivion-container > div[data-viewer-available="true"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.evg-ivion-container > div[data-viewer-available="true"] > ivion,
.evg-ivion-container > div[data-viewer-available="true"] > ivion > * {
    width: 100%;
    height: 100%;
    display: block;
    box-sizing: border-box; 
}