/* --- Global Reset --- */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}
body { 
    font-family: 'Helvetica Neue', Arial, sans-serif; 
    background: #fff; 
    color: #1a1a1a; 
    display: flex; 
    overflow-x: hidden;
    width: 100%;
}

/* This will only apply to the book.html page */
.book-page {
    text-align: left;
}

/* If you only want to center the paragraphs/text and not the images */
.book-page p {
    text-align: left;
    max-width: 800px; /* Optional: keeps text blocks elegant */
    margin-left: auto;
    margin-right: auto;
}


/* --- Sidebar (Desktop) --- */
header {
    width: 280px; 
    height: 100vh; 
    position: fixed;
    top: 0; 
    left: 90px; 
    padding: 40px 0; 
    background: #fff; 
    z-index: 1000;
}

header h1 {
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
    margin-bottom: 50px;
    line-height: 1;
}
header h1 a { text-decoration: none; color: #000; }

nav ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
nav ul li a { text-decoration: none; font-size: 0.85rem; color: #888; text-transform: lowercase; transition: 0.2s; }
nav ul li a:hover, nav ul li a.active { color: #000; font-weight: bold; }

.social-links { margin-top: 40px; display: flex; gap: 15px; }
.social-links a { color: #ccc; font-size: 1rem; transition: 0.3s; text-decoration: none; }
.social-links a:hover { color: #000; }

/* --- I-CAC Section --- */
.icac-container {
    margin-top: 0px;    /* Larger gap above */
    margin-bottom: 0px; /* Smaller gap below */
}

.icac-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important; 
    font-size: 11px;                 
    color: #ccc;                    
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;                /* Bolder text */
    text-transform: lowercase;
    transition: 0.3s;
}

.icac-link:hover {
    color: #000;
}

/* Updated Icon with I-CAC text inside */
.icac-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 4px;
    border: 1px solid #ccc; 
    border-radius: 2px;
    font-size: 7px;           /* Very small to fit in box */
    font-weight: 800;
    letter-spacing: 0.2px;
    color: #ccc;
    text-transform: uppercase;
    transition: 0.3s;
}

.icac-link:hover .icac-logo {
    border-color: #000;
    color: #000;
}

.adagp-notice { margin-top: 35px; font-size: 11px; color: #ccc; line-height: 1.5; }
.adagp-notice a { color: inherit; text-decoration: underline; }

.spacer { height: 5px; }
.menu-toggle, .hamburger, .close-menu { display: none; }

/* --- Desktop Specific Adjustment (The "2mm" lift) --- */
@media (min-width: 769px) {
    .icac-container {
        margin-top: 0px; /* Shifting everything up slightly on desktop */
    }
    .adagp-notice {
        margin-top: 0px; /* Reducing the gap to keep notice on screen */
    }
}

/* --- Main Content Area --- */
main { 
    flex: 1; 
    margin-left: 310px; 
    padding: 40px 5%; 
    width: 100%;
}

.gallery-grid, .about-container { 
    width: 100%;
    max-width: 850px; 
    margin: 0; 
}

.gallery-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 50px; 
}

.gallery-item img, .about-photo { 
    width: 100%; 
    height: auto; 
    display: block; 
}

/* --- CAPTION SYSTEM (Centered Status on New Line) --- */
.caption { 
    font-size: 0.85rem; 
    color: #777; 
    margin-top: 10px;
    line-height: 1.4;
    text-align: center; 
}

.status-sold, .status-available {
    display: block;      
    margin-top: 5px;     
    text-align: center;
    font-family: inherit;
    font-size: inherit;
    color: #777;
    text-transform: lowercase;
}

.status-sold::before, 
.status-available::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
    margin-bottom: 2px;
}

.status-sold::before { background-color: #cc0000; }
.status-available::before { background-color: #a3b18a; }

.caption a, .about-text a {
    color: #444 !important; 
    text-decoration: underline !important;
}
.caption a:hover, .about-text a:hover {
    color: #000 !important;
}

/* --- Lightbox --- */
.lightbox {
    display: none; position: fixed; z-index: 5000; left: 0; top: 0;
    width: 100%; height: 100%; background-color: #fff;
    align-items: center; justify-content: center;
}
.lightbox-wrapper {
    position: relative; display: flex; flex-direction: column; 
    align-items: center; justify-content: center; width: 100%; height: 100%;
}
.lightbox-content { max-width: 95%; max-height: 80vh; object-fit: contain; }
#lightbox-caption { position: relative; margin-top: 20px; font-size: 0.85rem; color: #777; text-align: center; width: 100%; }

.close-lightbox { position: absolute; top: 20px; right: 20px; font-size: 30px; cursor: pointer; color: #ccc; z-index: 5002; }

/* Arrows (Desktop) */
.prev, .next { 
    position: absolute; top: 50%; transform: translateY(-50%); 
    font-size: 40px; padding: 20px; cursor: pointer; color: #ccc; z-index: 5002; user-select: none;
    transition: opacity 0.3s ease, color 0.3s ease;
}
.prev { left: 10px; } .next { right: 10px; }
.prev:hover, .next:hover { color: #000; }

/* --- Mobile Styling --- */
@media (max-width: 768px) {
    body { flex-direction: column; }
    header { 
        width: 100%; height: auto; padding: 15px 20px; 
        position: fixed; top: 0; left: 0; background: #fff; 
        border-bottom: 1px solid #eee; z-index: 2000; 
    }
    .header-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
    header h1 { font-size: 0.75rem; margin-bottom: 0; }
    
    .hamburger { display: block; width: 22px; height: 16px; position: relative; cursor: pointer; }
    .hamburger span { display: block; width: 100%; height: 1.5px; background: #000; position: absolute; }
    .hamburger span:nth-child(1) { top: 0; } 
    .hamburger span:nth-child(2) { top: 7px; } 
    .hamburger span:nth-child(3) { top: 14px; }
    
    nav { 
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; 
        background: #fff; padding: 60px 40px; transition: 0.3s ease-in-out; z-index: 3000; 
    }
    .menu-toggle:checked ~ nav { right: 0; }
    .close-menu { display: block; position: absolute; top: 15px; right: 20px; font-size: 30px; color: #ccc; cursor: pointer; }
    
    main { 
        margin-left: 0; margin-top: 60px; 
        padding: 20px; width: 100%; 
    }
    .gallery-grid, .about-container { width: 100%; max-width: 100%; }

    /* MOBILE ARROWS: Grey and semi-transparent for a clean look */
    .prev, .next { 
        font-size: 30px; 
        padding: 15px; 
        color: #444;    /* Dark Grey */
        opacity: 0.5;  /* 50% transparency when active */
    }
    
    .prev:active, .next:active {
        opacity: 1;    /* Brighten when tapped */
    }

    /* Completely invisible when inactive or disabled */
    .prev:disabled, .next:disabled,
    .prev.disabled, .next.disabled,
    .prev[style*="display: none"], .next[style*="display: none"],
    .prev[style*="opacity: 0"], .next[style*="opacity: 0"] {
        opacity: 0 !important;
        pointer-events: none;
    }
}

@media (min-width: 769px) {
    .gallery-item img { cursor: zoom-in !important; }
    header h1 { margin-bottom: 30px !important; }
    .social-links { margin-top: 25px !important; }
    .adagp-notice { margin-top: 20px !important; }
}

/* --- Back to Top --- */
.back-to-top { width: 100%; text-align: center; margin-top: 80px; padding-bottom: 40px; }
.back-to-top a { text-decoration: none; font-size: 0.85rem; color: #888; text-transform: lowercase; transition: 0.2s; letter-spacing: 1px; }
.

