/* Sundial Farm Clocks - Site Styles */

/* ============================================
   LAYOUT
   ============================================ */

#main-content > div:first-child {
    min-height: 600px;
}

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

/* Filters bar */
.gallery-filters {
    text-align: center;
    margin: 0 auto 1em auto;
    padding: 0.75em 1em;
    line-height: 2;
}

.gallery-filter-label {
    font-weight: 600;
    color: #374151;
    margin-right: 0.5em;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.05em;
}

.gallery-filter-link {
    display: inline-block;
    padding: 0.25em 0.75em;
    margin: 0.15em 0.1em;
    border-radius: 0.25em;
    font-size: 0.9em;
    color: #4b5563;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.gallery-filter-link:hover {
    background-color: #f3f4f6;
    color: #111827;
    text-decoration: none;
}

.gallery-filter-link.active {
    background-color: #1f2937;
    color: #fff;
}

.gallery-filter-separator {
    color: #d1d5db;
    margin: 0 0.5em;
}

.gallery-count {
    text-align: center;
    font-size: 0.9em;
    color: #6b7280;
    margin-bottom: 1.5em;
}

.gallery-empty {
    text-align: center;
    padding: 3em 1em;
    color: #6b7280;
}

/* Grid: responsive 1→6 columns */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5em;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 0 2em 0;
}

/* Cap at 6 columns on wide screens */
@media (min-width: 1500px) {
    .gallery-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Card */
.gallery-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 0.5em;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.gallery-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
    text-decoration: none;
    color: inherit;
}

/* Card image container */
.gallery-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background-color: #f3f4f6;
}

.gallery-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-card-image img {
    transform: scale(1.04);
}

.gallery-card-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    font-size: 3em;
}

/* Sold / Featured badge */
.gallery-card-badge {
    position: absolute;
    top: 0.5em;
    left: 0.5em;
    padding: 0.2em 0.6em;
    border-radius: 0.25em;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gallery-card-badge.sold {
    background-color: rgba(220, 38, 38, 0.9);
    color: #fff;
}

.gallery-card-badge.featured {
    background-color: rgba(245, 158, 11, 0.9);
    color: #fff;
}

.gallery-card-badge.coming-soon {
    background-color: rgba(101, 134, 185, 0.9);
    color: #fff;
}

/* Card info (below image) */
.gallery-card-info {
    padding: 0.75em 0.75em 1em;
}

.gallery-card-title {
    font-size: 0.85em;
    font-weight: 600;
    line-height: 1.3;
    color: #1f2937;
    margin: 0 0 0.25em 0;
    /* Clamp to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-card-categories {
    font-size: 0.75em;
    color: #6b7280;
    margin: 0 0 0.15em 0;
    line-height: 1.3;
}

.gallery-card-ref {
    font-size: 0.7em;
    color: #9ca3af;
    margin: 0;
    font-style: italic;
}

/* Responsive tweaks */
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75em;
    }
    .gallery-card-info {
        padding: 0.5em;
    }
    .gallery-card-title {
        font-size: 0.8em;
    }
}

/* ============================================
   GALLERY — DARK MODE
   ============================================ */

body.dark-mode .gallery-filter-label {
    color: #d1d5db;
}

body.dark-mode .gallery-filter-link {
    color: #9ca3af;
}

body.dark-mode .gallery-filter-link:hover {
    background-color: #1f2937;
    color: #f3f4f6;
}

body.dark-mode .gallery-filter-link.active {
    background-color: #e5e7eb;
    color: #111827;
}

body.dark-mode .gallery-filter-separator {
    color: #4b5563;
}

body.dark-mode .gallery-count {
    color: #9ca3af;
}

body.dark-mode .gallery-card {
    background: #1f2937;
    border-color: #374151;
}

body.dark-mode .gallery-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

body.dark-mode .gallery-card-image {
    background-color: #111827;
}

body.dark-mode .gallery-card-no-image {
    color: #4b5563;
}

body.dark-mode .gallery-card-title {
    color: #f3f4f6;
}

body.dark-mode .gallery-card-categories {
    color: #9ca3af;
}

body.dark-mode .gallery-card-ref {
    color: #6b7280;
}

/* ============================================
   CLOCK DETAIL PAGE
   ============================================ */

.clock-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 2em 0;
}

.clock-breadcrumb {
    font-size: 0.85em;
    color: #6b7280;
    margin: 1.5em 0;
}

.clock-breadcrumb a {
    color: #4b5563;
    text-decoration: none;
}

.clock-breadcrumb a:hover {
    text-decoration: underline;
}

.clock-breadcrumb .separator {
    margin: 0 0.4em;
    color: #d1d5db;
}

.clock-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5em;
    align-items: start;
}

@media (max-width: 768px) {
    .clock-detail-layout {
        grid-template-columns: 1fr;
        gap: 1.5em;
    }
}

/* Images */
.clock-main-image {
    position: relative;
    border-radius: 0.5em;
    overflow: hidden;
    background: #f3f4f6;
}

.clock-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.clock-thumbnails {
    display: flex;
    gap: 0.5em;
    margin-top: 0.75em;
    flex-wrap: wrap;
}

.clock-thumbnail {
    width: 70px;
    height: 70px;
    border: 2px solid #e5e7eb;
    border-radius: 0.375em;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: none;
    transition: border-color 0.2s;
}

.clock-thumbnail:hover {
    border-color: #9ca3af;
}

.clock-thumbnail.active {
    border-color: #2563eb;
}

.clock-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Size-gauge thumbnail is a portrait SVG — contain (not cover) so it isn't cropped,
   on white so its transparent letterbox areas stay visible in dark mode. */
