:root {
    --navy-blue: #000080;
    --sky-blue: #87CEEB;
    --gold: #FFD700;
    --white: #ffffff;
    --light-grey: #f4f7f6;
    --dark-grey: #333333;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--white);
    color: var(--dark-grey);
    line-height: 1.6;
}

/* Header & Navigation */
/* --- Splash Bypass Overrides --- */
.no-splash #splash-screen {
    display: none !important;
}

.no-splash .hero::before,
.no-splash .hero h1,
.no-splash .hero p,
.no-splash .hero-btns {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

header {
    background-color: var(--navy-blue);
    color: var(--white);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.nav-container > .logo {
    justify-self: start;
}

.nav-container > nav {
    justify-self: center;
}

.nav-container > .field-status {
    justify-self: end;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--gold);
    text-decoration: none;
}

.logo-img {
    height: 60px;
    width: auto;
    border-radius: 50%; /* Circle logo */
    border: 2px solid var(--gold);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--sky-blue);
}

.nav-links a.active {
    color: var(--gold);
    border-bottom: 2px solid var(--gold);
}

/* Hamburger Menu Icon */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
    justify-self: end;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--gold);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* --- Splash Screen Intro --- */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--navy-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: splashFadeOut 1s ease-in 3s forwards;
    pointer-events: auto;
}

.splash-content {
    text-align: center;
    animation: splashPulse 2.5s infinite ease-in-out;
}

.splash-logo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 8px solid var(--gold);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
    margin-bottom: 2rem;
}

.splash-text {
    color: var(--gold);
    font-size: 3rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 4px;
}

/* --- Hero Section & Animations --- */
.hero {
    height: 85vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 1rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 128, 0.5), rgba(0, 0, 128, 0.7)), var(--hero-url, url('images/converse_bg.jpg'));
    background-size: cover;
    background-position: center 30%;
    transform-origin: center 30%;
    z-index: -1;
    opacity: 0;
    animation: heroFadeIn 1s ease-in 3s forwards, heroZoom 10s ease-out 3s forwards;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
    opacity: 0;
    transform: translateY(30px);
    /* 3s splash + 0.8s offset */
    animation: revealContent 1.2s ease-out 3.8s forwards;
}

.hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    /* 3s splash + 1.5s offset */
    animation: revealContent 1.2s ease-out 4.5s forwards;
}

.hero-btns {
    opacity: 0;
    transform: scale(0.9);
    /* 3s splash + 2.2s offset */
    animation: popBounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 5.2s forwards;
}

/* Animation Specs */
@keyframes splashFadeOut {
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

@keyframes splashPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

@keyframes heroFadeIn {
    to { opacity: 1; }
}

@keyframes heroZoom {
    from { transform: scale(1); }
    to { transform: scale(1.15); }
}

@keyframes revealContent {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popBounce {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Buttons */
.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.btn-gold {
    background-color: var(--gold);
    color: var(--navy-blue);
}

.btn-gold:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 4rem 10%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--navy-blue);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gold);
    margin: 10px auto 0;
}

/* Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.card-img {
    height: 200px;
    background-color: var(--sky-blue);
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    margin-bottom: 10px;
    color: var(--navy-blue);
}

/* Field Status Widget */
.field-status {
    background-color: var(--gold);
    color: var(--navy-blue);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.status-open { background-color: #28a745; box-shadow: 0 0 8px #28a745; }
.status-caution { background-color: #ffc107; box-shadow: 0 0 8px #ffc107; }
.status-closed { background-color: #dc3545; box-shadow: 0 0 8px #dc3545; }

/* Home Page FAQ */
.faq-section {
    background-color: var(--white);
    padding-left: 5%;
    padding-right: 5%;
}

.faq-section .section-title {
    margin-bottom: 1.25rem;
}

.faq-intro {
    color: #555;
    margin: 0 auto 2.5rem;
    max-width: 820px;
    text-align: center;
}

.faq-container {
    margin: 0 auto;
    max-width: 900px;
    width: 100%;
}

.faq-accordion {
    background-color: var(--white);
    border: 1px solid rgba(0, 0, 128, 0.42);
    box-shadow: 0 3px 12px rgba(0, 0, 128, 0.08);
}

.faq-item + .faq-item {
    border-top: 1px solid rgba(0, 0, 128, 0.28);
}

.faq-question-heading {
    font-size: 1rem;
    margin: 0;
}

.faq-question {
    align-items: center;
    appearance: none;
    background-color: var(--white);
    border: 0;
    color: var(--navy-blue);
    cursor: pointer;
    display: flex;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    gap: 1.5rem;
    justify-content: space-between;
    line-height: 1.45;
    padding: 1.15rem 1.35rem;
    text-align: left;
    transition: background-color 0.2s ease, color 0.2s ease;
    width: 100%;
}

.faq-question:hover {
    background-color: var(--light-grey);
}

.faq-item.is-open .faq-question {
    background-color: #f5f9ff;
}

.faq-question:focus-visible {
    box-shadow: inset 0 0 0 3px var(--sky-blue);
    outline: 2px solid var(--navy-blue);
    outline-offset: 2px;
    position: relative;
    z-index: 1;
}

.faq-icon {
    color: var(--navy-blue);
    flex: 0 0 1.5rem;
    font-size: 1.65rem;
    font-weight: 400;
    line-height: 1;
    text-align: center;
}

.faq-answer {
    background-color: var(--light-grey);
    height: 0;
    overflow: hidden;
    transition: height 0.25s ease;
}

.faq-answer[hidden] {
    display: none;
}

.faq-answer-content {
    border-top: 1px solid rgba(135, 206, 235, 0.75);
    padding: 1.25rem 1.35rem 1.35rem;
}

.faq-answer-content p {
    margin: 0 0 1rem;
}

.faq-answer-content p:last-child,
.faq-answer-content ul:last-child {
    margin-bottom: 0;
}

.faq-answer-content ul {
    margin: 0 0 1rem 1.4rem;
    padding-left: 0.8rem;
}

.faq-answer-content li {
    margin-bottom: 0.3rem;
}

.faq-answer-content a,
.faq-regulatory-notice a {
    color: var(--navy-blue);
    font-weight: 700;
    text-decoration-color: var(--sky-blue);
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

.faq-answer-content a:hover,
.faq-regulatory-notice a:hover {
    text-decoration-color: var(--gold);
}

.faq-regulatory-notice {
    background-color: var(--light-grey);
    border-left: 4px solid var(--gold);
    color: #5c5c5c;
    font-size: 0.9rem;
    line-height: 1.55;
    margin-top: 1.5rem;
    padding: 1rem 1.15rem;
}

@media (max-width: 768px) {
    .faq-section {
        padding-left: 5%;
        padding-right: 5%;
    }

    .faq-section .section-title {
        font-size: 2.15rem;
    }

    .faq-question {
        gap: 1rem;
        padding: 1rem;
    }

    .faq-answer-content {
        padding: 1.1rem 1rem 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .faq-question,
    .faq-answer {
        transition: none;
    }
}

/* Footer */
footer {
    background-color: var(--navy-blue);
    color: var(--white);
    padding: 3rem 5% 1rem;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 2rem;
    text-align: left;
}

.footer-section h4 {
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        grid-template-columns: 1fr auto;
        padding: 0.5rem 0;
    }

    .nav-container > nav {
        grid-column: 1 / span 2;
        width: 100%;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--navy-blue);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem 5%;
        gap: 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.2);
        border-top: 1px solid rgba(255,255,255,0.1);
    }

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

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

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

    .nav-links a {
        display: block;
        padding: 12px 0;
        font-size: 1.1rem;
    }

    .nav-links a.active {
        border-bottom: none;
        color: var(--gold);
        font-weight: bold;
    }

    .field-status {
        display: none; /* Hide in header on mobile to save space, but it's on the homepage anyway */
    }

    .hamburger {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Weather Enhancements */
@media (max-width: 992px) {
    .weather-container {
        grid-template-columns: 1fr !important;
    }
    .radar-map {
        order: -1; /* Show radar on top for mobile */
    }
}
/* About Page Layout */
.field-features-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 1.5rem;
    margin: 0 0 1.5rem 0;
}

.field-feature-group {
    border-left: 4px solid var(--gold);
    padding-left: 1rem;
}

.field-feature-group h4 {
    color: var(--navy-blue);
    font-size: 1rem;
    margin: 0 0 0.45rem 0;
}

.field-feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.field-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.35;
    margin-bottom: 0.35rem;
}

.field-feature-list li:last-child {
    margin-bottom: 0;
}

.field-feature-list span {
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1.35;
}

@media (max-width: 768px) {
    div[style*="grid-template-columns: 300px 1fr"] {
        grid-template-columns: 1fr !important;
    }

    .field-features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Directions Form */
.directions-form {
    margin-top: 2rem;
    display: flex;
    gap: 10px;
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.directions-form input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.directions-form .btn {
    white-space: nowrap;
}

@media (max-width: 600px) {
    .directions-form {
        flex-direction: column;
    }
}

/* Weather Refinements */
.weather-icon {
    width: 100%;
    height: 100%;
    display: block;
}

@keyframes anim-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}
.anim-pulse { animation: anim-pulse 3s infinite ease-in-out; }

@keyframes anim-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.anim-rotate { animation: anim-rotate 10s infinite linear; }

@keyframes anim-drift {
    0% { transform: translateX(0); }
    50% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}
.anim-drift { animation: anim-drift 5s infinite ease-in-out; }

@keyframes anim-rain {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -20; }
}
.anim-rain .rain-drop {
    stroke-dasharray: 4, 10;
    animation: anim-rain 1s infinite linear;
}

@keyframes anim-snow {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(10px) rotate(20deg); opacity: 0; }
}
.anim-snow .snow-flake {
    animation: anim-snow 2s infinite linear;
}
.anim-snow .snow-flake:nth-child(2) { animation-delay: 0.5s; }
.anim-snow .snow-flake:nth-child(3) { animation-delay: 1.2s; }

@keyframes anim-thunder {
    0% { filter: drop-shadow(0 0 0 rgba(255,215,0,0)); }
    10% { filter: drop-shadow(0 0 10px rgba(255,215,0,1)); }
    20% { filter: drop-shadow(0 0 0 rgba(255,215,0,0)); }
}
.anim-thunder { animation: anim-thunder 4s infinite; }

@keyframes anim-wind {
    0% { transform: translateX(-2px); }
    50% { transform: translateX(2px); }
    100% { transform: translateX(-2px); }
}
.anim-wind { animation: anim-wind 2s infinite ease-in-out; }


/* Dashboard Styling Refinements */
.weather-card {
    border-left: none !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    background: #ffffff !important;
    border: 1px solid #eee;
}

.weather-card-tab {
    height: 8px;
    width: 100%;
}

.tab-good { background-color: #28a745; }
.tab-caution { background-color: #ffc107; }
.tab-hazardous { background-color: #dc3545; }
.tab-altimeter { background-color: #007bff; }
.tab-neutral { background-color: #dee2e6; }

.weather-stat-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centering content */
    text-align: center; /* Centering text */
    justify-content: center;
    height: 100%;
}

.weather-stat-label {
    text-transform: uppercase;
    color: #999;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

.weather-main-stat {
    font-size: 1.6rem;
    color: var(--navy-blue);
    font-weight: 500;
    margin: 0;
}

.weather-sub-stat {
    font-size: 0.9rem;
    color: #666;
    margin-top: 4px;
}

#sunset-time {
    font-size: 0.9rem;
    color: rgba(0,0,0,0.6);
    margin-top: 2px;
}

/* News & Events Professional Cards */
.news-item, .event-item {
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    text-align: left;
}

.news-item {
    flex-direction: column;
    border-top: 4px solid var(--gold);
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.event-item {
    align-items: center;
    border-left: 4px solid var(--sky-blue);
}

.event-item:hover {
    transform: translateX(5px);
    background-color: #f9fdf9;
}

/* Event Date Badge */
.event-date-badge {
    background-color: var(--navy-blue);
    color: var(--white);
    min-width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    flex-shrink: 0;
}

.event-date-badge span {
    display: block;
}

.event-month {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: bold;
    color: var(--sky-blue);
}

.event-day {
    font-size: 1.2rem;
    font-weight: 800;
}

/* Card Metadata Units */
.meta-unit {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #666;
    margin-top: 4px;
}

.meta-icon {
    width: 14px;
    height: 14px;
    fill: #999;
}

.news-tag {
    align-items: center;
    align-self: flex-start;
    display: inline-flex;
    gap: 0.35rem;
    padding: 5px 14px;
    background: rgba(255, 215, 0, 0.1);
    color: var(--navy-blue);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 999px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    max-width: max-content;
    width: auto;
}

.news-title, .event-title {
    font-weight: bold;
    color: var(--navy-blue);
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.news-content p {
    margin: 0 0 1rem;
}

.news-content p:last-child,
.news-content ul:last-child {
    margin-bottom: 0;
}

.news-content ul {
    margin: 0 0 1rem 1.25rem;
    padding-left: 1rem;
}

.news-content li {
    margin-bottom: 0.35rem;
}

.news-preview {
    color: #444;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.news-preview-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-read-more {
    color: var(--sky-blue);
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 0.6rem;
    text-decoration: none;
}

.news-read-more:hover {
    color: var(--navy-blue);
    text-decoration: underline;
}

/* Enhanced Gallery Grid with Hover Effects */
.gallery-heading-row {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.gallery-heading-row .section-title {
    margin-bottom: 0;
    text-align: left;
}

.gallery-selector {
    align-items: center;
    display: flex;
    gap: 10px;
}

.gallery-selector label {
    color: var(--navy-blue);
    font-weight: 700;
    white-space: nowrap;
}

.gallery-event-select {
    background: var(--white);
    border: 1px solid rgba(0, 0, 128, 0.25);
    border-radius: 6px;
    color: var(--navy-blue);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    max-width: 100%;
    min-width: 220px;
    padding: 0.55rem 2rem 0.55rem 0.75rem;
}

.gallery-event-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.25);
    outline: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 280px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    text-decoration: none;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: white;
    padding: 16px;
    font-size: 0.95rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

.gallery-event-card {
    background: var(--white);
    border: 1px solid rgba(0, 0, 128, 0.12);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    color: var(--dark-grey);
    display: grid;
    grid-template-rows: 220px auto;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-event-card:hover {
    box-shadow: 0 12px 24px rgba(0,0,0,0.22);
    transform: translateY(-6px);
}

.gallery-event-card img,
.gallery-card-placeholder {
    height: 100%;
    width: 100%;
}

.gallery-event-card img {
    object-fit: cover;
}

.gallery-card-placeholder {
    align-items: center;
    background: linear-gradient(135deg, var(--navy-blue), var(--sky-blue));
    color: var(--gold);
    display: flex;
    font-weight: 700;
    justify-content: center;
    text-align: center;
}

.gallery-card-content {
    padding: 1.25rem;
}

.gallery-card-content h3 {
    color: var(--navy-blue);
    font-size: 1.25rem;
    margin-bottom: 0.4rem;
}

.gallery-card-content p {
    color: #666;
    margin-bottom: 1rem;
}

.gallery-card-link {
    background: var(--gold);
    border-radius: 6px;
    color: var(--navy-blue);
    display: inline-block;
    font-weight: 700;
    padding: 0.55rem 0.9rem;
}

.gallery-event-card:hover .gallery-card-link {
    background: var(--navy-blue);
    color: var(--gold);
}

/* GLightbox Custom Styling */
.gslide-description {
    background: rgba(0, 0, 128, 0.9) !important;
    color: var(--gold) !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gallery-heading-row {
        align-items: stretch;
    }

    .gallery-selector {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .gallery-event-select {
        min-width: 0;
        width: 100%;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }
    
    .gallery-item {
        height: 220px;
    }

    .gallery-card-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .gallery-event-card {
        grid-template-rows: 200px auto;
    }
}

.no-data {
    text-align: center;
    padding: 3rem;
    color: #888;
    font-style: italic;
    grid-column: 1 / -1;
}

/* GLightbox Fullscreen Configuration */
.glightbox-container {
    width: 100vw !important;
    height: 100vh !important;
}

.glightbox-container .gslide-media {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.glightbox-container .gslide-image {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* GLightbox Image Sizing - 80% viewport, proper aspect ratio */
.glightbox-container .gslide-image img {
    max-width: 80vw !important;
    max-height: 80vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
}

/* Prevent parent containers from forcing dimensions */
.glightbox-container .gslide-inline .gslide-media,
.glightbox-container .gslide-image .gslide-media {
    width: auto !important;
    height: auto !important;
}

.glightbox-container .ginner-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
}

/* Responsive sizing for different devices */
@media (max-width: 768px) {
    /* Tablet */
    .glightbox-container .gslide-image img {
        max-width: 85vw !important;
        max-height: 75vh !important;
    }
}

@media (max-width: 480px) {
    /* Phone */
    .glightbox-container .gslide-image img {
        max-width: 90vw !important;
        max-height: 70vh !important;
    }
}

/* Description box styling */
/* Caption container - relative positioning for absolute children */
.glightbox-container .gdesc-inner,
.glightbox-container .gslide-desc {
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    max-width: 80vw !important;
    width: auto !important;
    min-width: 300px !important;
    background: rgba(0, 0, 128, 0.95) !important;
    color: #FFD700 !important;
    padding: 16px 120px 16px 30px !important;
    border-radius: 0 !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3) !important;
    margin: 0 !important;
    position: relative !important;
    text-align: center !important;
    display: block !important;
}

/* Caption text (centered across full width) */
.caption-text {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
}

/* Counter (absolutely positioned on right, doesn't affect centering) */
.caption-counter {
    position: absolute !important;
    right: 30px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    white-space: nowrap !important;
}

/* Responsive caption for tablet */
@media (max-width: 768px) {
    .glightbox-container .gdesc-inner,
    .glightbox-container .gslide-desc {
        max-width: 85vw !important;
        padding: 12px 100px 12px 20px !important;
        font-size: 1rem !important;
    }
    
    .caption-counter {
        right: 20px !important;
    }
}

/* Responsive caption for phone */
@media (max-width: 480px) {
    .glightbox-container .gdesc-inner,
    .glightbox-container .gslide-desc {
        max-width: 90vw !important;
        padding: 10px 16px !important;
        font-size: 0.9rem !important;
        text-align: left !important;
    }
    
    .caption-text {
        text-align: left !important;
        margin-bottom: 4px !important;
    }
    
    .caption-counter {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        display: block !important;
        text-align: left !important;
    }
}

/* --- Facebook Footer Button (Compact) --- */
.facebook-button-compact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1877F2; /* Facebook Blue */
    color: white !important;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 12px;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.facebook-button-compact:hover {
    background: #166fe5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.fb-icon-small {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

@media (max-width: 480px) {
    .facebook-button-compact {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}
