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

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* ============================================
   OLD NAVIGATION (for old index.html)
   ============================================ */
nav {
    background-color: #4a90e2;
    padding: 0.75rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* OLD site title (h1 inside nav-container) */
.nav-container .site-title {
    color: black;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-align: left;
    margin: 0;
}

/* OLD nav-menu (inside nav-container) */
.nav-container .nav-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-container .nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s;
    padding: 0.5rem 0.75rem;
}

.nav-container .nav-menu a:hover,
.nav-container .nav-menu a.active {
    opacity: 0.8;
}

/* OLD Dropdown Menu */
.nav-container .dropdown {
    position: relative;
}

.nav-container .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #357abd;
    list-style: none;
    padding: 0.5rem 0;
    min-width: 280px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 10000;
    margin-top: 0;
}

.nav-container .dropdown:hover .dropdown-menu {
    display: block;
}

.nav-container .dropdown-menu li {
    padding: 0;
}

.nav-container .dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-container .dropdown-menu a:hover {
    background-color: #2863a3;
}

/* ============================================
   NEW NAVIGATION (for new pages with <header class="site-header">)
   ============================================ */
.site-header {
    background-color: #4a90e2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* NEW site title (inside site-header) */
.site-header .site-title {
    color: white;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
    white-space: nowrap;
    flex-shrink: 0;
}

.site-header .site-title a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.site-header .site-title a:hover {
    color: #e0e0e0;
}

/* NEW Main Navigation Container */
.site-header .main-nav {
    padding: 0;
    margin: 0;
    flex-shrink: 0;
}

/* NEW Navigation Menu List */
.site-header .nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    flex-wrap: nowrap;
}

/* NEW Main Menu Items */
.site-header .nav-menu > li {
    position: relative;
    flex-shrink: 0;
}

.site-header .nav-menu > li > a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s;
    white-space: nowrap;
    background-color: transparent;
}

.site-header .nav-menu > li > a:hover {
    background-color: transparent;
    text-decoration: underline;
}

/* NEW Dropdown Specific */
.site-header .dropdown {
    position: relative;
}

.site-header .dropdown-toggle {
    cursor: pointer;
}

/* NEW Dropdown Menu */
.site-header .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #6bb3ff;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 1000;
}

/* NEW Show Dropdown on Hover */
.site-header .dropdown:hover .dropdown-menu {
    display: block;
}

/* NEW Dropdown Menu Items */
.site-header .dropdown-menu li {
    border-bottom: 1px solid #8fc7ff;
}

.site-header .dropdown-menu li:last-child {
    border-bottom: none;
}

.site-header .dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

.site-header .dropdown-menu li a:hover {
    background-color: #8fc7ff;
}

/* NEW ACTIVE STATE STYLING */
.site-header .nav-menu > li > a.active {
    background-color: transparent;
    font-weight: bold;
    text-decoration: underline;
}

.site-header .dropdown-menu li a.active {
    background-color: #8fc7ff;
    border-left: 4px solid white;
    font-weight: bold;
}

/* NEW Mobile Responsive */
/* NEW Mobile Responsive - Optimized for smaller screens */
@media screen and (max-width: 768px) {
    .site-header {
        flex-direction: row; /* Keep horizontal on mobile */
        padding: 5px 10px; /* Much smaller padding */
        align-items: center;
    }
    
    .site-header .site-title {
        font-size: 14px; /* Smaller font */
        margin-bottom: 0;
        text-align: left;
    }
    
    .site-header .nav-menu {
        flex-direction: row; /* Keep horizontal */
        width: auto;
        gap: 0;
    }
    
    .site-header .nav-menu > li > a {
        padding: 8px 10px; /* Much smaller padding */
        font-size: 14px; /* Smaller font */
        text-align: center;
    }
    
    .site-header .dropdown-menu {
        position: absolute; /* Keep dropdown behavior */
        box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
        right: 0; /* Align to right edge on mobile */
        left: auto;
    }
    
    .site-header .dropdown-menu li a {
        font-size: 14px; /* Smaller font in dropdown */
        padding: 10px 15px;
    }
}

