.ttv-standard-swiper {
    width: 100%;
    overflow: hidden;
    position: relative;
    --swiper-navigation-size: 44px;
    --swiper-navigation-sides-offset: 0;
}

.ttv-standard-swiper .swiper-slide {
    position: relative;
}

.ttv-standard-swiper .slide-caption {
    text-align: center;
}

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

.swiper.ttv-standard-swiper--hero .swiper-buttons,
.swiper.hero-slides-swiper .swiper-buttons {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0 !important;
    pointer-events: none;
    z-index: 3;
}

.swiper.ttv-standard-swiper--hero .swiper-button-prev,
.swiper.ttv-standard-swiper--hero .swiper-button-next,
.swiper.hero-slides-swiper .swiper-button-prev,
.swiper.hero-slides-swiper .swiper-button-next,
.swiper.ttv-standard-swiper--hero .ttv-swiper-button,
.swiper.hero-slides-swiper .ttv-swiper-button {
    position: absolute !important;
    top: 50% !important;
    background: var(--ttv-swiper-indicator-gray) !important;
    color: #fff !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16) !important;
    transform: translateY(-50%) !important;
    pointer-events: auto;
}

.swiper.ttv-standard-swiper--hero .swiper-button-prev,
.swiper.hero-slides-swiper .swiper-button-prev,
.swiper.ttv-standard-swiper--hero .ttv-swiper-prev,
.swiper.hero-slides-swiper .ttv-swiper-prev {
    left: 3px !important;
}

.swiper.ttv-standard-swiper--hero .swiper-button-next,
.swiper.hero-slides-swiper .swiper-button-next,
.swiper.ttv-standard-swiper--hero .ttv-swiper-next,
.swiper.hero-slides-swiper .ttv-swiper-next {
    right: 3px !important;
}

/* Homepage standard carousel: animated caption between the image and indicators. */
.swiper.ttv-standard-swiper--hero.ttv-standard-swiper--caption-controls .slide-caption {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin: 0 !important;
    padding: 10px 16px 4px;
    color: var(--bs-body-color) !important;
    font-size: .9rem;
    font-weight: 300;
    line-height: 1.25;
    text-align: center !important;
    text-shadow: none;
    opacity: 0;
    transform: translateX(-70px);
}

.swiper.ttv-standard-swiper--hero.ttv-standard-swiper--caption-controls .swiper-slide-active .slide-caption {
    animation: ttvHeroSlideTitleMotion 5s ease both;
}

.ttv-standard-home-pagination {
    display: flex !important;
    position: static !important;
    justify-content: center !important;
    gap: 4px;
    margin: 5px 0 0 !important;
}

.ttv-standard-home-pagination .swiper-pagination-bullet {
    width: 8px !important;
    height: 8px !important;
    margin: 0 4px !important;
    background: transparent !important;
    border: 1px solid var(--ttv-swiper-indicator-gray) !important;
    opacity: 1 !important;
    transition: background-color .2s ease, border-color .2s ease;
}

.ttv-standard-home-pagination .swiper-pagination-bullet-active {
    background: var(--ttv-swiper-indicator-active) !important;
    border-color: var(--ttv-swiper-indicator-active) !important;
}

@media (max-width: 767.98px) {
    .swiper.ttv-standard-swiper--hero.ttv-standard-swiper--caption-controls .slide-caption {
        min-height: 44px;
        padding: 8px 12px 2px;
        font-size: 0.95rem;
    }
}

.ttv-hero-section {
    width: 100%;
    position: relative;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.ttv-home-gallery.is-rotating .ttv-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;
}

.ttv-home-gallery.is-paused .ttv-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); }
}

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

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

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

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

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

.ttv-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) {
    .ttv-home-gallery-caption.is-active {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

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

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

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

@media (max-width: 767.98px) {
    .ttv-home-gallery-thumbnails {
        display: none;
    }

}

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

.ttv-hero-section .hero-slides-swiper,
.ttv-hero-section .hero-slides-swiper .swiper-wrapper,
.ttv-hero-section .hero-slides-swiper .swiper-slide {
    width: 100%;
    height: 400px;
}

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

.ttv-hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.35));
    pointer-events: none;
}

.ttv-hero-section .hero-slide-title {
    position: absolute;
    right: 24px;
    bottom: 68px;
    left: 24px;
    z-index: 2;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 200;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: center;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: translateX(-70px);
}

.ttv-hero-section .swiper-slide-active .hero-slide-title {
    animation: ttvHeroSlideTitleMotion 5s ease both;
}

@keyframes ttvHeroSlideTitleMotion {
    0% {
        opacity: 0;
        transform: translateX(-70px);
    }
    16% {
        opacity: 1;
        transform: translateX(0);
    }
    78% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ttv-hero-section .swiper-slide-active .hero-slide-title {
        animation: none;
        opacity: 1;
        transform: translateX(0);
    }
}

.ttv-hero-section .hero-swiper-pagination {
    display: flex !important;
    position: static !important;
    justify-content: center !important;
    gap: 4px;
    margin: 20px 0 0 !important;
}

.ttv-hero-section .hero-swiper-pagination .swiper-pagination-bullet {
    width: 10px !important;
    height: 10px !important;
    margin: 0 4px !important;
    background: transparent !important;
    border: 1px solid var(--ttv-swiper-indicator-gray) !important;
    opacity: 1 !important;
    transition: background-color .2s ease, border-color .2s ease;
}

.ttv-hero-section .hero-swiper-pagination .swiper-pagination-bullet-active {
    background: var(--ttv-swiper-indicator-active) !important;
    border-color: var(--ttv-swiper-indicator-active) !important;
}

#heroSection .hero-slides-swiper .ttv-swiper-button {
    background: var(--ttv-swiper-indicator-gray) !important;
    color: #fff !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: background-color 0.2s ease !important;
}

#heroSection .hero-slides-swiper .ttv-swiper-prev {
    left: 18px !important;
}

#heroSection .hero-slides-swiper .ttv-swiper-next {
    right: 18px !important;
}

#heroSection .hero-slides-swiper .ttv-swiper-button:hover,
#heroSection .hero-slides-swiper .ttv-swiper-button:focus-visible,
#heroSection .hero-slides-swiper .ttv-swiper-button:active {
    background: var(--ttv-swiper-indicator-active) !important;
    color: #fff !important;
}

@media (max-width: 767.98px) {
    .ttv-hero-section .hero-slides-swiper,
    .ttv-hero-section .hero-slides-swiper .swiper-wrapper,
    .ttv-hero-section .hero-slides-swiper .swiper-slide {
        height: 400px;
    }

    .ttv-hero-section .hero-slide-title {
        font-size: 1.1rem;
        right: 18px;
        bottom: 68px;
        left: 18px;
    }
}