.clock-thumbnail--gauge img {
    object-fit: contain;
    background: #fff;
}

/* Detail info */
.clock-detail-title {
    font-size: 1.6em;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.4em 0;
    line-height: 1.25;
}

.clock-detail-categories {
    font-size: 0.9em;
    color: #6b7280;
    margin: 0 0 1em 0;
}

.clock-detail-categories a {
    color: #4b5563;
    text-decoration: none;
}

.clock-detail-categories a:hover {
    text-decoration: underline;
}

.clock-detail-meta {
    font-size: 0.9em;
    color: #374151;
    margin: 0.25em 0;
}

.clock-detail-price {
    font-size: 1.3em;
    font-weight: 700;
    color: #111827;
    margin: 1em 0;
}

.clock-detail-price.sold-label {
    color: #dc2626;
}

.clock-detail-description,
.clock-detail-section {
    margin: 1.25em 0;
    font-size: 0.95em;
    line-height: 1.6;
    color: #374151;
}

.clock-detail-section h3 {
    font-size: 1.05em;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.4em 0;
}

.clock-detail-cta {
    margin-top: 1.5em;
    padding-top: 1.5em;
    border-top: 1px solid #e5e7eb;
}

.clock-detail-back {
    margin-top: 2em;
    padding-top: 1em;
    border-top: 1px solid #e5e7eb;
    font-size: 0.9em;
}

.clock-detail-back a {
    color: #4b5563;
    text-decoration: none;
}

.clock-detail-back a:hover {
    text-decoration: underline;
}

/* ============================================
   CLOCK DETAIL — LIGHTBOX
   ============================================ */

#clock-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
}

#clock-lightbox.active {
    display: flex;
}

#clock-lightbox .lb-img {
    max-width: 92vw;
    max-height: 92vh;
    object-fit: contain;
}

#clock-lightbox .lb-close {
    position: absolute;
    top: 12px;
    right: 20px;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 100000;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

#clock-lightbox .lb-close:hover {
    opacity: 1;
}

#clock-lightbox .lb-prev,
#clock-lightbox .lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 100000;
    padding: 20px 16px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

#clock-lightbox .lb-prev:hover,
#clock-lightbox .lb-next:hover {
    opacity: 1;
}

#clock-lightbox .lb-prev {
    left: 0;
}

#clock-lightbox .lb-next {
    right: 0;
}

/* ============================================
   CLOCK DETAIL — DARK MODE
   ============================================ */

body.dark-mode .clock-breadcrumb {
    color: #9ca3af;
}

body.dark-mode .clock-breadcrumb a {
    color: #93c5fd;
}

body.dark-mode .clock-breadcrumb .separator {
    color: #4b5563;
}

body.dark-mode .clock-main-image {
    background: #111827;
}

body.dark-mode .clock-thumbnail {
    border-color: #374151;
}

body.dark-mode .clock-thumbnail:hover {
    border-color: #6b7280;
}

body.dark-mode .clock-thumbnail.active {
    border-color: #3b82f6;
}

body.dark-mode .clock-detail-title {
    color: #f3f4f6;
}

body.dark-mode .clock-detail-categories a {
    color: #93c5fd;
}

body.dark-mode .clock-detail-meta {
    color: #d1d5db;
}

body.dark-mode .clock-detail-price {
    color: #f3f4f6;
}

body.dark-mode .clock-detail-description,
body.dark-mode .clock-detail-section {
    color: #d1d5db;
}

body.dark-mode .clock-detail-section h3 {
    color: #f3f4f6;
}

body.dark-mode .clock-detail-cta {
    border-color: #374151;
}

body.dark-mode .clock-detail-back {
    border-color: #374151;
}

body.dark-mode .clock-detail-back a {
    color: #93c5fd;
}

/* ============================================
   DARK MODE TOGGLE
   ============================================ */
.dark-mode-toggle {
    background: none;
    border: 1px solid #6b7280;
    border-radius: 0.375rem;
    padding: 0.25rem 0.6rem;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    transition: background-color 0.2s;
}
.dark-mode-toggle:hover {
    background-color: rgba(255,255,255,0.1);
}

/* ============================================
   LIGHT MODE (default)
   ============================================ */

/* Form field visibility */
.form-group input.form-control,
.form-group textarea.form-control,
.form-group select.form-control,
.form-group textarea,
.form-group select,
input.form-control,
textarea.form-control,
select.form-control {
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background-color: #fff;
    font-size: 0.95rem;
    color: #1f2937;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-group input.form-control:focus,
.form-group textarea.form-control:focus,
.form-group select.form-control:focus,
input.form-control:focus,
textarea.form-control:focus,
select.form-control:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-group label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

.form-group label.required::after {
    content: " *";
    color: #ef4444;
}

/* Template cards */
.template-card {
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.template-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.12);
    transform: translateY(-1px);
}

.template-card.selected {
    border-color: #2563eb;
    background-color: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.template-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0.5rem 0 0.25rem 0;
}

.template-card p {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.3;
}

.template-card .template-thumbnail {
    border-radius: 0.375rem;
    overflow: hidden;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.template-card .template-thumbnail svg,
.template-card .template-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}


/* ============================================
   DARK MODE
   ============================================ */

body.dark-mode {
    background-color: #111827 !important;
    color: #e5e7eb !important;
}

/* Main page background */
body.dark-mode .min-h-screen,
body.dark-mode div.bg-gray-100 {
    background-color: #111827 !important;
}

/* Main content area */
body.dark-mode main#main {
    color: #e5e7eb;
}

/* Headings */
body.dark-mode .h1,
body.dark-mode .h2,
body.dark-mode .h2-no-margin,
body.dark-mode .h3,
body.dark-mode .h4,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4 {
    color: #f3f4f6;
}

