/* --- Global Variables & Resets --- */
:root {
    --bg-color: #fafafa;
    --text-color: #222222;
    --hover-blue: #0056b3;
    --nav-bg: rgba(250, 250, 250, 0.95);
    /* This variable controls the gap between ALL sections */
    --section-gap: 120px; 
    --grid-gap: 12px;
}

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

body { 
    font-family: 'Helvetica Neue', Arial, sans-serif; 
    background-color: var(--bg-color); 
    color: var(--text-color); 
    line-height: 1.6; 
    overflow-x: hidden; 
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Consistent spacing for all sections */
.content-container { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 5%; /* Removed vertical padding here */
    text-align: center; 
}

.short-intro,
.front-gallery,
.long-about,
.site-footer {
    padding-top: var(--section-gap);
    padding-bottom: 0;
}

/* --- Header & Navigation --- */
.site-header { text-align: center; padding-top: 40px; }
.site-logo h1 { font-size: 2rem; font-weight: 300; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; }
.header-nav-wrapper { 
    position: sticky; 
    top: 0; 
    background: var(--nav-bg); 
    backdrop-filter: blur(5px); 
    z-index: 1000; 
    padding: 20px 0; 
    border-bottom: 1px solid transparent; 
    transition: border 0.3s; 
}
.header-nav-wrapper.scrolled { border-bottom: 1px solid #eaeaea; }
.primary-menu-list { display: flex; justify-content: center; gap: 40px; }
.primary-menu-list a { 
    font-size: 0.9rem; 
    font-weight: 500; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    position: relative; 
    padding-bottom: 5px; 
}
.primary-menu-list a::after { 
    content: ''; 
    position: absolute; 
    left: 0; 
    bottom: 0; 
    width: 0%; 
    height: 2px; 
    background-color: var(--hover-blue); 
    transition: width 0.3s ease; 
}
.primary-menu-list a:hover { color: var(--hover-blue); }
.primary-menu-list a:hover::after { width: 100%; }

/* --- Hero Carousel --- */
.hero-carousel { position: relative; width: 100%; height: 100vh; overflow: hidden; background: #000; }
.carousel-slide { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-size: cover; 
    background-position: center; 
    opacity: 0; 
    transform: translateX(100%); 
    transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1), opacity 1s ease-in-out; 
}
.carousel-slide.active { opacity: 1; transform: translateX(0); }
.carousel-slide.prev { transform: translateX(-100%); opacity: 0; }
.carousel-slide.from-left {
    transform: translateX(-100%);
    opacity: 0;
    transition: none; 
}

.carousel-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 10;
    pointer-events: none; 
}

.nav-btn {
    pointer-events: auto; 
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 15px;
}

.nav-btn:hover {
    color: var(--hover-blue); 
    transform: scale(1.1);
}

/* --- Typography Sections --- */
.short-intro h2, .long-about h2 { font-size: 2.2rem; font-weight: 300; margin-bottom: 20px; }
.short-intro p, .long-about p { font-size: 1.1rem; color: #555; max-width: 800px; margin: 0 auto; }

/* --- Gallery Grid (Updated: Top-Aligned, Tall Ratio, Small Gaps) --- */
.gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(5, 1fr); 
    gap: var(--grid-gap); 
    align-items: start; /* Ensures all items align to the top line */
    margin-top: 40px; 
}

.gallery-item { 
    position: relative; 
    width: 100%; 
    overflow: hidden; 
}

/* "Double Longer" Aspect Ratio (1:2) */
.image-wrapper { 
    width: 100%; 
    aspect-ratio: 1 / 2; 
    background-color: #f0f0f0; /* Subtle placeholder color */
}

.gallery-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    filter: grayscale(100%); 
    transition: filter 0.8s ease, transform 0.8s ease; 
}

/* Transition to full color on hover */
.gallery-item:hover img { 
    filter: grayscale(0%); 
    transform: scale(1.05); 
}

.gallery-title { 
    margin-top: 15px; 
    font-size: 0.8rem; 
    font-weight: 400; 
    text-transform: uppercase;
    letter-spacing: 1.5px; 
    color: #666; 
}

/* --- Animations (Scroll Reveal) --- */
.fade-in-up { 
    opacity: 0; 
    transform: translateY(30px); 
    transition: opacity 1s cubic-bezier(0.2, 0, 0.2, 1), transform 1s cubic-bezier(0.2, 0, 0.2, 1); 
}
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

/* --- Lightbox Styles --- */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(250, 250, 250, 0.98); /* Matching your off-white theme */
    cursor: zoom-out;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    animation: zoomIn 0.4s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 30px;
    color: var(--text-color);
    cursor: pointer;
}

/* Rest of your existing gallery styles... */
.gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(5, 1fr); 
    gap: var(--grid-gap); 
    align-items: start;
    margin-top: 40px; 
}

/* --- Footer --- */
.site-footer { text-align: center; padding: 60px 0; font-size: 0.85rem; color: #888; }

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    :root { --section-spacing: 80px; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .primary-menu-list { flex-direction: column; gap: 15px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .short-intro h2, .long-about h2 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .carousel-nav { padding: 0 10px; }
}