/* Darkroom Theme Override */
.darkroom-theme {
    --bg-color: #1a0a0a;
    --text-color: #f5e6d3;
    --text-muted-color: #c4a882;
    --primary-color: #cc0000;
    --primary-hover-color: #ff3333;
    --glass-bg: rgba(40, 10, 10, 0.8);
    --glass-border: rgba(204, 0, 0, 0.3);
    --card-bg: #2a0f0f;
    --card-border: #4a1a1a;
    --photo-clip-color: #999;
    --photo-clip-highlight: #ccc;
    background-color: var(--bg-color);
}

/* Photography Hero */
#photography-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a0a0a 0%, #2a0f0f 50%, #1a0a0a 100%);
}

.darkroom-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(204, 0, 0, 0.15) 0%, transparent 70%);
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.8; transform: translateX(-50%) scale(1.1); }
}

.darkroom-light {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: scanLine 3s ease-in-out infinite;
}

@keyframes scanLine {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.photography-title {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 20px rgba(204, 0, 0, 0.5);
}

.photography-subtitle {
    text-align: center;
    font-size: 1.5rem;
    color: var(--text-muted-color);
    position: relative;
    z-index: 1;
    font-style: italic;
}

/* Gallery Section */
#photography-gallery {
    padding: 4rem 0;
    min-height: 70vh;
    position: relative;
}

.clothesline-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 3rem 0;
}

.clothesline {
    position: absolute;
    top: 2rem;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-color) 5%, 
        var(--primary-color) 95%, 
        transparent 100%);
    box-shadow: 0 0 10px rgba(204, 0, 0, 0.5);
}

.photos-wrapper {
    display: flex;
    gap: 3rem;
    padding: 0 10%;
    cursor: grab;
    user-select: none;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.photos-wrapper.dragging {
    cursor: grabbing;
    transition: none;
}

.photo-item {
    flex-shrink: 0;
    width: 300px;
    position: relative;
    transform-origin: top center;
    animation: photoSway 3s ease-in-out infinite;
}

.photo-item:nth-child(odd) {
    animation-delay: 0s;
}

.photo-item:nth-child(even) {
    animation-delay: 1.5s;
}

@keyframes photoSway {
    0%, 100% { 
        transform: rotate(-2deg) translateY(0); 
    }
    50% { 
        transform: rotate(2deg) translateY(-5px); 
    }
}

.photo-clip {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    z-index: 10;
}

.photo-clip::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 90%;
    background: linear-gradient(0deg, #666 0%, var(--photo-clip-color) 50%, var(--photo-clip-highlight) 100%);
    border: 1px solid var(--photo-clip-highlight);
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.photo-frame {
    background: white;
    padding: 1rem;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.7),
        inset 0 0 0 1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.photo-frame:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 
        0 15px 40px rgba(204, 0, 0, 0.5),
        inset 0 0 0 1px rgba(204, 0, 0, 0.3);
}

.photo-frame img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    filter: sepia(0.1) contrast(1.1);
}

.photo-caption {
    margin-top: 0.75rem;
    text-align: center;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    color: #333;
}

/* Gallery Controls */
.gallery-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-scrubber {
    width: 100%;
    max-width: 600px;
    padding: 0 2rem;
}

.scrubber-track {
    position: relative;
    width: 100%;
    height: 6px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 3px;
    cursor: pointer;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.scrubber-track::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover-color));
    border-radius: 3px;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(204, 0, 0, 0.5);
}

.scrubber-handle {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover-color));
    border: 3px solid var(--glass-border);
    border-radius: 50%;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    box-shadow: 
        0 4px 12px rgba(204, 0, 0, 0.6),
        0 0 20px rgba(204, 0, 0, 0.3);
}

.scrubber-handle:hover {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 
        0 6px 16px rgba(204, 0, 0, 0.8),
        0 0 30px rgba(204, 0, 0, 0.5);
}

.scrubber-handle:active,
.scrubber-handle.dragging {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.05);
}

.gallery-nav-btn {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    color: var(--text-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.gallery-nav-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(204, 0, 0, 0.5);
}

.gallery-nav-btn:active {
    transform: scale(0.95);
}

.gallery-indicators {
    display: flex;
    gap: 0.75rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.3s;
}

.indicator:hover {
    transform: scale(1.2);
}

.indicator.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(204, 0, 0, 0.8);
}

/* Photography Info */
#photography-info {
    padding: 4rem 0;
    background: linear-gradient(180deg, #0a0505 0%, #1a0a0a 50%, #0a0505 100%);
    position: relative;
}

#photography-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.3;
}

#photography-info::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.3;
}

.darkroom-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 3rem 2rem;
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
    box-shadow: none;
}

.darkroom-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(204, 0, 0, 0.5));
}

.darkroom-card h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.darkroom-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1rem;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border: 10px solid white;
    box-shadow: 0 0 50px rgba(204, 0, 0, 0.5);
}

.lightbox-caption {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: var(--text-color);
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: var(--primary-color);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10001;
}

.lightbox-close:hover {
    background: var(--primary-hover-color);
    transform: scale(1.1) rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    color: var(--text-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.lightbox-nav:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .photography-title {
        font-size: 2.5rem;
    }
    
    .photography-subtitle {
        font-size: 1.1rem;
    }
    
    .photo-item {
        width: 250px;
    }
    
    .photo-frame img {
        height: 280px;
    }
    
    .photos-wrapper {
        gap: 2rem;
        padding: 0 5%;
    }
    
    .darkroom-card {
        padding: 2rem;
    }
    
    .lightbox-nav {
        width: 45px;
        height: 45px;
    }
    
    .lightbox-prev {
        left: 1rem;
    }
    
    .lightbox-next {
        right: 1rem;
    }
}