/* Links */
body.dark-mode a {
    color: #93c5fd;
}
body.dark-mode a:hover {
    color: #bfdbfe;
}

/* Navigation bar */
body.dark-mode nav[style*="background-color: #1f2937"] {
    background-color: #030712 !important;
    border-bottom: 1px solid #1f2937;
}

/* Forms */
body.dark-mode .form-group input.form-control,
body.dark-mode .form-group textarea.form-control,
body.dark-mode .form-group select.form-control,
body.dark-mode .form-group textarea,
body.dark-mode .form-group select,
body.dark-mode input.form-control,
body.dark-mode textarea.form-control,
body.dark-mode select.form-control {
    background-color: #1f2937;
    border-color: #374151;
    color: #e5e7eb;
}

body.dark-mode .form-group input.form-control:focus,
body.dark-mode .form-group textarea.form-control:focus,
body.dark-mode .form-group select.form-control:focus,
body.dark-mode input.form-control:focus,
body.dark-mode textarea.form-control:focus,
body.dark-mode select.form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

body.dark-mode .form-group input.form-control::placeholder,
body.dark-mode .form-group textarea.form-control::placeholder,
body.dark-mode input.form-control::placeholder,
body.dark-mode textarea.form-control::placeholder {
    color: #6b7280;
}

body.dark-mode .form-group label {
    color: #d1d5db;
}

body.dark-mode select option {
    background-color: #1f2937;
    color: #e5e7eb;
}

/* Forms - general form styling */
body.dark-mode form.form {
    color: #e5e7eb;
}

/* Tables */
/* Sticky table headers for admin tables */
.admin table.table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #e2e8f0;
}

body.dark-mode table.table,
body.dark-mode table.table tr {
    border-color: #374151;
}

body.dark-mode table.table tr th,
body.dark-mode .admin table.table thead th {
    background-color: #1f2937;
    color: #d1d5db;
    border-color: #374151;
}

body.dark-mode table.table tr td {
    background-color: #111827;
    color: #e5e7eb;
    border-color: #374151;
}

body.dark-mode table.table tbody tr:nth-child(even) td {
    background-color: #1a2332;
}

body.dark-mode table.table tbody tr:hover td {
    background-color: #1e3a5f;
}

/* Content section table - override inline background colors */
body.dark-mode table[wire\:sortable] tbody tr[style*="background-color"] {
    background-color: transparent !important;
}
body.dark-mode table[wire\:sortable] tbody tr td {
    background-color: #111827 !important;
    border-color: #374151;
}
/* Inactive sections - keep a subtle red tint */
body.dark-mode table[wire\:sortable] tbody tr td[style*="#FFCDD2"],
body.dark-mode table[wire\:sortable] tbody tr[style*="#FFCDD2"] td {
    background-color: #3b1520 !important;
}

/* Buttons - primary */
body.dark-mode .btn-primary,
body.dark-mode .btn-blue,
body.dark-mode .button {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #fff;
}
body.dark-mode .btn-primary:hover,
body.dark-mode .btn-blue:hover {
    background-color: #1d4ed8;
}

/* Buttons - secondary */
body.dark-mode .btn-secondary,
body.dark-mode .btn-gray,
body.dark-mode .btn-grey {
    background-color: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}
body.dark-mode .btn-secondary:hover,
body.dark-mode .btn-gray:hover,
body.dark-mode .btn-grey:hover {
    background-color: #4b5563;
}

/* Buttons - danger */
body.dark-mode .btn-danger,
body.dark-mode .btn-red {
    background-color: #dc2626;
    border-color: #dc2626;
}
body.dark-mode .btn-danger:hover,
body.dark-mode .btn-red:hover {
    background-color: #b91c1c;
}

/* Buttons - warning */
body.dark-mode .btn-warning {
    background-color: #d97706;
    border-color: #d97706;
    color: #fff;
}

/* Alerts */
body.dark-mode .alert {
    border-color: #374151;
}
body.dark-mode .alert-success {
    background-color: #064e3b;
    color: #a7f3d0;
    border-color: #065f46;
}
body.dark-mode .alert-danger {
    background-color: #450a0a;
    color: #fca5a5;
    border-color: #7f1d1d;
}
body.dark-mode .alert-warning {
    background-color: #451a03;
    color: #fde68a;
    border-color: #78350f;
}
body.dark-mode .alert-info {
    background-color: #0c4a6e;
    color: #bae6fd;
    border-color: #075985;
}

/* Flash messages */
body.dark-mode .success-background {
    background-color: #064e3b !important;
    color: #a7f3d0;
}
body.dark-mode .danger-background {
    background-color: #450a0a !important;
    color: #fca5a5;
}
body.dark-mode .warning-background {
    background-color: #451a03 !important;
    color: #fde68a;
}

/* Admin navigation / vertical menus */
body.dark-mode nav.admin-menu,
body.dark-mode nav.vertical-menu {
    color: #e5e7eb;
}
body.dark-mode nav.admin-menu a,
body.dark-mode nav.vertical-menu a {
    color: #93c5fd;
}

body.dark-mode div.admin li a {
    color: #93c5fd;
}

