/* Standard galleries and overlay navigation */
.site-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    --swiper-navigation-size: 44px;
    --swiper-navigation-sides-offset: 0;
}

.site-carousel .swiper-slide {
    position: relative;
}

.site-carousel .slide-caption {
    text-align: center;
}

.swiper.site-carousel .swiper-buttons {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 20px;
    margin-top: 14px !important;
    margin-bottom: 20px !important;
}

.swiper.site-carousel--hero .swiper-buttons,
.swiper.hero-slides-swiper .swiper-buttons {
    position: absolute;
    inset: 0;
    margin: 0 !important;
    pointer-events: none;
    z-index: 3;
}

.swiper:is(.site-carousel--hero, .hero-slides-swiper) :is(.swiper-button-prev, .swiper-button-next, .carousel-button) {
    position: absolute;
    top: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    box-shadow: var(--slide-arrow-shadow, 0 8px 22px rgba(0, 0, 0, .16));
    transform: translateY(-50%);
    pointer-events: auto;
}

.swiper:is(.site-carousel--hero, .hero-slides-swiper) :is(.swiper-button-prev, .carousel-prev) {
    left: var(--slide-arrow-inset, 3px);
}

.swiper:is(.site-carousel--hero, .hero-slides-swiper) :is(.swiper-button-next, .carousel-next) {
    right: var(--slide-arrow-inset, 3px);
}

.swiper:is(.site-carousel--hero, .hero-slides-swiper) :is(.swiper-button-prev, .swiper-button-next, .carousel-button):is(:hover, :focus-visible, :active) {
    background: rgba(255, 255, 255, .9);
    color: var(--ttv-primary);
}

.swiper:is(.site-carousel--hero, .hero-slides-swiper) .carousel-button svg {
    opacity: .3;
    transition: opacity .2s ease;
}

.swiper:is(.site-carousel--hero, .hero-slides-swiper) .carousel-button:is(:hover, :focus-visible, :active) svg {
    opacity: 1;
}

/* Bio image gallery, thumbnails and mosaic */
.home-gallery { margin-top: 1rem; }

.home-gallery-grid {
    --home-gallery-gap: 16px;
    container-type: inline-size;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--home-gallery-gap);
    align-items: start;
}

.home-gallery-grid,
.home-gallery-indicators {
    width: 100%;
    margin-inline: auto;
}

@media (min-width: 576px) {
    .home-gallery-grid,
    .home-gallery-indicators {
        width: 83.333333%;
    }
}

.home-gallery-hero {
    position: relative;
    min-width: 0;
    overflow: hidden;
    aspect-ratio: 2 / 1;
}

.home-gallery-hero > img,
.home-gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-gallery-thumbnails {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--home-gallery-gap);
    max-height: calc(37.5cqw + var(--home-gallery-gap) / 2);
    min-width: 0;
    overflow-y: auto;
    scrollbar-width: thin;
}

.home-gallery-thumb {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    
    aspect-ratio: 2 / 1;
    overflow: hidden;
    cursor: pointer;
    background: var(--ttv-dark-bg, #111);
}

.home-gallery-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    opacity: 1;
    pointer-events: none;
    transition: opacity .2s ease;
}

.home-gallery-thumb:hover::after,
.home-gallery-thumb:focus-visible::after,
.home-gallery-thumb[aria-pressed="true"]::after {
    opacity: 0;
}

.home-gallery-thumb[aria-pressed="true"] {
    outline: 2px solid var(--ttv-primary);
    outline-offset: -2px;
}

.home-gallery-thumb:focus-visible {
    outline: 2px solid var(--ttv-primary);
    outline-offset: 2px;
}

.home-gallery-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.home-gallery-indicator {
    position: relative;
    display: block;
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--ttv-swiper-indicator-gray);
    overflow: hidden;
    cursor: pointer;
}

.home-gallery-indicator[aria-pressed="true"] {
    flex-basis: 48px;
    width: 48px;
    background: var(--ttv-swiper-indicator-gray);
}

.home-gallery.is-rotating .home-gallery-indicator[aria-pressed="true"]::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: var(--ttv-swiper-indicator-active);
    animation: ttv-home-indicator-fill var(--home-slide-duration, 6000ms) linear forwards;
}

.home-gallery.is-paused .home-gallery-indicator[aria-pressed="true"]::before {
    animation-play-state: paused;
}

@keyframes ttv-home-indicator-fill {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0 0 0 0); }
}

.home-gallery-indicator:focus-visible {
    outline: 2px solid var(--ttv-primary);
    outline-offset: 2px;
}

.home-gallery-mosaic {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    pointer-events: none;
}

.home-gallery-mosaic-tile {
    position: relative;
    display: block;
    overflow: hidden;
    opacity: 0;
    animation: ttv-home-mosaic-reveal .44s ease-out both;
}

