
#brickcad-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    perspective: 1200px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}
.brickcad-card {
    position: absolute;
    width: 360px;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    transition: all 1s ease-in-out;
    box-shadow: 0 4px 9px 0px rgb(165 161 161 / 40%) !important;
    text-decoration: none;
    color: white;
}
.brickcad-card-content {
    position: absolute;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    width: 100%;
    padding: 20px;
    font-family: sans-serif;
    text-align: center;
    font-size: 20px;
}
.brickcad-card-content p {
    font-size: 14px;
}

.brickcad-card.active {
    z-index: 3;
    transform: translateX(0) scale(1);
    box-shadow: 0 20px 60px 6px rgb(255 255 255 / 40%) !important;
}
.brickcad-card.left {
    transform: translateX(-220px) scale(0.85) rotateY(20deg);
    z-index: 2;
}
.brickcad-card.right {
    transform: translateX(220px) scale(0.85) rotateY(-20deg);
    z-index: 2;
}
.brickcad-card.hidden {
    display: none;
}

.brickcad-carousel-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.brickcad-carousel-item img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.brickcad-carousel-item:hover {
    transform: none !important;
    box-shadow: none !important;
}

.carousel-credit {
    text-align: center;
    font-size: 14px;
    color: #aaa;
    margin-top: 30px;
}

.brickcad-carousel-item:hover,
.brickcad-carousel-item:hover * {
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
    transition: none !important;
    background: inherit !important;
}

/* Ensure image is fully visible and unaffected by hover */
.brickcad-carousel-item img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: none !important;
    display: block !important;
    z-index: 2;
}

/* Fully override any hover effects on the whole item and descendants */
.brickcad-carousel-item:hover,
.brickcad-carousel-item:hover *,
.brickcad-carousel-item *:hover {
    all: unset !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Add clear background to entire section */
.brickcad-carousel-wrapper {
    background: linear-gradient(145deg, #0a0a0a, #1a1a1a), url('https://www.transparenttextures.com/patterns/dark-mosaic.png') !important;
    background-size: cover;
    background-blend-mode: overlay;
    color: #fff;
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

/* Scoped Wrapper for Heavestack Carousel */
.heavestack-carousel-wrapper {
    background: linear-gradient(145deg, #0a0a0a, #1a1a1a), url('https://www.transparenttextures.com/patterns/dark-mosaic.png') !important;
    background-size: cover !important;
    background-blend-mode: overlay !important;
    padding: 60px 0 !important;
    color: #fff !important;
    position: relative !important;
    z-index: 1 !important;
    overflow: hidden !important;
}

.heavestack-carousel-wrapper .brickcad-carousel-item {
    all: initial;
    display: block !important;
    position: relative !important;
    box-shadow: none !important;
    transition: none !important;
    z-index: 2 !important;
}

.heavestack-carousel-wrapper .brickcad-carousel-item img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 2 !important;
}

.heavestack-carousel-wrapper .brickcad-carousel-item:hover,
.heavestack-carousel-wrapper .brickcad-carousel-item:hover *,
.heavestack-carousel-wrapper .brickcad-carousel-item *:hover {
    all: unset !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Credit Footer */
.heavestack-carousel-wrapper .carousel-credit {
    text-align: center;
    font-size: 14px;
    color: #aaa;
    margin-top: 30px;
}

/* Heavestack Plugin Scoped Section with 3D Robotic Background */
.heavestack-carousel-wrapper {
    background: linear-gradient(145deg, #0d0d0d, #1a1a1a),
                url('https://www.transparenttextures.com/patterns/cubes.png');
    background-size: cover;
    background-attachment: fixed;
    background-blend-mode: multiply;
    padding: 80px 0 !important;
    position: relative !important;
    color: #ffffff;
    z-index: 5;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Neutralize theme hover styles on anchors */
.heavestack-carousel-wrapper a {
    all: unset;
    color: inherit !important;
    background: none !important;
    animation: none !important;
    text-decoration: none !important;
    display: inline-block !important;
    pointer-events: auto !important;
}

/* Ensure images inside cards are full height and not affected */
.heavestack-carousel-wrapper .brickcad-carousel-item img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 2 !important;
}

/* Force remove any hover effect globally within plugin */
.heavestack-carousel-wrapper .brickcad-carousel-item:hover,
.heavestack-carousel-wrapper .brickcad-carousel-item:hover *,
.heavestack-carousel-wrapper .brickcad-carousel-item *:hover {
    all: unset !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#heavestack-carousel-section *:hover {
    all: unset !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    background-image: none !important;
    animation: none !important;
    color: inherit !important;
}

#heavestack-carousel-section a,
#heavestack-carousel-section a:hover {
    text-decoration: none !important;
    background: none !important;
    animation: none !important;
    color: inherit !important;
}

/* Ensure images are fully visible without being cut */
.heavestack-carousel-wrapper .brickcad-carousel-item img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block;
    max-height: 100%;
}

/* Ensure item container adapts to image */
.brickcad-carousel-item {
    height: auto !important;
    min-height: unset !important;
    max-height: unset !important;
}

#brickcad-carousel a.brickcad-card:hover {
    animation: none !important;
}

@media screen and (max-width: 768px) {
    .brickcad-card {
        width: 250px !important;
        height: 250px !important;
        background-size: 100% !important;
        background-position: center !important;
    }
}