/* ========================================================
   CLEANED + COMBINED MASTER STYLESHEET
   ======================================================== */

/* =========================================================
   1. BASE / RESET
   ========================================================= */
* {
    box-sizing: border-box;
}

html {
    font-size: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
    line-height: 1.65;
    color: #000;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================================
   2. TYPOGRAPHY
   ========================================================= */
h1 {
    font-size: clamp(1.8rem, 1.35rem + 1.5vw, 2.4rem);
    line-height: 1.15;
    margin: 0 0 0.25em;
}

h2 {
    font-size: clamp(1.4rem, 1.15rem + 0.8vw, 1.85rem);
    line-height: 1.2;
    margin: 1.5em 0 0.5em;
    text-align: center;
}

h3 {
    font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
    line-height: 1.25;
    margin: 1.25em 0 0.5em;
}

h4 {
    font-size: 1rem;
    line-height: 1.3;
    margin: 1em 0 0.25em;
    color: #111;
}

h1, h2, h3, h4 {
    font-weight: 400;
}

p {
    margin: 0 0 1em;
}

/* Links */
a{
	color: #444;
    text-decoration: underline;
    text-underline-offset: 0.15em;
    text-decoration-thickness: 1px;
}

a:hover {
    color: #600;
    text-decoration: none;
}

/* =========================================================
   3. LAYOUT
   ========================================================= */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
}

/* Narrow content wrapper for non-photo pages */
.inner-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.inner-wrap img {
    margin: 0 auto;
}

/* =========================================================
   4. HEADER
   ========================================================= */
.site-header {
    display: flex;
    align-items: center;
    margin: 0 0 2em;
    padding: 0 0 0.75em;
    border-bottom: 2px solid #ddd;
}

.site-header a {
    color: inherit;
    text-decoration: none;
}

.site-header a:hover {
    color: #600;
    text-decoration: none;
}

.branding-stack {
    width: auto;
}

.logo {
    border: 1px solid black;
    max-height: 100px;
    margin-right: 1em;
}

/* =========================================================
   5. NAVIGATION
   ========================================================= */
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
}

.nav-menu ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem 1rem;
}

.nav-menu a {
    font-size: 1.6rem;
    text-decoration: underline;
}

.nav-menu a:hover {
	color: #600;
    text-decoration: none;
}

/* =========================================================
   6. CONTACT FORM & UNIVERSAL BUTTONS
   ========================================================= */
.contact-form {
    margin: 0 auto 2em auto;
    width: 100%;
    max-width: 500px;
    padding: 0;
}

input,
textarea {
    font-family: sans-serif;
    font-size: 1rem;
    padding: var(--space-sm);
    width: 100%;
}

label {
    display: block;
    margin-top: var(--space-md);
}

/* Universal Button Style across site components */
.my-button {
    background-color: #ccc;
    border: 1px solid #bbb;
    letter-spacing: 0.05em;
    padding: 10px 16px;
    text-align: center;
    text-decoration: none;
    text-transform: lowercase;
    font-variant: small-caps;
    display: inline-block;
    font-size: 1.1rem;
    font-weight: normal;
    cursor: pointer;
    margin: 0 0 0 8px;
}

.my-button:hover {
    background-color: #ddd;
    border-color: #ccc;
    color: maroon;
}

.clear-button {
    opacity: 0.85;
}

.clear-button:hover {
    opacity: 1;
}

/* =========================================================
   7. PHOTO GALLERY & IMAGE MANAGEMENT
   ========================================================= */
.thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.gallery-container {
    column-count: 3;         /* Forces exactly 3 vertical columns */
    column-gap: 24px;        /* Spacing between columns */
    width: 100%;
}

.gallery-item {
    display: inline-block;   /* Prevents images from breaking in half across columns */
    width: 100%;
    margin-bottom: 24px;     /* Spacing below each image */
}

.gallery-item img {
    width: 100%;
    height: auto;            /* Preserves original portrait/landscape shape perfectly */
    display: block;
    border: 1px solid black;
}

/* Mobile responsive fallback */
@media (max-width: 768px) {
    .gallery-container {
        column-count: 2;     /* Drops to 2 columns on mobile */
    }
}

/* Home Page Specific Photo Grid Base */
.photo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-item {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 1px;
}

.photo-grid img {
    border: 1px solid black;
}

.caption {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #444;
    margin-top: 0.5em;
}

.photo-grid a{
	font-size: 1.3em;
	color: #444;
}

.photo-grid a:hover{
	font-size: 1.3em;
	color: #600;
}

/* =========================================================
   8. COMPONENT SPECIFIC: PHOTO SEARCH PAGE
   ========================================================= */
.search-wrapper {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.search-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 30px auto;
}

#searchInput {
    flex: 1;
    min-width: 200px;
    max-width: 700px;
    padding: 10px;
    font-size: 1.2rem;
}

#photoGallery.search-results-grid {
    display: block;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 20px;
}

.grid-layout-wrapper {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}

.search-result-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    overflow: hidden;
}

.search-result-card a {
    text-decoration: none;
    display: block;
    width: 100%;
}

.thumb-crop-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    border: 2px solid #444;
    border-radius: 2px;
}

.result-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.action-wrapper {
    margin-top: 10px;
    padding: 0 4px;
}

.view-link {
    color: #000;
    font-weight: 400;
    text-decoration: underline;
    font-size: 0.95rem;
    transition: color 0.2s ease-in-out;
}

.search-result-card a:hover .view-link {
    color: #004499;
    text-decoration: underline;
}

