/* Carousel styles used only on the TTE homepage. */
.tte-hero-slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 0 30px;
    overflow: hidden;
    background: #111;
}

.tte-home-search {
    position: absolute;
    z-index: 4;
    top: 50%;
    left: 50%;
    width: min(54%, 700px);
    transform: translate(-50%, -50%);
}
.tte-home-search__bar,
.tte-home-search__suggestions > a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 8px 16px;
    border-radius: 5px;
    background: #fff;
    color: #141414;
}
.tte-home-search__bar { cursor: text; }
.tte-home-search svg { flex: 0 0 22px; width: 22px; height: 22px; fill: currentColor; }
.tte-home-search input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #141414;
    font: inherit;
    font-size: clamp(17px, 1.6vw, 22px);
}
.tte-home-search input:focus { border: 0; outline: 0; box-shadow: none; }
.tte-home-search input:focus-visible { outline: 2px solid #005fcc; outline-offset: 4px; }
.tte-home-search__suggestions { margin-top: 2px; }
.tte-home-search__suggestions > a { min-height: 48px; font-size: 16px; text-decoration: none; }
.tte-home-search__suggestions > a:hover { background: #e8f5f8; color: #141414; }
@media (max-width: 700px) {
    .tte-home-search { width: calc(100% - 84px); }
    .tte-home-search__bar, .tte-home-search__suggestions > a { min-height: 42px; padding: 6px 10px; gap: 8px; }
    .tte-home-search input { font-size: 15px; }
    .tte-home-search svg { flex-basis: 19px; width: 19px; height: 19px; }
}

.tte-hero-slides {
    position: relative;
    aspect-ratio: 12 / 5;
}

.tte-hero-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
}

.tte-hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.tte-hero-slide img {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
}

.tte-hero-slider .tte-slider-control {
    position: absolute;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 70px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-size: 48px;
    line-height: 1;
    cursor: pointer;
}

.tte-slider-previous { left: 10px; }
.tte-slider-next { right: 10px; }

.tte-slider-control svg {
    display: block;
    width: 24px;
    height: 40px;
    margin: auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.85;
}

.tte-slider-dots {
    position: absolute;
    z-index: 2;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: calc(100% - 100px);
    flex-wrap: wrap;
}

.tte-hero-slider .tte-slider-dots button {
    display: grid;
    place-items: center;
    width: 20px;
    height: 24px;
    min-height: 0;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
}

.tte-slider-dots button::before {
    content: '';
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgb(0 0 0 / 70%);
}

.tte-slider-dots button.is-active::before {
    background: #1687ff;
}

.tte-hero-slider button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -2px;
}

@media (prefers-reduced-motion: reduce) {
    .tte-hero-slide { transition: none; }
}

#carousel-featured {
    position: relative;
    width: 100%;
}

.wp-block-post-title {
    display: none;
}

#carousel-featured,
#carousel-featured * {
    box-sizing: border-box;
}

#carousel-featured .mySlidesFeatured {
    width: 100%;
}

#carousel-featured .slideshow-container {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    margin: auto;
    padding-inline: 3%;
}

#carousel-featured .prev,
#carousel-featured .next {
    position: absolute;
    z-index: 2;
    top: 50%;
    width: auto;
    padding: 12px;
    color: #fff;
    background: rgb(0 0 0 / 45%);
    border-radius: 0 3px 3px 0;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    transform: translateY(-50%);
    transition: background-color 0.2s ease;
}

#carousel-featured .prev {
    left: 0;
}

#carousel-featured .next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

#carousel-featured .prev:hover,
#carousel-featured .next:hover {
    background: rgb(0 0 0 / 80%);
}

#carousel-featured .dot {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-inline: 2px;
    background: #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#carousel-featured .dot.active,
#carousel-featured .dot:hover {
    background: #555;
}

#carousel-featured #arrow {
    font-size: 3rem;
    line-height: 0.75;
}

/* The Omeka block uses a unique id per block, so mirror the original rules by class. */
.tte-featured-carousel {
    position: relative;
    width: 100%;
}

.tte-featured-carousel .slideshow-container {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    margin: auto;
    padding: 0;
}

.tte-featured-carousel .mySlidesFeatured {
    width: 100%;
    min-width: 0;
}

.tte-featured-carousel .archive-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    margin: 0;
    padding: 0;
}

.tte-featured-carousel .entity-tile {
    min-width: 0;
    overflow-wrap: anywhere;
}

.tte-featured-summary__count {
    padding: 9% 0;
    font-size: 60px;
    line-height: 1;
    text-align: center;
}

.tte-featured-summary__label {
    font-size: 25px;
    padding-top: 10%;
}

.tte-featured-summary__featured {
    position: relative;
    display: inline-block;
    padding-top: 10px;
    font-size: 25px;
}

.tte-featured-carousel #arrow {
    font-size: 3rem;
    line-height: .75;
}

.tte-featured-carousel .prev,
.tte-featured-carousel .next {
    position: absolute;
    z-index: 2;
    top: 50%;
    width: 38px;
    height: 42px;
    padding: 8px 10px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgb(0 0 0 / 50%);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.tte-featured-carousel .prev { left: 12px; }
.tte-featured-carousel .next { right: 12px; }
.tte-featured-carousel .tte-featured-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}
.tte-featured-carousel .dot {
    width: 10px;
    height: 10px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #ccc;
}
.tte-featured-carousel .dot.active { background: #333; }

@media (max-width: 767px) {
    .tte-featured-carousel .archive-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .tte-featured-carousel .archive-list {
        grid-template-columns: minmax(0, 1fr);
    }
}
