/*
CHANGE LOG
File: /static/css/church.css
Document Type: CSS Stylesheet
Purpose: Main stylesheet for the Chapel Emergency Refuge proposal.
Main App: grants_app.py
Blueprint: front_blueprint.py
Route: /church
Context: This is the final professional-grade version. It explicitly applies `cursor: pointer` to the `.contextual-image` class to fix the missing visual cue.
Version History:
2025-08-07 v6.9 - PROFESSIONAL GRADE FIX: Explicitly added `cursor: pointer` to the `.contextual-image` rule to guarantee the visual cue appears on all clickable images.
2025-08-07 v6.8 - Confirmed final version with explicit cursor styles for all interactive images.
*/

/* Import Church Sanctuary Brand Font */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;600;700&family=Source+Sans+Pro:wght@400;600&display=swap');

/* Church Sanctuary Brand Identity Variables */
:root {
  --rts-red: #762123;
  --rts-text-gray: #4a4a4a;
  --rts-light-bg: #f8fafc;
  --rts-border-color: #dee2e6;
  --rts-font-serif: 'EB Garamond', serif;
  --rts-font-sans: 'Source Sans Pro', sans-serif;
}

/* Base Body Style */
body {
    font-family: var(--rts-font-sans);
    line-height: 1.6;
    color: var(--rts-text-gray);
    background-color: #ffffff;
}

/* --- Main Layout with Sidebar --- */
.main-content-area {
    margin-left: 280px;
    padding: 2rem 4rem;
    width: calc(100% - 280px);
}
section {
    scroll-margin-top: 40px;
    margin-bottom: 4rem;
}

/* --- Sidebar Navigation Styles --- */
.sidebar-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--rts-red);
    color: white;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
    z-index: 1000;
}
.sidebar-header { margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.2); }
.sidebar-header h3 { color: white; margin: 0; font-size: 18px; font-weight: 600; }
.sidebar-header p { margin: 5px 0 0 0; font-size: 12px; opacity: 0.8; }
.nav-menu { list-style: none; padding: 0; margin: 0; }
.nav-item { margin-bottom: 8px; }
.nav-link { display: block; padding: 12px 15px; text-decoration: none; color: white !important; border-radius: 6px; font-size: 14px; font-weight: 500; transition: all 0.3s ease; border-left: 3px solid transparent; text-shadow: 1px 1px 2px rgba(0,0,0,0.2); }
.nav-link:hover { background-color: rgba(255,255,255,0.1); transform: translateX(5px); text-decoration: none; }
.nav-link.active { background-color: rgba(255,255,255,0.2); border-left-color: #f0f0f0; }

/* --- Typography --- */
.main-content-area h1, .main-content-area h2, .main-content-area h3, .main-content-area h4 {
    font-family: var(--rts-font-serif);
    color: var(--rts-red);
    font-weight: 600;
}
.main-content-area h2 { font-size: 1.75rem; margin-bottom: 2rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--rts-red); }
.main-content-area h4 { font-size: 1.25rem; color: var(--rts-text-gray); }
.main-content-area a { color: var(--rts-red); text-decoration: none; }
.main-content-area a:hover { text-decoration: underline; }
.btn-primary {background-color: var(--rts-red) !important;border-color: var(--rts-red) !important;color: white !important;display: inline-block;padding: 12px 24px;text-decoration: none;border-radius: 5px;transition: background 0.3s;font-weight: 500;}
.btn-primary:hover {background-color: #5a1a1c !important; border-color: #5a1a1c !important;}


/* --- LIGHTBOX & IMAGE STYLES --- */

.contextual-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--rts-border-color);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    transition: opacity 0.3s ease;
    /* THIS IS THE FIX - EXPLICITLY ADD THE CURSOR HERE */
    cursor: pointer;
}
.contextual-image:hover, .thumbnail:hover {
    opacity: 0.7;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}
.thumbnail {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--rts-border-color);
    transition: opacity 0.3s ease;
    /* THIS ENSURES THE GALLERY IMAGES ALSO HAVE THE CURSOR */
    cursor: pointer;
}

/* Main lightbox container */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

/* Lightbox Content (the image) */
.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    position: relative;
}

/* The single, STANDARDIZED close button style */
.lightbox-close {
    position: absolute;
    top: -10px;
    right: 5px;
    color: #f1f1f1;
    font-size: 45px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2010;
}
.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
}

/* Gallery Next/Prev Buttons */
.lightbox-prev, .lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    user-select: none;
    border-radius: 0 3px 3px 0;
}
.lightbox-next {
    right: -40px;
}
.lightbox-prev {
    left: -40px;
}
.lightbox-prev:hover, .lightbox-next:hover {
    background-color: rgba(255,255,255,0.2);
}

/* --- Responsive & Print Styles --- */
@media (max-width: 992px) {
    .sidebar-nav { display: none; }
    .main-content-area { margin-left: 0; width: 100%; padding: 20px; }
}
