.text-before-3D-carousel-long,
.text-after-3D-carousel,
.text-after-carousel2 {
    font-size: 1.2rem;
    line-height: 2;
    padding: 2%;
    color: #000;            /* High-tech: black text */
}

.text-before-3D-carousel {
    display: flex;
    justify-content: center;
    font-size: 1.2rem;
    padding-top: 5%;
    color: #000;            /* High-tech: black text */
}

/* 3D karosel - početak */

.carousel-wrapper {
    position: relative; /* Isolate the carousel */
    overflow: hidden;   /* Prevent overflow */
    padding-top: 4.8rem;
    padding-bottom: 6.25rem;
    color: #000;            /* Ensure any text is black */
}

#drag-container, #spin-container {
    position: relative;
    display: flex;
    margin: auto;
    transform-style: preserve-3d;
    transform: rotateX(-10deg);
}

#drag-container img {
    transform-style: preserve-3d; /* Enable 3D effect */
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;     /* Ensure images fit the container */
    border-radius: 10px;   /* Add rounded corners */
    /* Neutral shadow (no colored glow) */
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
    transition: box-shadow 0.3s ease-in-out; /* Smooth glow effect */
}

/* Animation for spinning */
@-webkit-keyframes spin {
    from { transform: rotateY(0deg); }
    to   { transform: rotateY(360deg); }
}
@keyframes spin {
    from { transform: rotateY(0deg); }
    to   { transform: rotateY(360deg); }
}

@-webkit-keyframes spinRevert {
    from { transform: rotateY(360deg); }
    to   { transform: rotateY(0deg); }
}
@keyframes spinRevert {
    from { transform: rotateY(360deg); }
    to   { transform: rotateY(0deg); }
}

/* 3D karosel - kraj */




/* Karosel 2 - početak */

.custom-carousel {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 450px; /* Set a height for the carousel */
    margin: 0 auto;
    overflow: hidden;
    color: #000;            /* High-tech: black text if any */
}

/* Extra Small Devices (Portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .custom-carousel {
        height: 500px; /* Set a height for the carousel */
    }
}

/* Small Devices (Landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .custom-carousel {
        height: 300px; /* Set a height for the carousel */
    }
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .custom-carousel {
        height: 900px; /* Set a height for the carousel */
    }
}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .custom-carousel {
        height: 700px; /* Set a height for the carousel */
    }
}

/* Extra Large Devices (Large desktops, 1200px and up) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .custom-carousel {
        height: 700px; /* Set a height for the carousel */
    }
}

/* XXL Devices (Extra large desktops, 1400px and up) */
@media (min-width: 1400px) {
    .custom-carousel {
        height: 700px; /* Set a height for the carousel */
    }
}

.custom-carousel .carousel-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%; /* Center content width */
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 1;
    z-index: 1;
    background-color: transparent; /* keep media clean */
}

.custom-carousel .carousel-item img,
.custom-carousel .carousel-item video {
    width: 100%;
    height: 100%; /* Ensure content fits within the carousel height */
    object-fit: contain; /* Prevent cropping */
    border-radius: 10px; /* Rounded corners */
}

/* Style for left and right items */
.custom-carousel .carousel-item.left,
.custom-carousel .carousel-item.right {
    width: 40%; /* Slightly smaller for side items */
    transform: translate(-50%, -50%) scale(0.8); /* Partially behind the center item */
    filter: blur(4px); /* Slight blur for side items */
    opacity: 0.6;
    z-index: 0; /* Lower z-index */
}

/* Left and right items positioning */
.custom-carousel .carousel-item.left  { left: 25%; }
.custom-carousel .carousel-item.right { left: 75%; }

/* Style for far-left and far-right items */
.custom-carousel .carousel-item.far-left,
.custom-carousel .carousel-item.far-right {
    width: 30%; /* Even smaller for far side items */
    transform: translate(-50%, -50%) scale(0.6); /* Further behind */
    filter: blur(6px); /* More blur for far side items */
    opacity: 0.4;
    z-index: -1;
}

/* Far-left and far-right items positioning */
.custom-carousel .carousel-item.far-left  { left: 10%; }
.custom-carousel .carousel-item.far-right { left: 90%; }

/* Navigation arrows — black & white only */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.25rem;
    color: #000;              /* was #Dea5a4 */
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    border: 1px solid #000;   /* add clear outline */
    border-radius: 8px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: #000;   /* invert on hover */
    color: #fff;              /* arrow becomes white */
}

.carousel-prev { left: 0; }
.carousel-next { right: 0; }

/* Karosel 2 - kraj */