.results-text {
    font-size: 1.2em;
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.results-heading {
    width: 100%;
    text-align: center;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #555;
    margin: 0 auto 20px auto;
    padding: 0.3em 0.6em;
}

/* =========================================================
   9. JEFF GLIGHTBOX OVERRIDES
   ========================================================= */
.gslide-image img {
    max-height: 85vh;
    max-width: 90vw;
    width: auto;
    height: auto;
    object-fit: contain;
    border: 2px solid #000;
    box-sizing: border-box;
}

.gslide-title {
    font-size: 1.2rem !important;
    font-weight: 600;
    margin: 0 !important;
    padding: 0 !important;
}

.gslide-desc {
    font-size: 1rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

.gdesc-inner,
.gslide-description {
    padding: 0 !important;
}

.gslide-media {
    box-shadow: none !important;
}

.goverlay {
    background: rgba(255, 255, 255, 1);
}

/* =========================================================
   10. GLOBAL UTILITIES
   ========================================================= */
.text-center {
    text-align: center;
}

.hidden {
    display: none;
}

i {
    font-style: italic;
}

/* =========================================================
   11. FOOTER NAVIGATION REFINEMENTS
   ========================================================= */

/* Targets the main footer layout container */
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;             /* Tightens up the vertical space between link rows */
    padding: 3rem 1rem;
}

footer p {
    margin: 0;
    max-width: 700px;
    line-height: 1.6;
}

/* Scaled down footer links to clean utility text sizes */
footer a {
    font-size: 1.1rem !important; /* Overrides the huge 1.6rem top nav menu size */
    text-decoration: underline;         /* Removes the heavy baseline underlines */
    color: #444;                   /* Softens pure black to a clean charcoal color */
    display: inline-block;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

/* Changes style only when the user hovers over a footer link */
footer a:hover {
    color: #600;                
    text-decoration: underline;    
}
























/* =========================================================
   12. MEDIA QUERIES (MOBILE FIRST UPWARD / OVERRIDES)
   ========================================================= */

/* Tablets & Small Mobile Viewports (600px and up) */
@media (min-width: 600px) {
    .gallery-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Standard Screens & Desktop Viewports (768px and up) */
@media (min-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Displays (1024px and up) */
@media (min-width: 1024px) {
    .gallery-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Mobile Component Structural Fallbacks (Max overrides) */
@media (max-width: 768px) {
    .nav-menu ul {
        text-align: center;
    }

    .logo,
    .small-logo {
        display: none;
    }

    .photo-grid {
        grid-template-columns: 1fr;
    }
    
    .grid-layout-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

/* Ultra-Wide Monitors Max Limits */
@media (max-width: 1800px) {
    .container {
        max-width: 1200px;
    }
}

/* =========================================================
   13. LIGHTBOX MOBILE CONTROLS (MAX 768px)
   ========================================================= */
@media screen and (max-width: 768px) {
    body .glightbox-container .gbtn,
    body .glightbox-container .gnext, 
    body .glightbox-container .gprev,
    .glightbox-container .glightbox-mobile .gnext,
    .glightbox-container .glightbox-mobile .gprev {
        display: -webkit-box !important;
        display: -ms-flexbox !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 999999 !important;
    }

    body .glightbox-container .gprev {
        left: 15px !important;
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    body .glightbox-container .gnext {
        right: 15px !important;
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    body .glightbox-container .gprev, 
    body .glightbox-container .gnext {
        width: 44px !important;
        height: 44px !important;
        background: rgba(34, 34, 34, 0.75) !important;
        border-radius: 50% !important;
        align-items: center !important;
        justify-content: center !important;
    }

    body .glightbox-container .gprev svg, 
    body .glightbox-container .gnext svg {
        width: 20px !important;
        height: 20px !important;
        display: block !important;
    }
   
    .glightbox-container .ginner-container {
        height: auto !important;
        max-height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }

    .glightbox-container .gslide-media {
        max-height: 60vh !important;
        width: auto !important;
        margin: 0 auto !important;
    }

    .glightbox-container .gslide-image img {
        max-height: 60vh !important;
        object-fit: contain !important;
    }

    .glightbox-mobile .glightbox-container .gslide-description {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        background: #000000 !important;
        padding: 15px !important;
        max-height: 30vh !important;
        overflow-y: auto !important;
        order: 3 !important;
    }

    .glightbox-mobile .glightbox-container .gslide-title {
        font-size: 14px !important;
        line-height: 1.4 !important;
        display: block !important;
        color: #ffffff !important;
        margin-bottom: 5px !important;
    }

    .glightbox-mobile .glightbox-container .gslide-desc {
        font-size: 12px !important;
        line-height: 1.4 !important;
        display: block !important;
        color: #cccccc !important;
    }
} 

	
/* =========================================================
   14. LIGHTBOX SHORT DESKTOP CONTROLS (LAPTOPS / SHORT VIEWPORTS)
   ========================================================= */
@media (max-width: 1800px) and (max-height: 850px) {
    /* Limit the layout track box size */
    .glightbox-container .desc-bottom .gslide-media,
    .glightbox-container .desc-top .gslide-media,
    .glightbox-container .gslide-media {
        max-height: 80vh !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Force the image to stay small enough to fit captions beneath it */
    .glightbox-container .gslide-image img {
        max-height: 80vh !important;
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
        object-fit: contain !important;
    }
  
    /* Contain the description block and prevent layout shifting */
    .glightbox-container .gslide-description {
        max-height: 20vh !important;
        overflow-y: auto !important;
        padding-top: 0px !important;
    }
}
