/* 2025 Mobile-First Photography Portfolio */

/* CSS Custom Properties */
:root {
    /* Colors - Light Theme */
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f5f5f7;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --accent-primary: #007aff;
    --accent-secondary: #5856d6;
    --accent-gradient: linear-gradient(135deg, #007aff 0%, #5856d6 100%);
    --border-color: rgba(0, 0, 0, 0.08);
    --shadow-light: 0 2px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 16px 60px rgba(0, 0, 0, 0.15);
    
    /* Glass Morphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Typography */
    --font-primary: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-secondary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Sizes */
    --max-width: 1400px;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    
    /* Animations */
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: #0a0a0f;
    --bg-secondary: #151519;
    --bg-tertiary: #1f1f23;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-tertiary: #666666;
    --accent-primary: #0a84ff;
    --accent-secondary: #5e5ce6;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(21, 21, 25, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    z-index: 1001;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
    box-shadow: var(--glass-shadow);
}

.theme-toggle:hover {
    transform: scale(1.05);
}

.theme-toggle-track {
    width: 50px;
    height: 24px;
    background: var(--accent-gradient);
    border-radius: 12px;
    position: relative;
}

.theme-toggle-thumb {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s var(--ease-elastic);
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] .theme-toggle-thumb {
    transform: translateX(26px);
}

.theme-toggle svg {
    width: 12px;
    height: 12px;
    color: var(--accent-primary);
}

.sun-icon {
    display: block;
}
.moon-icon {
    display: none;
}

[data-theme="dark"] .sun-icon {
    display: none;
}
[data-theme="dark"] .moon-icon {
    display: block;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: var(--spacing-sm);
    transition: all 0.3s var(--ease-smooth);
}

.nav.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.nav-brand {
    display: flex;
    align-items: center;
}

.brand-text {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: none;
    gap: var(--spacing-lg);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s var(--ease-smooth);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}


/* Glass Card Component */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--glass-shadow);
    transition: all 0.3s var(--ease-smooth);
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

/* Hero Section - Mobile First Bento Grid */
.hero {
    min-height: 100vh;
    padding: calc(60px + var(--spacing-lg)) var(--spacing-sm) var(--spacing-lg);
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    gap: var(--spacing-md);
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    grid-template-areas:
        "main"
        "featured"
        "quote";
}

.hero-main {
    grid-area: main;
    padding: var(--spacing-xl);
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 500px;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
}

.title-line {
    display: block;
    animation: slideInUp 0.8s var(--ease-smooth) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.title-line:nth-child(1) { animation-delay: 0.1s; }
.title-line:nth-child(2) { animation-delay: 0.2s; }
.title-line:nth-child(3) { animation-delay: 0.3s; }

.title-line.accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    animation: fadeIn 0.8s var(--ease-smooth) 0.5s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
    box-shadow: var(--shadow-medium);
    animation: fadeIn 0.8s var(--ease-smooth) 0.7s forwards;
    opacity: 0;
}

.cta-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-heavy);
}

.cta-button svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s var(--ease-smooth);
}

.cta-button:hover svg {
    transform: translate(2px, -2px);
}


.hero-featured {
    grid-area: featured;
    padding: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    max-height: 400px;
}

/* Enhanced featured image styles - responsive to image orientation */
.hero-featured img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    border-radius: inherit;
}

.hero-featured:hover img {
    transform: scale(1.02);
}

/* Ensure proper sizing for mobile */
@media (max-width: 768px) {
    .hero-featured {
        min-height: 250px;
        max-height: 350px;
    }
}

.featured-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
}

.pulse-loader {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-gradient);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
}

.hero-quote {
    grid-area: quote;
    padding: var(--spacing-lg);
    text-align: center;
}

.hero-quote blockquote {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-secondary);
    position: relative;
}

.hero-quote blockquote::before,
.hero-quote blockquote::after {
    content: '"';
    font-size: 2rem;
    color: var(--accent-primary);
    position: absolute;
    top: -10px;
}

.hero-quote blockquote::before {
    left: -20px;
}

.hero-quote blockquote::after {
    right: -20px;
}

/* Gallery Section */
.gallery-section {
    padding: var(--spacing-2xl) var(--spacing-sm);
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    position: relative;
    display: inline-block;
}

.title-decoration {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 20px;
    height: 20px;
    background: var(--accent-gradient);
    border-radius: 50%;
    opacity: 0.3;
}


