/* ========================================
 MASON - LIFE DRAWINGS
 Minimal portfolio inspired by clean gallery aesthetics
 ======================================== */

:root {
 --bg: #fafafa;
 --text: #1a1a1a;
 --text-light: #666;
 --border: #e0e0e0;
 --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* {
 margin: 0;
 padding: 0;
 box-sizing: border-box;
}

body {
 font-family: var(--font);
 background: var(--bg);
 color: var(--text);
 line-height: 1.6;
 -webkit-font-smoothing: antialiased;
}

/* ========================================
 HEADER
 ======================================== */
header {
 text-align: center;
 padding: 4rem 2rem 3rem;
 max-width: 1200px;
 margin: 0 auto;
}

nav {
 margin-bottom: 3rem;
}

.nav-link {
 color: var(--text-light);
 text-decoration: none;
 font-size: 0.875rem;
 letter-spacing: 0.15em;
 text-transform: uppercase;
 margin: 0 1.5rem;
 transition: color 0.3s;
}

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

.site-title {
 font-size: 1.75rem;
 font-weight: 300;
 letter-spacing: 0.1em;
 text-transform: uppercase;
 margin-bottom: 0.5rem;
}

.subtitle {
 color: var(--text-light);
 font-size: 0.9375rem;
 font-weight: 300;
}

/* ========================================
 GALLERY
 ======================================== */
.gallery {
 max-width: 1200px;
 margin: 0 auto;
 padding: 0 2rem 4rem;
}

.artwork-row {
 display: flex;
 gap: 1.5rem;
 margin-bottom: 1.5rem;
 justify-content: center;
 flex-wrap: wrap;
}

.artwork {
 position: relative;
 background: #e8e8e8;
 overflow: hidden;
 cursor: pointer;
}

.artwork.portrait {
 flex: 0 1 320px;
 height: 420px;
}

.artwork.landscape {
 flex: 0 1 800px;
 height: 450px;
}

.artwork img {
 width: 100%;
 height: 100%;
 object-fit: cover;
 display: block;
 transition: transform 0.5s ease;
}

.artwork:hover img {
 transform: scale(1.03);
}

/* Placeholder styling before images are added */
.artwork img {
 background: linear-gradient(135deg, #e0e0e0 0%, #f0f0f0 50%, #e0e0e0 100%);
 min-height: 100%;
}

figcaption {
 margin-top: 0.75rem;
 text-align: center;
}

.title {
 font-size: 0.8125rem;
 color: var(--text-light);
 letter-spacing: 0.05em;
}

.year {
 font-size: 0.8125rem;
 color: #999;
 margin-left: 0.5rem;
}

/* ========================================
 FOOTER
 ======================================== */
footer {
 text-align: center;
 padding: 4rem 2rem;
 border-top: 1px solid var(--border);
}

.copyright {
 font-size: 0.75rem;
 color: #999;
 letter-spacing: 0.05em;
}

/* ========================================
 LIGHTBOX
 ======================================== */
.lightbox {
 display: none;
 position: fixed;
 inset: 0;
 background: rgba(250, 250, 250, 0.98);
 z-index: 1000;
 align-items: center;
 justify-content: center;
}

.lightbox-img {
 max-width: 90vw;
 max-height: 90vh;
 object-fit: contain;
}

.close {
 position: absolute;
 top: 2rem;
 right: 2rem;
 font-size: 2rem;
 color: var(--text-light);
 cursor: pointer;
 transition: color 0.3s;
}

.close:hover {
 color: var(--text);
}

/* ========================================
 RESPONSIVE
 ======================================== */
@media (max-width: 900px) {
 .artwork.landscape {
 flex: 0 1 100%;
 height: 350px;
 }
 
 .artwork.portrait {
 flex: 0 1 45%;
 height: 350px;
 }
}

@media (max-width: 600px) {
 .nav-link {
 margin: 0 1rem;
 font-size: 0.75rem;
 }
 
 .site-title {
 font-size: 1.5rem;
 }
 
 .artwork.portrait,
 .artwork.landscape {
 flex: 0 1 100%;
 height: 400px;
 }
}
