.jc-fbdbef7c-wrapper {
    position: relative;
    width: 100%;
}

.jc-fbdbef7c-swiper {
    width: 100%;
    height: 400px;
}

.jc-fbdbef7c-slide {
    width: auto; /* Allows justified layout based on image aspect ratio */
    height: 100%;
    position: relative;
    overflow: hidden;
    /* border-radius: 8px; REMOVED, now handled by control */
}

.jc-fbdbef7c-slide img {
    height: 100%;
    width: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.jc-fbdbef7c-slide a {
    display: block;
    height: 100%;
}

.jc-fbdbef7c-title-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: end;
    -ms-flex-align: end;
    -webkit-align-items: flex-end;
    align-items: flex-end;
}

.jc-fbdbef7c-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.jc-fbdbef7c-slide:hover .jc-fbdbef7c-title-wrap {
    opacity: 1;
}

.jc-fbdbef7c-slide:hover .jc-fbdbef7c-title {
    transform: translateY(0);
}

/* Default Middle Arrows */
.jc-fbdbef7c-nav-container {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    z-index: 100; /* Increased z-index */
    pointer-events: none; /* Let clicks pass through container */
}

.jc-fbdbef7c-button-prev,
.jc-fbdbef7c-button-next {
    position: absolute;
    cursor: pointer;
    color: #000;
    font-size: 30px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    transition: color 0.2s;
    pointer-events: auto; /* Re-enable clicks on arrows */
    z-index: 101; /* Ensure arrows themselves are above other content */
    /* Add WebKit specific fixes for Safari */
    -webkit-appearance: none;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure icons inherit color properly in Safari */
.jc-fbdbef7c-button-prev i,
.jc-fbdbef7c-button-next i {
    color: inherit;
    display: block;
}

.jc-fbdbef7c-button-prev { left: -40px; }
.jc-fbdbef7c-button-next { right: -40px; }

@media (max-width: 768px) {
    .jc-fbdbef7c-button-prev { left: 10px; }
    .jc-fbdbef7c-button-next { right: 10px; }
}

/* Bottom Arrows Modifier */
.jc-fbdbef7c-arrows-bottom {
    padding-bottom: 60px; /* Space for arrows */
}

.jc-fbdbef7c-arrows-bottom .jc-fbdbef7c-nav-container {
    top: auto;
    bottom: 10px;
    transform: none;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    padding: 0 40px; /* Inset from edges */
    z-index: 100;
}

.jc-fbdbef7c-arrows-bottom .jc-fbdbef7c-button-prev,
.jc-fbdbef7c-arrows-bottom .jc-fbdbef7c-button-next {
    position: static;
}