/* Main Stylesheet - Mobile-First Responsive Design */
/* Base styles are for mobile (320px+), then enhanced for larger screens */

/* ============================================
   PASSWORD PROTECTION STYLES
   ============================================ */

#passwordOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FAF8F3 0%, #F0EDE5 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-secondary);
}

.password-prompt {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    width: 90%;
    border: 1px solid rgba(90, 122, 90, 0.1);
}

.password-prompt h2 {
    font-family: var(--font-primary);
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.password-prompt p {
    color: var(--color-text);
    margin-bottom: 2rem;
    font-size: 1rem;
}

#passwordInput {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(90, 122, 90, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-secondary);
    margin-bottom: 1.5rem;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

#passwordInput:focus {
    outline: none;
    border-color: var(--color-accent);
}

#passwordSubmit {
    width: 100%;
    padding: 1rem;
    background-color: var(--color-accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    min-height: 44px;
}

#passwordSubmit:hover {
    background-color: var(--color-text);
    transform: translateY(-2px);
}

#passwordSubmit:active {
    transform: translateY(0);
}

/* ============================================
   RESET & BASE STYLES (Mobile-First)
   ============================================ */

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

html {
    font-size: 16px; /* Base font size for rem calculations */
    scroll-behavior: smooth;
    scroll-padding-top: 45px; /* Offset for fixed nav */
}

body {
    font-family: var(--font-secondary);
    font-size: var(--font-bodysize);
    line-height: 1.7; /* Slightly increased for better readability with Work Sans */
    color: var(--color-text);
    background-color: var(--color-background);
    /* Prevent horizontal scrolling on mobile */
    overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY (Mobile-First)
   ============================================ */

/* Headings use primary font, body uses secondary font */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-accent); /* Green for all headings */
    letter-spacing: 0.5px; /* Subtle letter spacing for elegance */
}

h1 {
    /* Responsive font size using clamp: min, preferred, max */
    font-size: clamp(2rem, 5vw, var(--font-headingsize));
    font-weight: 700;
    letter-spacing: 1px; /* Slightly more spacing for main heading */
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    /* Ensure readable line length on mobile */
    max-width: 100%;
}

/* ============================================
   NAVIGATION (Fixed Top Bar)
   ============================================ */

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(250, 248, 243, 0.9);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-nav.scrolled {
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
}

.nav-container {
    width: 100%;
    max-width: var(--spacing-contentmaxwidth);
    margin: 0 auto;
    padding: 0.5rem var(--spacing-mobile-padding);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
}

/* Hamburger Button - Elegant, Personal Style */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1.5px solid rgba(44, 44, 44, 0.2);
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: all 0.3s ease;
    position: relative;
}

.hamburger:hover {
    border-color: var(--color-accent);
    background-color: rgba(139, 115, 85, 0.05);
}

.hamburger-line {
    width: 18px;
    height: 1.5px;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
    position: absolute;
}

.hamburger-line:nth-child(1) {
    top: 13px;
}

.hamburger-line:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-line:nth-child(3) {
    bottom: 13px;
}

.hamburger[aria-expanded="true"] {
    border-color: var(--color-accent);
    background-color: rgba(139, 115, 85, 0.1);
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateY(-50%) scale(0);
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

/* Navigation Menu */
.nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background-color: rgba(250, 248, 243, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 1000;
    padding: 4rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
}

.nav-menu.active {
    left: 0;
}

/* Overlay when menu is open */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-family: var(--font-secondary);
    font-weight: 400;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: block;
    letter-spacing: 0.3px;
    text-align: left;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--color-accent);
    background-color: rgba(139, 115, 85, 0.1);
    outline: none;
}

/* ============================================
   MAIN CONTENT LAYOUT
   ============================================ */

.main-content {
    width: 100%;
    margin: 0;
    padding: 0;
    /* Add padding-top to account for fixed nav */
    padding-top: 45px;
}

.content-section {
    padding: var(--spacing-mobile-section) var(--spacing-mobile-padding);
    max-width: var(--spacing-contentmaxwidth);
    margin: 0 auto;
    min-width: 0;
    position: relative;
}

/* Add subtle depth to content sections */
.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 1px;
    background: linear-gradient(to right, 
        transparent, 
        rgba(139, 115, 85, 0.1), 
        transparent);
    pointer-events: none;
}