/* Extra small phones */
@media screen and (max-width: 480px) {
    .site-header .site-title {
        font-size: 12px;
    }
    
    .site-header .nav-menu > li > a {
        padding: 8px 6px;
        font-size: 12px;
    }
    
    /* Hide dropdown arrow on very small screens */
    .site-header .dropdown-toggle::after {
        content: '';
    }
}
/*  back to landscapes */
.gallery-back-link {
    margin-bottom: 1rem;
}

.gallery-back-link a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.gallery-back-link a:hover {
    text-decoration: underline;
}

/* ============================================
   REST OF YOUR STYLES (Images, Gallery, etc.)
   ============================================ */

/* Full-width banner image */
.banner-image {
    width: 60%;
    max-width: 60%;
    margin: 2rem auto 0.5rem auto;
    display: block;
}

.banner-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Banner text below image */
.banner-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding: 0 1rem;
}

.banner-text span {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    letter-spacing: 1px;
}

/* Full-width intro text */
.intro-text {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.intro-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
}

/* 6 images in a row */
.image-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 2400px;
    margin: 2rem auto;
    padding: 0 2rem;
    justify-items: center;
    align-items: center; 
}

.image-row img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s;
    justify-items: center;
    align-items: center;
}

.image-row img:hover {
    transform: scale(1.05);
}

/* Responsive - stack on mobile */
@media (max-width: 968px) {
    .image-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0.5rem auto 2rem auto;
    padding: 0 2rem;
}

/* Image-Text Pairs (for homepage) */
.image-text-pair {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: center;
}

.pair-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pair-text {
    background: white;
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pair-text h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 700;
}

.pair-text p {
    font-size: 1rem;
    line-height: 1.8;
}