/* Template cards - dark mode */
body.dark-mode .template-card {
    background-color: #1f2937;
    border-color: #374151;
}
body.dark-mode .template-card:hover {
    border-color: #60a5fa;
    box-shadow: 0 2px 8px rgba(96, 165, 250, 0.15);
}
body.dark-mode .template-card.selected {
    border-color: #3b82f6;
    background-color: #172554;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}
body.dark-mode .template-card h4 {
    color: #f3f4f6;
}
body.dark-mode .template-card p {
    color: #9ca3af;
}
body.dark-mode .template-card .template-thumbnail {
    background: #111827;
    border-color: #374151;
}

/* Form check boxes */
body.dark-mode .form-check.form-group {
    border-color: #374151;
    background-color: #1f2937;
}

/* Pagination */
body.dark-mode nav[role="navigation"] span,
body.dark-mode nav[role="navigation"] a {
    background-color: #1f2937;
    border-color: #374151;
    color: #e5e7eb;
}
body.dark-mode nav[role="navigation"] span[aria-current="page"] span {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

/* TinyMCE - override iframe wrapper background */
body.dark-mode .tox.tox-tinymce {
    border-color: #374151;
}
body.dark-mode .tox .tox-toolbar,
body.dark-mode .tox .tox-toolbar__overflow,
body.dark-mode .tox .tox-toolbar__primary {
    background-color: #1f2937;
}

/* Sortable handle */
body.dark-mode .sortable-handle {
    color: #9ca3af;
}

/* Horizontal rules */
body.dark-mode hr {
    border-color: #374151;
}

/* Radio and checkbox labels */
body.dark-mode input[type="radio"] + label,
body.dark-mode input[type="checkbox"] + label,
body.dark-mode label.inline-label,
body.dark-mode label.max-width-95 {
    color: #d1d5db;
}

/* Snap file selected indicator */
body.dark-mode .snap-file-selected-file {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Drop zone */
body.dark-mode .snap-dropzone {
    border-color: #4b5563 !important;
    background-color: #1f2937;
}
body.dark-mode .snap-dropzone p {
    color: #9ca3af !important;
}
body.dark-mode .snap-dropzone-active {
    border-color: #3b82f6 !important;
    background-color: #172554 !important;
}

/* Section preview on edit page */
.section-preview-content {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 20px;
    overflow: hidden;
}
.section-preview-hover-wrap {
    position: relative;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: border-color 0.2s;
    margin-bottom: 4px;
}
.section-preview-hover-wrap:last-child {
    margin-bottom: 0;
}

/* Make hover wraps fill the full column height */
.section-preview-content .column,
.section-preview-content .sidebar,
.section-preview-content .main-section {
    display: flex;
    flex-direction: column;
}
.section-preview-content .column .section-preview-hover-wrap,
.section-preview-content .sidebar .section-preview-hover-wrap,
.section-preview-content .main-section .section-preview-hover-wrap {
    flex: 1;
    margin-bottom: 0;
}
.section-preview-hover-wrap:hover {
    border-color: #3b82f6;
}
.section-preview-edit-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #2563eb;
    color: #fff !important;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.section-preview-edit-btn:hover {
    background: #1d4ed8;
    color: #fff !important;
}
.section-preview-hover-wrap:hover .section-preview-edit-btn {
    opacity: 1;
}

/* Always show on narrow screens */
@media (max-width: 768px) {
    .section-preview-hover-wrap {
        border-color: #3b82f6;
    }
    .section-preview-edit-btn {
        opacity: 1;
    }
}

/* Dark mode */
body.dark-mode .section-preview-content {
    border-color: #374151 !important;
    background-color: #111827;
}
body.dark-mode .section-preview-wrapper h3 {
    color: #d1d5db;
}
body.dark-mode .section-preview-hover-wrap:hover {
    border-color: #60a5fa;
}
body.dark-mode .section-preview-edit-btn {
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
@media (max-width: 768px) {
    body.dark-mode .section-preview-hover-wrap {
        border-color: #60a5fa;
    }
}

/* Misc inline backgrounds that need overriding */
body.dark-mode div[style*="background-color: #FFFFFF"],
body.dark-mode div[style*="background-color: #E0E0E0"] {
    background-color: transparent !important;
}

/* ============================================
   HOME PAGE — HERO SECTION
   ============================================ */

.home-hero {
    display: grid;
    grid-template-columns: 3fr 1fr;
    width: 100%;
    margin: 0 0 2em 0;
    overflow: hidden;
}

.home-hero-image {
    overflow: hidden;
    position: relative;
}

.home-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Slideshow container */
.home-hero-slideshow {
    position: relative;
    overflow: hidden;
    background-color: #1a1a1a;
    cursor: pointer;
}

.slideshow-track {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slideshow-slide {
    min-width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.slideshow-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #555;
    font-size: 4em;
}

/* Semi-transparent caption footer */
.slideshow-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    padding: 2em 1em 2.5em 1em;
    color: #fff;
}

.slideshow-caption h3 {
    font-size: 1.05em;
    font-weight: 600;
    margin: 0 0 0.2em 0;
    color: #fff;
    line-height: 1.3;
}

.slideshow-caption p {
    font-size: 0.85em;
    margin: 0;
    color: #d1d5db;
    line-height: 1.3;
}

.slideshow-caption .slideshow-price {
    color: #fbbf24;
    font-weight: 600;
}

.slideshow-caption .slideshow-sold {
    color: #ef4444;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8em;
    letter-spacing: 0.05em;
}

.slideshow-more-btn {
    position: absolute;
    bottom: 0.8em;
    right: 0.8em;
    background: #fbbf24;
    color: #1a1a1a;
    border: 1px solid #d4a017;
    padding: 0.3em 1em;
    font-size: 0.85em;
    font-weight: 600;
    text-decoration: none;
    border-radius: 3px;
    letter-spacing: 0.03em;
    transition: background 0.2s;
}

.slideshow-more-btn:hover {
    background: #e5ac1c;
    color: #1a1a1a;
}

/* Slideshow controls */
.slideshow-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5em;
    gap: 0.5em;
    z-index: 5;
}

.slideshow-prev,
.slideshow-next {
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.slideshow-prev:hover,
.slideshow-next:hover {
    background: rgba(0, 0, 0, 0.7);
}

.slideshow-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.slideshow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.slideshow-dot.active {
    background: #fff;
}

.slideshow-empty {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-empty a {
    text-align: center;
    color: #9ca3af;
    text-decoration: none;
    font-size: 1.2em;
}

.slideshow-empty i {
    font-size: 3em;
    display: block;
    margin-bottom: 0.5em;
}

/* Responsive: stack on narrow screens */
@media (max-width: 999px) {
    .home-hero {
        grid-template-columns: 1fr;
        max-height: none;
    }

    .home-hero-image {
        max-height: none;
        border-bottom: 2px solid #1e3a5f;
    }

    .home-hero-image img {
        height: auto;
    }

    .home-hero-slideshow {
        min-height: 500px;
    }

    .clock-detail,
    .events-page {
        padding-left: 0.5em;
        padding-right: 0.5em;
    }
}

/* ============================================
   HOME PAGE — CONTENT COLUMNS
   ============================================ */

.home-content {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 1em 2em 1em;
}

.home-columns {
    display: grid;
    gap: 2.5em;
}

.home-columns.two-col {
    grid-template-columns: 1fr 1fr;
}

.home-columns.three-col {
    grid-template-columns: 1fr 1fr 1fr;
}

.home-column {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5em;
    padding: 1.5em;
}

.home-column h2 {
    font-size: 1.3em;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.75em 0;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #d4a84b;
}

/* Events list on home page */
.home-events-list {
    margin: 0 0 1em 0;
}

.home-event-item {
    padding: 0.75em 0;
    border-bottom: 1px solid #f3f4f6;
}

.home-event-item:last-child {
    border-bottom: none;
}

.home-event-date {
    font-size: 0.8em;
    font-weight: 600;
    color: #d4a84b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.home-event-item h3 {
    font-size: 1em;
    font-weight: 600;
    color: #1f2937;
    margin: 0.15em 0 0.15em 0;
}

.home-event-item h3 a {
    color: #1f2937;
    text-decoration: none;
}

.home-event-item h3 a:hover {
    text-decoration: underline;
}

.home-event-location {
    font-size: 0.85em;
    color: #6b7280;
}

.home-event-location i {
    margin-right: 0.25em;
    color: #9ca3af;
}

.home-event-item p {
    font-size: 0.85em;
    color: #6b7280;
    margin: 0.3em 0 0 0;
    line-height: 1.4;
}

.home-view-all {
    display: inline-block;
    font-size: 0.9em;
    color: #d4a84b;
    text-decoration: none;
    font-weight: 500;
}

.home-view-all:hover {
    text-decoration: underline;
}

/* Responsive: stack columns */
@media (max-width: 768px) {
    .home-columns.two-col,
    .home-columns.three-col {
        grid-template-columns: 1fr;
    }

    .home-content {
        padding: 0 0.75em 2em 0.75em;
    }
}

/* ============================================
   SHOWS & EVENTS PAGE
   ============================================ */

.events-page {
    max-width: 900px;
    margin: 0 auto;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.event-card {
    display: flex;
    gap: 1.25em;
    padding: 1.25em;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5em;
    transition: box-shadow 0.2s;
}

.event-card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.event-card.past {
    opacity: 0.6;
}

.event-card-date {
    text-align: center;
    min-width: 60px;
    max-height: 100px;
    padding: 0.5em;
    background: #f9fafb;
    border-radius: 0.375em;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.event-month {
    font-size: 0.75em;
    font-weight: 600;
    color: #d4a84b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.event-day {
    font-size: 1.6em;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.1;
}

.event-year {
    font-size: 0.7em;
    color: #9ca3af;
}

.event-range {
    font-size: 0.65em;
    color: #6b7280;
}

.event-card-info h3 {
    font-size: 1.1em;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.25em 0;
}

.event-card-info h3 a {
    color: #1f2937;
    text-decoration: none;
}

.event-card-info h3 a:hover {
    text-decoration: underline;
}

.event-location {
    font-size: 0.9em;
    color: #6b7280;
    margin: 0 0 0.4em 0;
}

.event-location i {
    margin-right: 0.3em;
    color: #9ca3af;
}

.event-description {
    font-size: 0.9em;
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

.events-empty {
    text-align: center;
    padding: 3em 1em;
    color: #6b7280;
}

.events-empty i {
    font-size: 3em;
    color: #d1d5db;
    margin-bottom: 0.5em;
}

.events-empty p {
    margin: 0.5em 0;
}

/* ============================================
   SOCIAL SHARE
   ============================================ */

.social-share {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 1.5em 0;
    margin-top: 1em;
    border-top: 1px solid #e5e7eb;
}

.social-share-label {
    font-size: 0.85em;
    color: #6b7280;
    font-weight: 500;
    margin-right: 0.25em;
}

.social-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.2s;
    cursor: pointer;
}

.social-share-btn:hover {
    text-decoration: none;
}

.social-share-facebook:hover {
    background: #1877f2;
    color: #fff;
    border-color: #1877f2;
}

.social-share-pinterest:hover {
    background: #e60023;
    color: #fff;
    border-color: #e60023;
}

.social-share-instagram:hover {
    background: #e4405f;
    color: #fff;
    border-color: #e4405f;
}

.social-share-email:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}

.social-share-copy:hover {
    background: #059669;
    color: #fff;
    border-color: #059669;
}

/* ============================================
   HEADER
   ============================================ */

#header {
    background-color: #6586b9;
    width: 100%;
    position: relative;
    border-bottom: 1px solid #1e3a5f;
}

/* ============================================
   DESKTOP NAV (hidden below 1000px)
   ============================================ */

.nav-mobile { display: none; }

#top-nav-desktop {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0.5em 1em;
}

.nav-columns {
    display: flex;
    align-items: center;
    width: 100%;
}

#top-nav-desktop .nav-logo {
    flex-shrink: 0;
}

#top-nav-desktop .nav-logo img {
    height: 80px;
    width: auto;
    display: block;
}

.nav-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: 1.5em;
}