/* Section Dividers - Clean Green Lines */
.section-divider {
    height: 1px;
    background: linear-gradient(to right, 
        transparent 0%, 
        rgba(90, 122, 90, 0.3) 20%, 
        rgba(90, 122, 90, 0.5) 50%, 
        rgba(90, 122, 90, 0.3) 80%, 
        transparent 100%);
    max-width: var(--spacing-contentmaxwidth);
    margin: 4rem auto;
    width: 60%;
    position: relative;
}

/* ============================================
   WELCOME SECTION
   ============================================ */

.welcome-section {
    text-align: center;
    padding-top: 2rem;
}

.welcome-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    margin-bottom: 1.5rem;
    color: var(--color-text);
    font-family: var(--font-secondary);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.welcome-title {
    font-size: clamp(3rem, 10vw, 5rem);
    margin-bottom: 2rem;
    color: var(--color-accent);
    font-weight: 700;
}

.welcome-image-container {
    margin: 2rem auto;
    max-width: 600px;
    width: 100%;
    position: relative;
}

.welcome-main-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08);
    object-fit: cover;
    border: 1px solid rgba(139, 115, 85, 0.1);
}

.image-placeholder {
    width: 100%;
    padding: 3rem 1rem;
    background-color: var(--color-secondary);
    border-radius: 8px;
    border: 2px dashed var(--color-accent);
    text-align: center;
    color: var(--color-text);
}

.image-placeholder code {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
}

.wedding-details {
    margin-top: 2rem;
    line-height: 2;
}

