.carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: auto;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}


.carousel-container {
    position: relative;
    width: 100%;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-image {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    opacity: 0;
    transition: transform 1.6s ease-in-out;
    max-width: 100%;
    max-height: 550px;
    object-fit: contain;
    border-radius: 5px;
    pointer-events: none;
    z-index: 0;
}

.carousel-image.active {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    pointer-events: auto;
    z-index: 1;
}

#carousel-caption {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #333;
    text-align: center;
    white-space: pre-line;
    transform: scale(0.2);
    opacity: 0;
    transition: transform 0.8s ease-in-out;
}

#carousel-caption.visible {
    opacity: 1;
    transform: scale(1);
}

.carousel button,
.carousel #prevBtn,
.carousel #nextBtn {
    position: absolute;
    background: transparent;
    border: none;
    color: black;
    font-size: 2rem;
    width: 30px;
    height: 40px;
    cursor: pointer;
    top: 50%;
    transform: translateY(-50%);
    user-select: none;
    z-index: 10;
}

#prevBtn {
    left: -40px;
}

#nextBtn {
    right: -40px;
}

.img-magnifier-glass {
    position: absolute;
    border: 2px solid #888;
    border-radius: 50%;
    cursor: none;
    /* shadow for better visibility */
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    /* make sure it's above the image */
    z-index: 20;
    pointer-events: none;
    /* smooth transition for appearance */
    transition: opacity 0.2s;
    opacity: 0.95;
    background-color: #fff;
    background-clip: padding-box;
    overflow: hidden;
}