.home-gallery-mosaic-tile img {
    position: absolute;
    width: 600%;
    height: 400%;
    max-width: none;
    object-fit: cover;
}

@keyframes ttv-home-mosaic-reveal {
    to { opacity: 1; }
}

.home-gallery-caption {
    position: absolute;
    right: auto;
    bottom: 24px;
    left: 24px;
    max-width: calc(100% - 48px);
    z-index: 2;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.25;
    text-align: left;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, .8);
    pointer-events: none;
    opacity: 0;
    transform: translateX(-70px);
}

.home-gallery-caption.is-active {
    animation: ttv-home-caption-enter .75s ease-out both;
}

@keyframes ttv-home-caption-enter {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-gallery-caption.is-active {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 991.98px) {
    .home-gallery-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: .65rem;
    }

    .home-gallery-thumbnails {
        --home-gallery-gap: clamp(4px, 1.5vw, 8px);
        grid-template-columns: repeat(6, minmax(0, 1fr));
        max-height: calc((100cqw - 5 * var(--home-gallery-gap)) / 6 + var(--home-gallery-gap));
    }

    .home-gallery-caption {
        max-width: calc(100% - 36px);
        bottom: 18px;
        left: 18px;
        font-size: 1.1rem;
    }
}

@media (max-width: 767.98px) {
    .content-page .home-gallery {
        margin-top: 1.5rem !important;
    }

    .home-gallery-thumbnails {
        display: none;
    }

}

/* Homepage and category hero */
.hero-section {
    position: relative;
    width: 100%;
    --ttv-hero-default-height: 600px;
    --slide-arrow-inset: 18px;
    --slide-arrow-shadow: none;
}

/* Hero pagination sits outside the Swiper viewport. */
.hero-section .hero-swiper-pagination {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 10px;
    margin: 20px 0 0;
}

.hero-section .hero-slides-container {
    width: 100%;
}

.hero-section .hero-slides-swiper,
.hero-section .hero-slides-swiper .swiper-wrapper {
    width: 100%;
}

.hero-section .hero-slides-swiper .swiper-wrapper {
    height: var(--ttv-hero-initial-height, var(--ttv-hero-default-height));
}

.hero-section .swiper.hero-slides-swiper .swiper-slide {
    width: 100%;
    height: var(--ttv-hero-slide-height, var(--ttv-hero-default-height)) !important;
}

.hero-section .swiper.hero-slides-swiper .swiper-slide-active {
    z-index: 1;
    pointer-events: auto;
}

.hero-slide {
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero-slide-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, .4), rgba(0, 0, 0, .08) 45%, rgba(0, 0, 0, .35));
    pointer-events: none;
}

.hero-section .hero-slide-content {
    position: absolute;
    top: 8%;
    right: clamp(24px, 6vw, 100px);
    bottom: 8%;
    left: clamp(24px, 6vw, 100px);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: var(--ttv-hero-content-align, flex-start);
    justify-content: var(--ttv-hero-content-vertical, flex-end);
    gap: 28px;
    text-align: var(--ttv-hero-content-text-align, left);
    pointer-events: auto;
}

.hero-section .hero-slide-title {
    color: #fff;
    font-family: var(--ttv-font-heading);
    font-size: var(--ttv-hero-font-size, clamp(2.5rem, 5vw, 4.75rem));
    font-weight: 700;
    line-height: 1.12;
    max-width: min(850px, 75vw);
    letter-spacing: -.8px;
    text-align: inherit;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    text-shadow: 0 0 8px rgba(0, 0, 0, .35);
    opacity: 1;
    transform: none;
}

.hero-section .hero-slide-description {
    margin: 0;
    max-width: min(42rem, 100%);
    color: #fff;
    font-size: clamp(.875rem, 1.1vw, 1rem);
    line-height: 1.5;
    text-shadow: 0 0 10px rgba(0, 0, 0, .3);
    overflow-wrap: anywhere;
}

.hero-section .hero-slide-cta {
    display: inline-flex;
    align-items: center;
    gap: 0;
    max-width: 100%;
    padding: 9px 16px;
    border: 1px solid #fff;
    border-radius: var(--ttv-pill-radius);
    background-color: transparent;
    background-image: linear-gradient(rgba(255, 255, 255, .8), rgba(255, 255, 255, .8));
    background-position: left center;
    background-size: 0% 100%;
    background-repeat: no-repeat;
    color: #fff;
    font-size: .9375rem;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    overflow-wrap: anywhere;
    pointer-events: auto;
    cursor: pointer;
    transition: background-size .35s ease, border-color .2s ease, color .2s ease;
}

