/* Photo Site Styles - Professional Photography Portfolio */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500&family=Montserrat:wght@300;400;500&display=swap');

:root {
    --bg-color: #fafafa;
    --text-color: #1a1a1a;
    --accent-color: #2a2a2a;
    --secondary-bg: #f0f0f0;
    --muted: #888;
    --gap: 20px;
    --border-color: #e0e0e0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    line-height: 1.6;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 50px 40px 40px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    background: white;
}

header h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin: 0;
    color: var(--accent-color);
    position: relative;
    z-index: 1;
}

header h1 a {
    color: inherit;
    text-decoration: none;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 25px;
}

.header-logos {
    position: absolute;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .logo {
    display: inline-block;
}

header .logo img {
    height: 120px;
    width: auto;
}

.ppa-logo img {
    height: 80px;
    width: auto;
}

header nav {
    display: flex;
    justify-content: center;
    gap: 40px;
}

header nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    position: relative;
}

header nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text-color);
    transition: width 0.3s ease;
}

header nav a:hover {
    opacity: 1;
}

header nav a:hover::after {
    width: 100%;
}

/* Gallery Grid - Individual Gallery Pages */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: var(--secondary-bg);
    cursor: pointer;
}

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

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.9);
}

/* Gallery Preview - Homepage */
.gallery-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    padding: 80px 60px;
    max-width: 1400px;
    margin: 0 auto;
    background: white;
}

.gallery-preview-item {
    text-decoration: none;
    color: var(--text-color);
    display: block;
    text-align: center;
}

.gallery-preview-item img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    margin-bottom: 20px;
    transition: opacity 0.4s ease;
}

.gallery-preview-item:hover img {
    opacity: 1;
}

/* Gallery Slideshow */
.gallery-slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    margin-bottom: 20px;
}

.gallery-slideshow img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
    border: 1px solid #ccc;
}

.gallery-slideshow img.active {
    opacity: 1;
}

.gallery-preview-item:hover .gallery-slideshow img.active {
    opacity: 0.85;
}

.gallery-preview-item h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
    color: var(--muted);
    transition: color 0.3s ease;
    display: inline-block;
    position: relative;
}

.gallery-preview-item h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text-color);
    transition: width 0.3s ease;
}

.gallery-preview-item:hover h3 {
    color: var(--text-color);
}

.gallery-preview-item:hover h3::after {
    width: 100%;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 85vw;
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 44px;
    color: var(--muted);
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease;
}

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

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 36px;
    color: #333;
    cursor: pointer;
    user-select: none;
    padding: 20px;
    transition: color 0.3s ease;
    text-shadow: 
        -1px -1px 0 #ccc,
        1px -1px 0 #ccc,
        -1px 1px 0 #ccc,
        1px 1px 0 #ccc,
        0 0 8px rgba(200,200,200,0.8);
}

.lightbox-nav:hover {
    color: #000;
}

.lightbox-nav.prev {
    left: 30px;
}

.lightbox-nav.next {
    right: 30px;
}

/* Footer */
footer {
    text-align: center;
    padding: 60px 20px;
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    background: white;
    border-top: 1px solid var(--border-color);
}

footer a {
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

footer a:hover {
    border-color: var(--muted);
}

/* Page Content - About & Contact */
.page-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 80px 40px;
    background: white;
}

.page-content h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 300;
    font-size: 1.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 50px;
    color: var(--accent-color);
}

.page-content p {
    font-weight: 300;
    line-height: 2;
    margin-bottom: 25px;
    color: #444;
}

.page-content a {
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.page-content a:hover {
    border-color: var(--text-color);
}

/* Gallery Title */
.gallery-title {
    text-align: center;
    padding: 50px 20px 30px;
    background: white;
}

.gallery-title h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 300;
    font-size: 1.6rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-color);
}

/* Responsive */
@media (max-width: 1024px) {
    .header-logos {
        position: absolute;
        left: 0;
        right: 0;
    }
    
    header h1 {
        font-size: 1.6rem;
        letter-spacing: 4px;
        padding: 0 100px;
    }
    
    header .logo img {
        height: 90px;
    }
    
    .ppa-logo img {
        height: 65px;
    }
    
    .gallery-preview {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        padding: 60px 40px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header {
        padding: 20px 20px 15px;
    }
    
    .header-top {
        margin-bottom: 15px;
    }
    
    header h1 {
        font-size: 1.2rem;
        letter-spacing: 2px;
        padding: 0 70px;
        font-weight: 400;
        color: #1a1a1a;
    }
    
    header .logo img {
        height: 70px;
    }
    
    .ppa-logo img {
        height: 55px;
    }

    header nav {
        flex-wrap: wrap;
        gap: 15px;
    }

    header nav a {
        font-size: 0.65rem;
    }
    
    .lightbox-nav {
        font-size: 24px;
        padding: 15px;
    }
    
    .lightbox-close {
        font-size: 36px;
        top: 20px;
        right: 25px;
    }

    .gallery-preview {
        grid-template-columns: 1fr;
        gap: 50px;
        padding: 50px 30px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .page-content {
        padding: 50px 25px;
    }
    
    .page-content h2 {
        font-size: 1.4rem;
    }
    
    footer {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1rem;
        letter-spacing: 1px;
        padding: 0 60px;
        font-weight: 400;
        color: #1a1a1a;
    }
    
    header .logo img {
        height: 60px;
    }
    
    .ppa-logo img {
        height: 45px;
    }
}