/* The Pack Blocks – Hero Carousel (landingsafbeelding met de laatste berichten) */

/* Basis
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.tpb-hero {
    position: relative;
}

.tpb-hero__viewport {
    position: relative;
    height: 750px;
    overflow: hidden;
}

.tpb-hero__track {
    position: relative;
    height: 100%;
}

.tpb-hero__slide {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.tpb-hero__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    margin: 0;
}

.tpb-hero__scrim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.35);
}

/* Titel op de foto
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.tpb-hero__link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
    color: #fff;
    text-align: center;
    text-decoration: none;
}

.tpb-hero__link:hover,
.tpb-hero__link:focus {
    color: inherit;
    text-decoration: none;
}

.tpb-hero__content {
    display: block;
    max-width: 80%;
}

.tpb-hero__label {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background-color: #F2C200;
    color: #111;
}

.tpb-hero__title {
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
    color: inherit;
    text-wrap: balance;
}

@media (min-width: 1024px) {
    .tpb-hero__title {
        font-size: 45px;
    }
}

.tpb-hero__link:hover .tpb-hero__title,
.tpb-hero__link:focus-visible .tpb-hero__title {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.tpb-hero__date {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    opacity: 0.85;
}

/* Overgang: fade
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.tpb-hero--fade .tpb-hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
}

.tpb-hero--fade .tpb-hero__slide.is-active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

/* Overgang: schuiven
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.tpb-hero--slide .tpb-hero__track {
    display: flex;
    transition: transform 0.6s ease-in-out;
}

.tpb-hero--slide .tpb-hero__slide {
    flex: 0 0 100%;
    width: 100%;
}

/* Zonder JS: alle slides onder elkaar in plaats van een stapel */
.tpb-hero:not([data-tpb-ready]) .tpb-hero__slide:not(.is-active) {
    display: none;
}

/* Bolletjes
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.tpb-hero__dots {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 0.5rem;
}

.tpb-hero__dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    appearance: none;
}

.tpb-hero__dot:hover {
    transform: scale(1.15);
}

.tpb-hero__dot.is-active {
    background-color: #F2C200;
}

.tpb-hero__dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Pijlen
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.tpb-hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background-color: rgba(0, 0, 0, 0.35);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease;
    appearance: none;
}

.tpb-hero__arrow:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.tpb-hero__arrow:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.tpb-hero__arrow svg {
    width: 22px;
    height: 22px;
}

.tpb-hero__arrow--prev {
    left: 0.75rem;
}

.tpb-hero__arrow--next {
    right: 0.75rem;
}

/* Editor
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.tpb-hero__empty {
    margin: 0;
    padding: 2rem;
    text-align: center;
    background-color: #f4f4f4;
    color: #666;
}

/* Minder beweging als de bezoeker daarom vraagt
–––––––––––––––––––––––––––––––––––––––––––––––––– */

@media (prefers-reduced-motion: reduce) {
    .tpb-hero--fade .tpb-hero__slide,
    .tpb-hero--slide .tpb-hero__track {
        transition: none;
    }
}
