/*
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);
}

/* Gravity Forms — Portal Contact - Project Manager (form ID 3): Rethink Sans + text color */
#gform_wrapper_3 {
	--gf-font-family-base: var(--wp--preset--font-family--rethink-sans);
}

#gform_wrapper_3,
#gform_confirmation_wrapper_3 {
	color: #707070;
	font-family: var(--wp--preset--font-family--rethink-sans);
}

#gform_wrapper_3 .gfield_label,
#gform_wrapper_3 .gform-field-label,
#gform_wrapper_3 legend.gfield_label,
#gform_wrapper_3 input:not([type="submit"]),
#gform_wrapper_3 textarea,
#gform_wrapper_3 .gfield_description,
#gform_wrapper_3 .ginput_counter {
	color: #707070;
	font-family: var(--wp--preset--font-family--rethink-sans);
}

#gform_wrapper_3 ::placeholder {
	color: #707070;
	opacity: 0.65;
}

#gform_wrapper_3 input[type="submit"].gform_button,
#gform_wrapper_3 input.gform_button {
	color: #fff !important;
	font-family: var(--wp--preset--font-family--rethink-sans) !important;
	font-weight: var(--wp--custom--font-weight--bold) !important;
}

.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: "Fieldwork Date: ";
}

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

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

.evg-hosting-expiration::before {
	content: "Archive Date: ";
}

.evg-ivion-expiration::before {
	content: "IVION Expiration: ";
}

.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;
}

body.single-project #ivion-splash-screen {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

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

	display: block;
	position: relative;
	width: 100%;
}

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

.ivion-viewer-container {
	container-type: inline-size;
	container-name: ivion-viewer;
	position: relative;
	width: 100%;
	height: 65vh;
	overflow: hidden;
	isolation: isolate;
}

.ivion-viewer-container.is-ivion-loading {
	background-color: #fff;
	background-image: url('/wp-content/uploads/2025/04/animated_blue_ring_only_transparent.gif');
	background-position: center;
	background-repeat: no-repeat;
}

.ivion-viewer-container.is-ivion-loaded {
	background-image: none;
}

.ivion-viewer-container.is-ivion-interaction-focused {
	box-shadow: inset 0 0 0 2px #6BAEFF;
}

body.is-ivion-viewer-fullscreen-active {
	overflow: hidden;
}

/* NavVis context menus use Angular CDK overlays; keep above pseudo-fullscreen viewer. */
body.is-ivion-viewer-fullscreen-active .cdk-overlay-container,
.ivion-viewer-container.is-ivion-pseudo-fullscreen > .cdk-overlay-container {
	z-index: 100002 !important;
}

body.is-ivion-viewer-fullscreen-active .cdk-overlay-container .cdk-overlay-pane,
.ivion-viewer-container.is-ivion-pseudo-fullscreen > .cdk-overlay-container .cdk-overlay-pane {
	pointer-events: auto;
}

div[data-viewer-available="true"] > ivion,
.ivion-viewer-container > ivion,
div[data-viewer-available="true"] > .ivion,
.ivion-viewer-container > .ivion,
.ivion-viewer-container > div.ivion[data-project],
.ivion-viewer-container ivion,
.ivion-viewer-container .ivion.ivionFull {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-height: 100% !important;
	min-height: 0 !important;
	overflow: hidden;
}

.ivion-viewer-controls {
	position: absolute;
	inset: 0;
	z-index: 1000;
	pointer-events: none;
}

.ivion-viewer-controls > p {
	position: absolute;
	margin: 0;
	padding: 0;
	pointer-events: none;
}

.ivion-viewer-controls .ivion-fullscreen-toggle {
	pointer-events: auto;
}

/* Block NavVis multi-site project switcher; keep native title visible. */
.ivion-viewer-container .site-selector-btn,
.ivion-viewer-container .site-selector-panel {
	pointer-events: none !important;
}

.ivion-viewer-container .site-selector-btn .chevron,
.ivion-viewer-container .top-bar-center .chevron {
	display: none !important;
}

.ivion-fullscreen-toggle {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: none;
	border-radius: 4px;
	background: #1979e4;
	box-shadow: 0 1px 8px #112e4f1f, 0 3px 3px -2px #112e4f33, 0 3px 4px #112e4f24;
	color: #fff;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0.25s ease, background-color 0.2s ease;
}

.ivion-viewer-container.is-ivion-toggle-positioned .ivion-fullscreen-toggle {
	right: auto;
}

