.sindicato-post-carousel {
    margin: 32px 0;
    position: relative;
    width: 100%;
}

.sindicato-post-carousel__viewport {
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}

.sindicato-post-carousel__track {
    display: flex;
    transition: transform 240ms ease;
    width: 100%;
}

.sindicato-post-carousel__slide {
    aspect-ratio: 16 / 9;
    background: #f2f2f2;
    flex: 0 0 100%;
    min-width: 100%;
}

.sindicato-post-carousel__expand {
    background: transparent;
    border: 0;
    cursor: zoom-in;
    display: block;
    height: 100%;
    margin: 0;
    padding: 0;
    width: 100%;
}

.sindicato-post-carousel__image {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.sindicato-post-carousel__control {
    align-items: center;
    background: #fff;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
    color: #1d1d1d;
    cursor: pointer;
    display: flex;
    font-size: 34px;
    height: 42px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    top: calc(50% - 28px);
    transform: translateY(-50%);
    width: 42px;
    z-index: 2;
}

.sindicato-post-carousel__control--prev {
    left: 12px;
}

.sindicato-post-carousel__control--next {
    right: 12px;
}

.sindicato-post-carousel__dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}

.sindicato-post-carousel__dot {
    background: #c9c9c9;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    height: 10px;
    padding: 0;
    width: 10px;
}

.sindicato-post-carousel__dot.is-active {
    background: #e43138;
}

.sindicato-carousel-modal {
    align-items: center;
    background: rgba(0, 0, 0, .88);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 28px;
    position: fixed;
    z-index: 99999;
}

.sindicato-carousel-modal.is-open {
    display: flex;
}

.sindicato-carousel-modal__panel {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .45);
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    height: min(86vh, 820px);
    overflow: hidden;
    position: relative;
    width: min(94vw, 1180px);
}

.sindicato-carousel-modal__stage {
    align-items: center;
    background: #fff;
    display: flex;
    justify-content: center;
    min-height: 0;
    padding: 24px;
    position: relative;
}

.sindicato-carousel-modal__image {
    display: block;
    height: auto;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    width: auto;
}

.sindicato-carousel-modal__close {
    align-items: center;
    background: #fff;
    border: 0;
    border-radius: 999px;
    color: #1d1d1d;
    cursor: pointer;
    display: flex;
    font-size: 32px;
    height: 44px;
    justify-content: center;
    line-height: 1;
    padding: 0 0 3px;
    position: absolute;
    right: 14px;
    top: 14px;
    width: 44px;
    z-index: 2;
}

.sindicato-carousel-modal__control {
    align-items: center;
    background: rgba(255, 255, 255, .95);
    border: 0;
    border-radius: 999px;
    color: #1d1d1d;
    cursor: pointer;
    display: flex;
    font-size: 38px;
    height: 46px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    z-index: 2;
}

.sindicato-carousel-modal__control--prev {
    left: 18px;
}

.sindicato-carousel-modal__control--next {
    right: 18px;
}

.sindicato-carousel-modal__footer {
    align-items: center;
    background: #fff;
    display: grid;
    gap: 14px;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 14px 18px;
}

.sindicato-carousel-modal__counter {
    color: #1d1d1d;
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 14px;
    min-width: 44px;
}

.sindicato-carousel-modal__dots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.sindicato-carousel-modal__dot {
    background: #c9c9c9;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    height: 10px;
    padding: 0;
    width: 10px;
}

.sindicato-carousel-modal__dot.is-active {
    background: #e43138;
}

.sindicato-carousel-modal-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .sindicato-post-carousel {
        margin: 24px 0;
    }

    .sindicato-post-carousel__control {
        font-size: 28px;
        height: 36px;
        width: 36px;
    }

    .sindicato-carousel-modal {
        padding: 16px;
    }

    .sindicato-carousel-modal__panel {
        height: min(88vh, 720px);
        width: calc(100vw - 32px);
    }

    .sindicato-carousel-modal__stage {
        padding: 16px 10px;
    }

    .sindicato-carousel-modal__control {
        font-size: 30px;
        height: 36px;
        width: 36px;
    }

    .sindicato-carousel-modal__control--prev {
        left: 10px;
    }

    .sindicato-carousel-modal__control--next {
        right: 10px;
    }

    .sindicato-carousel-modal__footer {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}