/* Masonry Gallery */
.gallery-masonry {
    columns: 1;
    column-gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.photo-card {
    display: inline-block;
    width: 100%;
    margin-bottom: var(--spacing-md);
    break-inside: avoid;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
    background: var(--bg-secondary);
    box-shadow: var(--shadow-light);
}

.photo-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-heavy);
}

.photo-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s var(--ease-smooth);
}

.photo-card:hover img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: var(--spacing-md);
    transform: translateY(100%);
    transition: transform 0.3s var(--ease-smooth);
}

.photo-card:hover .photo-overlay {
    transform: translateY(0);
}

.photo-title {
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.photo-description {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Loading States */
.loading-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.skeleton-card {
    height: 250px;
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--border-radius);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Gallery Pagination */
.gallery-pagination-container {
    text-align: center;
    margin-top: var(--spacing-xl);
}

.gallery-pagination .pagination {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: var(--spacing-sm);
}

.gallery-pagination .pagination-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    min-width: 40px;
    background: transparent;
    border: none;
    border-radius: 25px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-pagination .pagination-btn:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-1px);
}

.gallery-pagination .pagination-btn.active {
    background: var(--accent-primary);
    color: white;
}

.gallery-pagination .pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.gallery-pagination .pagination-ellipsis {
    padding: var(--spacing-sm);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive pagination */
@media (max-width: 768px) {
    .gallery-pagination .pagination {
        gap: 0.25rem;
        padding: var(--spacing-xs);
    }
    
    .gallery-pagination .pagination-btn {
        padding: var(--spacing-xs) var(--spacing-sm);
        min-width: 36px;
        font-size: 0.8rem;
    }
    
    /* Ensure about section displays properly on mobile */
    .about-container {
        gap: var(--spacing-lg);
    }
    
    .about-image-container {
        min-height: 250px; /* Larger minimum height on mobile */
        margin: 0 auto;
        max-width: 300px; /* Reasonable max width */
    }
    
    .about-content,
    .about-visual {
        padding: var(--spacing-lg);
    }
}

/* About Section */
.about-section {
    padding: var(--spacing-2xl) var(--spacing-sm);
    background: var(--bg-primary);
}

.about-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

.about-content {
    padding: var(--spacing-xl);
}

.about-text .section-title {
    text-align: left;
    margin-bottom: var(--spacing-lg);
}

.lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.about-text p {
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.about-skills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-lg);
}

.skill-tag {
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--accent-gradient);
    color: white;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
}

.about-visual {
    padding: var(--spacing-xl);
    text-align: center;
}

.about-image-container {
    aspect-ratio: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--bg-tertiary);
    position: relative;
    min-height: 200px; /* Ensure minimum height on mobile */
}

.about-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
}

.about-placeholder svg {
    width: 60px;
    height: 60px;
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
}

/* Photo Map Section */
.map-section {
    padding: var(--spacing-2xl) var(--spacing-sm);
    background: var(--bg-primary);
}