/* Desktop search field */
.nav-search {
    display: flex;
    align-items: center;
    gap: 0.35em;
    padding-right: 1.5em;
}

.nav-search input {
    padding: 0.4em 0.6em;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.25em;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.85em;
    width: 180px;
    height: 30px;
    outline: none;
    box-sizing: border-box;
}

.nav-search input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.nav-search input:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.nav-search button {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.25em;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    font-size: 0.85em;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    box-sizing: border-box;
}

.nav-search button:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Desktop menu items */
#top-nav-desktop ul.menu-wrapper {
    border: none !important;
    position: static !important;
    margin: 0.35em 0 0 0 !important;
    padding: 0;
    text-align: right;
}

#top-nav-desktop ul.menu-wrapper li {
    display: inline-block;
    margin: 0 1em;
}

#top-nav-desktop ul.menu-wrapper li:last-child {
    margin-right: 0;
}

#top-nav-desktop ul.menu-wrapper li a {
    color: #fff !important;
    font-size: 1.05em !important;
    border-bottom: 2px solid transparent !important;
    transition: border-color 0.2s;
    padding: 0.25em 0.5em;
}

#top-nav-desktop ul.menu-wrapper li a:hover,
#top-nav-desktop ul.menu-wrapper li a.active {
    border-bottom-color: #c9a84c !important;
}

