/*
* @Author: Lalit
* @Date:   2025-12-30 18:27:58
* @Last Modified by:   Lalit
* @Last Modified time: 2025-12-31 13:08:19
*/


       .slider-container {
            max-width: 1245px;
            margin: 0 auto;
            position: relative;
            min-height: 320px;
            margin-top: 1.5em;
        }

        .loader-wrapper {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255,255,255,0.9);
            z-index: 100;
        }

        .loader-wrapper.hidden {
            display: none;
        }

        .loader {
            width: 60px;
            height: 60px;
            border: 5px solid #f3f3f3;
            border-top: 5px solid #2563eb;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .slider-wrapper {
            position: relative;
            /*padding: 0 60px;
            opacity: 0;*/
            transition: opacity 0.3s ease;
        }

        .slider-wrapper.loaded {
            opacity: 1;
        }

        .slider-track {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
        }

        .media-item {
            position: relative;
            cursor: pointer;
            overflow: hidden;
            border-radius: 20px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
            aspect-ratio: 4/4;
        }

        .media-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 20px rgba(0,0,0,0.2);
        }

        .media-item img,
        .media-item video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .media-item:hover img,
        .media-item:hover video {
            transform: scale(1.1);
        }

        .play-overlay {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(0,0,0,0.3);
            transition: background 0.3s ease;
        }

        .media-item:hover .play-overlay {
            background: rgba(0,0,0,0.4);
        }

        .play-button {
            width: 60px;
            height: 60px;
            background: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.3s ease;
        }

        .media-item:hover .play-button {
            transform: scale(1.1);
        }

        .play-icon {
            width: 0;
            height: 0;
            border-left: 20px solid #333;
            border-top: 12px solid transparent;
            border-bottom: 12px solid transparent;
            margin-left: 5px;
        }

        .nav-button {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 35px;
            height: 35px;
            background: white;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
            z-index: 10;
        }

        .nav-button:hover {
            background: #f0f0f0;
            transform: translateY(-50%) scale(1.1);
        }

        .nav-button.prev {
            left: 0;
        }

        .nav-button.next {
            right: 0;
        }

        .arrow {
            width: 12px;
            height: 12px;
            border-top: 3px solid #333;
            border-right: 3px solid #333;
        }

        .arrow.left {
            transform: rotate(-135deg);
            margin-left: 5px;
        }

        .arrow.right {
            transform: rotate(45deg);
            margin-right: 5px;
        }

        .dots-container {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-top: 30px;
        }

        .dot {
            width: 12px;
            height: 12px;
            background: #ccc;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .dot.active {
            background: #2563eb;
            width: 32px;
            border-radius: 6px;
        }

        .popup-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.9);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .popup-overlay.active {
            display: flex;
        }

        .popup-content {
            max-width: 90%;
            max-height: 90vh;
            position: relative;
        }

        .popup-content img,
        .popup-content video {
            max-width: 100%;
            max-height: 90vh;
            border-radius: 10px;
        }

        .close-button {
            position: absolute;
            top: 20px;
            right: 20px;
            width: 40px;
            height: 40px;
            background: white;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1001;
            transition: background 0.3s ease;
        }

        .close-button:hover {
            background: #f0f0f0;
        }

        .close-icon {
            font-size: 24px;
            color: #333;
            line-height: 1;
        }

        .no-gallery {
            text-align: center;
            padding: 60px 20px;
            color: #666;
            font-size: 18px;
        }

        @media (max-width: 1024px) {
            .slider-track {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (max-width: 768px) {
            .slider-track {
                grid-template-columns: repeat(2, 1fr);
                gap: 15px;
            }
            
            .slider-wrapper {
                padding: 0 50px;
            }
        }

        @media (max-width: 480px) {
            .slider-track {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }
            
            .slider-wrapper {
                padding: 0 40px;
            }
        }

        @media only screen and (max-width: 767px) and (min-width:300px){
            .slider-container {min-height: 160px;}
            .media-item{aspect-ratio: 3/4;}
        }