  /* CSS Document */
.cals-hero-gallery-container {
    position: relative;
    width: 100%;
    height: 80vh;
    max-height: 1300px;
    min-height: 300px;
    overflow: hidden;
    color: white;
}

.cals-hero-gallery {
    list-style: none;
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.cals-hero-gallery li {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.cals-hero-gallery li.active {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
}

.cals-hero-gallery .cals-hero-bg-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.cals-hero-gallery .cals-hero-bg-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: transform 6s ease;
}

.cals-hero-gallery .cals-hero-bg-blurred {
    object-fit: cover;
    filter: blur(10px);
    transform: scale(1.1);
    z-index: 0;
}

.cals-hero-gallery li.active .cals-hero-bg-blurred {
    transform: scale(1.13);
}

.cals-hero-gallery .cals-hero-bg-contained {
    object-fit: contain;
    z-index: 1;
}

.cals-hero-gallery .cals-hero-bg-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.1) 30%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 2;
    pointer-events: none;
}

.cals-hero-gallery .cals-hero-logo-container {
    position: absolute;
    top: 2em;
    left: 2em;
    z-index: 3;
}

.cals-hero-gallery .cals-hero-logo {
    max-height: 3em;
    width: auto;
}

.cals-hero-gallery article {
    position: absolute;
    bottom: 3em;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    text-align: center;
    width: 90vw;
    max-width: 90vw;
    padding: 1em 1em 0;
    box-sizing: border-box;
}

.cals-hero-gallery .cals-hero-title,
.cals-hero-gallery .cals-hero-description,
.cals-hero-gallery .cals-hero-cta-button {
    opacity: 0;
    transform: translateY(1em);
}

.cals-hero-gallery li.active .cals-hero-title {
    animation: cals-hero-slideUpFade 0.8s ease forwards;
    animation-delay: 0.5s;
}

.cals-hero-gallery li.active .cals-hero-description {
    animation: cals-hero-slideUpFade 0.8s ease forwards;
    animation-delay: 1.0s;
}

.cals-hero-gallery li.active .cals-hero-cta-button {
    animation: cals-hero-slideUpFade 0.8s ease forwards;
    animation-delay: 1.5s;
}

@keyframes cals-hero-slideUpFade {
    from {
        transform: translateY(1em);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cals-hero-gallery .cals-hero-title {
    font-size: clamp(1.75rem, 5vw, 4rem);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.cals-hero-gallery span.cals-hero-text-bg {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0 0.25em;
    border-radius: 4px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.cals-hero-gallery .cals-hero-description {
    font-size: clamp(0.9rem, 3vw, 1.2rem);
    line-height: 1.4;
    margin-bottom: 0.75rem;
    max-height: 4em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    text-shadow: 0px 0px 4px rgba(0, 0, 0, 0.9);
}

.cals-hero-gallery .cals-hero-cta-button {
    display: inline-block;
    border: 2px solid white;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
    font-family: Acherus, sans-serif;
    text-transform: uppercase;
}

.cals-hero-gallery .cals-hero-cta-button:hover {
    background: white;
    color: black;
}

.cals-hero-carousel-indicators {
    position: absolute;
    bottom: 1em;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5em;
    z-index: 5;
    list-style: none;
    padding: 0;
    margin: 0;
}

.cals-hero-carousel-indicators li {
    width: 14px;
    height: 14px;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cals-hero-carousel-indicators li.active {
    background: white;
}

@media (max-width: 600px) {
    .cals-hero-gallery article {
        bottom: 3.5em;
        padding: 0.75em 0.5em 0;
    }

    .cals-hero-gallery .cals-hero-title {
        font-size: 1.5rem;
    }

    .cals-hero-gallery .cals-hero-description {
        font-size: 1rem;
        -webkit-line-clamp: 3;
        max-height: 4.5em;
    }
}

@media (max-height: 500px) {
    .cals-hero-gallery article {
        bottom: auto;
        top: 1em;
    }
}


.fact-section .vtcontainer {
    padding-bottom: 2em;
}

.fade-up-container {
    opacity: 0;
    transform: translateY(5rem);
    transition: opacity 1s ease, transform 1s ease;
    /* No transition-delay here; that comes via nth-child (or nth-of-type) below */
}

/* When the container is ready to show */
.fade-up-container.show {
    opacity: 1;
    transform: translateY(0);
}

/* Delay the 1st container by 0s, the 2nd by 0.2s, the 3rd by 0.4s */
.fade-up-1.show {
    transition-delay: 0s;
}

.fade-up-2.show {
    transition-delay: 0.5s;
}

.fade-up-3.show {
    transition-delay: 1.0s;
}

/* ===== CALS audience widgets (scoped to avoid collisions) ===== */
:root {
  --cals-gap: 1rem;
  --cals-radius: 1rem;
  --cals-card-shadow: 0 4px 14px rgba(0,0,0,.08);
}

.cals-section { margin-block: 2rem; }

.cals-title {
  font-size: clamp(1.25rem, 1.6vw, 1.75rem);
  font-weight: 700;
  margin: 0 0 .75rem 0;
}

.cals-grid {
  display: grid;
  gap: var(--cals-gap);
}
@media (min-width: 700px) { .cals-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .cals-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px){ .cals-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }

.cals-card {
  background: #fff;
  border-radius: var(--cals-radius);
  box-shadow: var(--cals-card-shadow);
  padding: 1rem;
  height: 100%;
  display: flex; flex-direction: column; gap: .5rem;
}
.cals-card a { text-decoration: none; font-weight: 600; }
.cals-card p { margin: 0; color: #333; }

.cals-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 999px;
  padding: .5rem .9rem;
  border: 1px solid rgba(0,0,0,.1);
  text-decoration: none;
}

.cals-tiles { display: grid; gap: var(--cals-gap); }
@media (min-width: 700px) { .cals-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px){ .cals-tiles { grid-template-columns: repeat(5, 1fr); } }

.cals-tile {
  display: block;
  padding: 1rem;
  background: #fff;
  border-radius: var(--cals-radius);
  box-shadow: var(--cals-card-shadow);
  text-align: center;
  font-weight: 700;
}

.cals-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.cals-item { display: grid; gap: .25rem; }

.cals-meta { font-size: .9rem; opacity: .75; }
.cals-sr-only { position: absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
