/* --- 4. GALLERY SECTION (SLIDING TRACK) --- */
.gallery-section {
    background-color: var(--void-black);
    position: relative;
    overflow: hidden; /* Hides scrollbars */
}

.gallery-title {
    color: var(--text-white);
}

.gallery-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* The "Window" that masks the slides */
.slider-viewport {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    aspect-ratio: 16/9; /* Enforce Cinematic Ratio */
    background: #000;
    border: 1px solid #333;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    overflow: hidden; /* Crucial: Hides non-active slides */
}

/* The Moving Strip */
.slider-track {
    display: flex; /* Forces horizontal layout */
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); /* Smooth 'Ease-Out' slide */
}

/* Individual Slide */
.slide-item {
    min-width: 100%; /* Each slide takes full width of viewport */
    height: 100%;
    position: relative;
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Dark Overlay (Optional cinematic touch) */
.slide-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent 80%, rgba(0,0,0,0.8) 100%);
    pointer-events: none;
}

/* Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--bone-white);
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}
.slider-arrow svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }

.slider-arrow:hover {
    background: var(--spectral-green);
    color: #000;
    border-color: var(--spectral-green);
    box-shadow: 0 0 20px var(--spectral-green);
}

.prev { left: 20px; }
.next { right: 20px; }

/* Dots Indicator */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px; height: 10px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}
.dot.active {
    background: var(--spectral-green);
    box-shadow: 0 0 10px var(--spectral-green);
    transform: scale(1.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .slider-viewport { aspect-ratio: 4/3; width: 100%; border: none; }
    .slider-arrow { width: 40px; height: 40px; background: rgba(0,0,0,0.8); }
    .prev { left: 10px; }
    .next { right: 10px; }
}