.ivion-viewer-container.is-ivion-ready .ivion-fullscreen-toggle {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.ivion-fullscreen-toggle:hover,
.ivion-fullscreen-toggle:focus {
	background: #1979e4;
	outline: 2px solid #6BAEFF;
	outline-offset: 2px;
}

.ivion-fullscreen-toggle:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

@container ivion-viewer (max-width: 495px) {
	.ivion-viewer-container:not(.is-ivion-toggle-positioned) .ivion-fullscreen-toggle {
		top: auto;
		right: auto;
		bottom: 14px;
		left: 14px;
	}
}

.ivion-viewer-container.is-ivion-pseudo-fullscreen {
	position: fixed;
	inset: 0;
	z-index: 100000;
	width: 100vw;
	height: 100vh;
	max-height: 100vh;
	margin: 0;
	background: #000;
	isolation: auto;
	overflow: visible;
}

.ivion-viewer-container.is-ivion-pseudo-fullscreen > ivion,
.ivion-viewer-container.is-ivion-pseudo-fullscreen > .ivion {
	max-height: 100% !important;
}

.ivion-viewer-container.is-ivion-pseudo-fullscreen .ivion-expiry-label {
	display: none;
}

.ivion-expiry-label {
	position: absolute;
	bottom: 1.25rem;
	left: 50%;
	transform: translateX(-50%);
	font-size: 1rem;
	font-family: 'Rethink Sans', sans-serif;
	font-weight: 700;
	color: #003F70;
	white-space: nowrap;
	pointer-events: none;
}

div[data-viewer-available="true"]:has(iv-map-view) .ivion-expiry-label {
	display: none;
}

/* === Archived project cards ===
 * The PHP post_class filter (prologue_archived_project_class) adds 'is-archived'
 * to the Query Loop <li> wrapper when a project's job_status is "Archived".
 * Applying filter/opacity to the <li> naturally covers the entire card.
 */
li.wp-block-post.is-archived {
    opacity: 0.55;
    filter: grayscale(100%);
}

li.wp-block-post.is-archived a,
li.wp-block-post.is-archived button,
li.wp-block-post.is-archived .wp-block-button__link {
    pointer-events: none !important;
    cursor: not-allowed !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,
.other-viewer-link-button .wp-block-button__link {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
    line-height: 24px !important;
}

/* Portal pill action links (Read More → VIEW PROJECT, Portal Log Out, etc.). */
.wp-block-button .is-portal-content-link.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    text-decoration: none;
    white-space: nowrap;
    text-transform: uppercase;
}

.wp-block-button .is-portal-content-link .portal-read-more-arrow,
.wp-block-button .is-portal-content-link .portal-logout-icon {
    flex-shrink: 0;
    display: block;
    width: 1em;
    height: auto;
}

.wp-block-button .is-portal-content-link.wp-block-button__link:hover,
.wp-block-button .is-portal-content-link.wp-block-button__link:focus {
    text-decoration: none;
}

/* Portal Log Out block in headers — beat inherited header link styles. */
.portal-logout .is-portal-content-link.wp-block-button__link {
    text-decoration: none;
    color: var(--wp--preset--color--primary, #003f70);
    background-color: var(--wp--preset--color--secondary, #6baeff);
}

.portal-logout .is-portal-content-link.wp-block-button__link:hover,
.portal-logout .is-portal-content-link.wp-block-button__link:focus {
    text-decoration: none;
    color: var(--wp--preset--color--primary, #003f70);
    background-color: color-mix(in srgb, var(--wp--preset--color--secondary, #6baeff) 82%, var(--wp--preset--color--primary, #003f70));
}

/* Project Viewer tabs skin (scoped to viewer tabs only) */
.wp-block-atbs-tabs.is-project-viewer-tabs .tabs-nav {
    background-color: var(--viewer-tabs-container-bg);
}

.wp-block-atbs-tabs.is-project-viewer-tabs {
    --viewer-tabs-container-bg: var(--wp--preset--color--tertiary);
    --viewer-tab-bg-available-inactive: var(--wp--preset--color--secondary);
    --viewer-tab-bg-available-inactive-hover: color-mix(in srgb, var(--wp--preset--color--secondary) 82%, var(--wp--preset--color--primary));
    --viewer-tab-bg-active: var(--wp--preset--color--base, #fff);
    /* Active tab label (selected). */
    --viewer-tab-text: var(--wp--preset--color--primary, #003f70);
    /* Selectable, not selected (has viewer content). */
    --viewer-tab-text-available-inactive: var(--wp--preset--color--base, #fff);
    --viewer-tab-bg-disabled: #cbcbcb;
    /* Midpoint between prior label (#4a4a4a) and disabled tab surface (#cbcbcb). */
    --viewer-tab-text-disabled: #8b8b8b;
    --viewer-tab-radius-desktop: 24px;
    --viewer-tab-radius-mobile: 999px;
    --viewer-tab-gap: 14px;
    --viewer-tab-font-size: 15px;
    --viewer-tab-letter-spacing: 0.07em;
    --viewer-tab-font-family: var(--wp--preset--font-family--rethink-sans, "Rethink Sans", sans-serif);
    --viewer-panel-radius: 8px;
    --viewer-panel-padding: 12px;
}

.wp-block-atbs-tabs.is-project-viewer-tabs .tabs-titles {
    gap: var(--viewer-tab-gap);
    padding: 10px 40px 0;
    background-color: var(--viewer-tabs-container-bg);
}

.wp-block-atbs-tabs.is-project-viewer-tabs .tabs-content {
    padding: 0;
    background-color: var(--viewer-tabs-container-bg);
}

.wp-block-atbs-tabs.is-project-viewer-tabs .tabs-titles .tab-title {
    margin-top: 10px;
    border-radius: var(--viewer-tab-radius-desktop) var(--viewer-tab-radius-desktop) 0 0;
    min-height: 48px;
    padding: 10px 16px;
    transition: background-color 0.2s ease, color 0.2s ease, margin-top 0.2s ease, box-shadow 0.2s ease;
}

.wp-block-atbs-tabs.is-project-viewer-tabs .tabs-titles .tab-title:not(.active):not(.disabled) {
    background-color: var(--viewer-tab-bg-available-inactive);
    color: var(--viewer-tab-text-available-inactive);
    box-shadow: inset 0 -11px 8px -10px rgba(0, 63, 112, 0.35);
}

.wp-block-atbs-tabs.is-project-viewer-tabs .tabs-titles .tab-title + .tab-title {
    border-left: none !important;
}

.wp-block-atbs-tabs.is-project-viewer-tabs .tabs-titles .tab-title .tab-title-text {
    font-family: var(--viewer-tab-font-family);
    letter-spacing: var(--viewer-tab-letter-spacing);
    font-weight: 700;
    font-size: var(--viewer-tab-font-size);
    line-height: 1.25;
    text-transform: uppercase;
}

.wp-block-atbs-tabs.is-project-viewer-tabs .tabs-titles .tab-title:not(.active):not(.disabled):hover {
    margin-top: 2px;
    background-color: var(--viewer-tab-bg-available-inactive-hover);
    color: var(--viewer-tab-text-available-inactive);
    box-shadow: inset 0 -8px 6px -10px rgba(0, 63, 112, 0.3);
}

.wp-block-atbs-tabs.is-project-viewer-tabs .tabs-titles .tab-title.active {
    margin-top: 2px;
    background-color: var(--viewer-tab-bg-active);
    color: var(--viewer-tab-text);
    box-shadow: none;
}

.wp-block-atbs-tabs.is-project-viewer-tabs .tabs-titles .tab-title:focus-visible {
    outline: 3px solid var(--wp--preset--color--base, #fff);
    outline-offset: 1px;
}

.wp-block-atbs-tabs.is-project-viewer-tabs .tabs-titles .tab-title.disabled,
.wp-block-atbs-tabs.is-project-viewer-tabs .tabs-titles .tab-title.disabled:hover,
.wp-block-atbs-tabs.is-project-viewer-tabs .tabs-titles .tab-title.disabled:focus {
    margin-top: 10px;
    background-color: var(--viewer-tab-bg-disabled) !important;
    color: var(--viewer-tab-text-disabled) !important;
    opacity: 1 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    box-shadow: none !important;
}

/* Do not hide ::before on disabled tabs — lock icon uses it (see inline_viewer_tab_lock_icon_style). */
.wp-block-atbs-tabs.is-project-viewer-tabs .tabs-titles .tab-title.disabled::after {
    display: none !important;
    content: "" !important;
    background: none !important;
    opacity: 0 !important;
}

.wp-block-atbs-tabs.is-project-viewer-tabs .single-tab {
    padding: var(--viewer-panel-padding);
    border-radius: var(--viewer-panel-radius);
    background-color: var(--wp--preset--color--base, #fff);
}

@media screen and (max-width: 1024px) {
    .wp-block-atbs-tabs.is-project-viewer-tabs .tabs-nav {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: none;
        scrollbar-width: none;
        background-color: var(--viewer-tabs-container-bg);
    }

    .wp-block-atbs-tabs.is-project-viewer-tabs .tabs-nav::-webkit-scrollbar {
        display: none;
    }

    .wp-block-atbs-tabs.is-project-viewer-tabs .tabs-titles {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        width: max-content;
        padding: 12px 18px;
        gap: 10px;
    }

    .wp-block-atbs-tabs.is-project-viewer-tabs .tabs-titles .tab-title {
        margin-top: 0;
        margin-bottom: 4px;
        border-radius: var(--viewer-tab-radius-mobile);
        box-shadow: none;
        flex: 0 0 auto;
        width: auto;
        max-width: none;
        white-space: nowrap;
        min-height: 40px;
        padding: 8px 14px;
    }

    .wp-block-atbs-tabs.is-project-viewer-tabs .tabs-titles .tab-title:not(.active):not(.disabled) {
        box-shadow: none;
    }

    .wp-block-atbs-tabs.is-project-viewer-tabs .tabs-content {
        padding: 0 18px;
    }

    .wp-block-atbs-tabs.is-project-viewer-tabs .tabs-titles .tab-title .tab-title-text {
        font-size: 12px;
        letter-spacing: 0.05em;
    }
}

/* ==========================================================================
   [prologue_welcome_user] shortcode
   ========================================================================== */

.prologue-welcome {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    text-align: center;
    width: 100%;
}

.prologue-welcome__avatar-wrap .prologue-welcome__avatar {
    display: block;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.prologue-welcome__text {
    line-height: 1.3;
}

.prologue-welcome__name {
    font-weight: 600;
}

/* 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; 
}