        .elements-container {
            display: grid;
            /* Or flexbox, depending on your layout */
            grid-template-columns: repeat(5, 1fr);
            /* Example: 5 columns */
            gap: 20px;
            position: relative;
            /* Important for positioning the popup relative to this container */
            padding: 20px;
        }

        .element {
            width: 200px;
            /* Example size */
            height: 150px;
            /* Example size */
            background-color: #f0f0f0;
            border: 1px solid #ccc;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            box-sizing: border-box;
            /* Include padding and border in the element's total width and height */
        }

        #hoverPopup {
            position: absolute;
            /* Position relative to .elements-container */
            background-color: white;
            border: 2px solid #333;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            z-index: 1000;
            /* Ensure it's above other content */
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
            box-sizing: border-box;
            display: flex;
            /* To easily center carousel */
            justify-content: center;
            align-items: center;
            overflow: hidden;
            /* Hide overflow from carousel */
        }

        .popup-visible {
            opacity: 1 !important;
            visibility: visible !important;
        }

        .carousel-container {
            width: 100%;
            height: 100%;
            position: relative;
            overflow: hidden;
            /* Hide overflowing slides */
        }

        .carousel-track {
            display: flex;
            width: 100%;
            height: 100%;
            transition: transform 0.5s ease;
        }

        .carousel-slide {
            min-width: 100%;
            /* Each slide takes full width of the container */
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .carousel-slide img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            /* Or 'cover' depending on desired image behavior */
        }

        .carousel-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background-color: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            padding: 10px;
            cursor: pointer;
            z-index: 10;
        }

        .carousel-nav.prev {
            left: 10px;
        }

        .carousel-nav.next {
            right: 10px;
        }

        .popup-close {
            position: absolute;
            top: 5px;
            right: 5px;
            background: none;
            border: none;
            font-size: 1.2em;
            cursor: pointer;
            color: #333;
            z-index: 1001;
        }

        .close-icon{
            height: 20px;
            width: 20px;
        }