.wedding-names {
    font-family: var(--font-primary);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.wedding-venue,
.wedding-date,
.wedding-location {
    font-family: var(--font-secondary);
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    font-weight: 300;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.wedding-venue a {
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px solid rgba(90, 122, 90, 0.3);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.wedding-venue a:hover,
.wedding-venue a:focus {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
    outline: none;
}

/* ============================================
   INFORMATION SECTION
   ============================================ */

.information-section {
    padding-top: 3rem;
}

.info-subsection {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(139, 115, 85, 0.08);
    transition: all 0.3s ease;
}

.info-subsection:hover {
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.info-subsection h3 {
    color: var(--color-accent);
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-secondary);
}

.info-content {
    max-width: 65ch;
    margin: 0 auto;
    text-align: left;
}

/* Hotel block accordion */
.hotel-block-intro {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--color-text);
    font-size: 0.95rem;
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
}

.hotel-accordion-list {
    max-width: 600px;
    margin: 0 auto;
}

.hotel-accordion-item {
    margin-bottom: 0.75rem;
    border: 1px solid rgba(139, 115, 85, 0.15);
    border-radius: 10px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.hotel-accordion-item:hover {
    border-color: rgba(139, 115, 85, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.hotel-accordion-trigger {
    width: 100%;
    padding: 1rem 1.25rem;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 48px;
    transition: background-color 0.2s ease;
}

.hotel-accordion-trigger:hover,
.hotel-accordion-trigger:focus {
    background-color: rgba(255, 255, 255, 0.8);
    outline: none;
}

.hotel-accordion-trigger span:first-child {
    flex: 1;
    padding-right: 1rem;
}

.hotel-accordion-icon {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--color-accent);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.hotel-accordion-trigger[aria-expanded="true"] .hotel-accordion-icon {
    transform: rotate(45deg);
}

.hotel-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.hotel-accordion-inner {
    padding: 0 1.25rem 1.25rem;
    border-top: 1px solid rgba(139, 115, 85, 0.08);
}

.hotel-accordion-inner p {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.hotel-accordion-inner p:last-child {
    margin-bottom: 0;
}

.hotel-accordion-inner .hotel-rate {
    color: var(--color-accent);
    font-weight: 500;
}

.hotel-accordion-inner .hotel-address {
    font-style: normal;
    opacity: 0.9;
}

.hotel-accordion-inner a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hotel-accordion-inner a:hover {
    text-decoration: none;
}

/* Map container for Google My Maps embed */
.map-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.5);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 480px;
    border: 0;
}

/* Responsive map height for smaller screens */
@media (max-width: 768px) {
    .map-container iframe {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .map-container iframe {
        height: 300px;
    }
}

/* Override info-content max-width for map to allow full width */
.recommendations-section .info-content {
    max-width: 100%;
}

/* Recommendations List Styling */
.recommendations-list {
    margin-top: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.recommendation-category {
    margin-bottom: 2.5rem;
}

.recommendation-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-family: var(--font-primary);
    color: var(--color-accent);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(90, 122, 90, 0.2);
}

.category-subtitle {
    font-family: var(--font-secondary);
    color: var(--color-text);
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.recommendation-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recommendation-items li {
    font-family: var(--font-secondary);
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    position: relative;
}

.recommendation-items li:last-child {
    margin-bottom: 0;
}

.recommendation-items li::before {
    content: "•";
    color: var(--color-accent);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.recommendation-items li strong {
    color: var(--color-accent);
    font-weight: 600;
}

/* Responsive adjustments for recommendations */
@media (max-width: 768px) {
    .recommendations-list {
        margin-top: 2rem;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .recommendation-items li {
        font-size: 0.95rem;
        padding-left: 1.25rem;
    }
}

/* ============================================
   FAQ ACCORDION STYLES
   ============================================ */

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid rgba(139, 115, 85, 0.15);
    border-radius: 10px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border-color: rgba(139, 115, 85, 0.25);
}

.faq-question {
    width: 100%;
    padding: 1.25rem;
    background-color: transparent;
    border: none;
    text-align: left;
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Touch-friendly */
    min-height: 44px;
    transition: background-color 0.2s ease;
}

.faq-question:hover,
.faq-question:focus {
    background-color: var(--color-secondary);
    outline: none;
}

.faq-question span:first-child {
    flex: 1;
    padding-right: 1rem;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-accent);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.25rem;
}

.faq-answer p {
    padding: 1rem 0;
    margin: 0;
    color: var(--color-text);
}

/* ============================================
   OUR STORY SECTION
   ============================================ */

.story-section {
    padding-top: 3rem;
}

.story-text {
    max-width: 65ch;
    margin: 0 auto 3rem;
    text-align: left;
}

.story-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ============================================
   GALLERY STYLES
   ============================================ */

.gallery-container {
    margin-top: 2rem;
}

.gallery-container h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
}

/* Gallery Preview (Scrollable on Mobile) */
.gallery-preview {
    position: relative;
}

.gallery-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    padding: 1rem 0;
    /* Hide scrollbar but keep functionality */
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent) transparent;
}

.gallery-scroll::-webkit-scrollbar {
    height: 8px;
}

.gallery-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.gallery-scroll::-webkit-scrollbar-thumb {
    background-color: var(--color-accent);
    border-radius: 4px;
}

.gallery-item {
    flex: 0 0 auto;
    width: 280px;
    height: auto;
    min-height: 280px;
    scroll-snap-align: start;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.1),
        0 1px 4px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(139, 115, 85, 0.1);
    display: flex;
    flex-direction: column;
    background-color: var(--color-secondary);
    box-sizing: border-box;
}

.gallery-item:hover,
.gallery-item:active {
    transform: scale(1.03) translateY(-4px);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.gallery-item-caption {
    padding: 0.75rem;
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    color: var(--color-text);
    background-color: var(--color-secondary);
    line-height: 1.4;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.gallery-caption-date {
    font-weight: 500;
    color: var(--color-accent);
    margin-bottom: 0.25rem;
}

.gallery-caption-location {
    font-size: 0.8rem;
    color: var(--color-text);
    opacity: 0.8;
}

.gallery-placeholder {
    width: 100%;
    padding: 3rem 1rem;
    text-align: center;
    color: var(--color-text);
    background-color: var(--color-secondary);
    border-radius: 8px;
    border: 2px dashed var(--color-accent);
}

.gallery-placeholder code {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
}

.gallery-open-btn {
    display: block;
    margin: 1.5rem auto 0;
    padding: 0.75rem 2rem;
    background-color: var(--color-accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    /* Touch-friendly */
    min-height: 44px;
    min-width: 120px;
}

.gallery-open-btn:hover,
.gallery-open-btn:focus {
    background-color: var(--color-text);
    outline: none;
    transform: translateY(-2px);
}

.gallery-open-btn:active {
    transform: translateY(0);
}

/* Gallery Modal (Full Screen View) */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.gallery-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: visible;
}

.gallery-modal-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-modal-image-container img {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.gallery-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    z-index: 2001;
    /* Touch-friendly */
    min-width: 50px;
    min-height: 50px;
}

.gallery-close:hover,
.gallery-close:focus {
    background: rgba(255, 255, 255, 0.3);
    outline: none;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    z-index: 2001;
    /* Touch-friendly */
    min-width: 50px;
    min-height: 50px;
}

.gallery-prev {
    left: 1rem;
}

.gallery-next {
    right: 1rem;
}

.gallery-nav:hover,
.gallery-nav:focus {
    background: rgba(255, 255, 255, 0.3);
    outline: none;
}

.gallery-counter {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-family: var(--font-secondary);
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.gallery-metadata {
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    max-width: 90%;
    z-index: 2002;
    backdrop-filter: blur(4px);
    display: block;
}

.gallery-metadata-date {
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
}

.gallery-metadata-location {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}

.gallery-metadata-location a {
    color: white;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.gallery-metadata-location a:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .gallery-metadata {
        bottom: 4.5rem;
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }
    
    .gallery-counter {
        bottom: 1.5rem;
        font-size: 0.9rem;
    }
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background-color: var(--color-secondary);
    padding: 2rem var(--spacing-mobile-padding);
    text-align: center;
    margin-top: var(--spacing-mobile-section);
    font-size: 0.9rem;
    color: var(--color-text);
}

/* ============================================
   RESPONSIVE IMAGES
   ============================================ */

/* All images should be responsive by default */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   TABLET STYLES (768px and up)
   ============================================ */

@media (min-width: 768px) {
    /* Navigation */
    .nav-container {
        padding: 0.75rem 2rem;
        justify-content: center;
    }

    /* Hide hamburger on tablet+ */
    .hamburger {
        display: none;
    }

    /* Show nav menu as horizontal on tablet+ */
    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
        padding: 0;
        flex-direction: row;
        gap: 2rem;
        overflow: visible;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        text-align: center;
    }

    /* Content sections */
    .content-section {
        padding: 4rem 2rem;
    }

    .section-divider {
        margin: 4rem auto;
        width: 50%;
    }
    
    .info-subsection {
        padding: 2.5rem;
    }

    /* Welcome section */
    .welcome-section {
        padding-top: 3rem;
    }

    .welcome-image-container {
        max-width: 700px;
    }

    /* Gallery */
    .gallery-item {
        width: 320px;
        min-height: 320px;
        box-sizing: border-box;
    }
    
    .gallery-item img {
        height: 320px;
        width: 100%;
        object-fit: cover;
    }

    /* Story text */
    .story-text {
        font-size: 1.1rem;
    }
}

/* ============================================
   DESKTOP STYLES (1024px and up)
   ============================================ */

@media (min-width: 1024px) {
    /* Navigation */
    .nav-container {
        padding: 0.875rem 3rem;
    }

    .nav-menu {
        gap: 2.5rem;
    }

    .nav-link {
        font-size: 0.95rem;
    }

    /* Content sections */
    .content-section {
        padding: var(--spacing-sectionpadding) 3rem;
    }

    .section-divider {
        margin: 5rem auto;
        width: 40%;
    }
    
    .info-subsection {
        padding: 3rem;
    }

    /* Welcome section */
    .welcome-image-container {
        max-width: 800px;
    }

    /* Gallery */
    .gallery-scroll {
        gap: 1.5rem;
    }

    .gallery-item {
        width: 350px;
        min-height: 350px;
        box-sizing: border-box;
    }
    
    .gallery-item img {
        height: 350px;
        width: 100%;
        object-fit: cover;
    }

    /* Info content */
    .info-content {
        font-size: 1.05rem;
    }

    /* Story text */
    .story-text {
        font-size: 1.15rem;
    }

    /* Gallery modal navigation */
    .gallery-nav {
        width: 60px;
        height: 60px;
        font-size: 3rem;
        min-width: 60px;
        min-height: 60px;
    }

    .gallery-close {
        width: 60px;
        height: 60px;
        font-size: 3rem;
        min-width: 60px;
        min-height: 60px;
    }
}

/* ============================================
   LARGE DESKTOP STYLES (1200px and up)
   ============================================ */

@media (min-width: 1200px) {
    .gallery-item {
        width: 400px;
        height: 400px;
    }
}

/* ============================================
   TOUCH-FRIENDLY INTERACTIVE ELEMENTS
   ============================================ */

/* Ensure all interactive elements are touch-friendly (minimum 44x44px) */
a, button, input, textarea, select {
    min-height: 44px;
    min-width: 44px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Text alignment utilities */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Spacing utilities */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