.map-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.map-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.map-filters {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.filter-btn {
    padding: var(--spacing-xs) var(--spacing-md);
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.map-stats {
    display: flex;
    gap: var(--spacing-md);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.stat-item strong {
    color: var(--text-primary);
}

.map-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.photo-map {
    height: 600px;
    width: 100%;
    position: relative;
}

.map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1000;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto var(--spacing-sm);
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.map-photo-preview {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 300px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    z-index: 1000;
    overflow: hidden;
}

.preview-close {
    position: absolute;
    top: var(--spacing-xs);
    right: var(--spacing-xs);
    width: 30px;
    height: 30px;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.preview-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.preview-info {
    padding: var(--spacing-md);
}

.preview-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.preview-location {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-xs);
}

.preview-date {
    color: var(--text-tertiary);
    font-size: 0.8rem;
    margin-bottom: var(--spacing-md);
}

.preview-view-full {
    width: 100%;
    padding: var(--spacing-sm);
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.preview-view-full:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

/* Custom map marker styles */
.custom-marker {
    background: var(--accent-primary);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-marker:hover {
    transform: scale(1.2);
    z-index: 1000;
}

.marker-cluster {
    background: var(--accent-gradient);
    border: 3px solid white;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    text-align: center;
    font-size: 0.875rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .map-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .photo-map {
        height: 400px;
    }
    
    .map-photo-preview {
        position: static;
        width: 100%;
        margin-top: var(--spacing-md);
    }
    
    .filter-btn {
        font-size: 0.8rem;
        padding: var(--spacing-xs) var(--spacing-sm);
    }
}

/* Contact Section */
.contact-section {
    padding: var(--spacing-2xl) var(--spacing-sm);
    background: var(--bg-secondary);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-content {
    padding: var(--spacing-xl);
    text-align: center;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-method {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s var(--ease-smooth);
    border: 1px solid var(--border-color);
}

.contact-method:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.contact-method.primary {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
}

.method-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
}

.method-icon svg {
    width: 24px;
    height: 24px;
}

.method-content {
    flex: 1;
    text-align: left;
}

.method-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 2px;
}

.method-value {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Modern Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm);
}

.lightbox.active {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
}

.lightbox-container {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    z-index: 10;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-smooth);
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.lightbox-close svg {
    width: 20px;
    height: 20px;
}

.lightbox-content {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image-container {
    position: relative;
    width: 95vw;
    height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.image-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

.lightbox-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: var(--spacing-lg);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 10;
}

.lightbox-info.visible {
    transform: translateY(0);
}

.info-toggle {
    position: absolute;
    top: -50px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 11;
}

.info-toggle:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.info-toggle svg {
    width: 20px;
    height: 20px;
}

/* Remove the hover behavior - now only controlled by toggle */
/* .lightbox-container:hover .lightbox-info {
    transform: translateY(0);
} */

.lightbox-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.lightbox-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.lightbox-meta {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.meta-row {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.exif-data {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xs);
    font-size: 0.85rem;
    opacity: 0.8;
}

.exif-camera,
.exif-lens,
.exif-settings,
.exif-location {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.exif-camera::before { content: "📷 "; }
.exif-lens::before { content: "🔍 "; }
.exif-settings::before { content: "⚙️ "; }
.exif-location::before { content: "🌍 "; }

@media (max-width: 768px) {
    .exif-data {
        grid-template-columns: 1fr;
        gap: var(--spacing-xs);
    }
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 var(--spacing-sm);
    pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-smooth);
    pointer-events: all;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.lightbox-prev svg,
.lightbox-next svg {
    width: 20px;
    height: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Responsive Design - Tablet */
@media (min-width: 768px) {
    .nav {
        padding: var(--spacing-md) var(--spacing-lg);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-menu {
        display: flex;
    }
    
    .hero-grid {
        grid-template-columns: 2fr 1fr;
        grid-template-rows: auto auto;
        grid-template-areas:
            "main main"
            "featured quote";
    }
    
    .gallery-masonry {
        columns: 2;
    }
    
    .about-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-section .contact-methods {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        flex-wrap: wrap;
    }
    
    .contact-section .contact-method {
        display: inline-flex !important;
        align-items: center;
        gap: 0.5rem;
        padding: 0;
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        font-size: 1rem;
        color: var(--text-primary);
        text-decoration: none;
        transition: all 0.3s ease;
    }
    
    .contact-section .contact-method:hover {
        color: var(--primary-color, var(--accent-primary));
        transform: none;
        box-shadow: none;
    }
    
    .contact-section .contact-method .method-icon {
        width: 20px;
        height: 20px;
        background: none;
        border-radius: 0;
        color: var(--primary-color, var(--accent-primary));
        transition: all 0.3s ease;
    }
    
    .contact-section .contact-method .method-icon svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }
    
    .contact-section .contact-method:hover .method-icon {
        color: var(--primary-dark, var(--accent-secondary));
    }
    
    .contact-section .contact-method .method-content {
        display: contents;
    }
    
    .contact-section .contact-method .method-label {
        display: none;
    }
    
    .contact-section .contact-method .method-value {
        font-size: 1rem;
        font-weight: 500;
    }
    
    /* Add divider between contact methods */
    .contact-section .contact-method:not(:last-child)::after {
        content: "|";
        margin-left: 2rem;
        color: var(--text-muted);
        font-weight: 300;
    }
    
    .loading-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive Design - Desktop */
@media (min-width: 1200px) {
    .hero-grid {
        grid-template-columns: 2fr 1fr 1fr;
        grid-template-rows: auto auto;
        grid-template-areas:
            "main main main"
            "featured quote quote";
    }
    
    .gallery-masonry {
        columns: 3;
    }
    
    .loading-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1600px) {
    .gallery-masonry {
        columns: 4;
    }
    
    .loading-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Print Styles */
@media print {
    .theme-toggle,
    .lightbox,
    .cta-button {
        display: none !important;
    }
    
    .glass-card {
        background: white;
        border: 1px solid #ddd;
    }
}