/* Hero block styles */

.employee-portal-hero {
    position: relative;
    width: min(100%, 106.5rem);
    margin: 0 auto;
    color: #ffffff;
    border-radius: 1.875rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 3vw, 3rem);
    aspect-ratio: 1704 / 950;
}

.employee-portal-hero__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
    margin: 0.75rem;
	background-color: #000000;
	z-index: 1;

}

.employee-portal-hero__video,
.employee-portal-hero__poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

.employee-portal-hero__header {
    position: absolute;
	top: 0;
    left: clamp(1.25rem, 2.5vw, 2.75rem);
    right: clamp(1.25rem, 2.5vw, 2.75rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
	height: 6.25rem;
}

.employee-portal-hero__logo {
    max-height: clamp(2.5rem, 4vw, 3.5rem);
    width: auto;
    object-fit: contain;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.employee-portal-hero__language {
	position: absolute;
	right: 0;
	padding: 0.625rem 1.25rem;
    border-radius: 62.4375rem;
    color: #ffffff;
    font-size: 1rem;
	font-weight: 500;
    line-height: 1;
    letter-spacing: 0.08em;
    text-decoration: none;
    border: 0.0625rem solid rgba(255, 255, 255, 0.5);
    transition:
        background 150ms ease,
        border-color 150ms ease;
}

.employee-portal-hero__language:hover,
.employee-portal-hero__language:focus-visible {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.4);
}

.employee-portal-hero__content {
    position: relative;
    z-index: 2;
    max-width: 60rem;
    padding: clamp(1.5rem, 3vw, 3rem);
    text-align: center;
}

.employee-portal-hero__heading {
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 1rem;
}

.employee-portal-hero__subheading {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 2rem;
    max-width: 45rem;
    margin-left: auto;
    margin-right: auto;
}

.employee-portal-hero__heading,
.employee-portal-hero__subheading {
    text-shadow: 0 0.625rem 2.1875rem rgba(0, 0, 0, 0.35);
}

.employee-portal-hero__cta {
	display: inline-flex;
	align-items: center;
	padding: 1rem 1.375rem;
	border-radius: 5rem;
	font-weight: 500;
	border: none;
	background-color: #ffffff;
	color: #1e0705;
	text-decoration: none;
	cursor: pointer;
	transition:
		background-color 150ms ease,
		transform 150ms ease;
}

.employee-portal-hero__cta:hover,
.employee-portal-hero__cta:focus-visible {
	background-color: rgba(255, 255, 255, 0.9);
	transform: translateY(-0.125rem);
}

.employee-portal-hero__cta:disabled {
	cursor: not-allowed;
	opacity: 0.6;
	transform: none;
}

.employee-portal-hero__cta-icon {
	display: inline-flex;
	flex-shrink: 0;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 50%;
	background-color: transparent;
	background-image: url("https://banescousa.com/wp-content/plugins/kjl_employeeportal/assets/img/play_circle.svg");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

@media (max-width: 48rem) {
    .employee-portal-hero {
        aspect-ratio: auto;
        min-height: 45.625rem;
        padding: 2.5rem 1.5rem 2rem;
    }

    .employee-portal-hero__logo {
        position: relative;
        transform: none;
        max-height: 2.1875rem;
		left: 1rem;
    }

    .employee-portal-hero__content {
        padding: 0;
    }

    .employee-portal-hero__language {
        padding: 0.45rem 1.25rem;
        font-size: 0.875rem;
		right: 1rem;
    }

    .employee-portal-hero__heading {
        font-size: 2.875rem;
    }
}

/* Lightbox */
.employee-portal-hero__lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(0.625rem) brightness(0.8);
    backdrop-filter: blur(0.625rem) brightness(0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	padding: 2rem;
}

.employee-portal-hero__lightbox[hidden] {
    display: none;
}

.employee-portal-hero__lightbox-inner {
    position: relative;
    max-width: min(60rem, 100%);
    width: 100%;
    background: #000000;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.45);
}

.employee-portal-hero__lightbox-inner--text {
    background: #ffffff;
    color: #1e0705;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    max-width: min(40rem, 100%);
}

.employee-portal-hero__lightbox-video {
    width: 100%;
    height: auto;
    display: block;
}

.employee-portal-hero__lightbox-copy {
    font-size: 1.125rem;
    line-height: 1.7;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

.employee-portal-hero__lightbox-copy a {
    color: inherit;
    text-decoration: underline;
}

.employee-portal-hero__lightbox-close-button {
    margin-top: 1.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    border: none;
    background: rgba(30, 7, 5, 0.85);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    width: max-content;
    transition:
        background-color 150ms ease,
        transform 150ms ease;
}

.employee-portal-hero__lightbox-close-button:hover,
.employee-portal-hero__lightbox-close-button:focus-visible {
    background: rgba(30, 7, 5, 1);
    transform: translateY(-0.125rem);
}

.employee-portal-hero__lightbox-close-button:focus-visible {
    outline: 0.125rem solid #ffffff;
    outline-offset: 0.2rem;
}

.employee-portal-hero__lightbox-copy ul,
.employee-portal-hero__lightbox-copy ol {
    padding-left: 1.25rem;
    align-self: stretch;
    text-align: left;
}

.employee-portal-hero__lightbox-close {
    position: fixed;
    top: 0.75rem;
    right: 0.75rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 150ms ease;
    z-index: 2;
}

.employee-portal-hero__lightbox-close:hover,
.employee-portal-hero__lightbox-close:focus-visible {
    background: rgba(255, 255, 255, 0.25);
}

.employee-portal-hero__lightbox-close:focus-visible {
    outline: 0.125rem solid #ffffff;
    outline-offset: 0.25rem;
}

.employee-portal-hero__lightbox[data-modal-type="text"] .employee-portal-hero__lightbox-close {
    background: rgba(30, 7, 5, 0.12);
    color: #1e0705;
}

.employee-portal-hero__lightbox[data-modal-type="text"] .employee-portal-hero__lightbox-close:hover,
.employee-portal-hero__lightbox[data-modal-type="text"] .employee-portal-hero__lightbox-close:focus-visible {
    background: rgba(30, 7, 5, 0.2);
}

.employee-portal-hero__lightbox[data-modal-type="text"] .employee-portal-hero__lightbox-close:focus-visible {
    outline: 0.125rem solid #1e0705;
}

body.employee-portal-hero--lightbox-open {
    overflow: hidden;
}
