/* Shared vehicle/media carousel */
.wtc-carousel-stage {
    position: relative;
}

.wtc-carousel-controls {
    gap: 0.85rem;
}

.wtc-carousel-btn {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    background: #fff;
    color: var(--wtc-dark);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.wtc-carousel-btn--overlay {
    position: absolute;
    top: 50%;
    z-index: 3;
    transform: translateY(-50%);
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    box-shadow: none;
}

.wtc-carousel-btn--prev {
    left: 1rem;
}

.wtc-carousel-btn--next {
    right: 1rem;
}

.wtc-carousel-btn:hover {
    border-color: rgba(0, 0, 0, 0.28);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.wtc-carousel-btn--overlay:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    box-shadow: none;
}

.wtc-carousel-arrow {
    font-size: 1.35rem;
    line-height: 1;
}

.wtc-carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background-color: rgba(29, 29, 31, 0.28);
    opacity: 1;
    border: 0;
    margin: 0 4px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.wtc-carousel-indicators .active {
    background-color: var(--brand-primary);
    transform: scale(1.1);
}

.wtc-carousel-trigger {
    cursor: zoom-in;
}

.wtc-carousel-count-badge,
.wtc-carousel-zoom-note {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(6px);
    pointer-events: none;
}

.wtc-carousel-count-badge {
    top: 1rem;
    right: 1rem;
    min-width: 3.5rem;
    padding: 0.38rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.wtc-carousel-zoom-note {
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    padding: 0.42rem 0.78rem;
    font-size: 0.78rem;
    line-height: 1;
}

.wtc-carousel-expand {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
}

.wtc-carousel-expand:hover {
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
}

.wtc-image-modal .modal-content {
    border-radius: 0;
    background: #000;
    min-height: 100vh;
}

.wtc-image-modal--light .modal-content {
    background: #fff;
}

.wtc-image-modal .modal-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    border: 0;
    padding: 0.9rem 1rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.08) 100%);
    z-index: 3;
}

.wtc-image-modal--light .modal-header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.18) 100%);
}

.wtc-image-modal .modal-title {
    color: #fff;
}

.wtc-image-modal--light .modal-title {
    color: var(--wtc-dark);
}

.wtc-image-modal .btn-close {
    filter: invert(1);
    opacity: 0.85;
}

.wtc-image-modal--light .btn-close {
    filter: none;
}

.wtc-image-modal .modal-body {
    padding: 0;
}

.wtc-image-modal-feed {
    min-height: 100vh;
    overflow-y: auto;
    padding: 4.25rem 0.75rem 1.25rem;
}

.wtc-image-modal-feed-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.wtc-image-modal-feed-media {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    border-radius: 16px;
    background: #000;
}

.wtc-image-modal--light .wtc-image-modal-feed-media {
    background: #fff;
}

.wtc-image-modal .carousel,
.wtc-image-modal .carousel-inner,
.wtc-image-modal .carousel-item {
    height: 100vh;
    height: 100dvh;
}

.wtc-image-modal-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    padding: clamp(4rem, 6vh, 4.5rem) clamp(1rem, 2.5vw, 1.5rem) clamp(6.5rem, 12vh, 7.75rem);
}

.wtc-image-modal-media {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
}

.wtc-image-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.32);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    backdrop-filter: blur(6px);
}

.wtc-image-modal-nav:hover {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
}

.wtc-image-modal--light .wtc-image-modal-nav {
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.88);
    color: var(--wtc-dark);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.wtc-image-modal--light .wtc-image-modal-nav:hover {
    border-color: rgba(0, 0, 0, 0.18);
    background: rgba(255, 255, 255, 0.98);
    color: var(--wtc-dark);
}

.wtc-image-modal--light .carousel-control-prev-icon,
.wtc-image-modal--light .carousel-control-next-icon {
    filter: invert(1) brightness(0);
}

.wtc-image-modal-nav--prev {
    left: 1.25rem;
}

.wtc-image-modal-nav--next {
    right: 1.25rem;
}

.wtc-carousel-thumbs {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: min(92vw, 980px);
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.55rem;
    overflow-x: auto;
    padding: 0.35rem 0.25rem;
}

.wtc-carousel-thumbs::-webkit-scrollbar {
    height: 6px;
}

.wtc-carousel-thumbs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.28);
    border-radius: 999px;
}

.wtc-image-modal--light .wtc-carousel-thumbs::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.16);
}

.wtc-carousel-thumb {
    width: clamp(72px, 8vw, 96px);
    height: clamp(54px, 6vw, 72px);
    min-width: clamp(72px, 8vw, 96px);
    margin: 0 !important;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 12px !important;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08) !important;
    opacity: 0.72 !important;
    transform: none !important;
    text-indent: 0;
    cursor: pointer;
    flex: 0 0 auto;
    position: relative;
}

.wtc-carousel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wtc-carousel-thumb.active {
    border-color: rgba(255, 255, 255, 0.92) !important;
    opacity: 1 !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.wtc-image-modal--light .wtc-carousel-thumb {
    border-color: rgba(0, 0, 0, 0.12) !important;
    background: rgba(0, 0, 0, 0.04) !important;
}

.wtc-image-modal--light .wtc-carousel-thumb.active {
    border-color: rgba(0, 0, 0, 0.72) !important;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.wtc-carousel-thumb-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.25);
    font-size: 1.15rem;
}

@media (max-width: 575.98px) {
    .wtc-carousel-btn--prev {
        left: 0.75rem;
    }

    .wtc-carousel-btn--next {
        right: 0.75rem;
    }

    .wtc-carousel-count-badge {
        top: 0.75rem;
        right: 0.75rem;
    }

    .wtc-carousel-zoom-note {
        left: 50%;
        bottom: 0.75rem;
    }

    .wtc-image-modal .modal-title {
        display: none;
    }

    .wtc-image-modal .modal-header {
        padding-inline: 0.75rem;
    }

    .wtc-image-modal-feed {
        padding-inline: 0.5rem;
    }

    .wtc-image-modal-feed-media {
        border-radius: 12px;
    }
}
