/* ===== BASE STYLES ===== */
:root {
    --neutral-light: #f8f9fa;
    --neutral-dark: #495057;
    --nature-green: #5f8b6c;
    --text-color: #343a40;
    --overlay: rgba(0,0,0,0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--neutral-light);
}

.site-wrapper {
    max-width: 1600px;
    margin: 0 auto;
}

/* ===== HEADER ===== */
.project-header {
    height: 60vh;
    min-height: 400px;
    background: url('images/background.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.project-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay);
}

.header-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    max-width: 800px;
}

.project-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.project-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: white;
    opacity: 0.9;
}

/* ===== PHOTO GALLERY ===== */
.photo-gallery {
    padding: 3rem 1rem;
    max-width: 1600px;
    margin: 0 auto;
}

.gallery-title {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    font-weight: 400;
    color: var(--nature-green);
    margin-bottom: 2.5rem;
    letter-spacing: 1px;
}

.photo-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Orientation Groups - UPDATED FOR CENTERED ROWS */
.orientation-group {
    display: grid;
    gap: 1.8rem;
    padding: 0 1rem;
    justify-content: center;
}

/* Landscape Group (3 columns) */
.landscape-group {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    max-width: calc(3 * (320px + 1.8rem));
    margin: 0 auto;
}

/* Portrait Group (4 columns) */
.portrait-group {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    max-width: calc(4 * (240px + 1.8rem));
    margin: 0 auto;
}

/* Panorama Group (full width) */
.panorama-group {
    grid-template-columns: 1fr;
    max-width: 100%;
}

/* Photo Items */
.photo-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: white;
    display: flex;
    flex-direction: column;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.photo-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Aspect Ratios */
.landscape img { aspect-ratio: 4/3; }
.portrait img { aspect-ratio: 3/4; }
.panorama img { aspect-ratio: 16/7; }

/* Captions */
.photo-caption {
    padding: 1rem;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-color);
    background: white;
    margin: 0;
    line-height: 1.4;
    border-top: 1px solid rgba(0,0,0,0.1);
}

/* ===== LOCATION SECTION ===== */
.project-location {
    padding: 4rem 1rem;
    background-color: white;
    text-align: center;
}

.project-location h2 {
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    font-weight: 400;
    color: var(--nature-green);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.project-location p {
    margin-bottom: 2rem;
    color: var(--neutral-dark);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.simple-map {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    aspect-ratio: 16/9;
}

.simple-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== FOOTER ===== */
.project-footer {
    text-align: center;
    padding: 2rem;
    color: var(--neutral-dark);
    font-size: 0.9rem;
    background: white;
    margin-top: 2rem;
}

/* ===== LIGHTBOX STYLES ===== */
.lb-data .lb-caption {
    font-size: 1rem;
    line-height: 1.4;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #fff;
    padding: 15px 0;
    text-align: center;
    display: block !important;
}

.lb-data .lb-number {
    display: none !important;
}

.lb-nav a.lb-prev, 
.lb-nav a.lb-next {
    opacity: 0.8;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.5));
}

.lb-dataContainer {
    background: rgba(0,0,0,0.7);
    padding: 0 15px;
    border-radius: 4px;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    /* Stack all orientations on mobile */
    .orientation-group {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        max-width: 100% !important;
    }
    
    .photo-grid {
        gap: 2rem;
    }
    
    .photo-caption {
        padding: 0.8rem;
    }
    
    .project-header {
        height: 50vh;
        min-height: 300px;
    }
}