/* ============================================
   DESKTOP DROPDOWN
   ============================================ */

#top-nav-desktop li.has-dropdown {
    position: relative;
}

#top-nav-desktop li.has-dropdown ul.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1e3a5f;
    border: 1px solid #2a4a72;
    border-radius: 0 0 0.375em 0.375em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    min-width: 180px;
    z-index: 10001;
    padding: 0.25em 0;
    margin-top: 0;
    text-align: left;
}

#top-nav-desktop li.has-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 10px;
    display: none;
}

#top-nav-desktop li.has-dropdown:hover::after {
    display: block;
}

#top-nav-desktop li.has-dropdown:hover ul.dropdown-menu {
    display: block;
}

#top-nav-desktop li.has-dropdown ul.dropdown-menu li {
    display: block;
}

#top-nav-desktop li.has-dropdown ul.dropdown-menu li a {
    display: block;
    padding: 0.4em 1em;
    font-size: 0.9em !important;
    color: #fff;
    text-decoration: none;
    border-bottom: none !important;
    white-space: nowrap;
}

#top-nav-desktop li.has-dropdown ul.dropdown-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

#top-nav-desktop li.has-dropdown ul.dropdown-menu li.dropdown-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0.25em 0;
}

/* ============================================
   MOBILE NAV (hidden above 999px)
   ============================================ */

@media (max-width: 999px) {
    .nav-desktop { display: none; }
    .nav-mobile { display: block; }
}

#top-nav-mobile {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0.5em 1em;
    position: relative;
}

/* Mobile top bar: logo left, hamburger right, vertically centered */
.nav-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#top-nav-mobile .nav-logo img {
    height: 60px;
    width: auto;
    display: block;
}

#top-nav-mobile .menu-control {
    position: static;
    font-size: 1.5em;
}

#top-nav-mobile .menu-control a {
    color: #fff;
    padding: 0.25em;
}

/* Mobile overlay menu — visibility controlled by Alpine x-show */
.mobile-menu-overlay {
    position: absolute;
    top: 100%;
    right: 0;
    background: #1e3a5f;
    border: 1px solid #2a4a72;
    border-radius: 0 0 0.375em 0.375em;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    z-index: 10002;
    min-width: 220px;
    max-width: 280px;
    padding: 0.5em 0;
}

/* Mobile menu items */
.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-list li {
    display: block;
}

.mobile-menu-list li a {
    display: block;
    padding: 0.6em 1.2em;
    color: #fff;
    text-decoration: none;
    font-size: 1em;
    border-bottom: none;
}

.mobile-menu-list li a:hover,
.mobile-menu-list li a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #c9a84c;
}

/* Mobile Gallery dropdown — flyout to the left */
.mobile-menu-list li.has-dropdown {
    position: relative;
}

.mobile-menu-list li.has-dropdown ul.dropdown-menu {
    display: none;
    position: absolute;
    top: 0;
    right: 100%;
    background: #1e3a5f;
    border: 1px solid #2a4a72;
    border-radius: 0.375em;
    box-shadow: -4px 4px 12px rgba(0, 0, 0, 0.25);
    min-width: 180px;
    z-index: 10003;
    padding: 0.25em 0;
    margin: 0;
}

.mobile-menu-list li.has-dropdown:hover ul.dropdown-menu {
    display: block;
}

.mobile-menu-list li.has-dropdown ul.dropdown-menu li {
    display: block;
}

.mobile-menu-list li.has-dropdown ul.dropdown-menu li a {
    padding: 0.4em 1em;
    font-size: 0.9em;
    white-space: nowrap;
}

.mobile-menu-list li.has-dropdown ul.dropdown-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.mobile-menu-list li.has-dropdown ul.dropdown-menu li.dropdown-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0.25em 0;
}

/* Mobile search at bottom of menu */
.mobile-menu-search {
    display: flex;
    align-items: center;
    gap: 0.35em;
    padding: 0.75em 1em 0.5em;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 0.25em;
}