/* Contact Section */
.contact-section {
    background: white;
    padding: 2rem;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-section h3 {
    font-size: 1.3rem;
    color: #2c3e50;
}

/* Gallery Section */
.gallery-section {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery-section h2 {
    font-size: 1.125rem; /* original 1.5 greg asked for smalled */
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

/* 2-Column Gallery with Descriptions */
.gallery-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    justify-items: center;
    align-items: center;
}

.gallery-item {
    background: white;
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 600px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.gallery-item a {
    display: block;
    text-decoration: none;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.image-description {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin: 0.5rem 0 0 0;
    text-align: center;
}

.gallery-caption {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 16px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.gallery-item:hover .gallery-caption {
    background-color: rgba(0, 0, 0, 0.85);
}

/* Gallery text break */

.gallery-text-break {
    grid-column: 1 / -1;  /* Spans all columns */
    padding: .5rem 0;
    text-align: center;  /* or left, depending on preference */
}

.gallery-text-break p {
    margin: 0;
    line-height: 1.6;
}

.gallery-item.full-width-centered {
    grid-column: 1 / -1;  /* Spans both columns */
    max-width: 50%;       /* Limits width to half of container */
    margin: 0 auto;       /* Centers it horizontally */
}

/* Standard Gallery Grid (auto-fill columns) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.gallery-grid img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery-grid img:hover {
    transform: scale(1.03);
}

/* Custom Image Sizing */
img.greg-img {
    max-width: 300px !important;
    width: 300px !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}

img.carole-img {
    max-width: 300px !important;
    width: 300px !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}

img.small-img {
    max-width: 25% !important;
    width: 25% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}

img.medium-img {
    max-width: 50% !important;
    width: 50% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}

img.large-img {
    max-width: 75% !important;
    width: 75% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .image-text-pair {
        grid-template-columns: 1fr;
    }
    
    .gallery-2col {
        grid-template-columns: 1fr;
    }
}

/* Lightbox Popup */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
}

.lightbox-img-container {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 100px;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.lightbox-content {
    position: relative;
    display: inline-block;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    transform-origin: center center;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    transition: 0.3s;
    z-index: 10000;
}

.lightbox-close:hover {
    color: #bbb;
}

.lightbox-caption {
    position: fixed;
    bottom: 90px;
    left: 0;
    right: 0;
    text-align: center;
    color: #ccc;
    padding: 15px;
    font-size: 1.2rem;
    background-color: rgba(0,0,0,0.7);
    z-index: 10000;
}

/* Zoom Controls */
.lightbox-controls {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10000;
}

.zoom-btn {
    background-color: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.zoom-btn:hover {
    background-color: rgba(255,255,255,0.4);
}

/* Navigation Arrows */
.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
    font-size: 30px;
    padding: 20px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
    z-index: 10000;
    user-select: none;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(255,255,255,0.4);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Full-width text section (no image) */
.full-text-section {
    background: white;
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
    width: 100%;
}

.full-text-section h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 700;
}

.full-text-section p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Story Link Styling */
.story-link {
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
}

.story-link:hover {
  text-decoration: underline;
}

/* Modal Overlay */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

/* Modal Content Box */
.modal-content {
  position: relative;
  background-color: #ffffff;
  margin: 5% auto;
  padding: 40px;
  border: 1px solid #888;
  width: 75%;
  max-width: 900px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 15px;
  right: 25px;
  color: #aaa;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s;
}

.close-btn:hover,
.close-btn:focus {
  color: #333;
}

/* Modal Body Content */
.modal-body {
  padding: 10px 0;
  line-height: 1.8;
  font-size: 16px;
  font-family: "Times New Roman", Times, serif;
}

.modal-body h2 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
  text-align: center;
}

.modal-body p {
  margin-bottom: 15px;
  text-align: justify;
  text-indent: 2em;
}

/* Responsive for smaller screens */
@media (max-width: 768px) {
  .modal-content {
    width: 90%;
    padding: 30px 20px;
    margin: 10% auto;
  }
}
/* Mobile Navigation for OLD nav */
@media (max-width: 768px) {
    nav {
        padding: 0.5rem 0;
    }
    
    .nav-container {
        padding: 0.5rem 1rem;
    }
    
    .nav-container .site-title {
        font-size: 1rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-container .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: #357abd;
        flex-direction: column;
        padding-top: 60px;
        transition: right 0.3s ease;
        box-shadow: -2px 0 5px rgba(0,0,0,0.3);
        z-index: 999;
        gap: 0;
    }
    
    .nav-container .nav-menu.active {
        right: 0;
    }
    
    .nav-container .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }
    
    .nav-container .nav-menu a {
        display: block;
        padding: 1rem 1.5rem;
    }
    
    /* Dropdown on mobile for OLD nav */
    .nav-container .dropdown-menu {
        position: static;
        box-shadow: none;
        background-color: #2863a3;
        display: none;
    }
    
    .nav-container .dropdown.active .dropdown-menu {
        display: block;
    }
    
    /* Stack image-text pairs on mobile */
    .image-text-pair {
        grid-template-columns: 1fr;
    }
    
    /* Banner image wider on mobile */
    .banner-image {
        width: 90%;
        max-width: 90%;
    }
}
/* Desktop/Default Banner Text */
.banner-text {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  padding: 15px 20px;  /* Reduced top/bottom padding */
  margin-bottom: 10px;  /* Reduce space below */
}

.banner-text span {
  font-size: 1.6em;  /* Reduced from 2em */
  font-weight: bold;
  color: #333;
  padding: 5px 15px;  /* Reduced vertical padding */
}

/* Mobile Responsive - Stack vertically on small screens */
@media (max-width: 768px) {
  .banner-text {
    flex-direction: column;
    text-align: center;
    padding: 10px;  /* Reduced padding */
    margin-bottom: 10px;
  }
  
  .banner-text span {
    font-size: 1.3em;  /* Reduced from 1.5em */
    padding: 5px 0;  /* Reduced from 8px */
    display: block;
    width: 100%;
  }
}

/* Extra small phones */
@media (max-width: 480px) {
  .banner-text span {
    font-size: 1.1em;  /* Reduced from 1.2em */
    padding: 3px 0;  /* Reduced padding */
  }
}