/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --anthracite: #444;
    --anthracite-dark: #383838;
    --anthracite-light: #505050;
    --dull-orange: #c45e1a;
    --dull-orange-hover: #d96f2a;
    --text-light: #DCDCDC;
    --text-muted: #aaa;
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;
    --font-buttons: 'Times New Roman', Times, Georgia, serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--anthracite);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: var(--anthracite-dark);
    border-bottom: 1px solid rgba(220, 220, 220, 0.08);
    padding: var(--spacing-sm) 0;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-links a {
    font-family: var(--font-buttons);
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid transparent;
}

.nav-links a:hover {
    color: var(--text-light);
    border-color: var(--dull-orange);
    background: rgba(196, 94, 26, 0.08);
}

/* Main content */
.main {
    padding-top: 120px;
    min-height: 100vh;
    position: relative;
}

/* Hero section — compact, left-aligned */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-md) var(--spacing-sm);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: -0.02em;
}

/* Gallery — magazine / editorial layout */
.gallery {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-md) var(--spacing-xl);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(5, 280px);
    gap: var(--spacing-sm);
}

.gallery-item {
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: var(--anthracite-dark);
}

.gallery-item:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.gallery-item:nth-child(2) {
    grid-column: 3;
    grid-row: 1;
}

.gallery-item:nth-child(3) {
    grid-column: 3;
    grid-row: 2;
}

.gallery-item:nth-child(4) {
    grid-column: 2 / 4;
    grid-row: 3 / 5;
}

.gallery-item:nth-child(5) {
    grid-column: 1;
    grid-row: 3;
}

.gallery-item:nth-child(6) {
    grid-column: 1;
    grid-row: 4;
}

.gallery-item:nth-child(7) {
    grid-column: 2;
    grid-row: 5;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 0.75rem 0.4rem;
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(220, 220, 220, 0.5);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.45));
}

/* Footer */
.footer {
    background: var(--anthracite-dark);
    border-top: 1px solid rgba(220, 220, 220, 0.08);
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-xl);
    text-align: center;
    color: var(--text-muted);
    font-weight: 500;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    font-family: var(--font-buttons);
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid transparent;
}

.footer-links a:hover {
    color: var(--text-light);
    border-color: var(--dull-orange);
    background: rgba(196, 94, 26, 0.08);
}

/* About section */
.about {
    max-width: 800px;
    margin: var(--spacing-xl) auto;
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
}

.about-content {
    background: var(--anthracite-light);
    padding: var(--spacing-xl);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(220, 220, 220, 0.06);
}

.about-content h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    color: var(--text-muted);
    font-weight: 400;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-content .quote-highlight {
    color: var(--dull-orange);
    font-style: italic;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2rem, 6vw, 3.5rem);
    }
    
    .gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: var(--spacing-xs);
    }
    
    .gallery-item:nth-child(1),
    .gallery-item:nth-child(2),
    .gallery-item:nth-child(3),
    .gallery-item:nth-child(4),
    .gallery-item:nth-child(5),
    .gallery-item:nth-child(6),
    .gallery-item:nth-child(7) {
        grid-column: 1;
        grid-row: auto;
    }

    .gallery-item:nth-child(1),
    .gallery-item:nth-child(4) {
        min-height: 400px;
    }

    .gallery-item:nth-child(2),
    .gallery-item:nth-child(3),
    .gallery-item:nth-child(5),
    .gallery-item:nth-child(6),
    .gallery-item:nth-child(7) {
        min-height: 250px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .about-content {
        padding: var(--spacing-lg);
    }
    
    .about-content h2 {
        font-size: 2rem;
    }
    
    .about-content p {
        font-size: 1rem;
    }
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

#modalImage {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-caption {
    margin-top: var(--spacing-sm);
    color: var(--text-light);
    font-family: var(--font-display);
    font-size: 1.2rem;
    text-align: center;
    max-width: 600px;
    line-height: 1.5;
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .modal-caption {
        font-size: 1rem;
        margin-top: var(--spacing-xs);
    }
}

/* Sidebar styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 300px;
    background: var(--anthracite-dark);
    z-index: 3000;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(220, 220, 220, 0.08);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(3px);
}

.sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
}

.sidebar-header {
    padding: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-header h2 {
    font-family: var(--font-display);
    color: var(--text-light);
    font-size: 1.5rem;
}

.close-sidebar {
    font-family: var(--font-buttons);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.2rem;
    transition: color 0.3s ease;
}

.close-sidebar:hover {
    color: var(--dull-orange);
}

.sidebar-content {
    padding: var(--spacing-md);
    flex-grow: 1;
    overflow-y: auto;
    color: var(--text-muted);
}

.sidebar-content p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.sidebar-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.sidebar-content li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.sidebar-footer {
    padding: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.action-btn {
    width: 100%;
    padding: 1rem;
    background: var(--anthracite-light);
    color: var(--text-light);
    border: 1px solid var(--dull-orange);
    border-radius: 4px;
    font-family: var(--font-buttons);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.action-btn:hover {
    background: var(--dull-orange);
    color: #fff;
}