.mobile-menu-search input {
    flex: 1;
    padding: 0.4em 0.6em;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.25em;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.85em;
    height: 30px;
    outline: none;
    box-sizing: border-box;
}

.mobile-menu-search input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.mobile-menu-search button {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.25em;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    box-sizing: border-box;
}

.mobile-menu-search button:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Template mode toggle buttons */
body.dark-mode #btn-template,
body.dark-mode #btn-blank {
    background-color: #1f2937;
    border-color: #374151;
    color: #d1d5db;
}
body.dark-mode #btn-template.border-blue-500,
body.dark-mode #btn-template[class*="bg-blue-50"] {
    background-color: #172554 !important;
    border-color: #3b82f6 !important;
    color: #93c5fd !important;
}

/* Scrollbars */
body.dark-mode ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
body.dark-mode ::-webkit-scrollbar-track {
    background: #1f2937;
}
body.dark-mode ::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 5px;
}
body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* ============================================
   HOME PAGE — DARK MODE
   ============================================ */

body.dark-mode .home-column {
    background-color: #1f2937;
    border-color: #374151;
}

body.dark-mode .home-column h2 {
    color: #f3f4f6;
    border-color: #d4a84b;
}

body.dark-mode .home-event-item {
    border-color: #374151;
}

body.dark-mode .home-event-item h3,
body.dark-mode .home-event-item h3 a {
    color: #f3f4f6;
}

body.dark-mode .home-event-location,
body.dark-mode .home-event-item p {
    color: #9ca3af;
}

body.dark-mode .home-view-all {
    color: #fbbf24;
}

/* Events page dark mode */
body.dark-mode .event-card {
    background-color: #1f2937;
    border-color: #374151;
}

body.dark-mode .event-card-date {
    background-color: #111827;
    border-color: #374151;
}

body.dark-mode .event-day {
    color: #f3f4f6;
}

body.dark-mode .event-card-info h3,
body.dark-mode .event-card-info h3 a {
    color: #f3f4f6;
}

body.dark-mode .event-location {
    color: #9ca3af;
}

body.dark-mode .event-description {
    color: #d1d5db;
}

/* Social share dark mode */
body.dark-mode .social-share {
    border-color: #374151;
}

body.dark-mode .social-share-label {
    color: #9ca3af;
}

body.dark-mode .social-share-btn {
    background: #1f2937;
    border-color: #374151;
    color: #9ca3af;
}

/* Nav dropdown dark mode */
body.dark-mode #top-nav-desktop li.has-dropdown ul.dropdown-menu,
body.dark-mode .mobile-menu-overlay,
body.dark-mode .mobile-menu-list li.has-dropdown ul.dropdown-menu {
    background: #1f2937;
    border-color: #374151;
}

body.dark-mode #top-nav-desktop li.has-dropdown ul.dropdown-menu li a,
body.dark-mode .mobile-menu-list li a {
    color: #d1d5db;
}

body.dark-mode #top-nav-desktop li.has-dropdown ul.dropdown-menu li a:hover,
body.dark-mode .mobile-menu-list li a:hover {
    background-color: #374151;
    color: #f3f4f6;
}

body.dark-mode #top-nav-desktop li.has-dropdown ul.dropdown-menu li.dropdown-divider,
body.dark-mode .mobile-menu-list li.has-dropdown ul.dropdown-menu li.dropdown-divider {
    border-color: #374151;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1em;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3em;
    margin-top: 1.5em;
}

.contact-section-heading {
    font-size: 1.5em;
    color: #1f2937;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.contact-left .contact-section-heading:first-child,
.contact-right .contact-section-heading:first-child {
    margin-top: 0;
}

.contact-left p,
.contact-right p {
    color: #4b5563;
    line-height: 1.6;
}

.contact-details {
    margin-top: 1.5em;
}

.contact-details p {
    margin: 0.5em 0;
}

.contact-details i {
    width: 1.25em;
    color: #6586b9;
    margin-right: 0.5em;
}

.contact-details a {
    color: #1f2937;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-form-wrapper .form-group {
    margin-bottom: 1em;
}

.contact-form-wrapper label {
    display: block;
    margin-bottom: 0.25em;
    font-weight: 500;
    color: #374151;
}

.contact-form-wrapper label .required {
    color: #dc2626;
}

.contact-form-wrapper .form-control {
    width: 100%;
    padding: 0.5em 0.75em;
    border: 1px solid #d1d5db;
    border-radius: 0.25em;
    font-size: 1em;
    box-sizing: border-box;
}

.contact-form-wrapper .form-control:focus {
    outline: none;
    border-color: #6586b9;
    box-shadow: 0 0 0 2px rgba(101, 134, 185, 0.2);
}

.contact-form-wrapper textarea.form-control {
    resize: vertical;
}

.contact-form-wrapper .btn-primary {
    padding: 0.6em 2em;
    font-size: 1em;
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 1.5em;
    }
}

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

#footer {
    background-color: #000;
    color: #fff;
    padding: 2em 2em 1.5em;
    font-size: 0.9em;
}

#footer a {
    color: #fff;
    text-decoration: none;
}

#footer a:hover {
    text-decoration: underline;
    color: #ccc;
}

.footer-nav {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5em 2em;
}

.footer-nav-main,
.footer-nav-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25em 1.5em;
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 50%;
}

.footer-nav-categories {
    min-width: 0;
    justify-content: flex-end;
}

.footer-hr {
    border: none;
    border-top: 1px solid #555;
    margin: 1.5em 0;
}

