/* === Gallery Section Styles === */
        .gallery-section {
            /* Adjusted padding slightly now that it's the main section */
            padding: 2rem 1rem 4rem 1rem;
            min-height: 100vh; /* Ensure it takes up most of the screen height */
            display: flex;
            justify-content: center;
            align-items: center; /* Center content vertically */
        }

        .gallery-overlay {
            /* Semi-transparent background */
            background-color: rgba(255, 255, 255, 0.1); 
            backdrop-filter: blur(5px);
            border-radius: 1.5rem;
            padding: 2rem;
            width: 95%;
            max-width: 1200px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        }

        /* Carousel Structure */
        .carousel-container {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: space-between;
            max-width: 900px; /* Max size for the visible carousel */
            margin: 0 auto;
        }

        .image-wrapper {
            /* The window for the carousel */
            width: 85%;
            aspect-ratio: 16 / 9; /* Define an aspect ratio for the wrapper */
            overflow: hidden;
            border-radius: 1rem;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            display: flex;
            transition: transform 0.5s ease-in-out;
            position: relative;
        }
        
        /* The images inside the carousel */
        .carousel-img {
            min-width: 100%; /* Important: each image takes full wrapper width */
            height: 100%;
            display: block;
            
            /* CRITICAL: Maintain Aspect Ratio */
            object-fit: contain; 
            background-color: #27272a; /* Dark background for the frame */
            transition: opacity 0.5s ease-in-out;
            
            /* Images are positioned absolutely within the wrapper for smooth transitions */
            position: absolute;
            top: 0;
            left: 0;
            opacity: 0; /* Start hidden */
            transform: scale(0.95); /* Slight scale animation */
        }
        
        .carousel-img.active {
            opacity: 1; /* Only the active image is visible */
            transform: scale(1);
        }

        /* Navigation Buttons */
        .carousel-btn {
            background-color: var(--primary-color);
            color: var(--text-light);
            border: none;
            padding: 0.75rem 1rem;
            border-radius: 9999px; /* Fully rounded */
            cursor: pointer;
            font-size: 1rem;
            font-weight: 600;
            transition: background-color 0.3s, transform 0.1s;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
            z-index: 10;
            /* Added display flex and center to handle the new icon type */
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .carousel-btn:hover {
            background-color: #059669; /* Slightly darker teal */
            transform: translateY(-2px);
        }
        .carousel-btn:active {
            transform: translateY(0);
        }

        /* Responsive adjustments */
        @media (max-width: 640px) {
            .carousel-btn { padding: 0.5rem 0.75rem; font-size: 0.875rem; }
            .carousel-container { flex-direction: row; }
        }