.crt-bgs-container {
    position: relative;
    width: 100%;
    min-height: 600px; /* Overridden by settings */
    display: flex;
    overflow: hidden;
}

.crt-bgs-backgrounds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.crt-bgs-bg-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0; /* Hidden by default */
    visibility: hidden;
    will-change: transform, opacity;
}

.crt-bgs-bg-item.active {
    opacity: 1;
    visibility: visible;
}

.crt-bgs-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5); /* Overridden by settings */
    z-index: 1;
    pointer-events: none;
}

.crt-bgs-nav {
    position: relative;
    z-index: 5;
    width: 100%;
    display: flex;
    flex-wrap: wrap; /* Allows stacking if too many */
}

.crt-bgs-nav-item {
    position: relative;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1 1 0%;
}

.crt-bgs-title {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    transition: color 0.3s ease;
}

.crt-bgs-subtitle {
    margin: 0;
    font-size: 16px;
    color: #ddd;
    transition: color 0.3s ease;
}

.crt-bgs-description {
    margin-top: 10px;
    font-size: 14px;
    color: #eee;
    transition: color 0.3s ease;
}

/* Description Animations */
.desc-anim-fade .crt-bgs-description-wrapper,
.desc-anim-slide .crt-bgs-description-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
}

.desc-anim-fade .crt-bgs-description,
.desc-anim-slide .crt-bgs-description {
    overflow: hidden;
}

.desc-anim-slide .crt-bgs-description-wrapper {
    transform: translateY(10px);
}

.desc-anim-fade.active .crt-bgs-description-wrapper,
.desc-anim-fade:hover .crt-bgs-description-wrapper,
.desc-anim-slide.active .crt-bgs-description-wrapper,
.desc-anim-slide:hover .crt-bgs-description-wrapper {
    grid-template-rows: 1fr;
    opacity: 1;
    transform: translateY(0);
}