.hero-section .swiper-slide-active .hero-slide-cta:is(:hover, :focus-visible) {
    background-size: 100% 100%;
    color: #212529;
}

.hero-section .hero-slide-cta-icon {
    display: none;
    align-items: center;
    justify-content: center;
}
.hero-section .hero-slide-cta:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.hero-section .hero-slide-content:has(> .hero-slide-description) { gap: 8px; }

.hero-slides-swiper .swiper-slide-active .hero-slide-title {
    animation: ttvHeroSlideTitleEnter .7s ease-out both;
}
.hero-slides-swiper .swiper-slide-active :is(.hero-slide-cta, .hero-slide-description) {
    animation: ttvHeroSlideCtaEnter .7s ease-out both;
}
@keyframes ttvHeroSlideTitleEnter {
    from { opacity: 0; transform: translateX(-70px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes ttvHeroSlideCtaEnter {
    from { opacity: 0; transform: translateX(70px); }
    to { opacity: 1; transform: translateX(0); }
}

.swiper.hero-slides-swiper .carousel-button { transition: background-color .2s ease; }
.swiper.hero-slides-swiper .carousel-button.swiper-button-disabled { opacity: 1; }

@media (min-width: 768px) {
    .hero-section .hero-slide-content[data-content-top="1"] {
        top: max(8%, calc(var(--ttv-overlay-header-height, 86px) + 16px));
    }
}
@media (max-width: 767.98px) {
    .hero-section .hero-slides-swiper .swiper-wrapper {
        height: var(--ttv-hero-initial-mobile-height, var(--ttv-hero-initial-height, var(--ttv-hero-default-height)));
    }
    .hero-section .swiper.hero-slides-swiper .swiper-slide {
        height: var(--ttv-hero-mobile-height, var(--ttv-hero-slide-height, var(--ttv-hero-default-height))) !important;
    }
    /* Slide focal points are configured independently for each photograph. */
    .hero-section .hero-slide--mobile-position { background-position: var(--ttv-hero-mobile-position) !important; }
    .hero-section .hero-slide--mobile-position .hero-slide-image { object-position: var(--ttv-hero-mobile-position) !important; }
    .hero-section .swiper.hero-slides-swiper .swiper-buttons { display: none !important; }
    .hero-section .hero-slide-content {
        inset: 5% 24px;
        align-items: var(--ttv-hero-mobile-content-align, flex-start);
        justify-content: var(--ttv-hero-mobile-content-vertical, flex-end);
        text-align: var(--ttv-hero-mobile-content-text-align, left);
        gap: 16px;
    }
    .hero-section .hero-slide-content[data-mobile-content-top="1"] {
        top: max(5%, calc(var(--ttv-overlay-header-height, 86px) + 16px));
    }
    .hero-section .hero-slide-title {
        max-width: 100%;
        font-size: var(--ttv-hero-mobile-font-size, clamp(2rem, 8vw, 3rem));
    }
    .hero-section .hero-slide-cta,
    .hero-section .swiper-slide-active .hero-slide-cta:is(:hover, :focus-visible) {
        align-items: baseline;
        gap: .35em;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #fff;
        font-weight: 300;
    }
    .hero-section .hero-slide-cta-icon {
        display: inline-block;
        flex: none;
        width: .667ex;
        height: 1ex;
    }
    .hero-slide-cta-icon svg { display: block; width: 100%; height: 100%; }
    .hero-slide-cta-icon i { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-section .hero-slide-cta { transition: none; }
    .hero-slides-swiper .swiper-slide-active :is(.hero-slide-title, .hero-slide-cta, .hero-slide-description) {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Video cover and standard captioned gallery */
.content-video-hero { padding-top: 1rem; }
.content-video-cover { position: relative; margin-bottom: 1.5rem; }
.content-video-cover iframe { object-fit: cover; }
.content-video-cover .iframeWrapper { margin-inline: auto; }
.content-video-cover .loading-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; }
.content-video-cover .loading-content { text-align: center; }
.content-video-cover .loading-spinner { margin-bottom: 1rem; }
.content-video-spinner { display: inline-block; width: 3rem; height: 3rem; border: .25em solid currentColor; border-right-color: transparent; border-radius: 50%; animation: content-video-spin .75s linear infinite; }
.content-video-cover .loading-content h3 { font-weight: 300; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
@keyframes content-video-spin { to { transform: rotate(360deg); } }
.content-slide-gallery { margin-top: 1rem; }
.content-slide-gallery-inner { width: min(100%, 66.6667%); margin-inline: auto; }
.content-slide-image { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.content-slide-gallery .slide-caption { margin-top: 1rem; color: rgba(0,0,0,.5); font-size: .875rem; text-align: center; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
@media (max-width: 575px) { .content-slide-gallery-inner { width: 100%; } }
