/* === Unified Navigation/Header Styling === */
/* From /common/css/style.css */
body {
    margin: 0; 
    padding-top: 70px; /* Adjust if nav height changes. This is for the fixed nav. */
}

.app-nav {
    background-color: #003A70; 
    color: white;
    padding: 10px 25px; 
    display: flex;
    justify-content: space-between; 
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box; 
    z-index: 1000; 
    height: 70px; 
}

.app-nav-logo-title {
    /* No specific styles needed here if .nav-site-brand-link handles it */
}

.nav-site-brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
}
.nav-site-brand-link:hover {
    background-color: transparent !important;
}

.nav-event-logo {
    max-height: 45px; 
    margin-right: 12px;
    width: auto; 
}

.nav-event-title {
    font-size: 1.5em; 
    font-weight: bold;
    white-space: nowrap; 
}

.nav-burger {
    display: block; 
    cursor: pointer;
    padding: 8px; 
}

.nav-burger span {
    display: block;
    width: 28px; 
    height: 3px;
    background-color: white;
    margin: 6px 0; 
    transition: all 0.3s ease-in-out;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none; 
    flex-direction: column;
    position: absolute;
    top: 70px; /* Should match .app-nav height */
    right: 0; 
    width: 220px; 
    background-color: #004580; 
    box-shadow: -2px 2px 5px rgba(0,0,0,0.15);
    border-top: 1px solid #003A70;
}

.nav-links.active { 
    display: flex; 
}

.nav-links li {
    margin: 0;
    width: 100%;
}

.nav-links a {
    padding: 15px 20px; 
    display: block;
    text-align: left; 
    color: white;
    text-decoration: none;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-links li:last-child a {
    border-bottom: none;
}

.nav-links a:hover {
    background-color: #0058a3; 
}

.nav-burger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg); 
}
.nav-burger.active span:nth-child(2) {
    opacity: 0;
}
.nav-burger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg); 
}
/* Add to your CSS */
.form-group-optional {
    margin-bottom: 15px;
    text-align: left; /* Align labels left */
}
.form-group-optional label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9em;
    color: #455a64;
}
.form-group-optional input[type="text"],
.form-group-optional input[type="email"] {
    width: calc(100% - 22px); /* Full width minus padding */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* === Styles for Caption Input on Upload Page Previews === */
.preview-item .preview-caption-input {
    width: calc(100% - 10px); /* Slightly less than the preview item width for padding */
    margin-top: 8px;
    padding: 6px 8px;
    font-size: 0.75em;
    font-family: 'Segoe UI', Arial, sans-serif; /* Match body font */
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
    resize: vertical; /* Allow vertical resize for textarea, or none */
    min-height: 40px; /* Enough for a short caption */
    line-height: 1.4;
}

.preview-item .preview-caption-input:focus {
    outline: none;
    border-color: #007bff; /* Highlight on focus */
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* === Styles for Image Captions in the Public Gallery === */
.gallery-item .gallery-caption {
    font-size: 0.85em;       /* Slightly smaller than main text */
    color: #555;             /* Dark grey, but not black */
    margin-top: 8px;         /* Space between image and caption */
    padding: 0 5px;          /* Some horizontal padding if needed */
    line-height: 1.4;
    text-align: center;     /* Or left, depending on your preference */
    word-wrap: break-word;   /* Break long words if caption is long */
    max-height: 4.2em;       /* Limit to about 3 lines (1.4 * 3) */
    overflow: hidden;        /* Hide overflow if caption is too long */
    text-overflow: ellipsis; /* Add "..." if text overflows (might need more CSS for multi-line ellipsis) */
}