.footer-info {
    display: grid;
    grid-template-columns: 24% 24% 24% 24%;
    gap: 1em;
    text-align: center;
    align-items: center;
}

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

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

.footer-contact {
    font-size: 1.35em;
}

.footer-instagram {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
}

.footer-instagram-icon {
    width: 1.2em;
    height: 1.2em;
    vertical-align: middle;
}

.footer-bottom {
    margin-top: 1.5em;
    text-align: center;
    font-size: 0.85em;
    color: #aaa;
}

.footer-bottom a {
    color: #aaa;
}

.footer-bottom a:hover {
    color: #fff;
}

.footer-accessibility {
    margin-top: 0.5em;
}

@media (max-width: 768px) {
    .footer-nav {
        flex-direction: column;
        align-items: center;
    }

    .footer-nav-main,
    .footer-nav-categories {
        justify-content: center;
        min-width: 0;
    }

    .footer-info {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-info-left,
    .footer-info-right {
        text-align: center;
    }
}

/* ============================================
   HIGH CONTRAST MODE
   Activated via body.high-contrast class.
   Styles live here (not inline <head>) so they
   survive Livewire Blaze SPA navigation.
   ============================================ */

body.high-contrast {
    background-color: #FFF !important;
    color: #000 !important;
}

body.high-contrast h1,
body.high-contrast h2,
body.high-contrast h3,
body.high-contrast h4,
body.high-contrast h5,
body.high-contrast h6,
body.high-contrast div,
body.high-contrast p,
body.high-contrast li,
body.high-contrast span {
    color: #000 !important;
}

body.high-contrast label.optional-label {
    display: block !important;
    text-align: left !important;
    margin-bottom: .25em !important;
    color: #000 !important;
}

body.high-contrast input,
body.high-contrast textarea,
body.high-contrast select {
    border-color: #000 !important;
    color: #000 !important;
    background-color: #FFF !important;
}

body.high-contrast a,
body.high-contrast a:visited {
    text-decoration: underline !important;
    color: #000 !important;
}

body.high-contrast a:hover,
body.high-contrast a:focus {
    color: #444 !important;
}

body.high-contrast .btn {
    background-color: #000 !important;
    color: #FFF !important;
}

body.high-contrast #header {
    background-color: #000 !important;
    border-bottom-color: #000 !important;
}

body.high-contrast #header a,
body.high-contrast #header a:visited {
    color: #FFF !important;
}

body.high-contrast .nav-search input {
    background: #FFF !important;
    border-color: #FFF !important;
    color: #000 !important;
}

body.high-contrast .nav-search input::placeholder {
    color: #666 !important;
}

/* Leave footer unchanged in high contrast mode */
body.high-contrast #footer {
    background-color: #000 !important;
    color: #fff !important;
}

body.high-contrast #footer a,
body.high-contrast #footer a:visited {
    color: #fff !important;
    text-decoration: none !important;
}

body.high-contrast #footer a:hover,
body.high-contrast #footer a:focus {
    color: #ccc !important;
    text-decoration: underline !important;
}

body.high-contrast #footer div,
body.high-contrast #footer p,
body.high-contrast #footer li,
body.high-contrast #footer span {
    color: #fff !important;
}

body.high-contrast .footer-hr {
    border-top-color: #555 !important;
}

/* Slideshow caption: keep original text colors, add solid black background */
body.high-contrast .slideshow-caption {
    background: rgba(0, 0, 0, 0.9) !important;
}

body.high-contrast .slideshow-caption h3 {
    color: #fff !important;
}

body.high-contrast .slideshow-caption p {
    color: #d1d5db !important;
}

body.high-contrast .slideshow-caption .slideshow-price {
    color: #fbbf24 !important;
}

body.high-contrast .slideshow-caption .slideshow-sold {
    color: #ef4444 !important;
}

body.high-contrast .gallery-card {
    border-color: #000 !important;
}

body.high-contrast .gallery-filter-link.active {
    background-color: #000 !important;
    color: #FFF !important;
}

body.high-contrast img {
    border: 1px solid #000;
}

/* ============================================
   PRIVATE CODE BANNER
   ============================================ */

.private-code-banner {
    background-color: #fef3cd;
    border: 1px solid #ffc107;
    border-radius: 0.5em;
    padding: 1em 1.25em;
    margin-bottom: 1.25em;
    font-size: 0.95em;
    line-height: 1.5;
    color: #664d03;
}

.private-code-banner a {
    color: #0d6efd;
    word-break: break-all;
    font-weight: 600;
}

/* ============================================
   EVENTS PAGE — IMAGE & PASSES LINK
   ============================================ */

.event-image {
    margin-bottom: 1em;
}

.event-image img {
    max-width: 600px;
    max-height: 600px;
    width: 100%;
    height: auto;
    border-radius: 0.5em;
}

.event-passes {
    margin-top: 0.75em;
}

.event-passes a {
    font-weight: 600;
    word-break: break-all;
}

/* ============================================
   CLOCK DETAIL — VIDEOS SECTION
   ============================================ */

.clock-videos-section {
    margin: 2em 0 1em 0;
    max-width: 900px;
}

.clock-videos-heading {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 0.75em;
}

.clock-video-group {
    margin-bottom: 2em;
}

.clock-video-caption {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 0.5em;
}

.clock-video-embeds {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}

/*
 * 16:9 responsive wrapper using the padding-top trick.
 * Same technique as .gallery-card-image in this file (aspect-ratio / padding-top).
 */
.clock-video-embed-wrapper {
    position: relative;
    width: 100%;
    max-width: 560px;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
    border-radius: 0.25em;
    overflow: hidden;
}

.clock-video-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 600px) {
    .clock-video-embed-wrapper {
        max-width: 100%;
    }
}
