/* --- GALLERY STYLE --- */
body {
    overflow: hidden; 
    --bg-color: #1a1a1a; 
    background-color: var(--bg-color);
    color: #f5f5f5;
}

.gallery-wrapper {
    width: 100vw;
    height: 100vh;
    overflow-x: scroll;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch; 
    display: flex;
    align-items: center;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gallery-wrapper::-webkit-scrollbar {
    display: none;
}

.gallery-container {
    display: flex;
    gap: 10vw;
    padding: 0 50vw 0 10vw; 
    align-items: center;
    height: 100%;
}

.gallery-item {
    position: relative;
    height: 40vh; 
    aspect-ratio: 17 / 6;
    flex-shrink: 0;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.6s ease;
    opacity: 0.5;
    cursor: none;
}

.gallery-item:hover {
    opacity: 1;
    transform: scale(1.1); 
    z-index: 10;
}

.gallery-item.centered {
    opacity: 1;
    transform: scale(1.05);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.gallery-caption {
    position: absolute;
    top: 105%;
    left: 0;
    font-size: 0.9rem;
    color: #888;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
    white-space: normal;
    max-width: 100%;
}

.gallery-item:hover .gallery-caption,
.gallery-item.centered .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

/* --- NAVIGATION OVERRIDE --- */
.main-nav a {
    color: #888; 
}
.main-nav a:hover, .main-nav a.active {
    color: var(--active-color) !important;
}

.audio-controls button {
    color: #888;
}
.audio-controls button:hover {
    color: var(--active-color);
}

#custom-cursor {
    border-color: #f5f5f5;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .gallery-wrapper {
        overflow-x: hidden;
        overflow-y: scroll;
        flex-direction: column;
        display: block;
    }

    .gallery-container {
        flex-direction: column;
        width: 100%;
        height: auto;
        padding: 120px 20px 100px 20px;
        gap: 80px;
    }

    .gallery-item {
        width: 100%;
        height: auto;
        opacity: 1; 
    }
    
    .gallery-item:hover {
        transform: none;
    }
}
