/* =========================================
   PINTEREST STYLE PHOTOGRAPHY GRID
   Design System
   ========================================= */

/* ── CSS RESET ──────────────────────────────────────────── */

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

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: #fafaf8;
    color: #0a0a0a;
    line-height: 1.5;
}

img {
    max-width: 100%;
    display: block;
}

button {
    border: none;
    background: none;
    font: inherit;
    cursor: pointer;
}

input {
    font: inherit;
}

/* ── DESIGN TOKENS ──────────────────────────────────────── */

:root {
    --font-primary: 'Space Grotesk', sans-serif;
    --font-mono: 'DM Mono', monospace;

    --color-bg: #fafaf8;
    --color-text-primary: #0a0a0a;
    --color-text-secondary: #999;
    --color-text-tertiary: #bbb;
    --color-text-quaternary: #ccc;
    --color-text-quinary: #ddd;
    --color-accent: #E00;
    --color-border: #eae9e6;
    --color-border-light: #e8e8e5;
    --color-border-medium: #ddd;

    --max-width: 1600px;
    --padding-mobile: 20px;
    --padding-desktop: 40px;
}

/* ── HEADER ─────────────────────────────────────────────── */

.site-header {
    background: rgba(250, 250, 248, 0.85);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--padding-mobile);
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 1024px) {
    .header-container {
        padding: 0 var(--padding-desktop);
    }
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-square {
    width: 20px;
    height: 20px;
    background: var(--color-accent);
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text-primary);
    display: none;
}

@media (min-width: 640px) {
    .logo-text {
        display: inline;
    }
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 16px;
}

@media (min-width: 768px) {
    .header-nav {
        display: flex;
    }
}

.nav-item {
    padding: 4px 12px;
    font-family: var(--font-primary);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-item:hover,
.nav-item.active {
    color: var(--color-text-primary);
}

/* ── HAMBURGER BUTTON ──────────────────────────────────── */

.hamburger-btn {
    display: none;
    /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
    margin-right: 4px;
    z-index: 60;
    position: relative;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.hamburger-line {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--color-text-primary);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

/* Animate to X when open */
.hamburger-btn.open .hamburger-line:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
}

.hamburger-btn.open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.open .hamburger-line:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
}

/* ── MOBILE MENU OVERLAY ───────────────────────────────── */

.subscribe-btn-mobile {
    display: none;
}

@media (max-width: 767px) {
    .hamburger-btn {
        display: flex;
    }

    .header-nav {
        display: none;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw;
        height: 100vh;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 108px;
        gap: 0;
        margin-right: 0;
        background: #FAFAF8 !important;
        z-index: 55;
        overflow-y: auto;
    }

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

    .header-nav .nav-item {
        font-size: 14px;
        letter-spacing: 0.18em;
        padding: 16px 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--color-border);
    }

    .header-nav .nav-item:first-child {
        border-top: 1px solid var(--color-border);
    }

    /* Subscribe button: hidden in header bar, shown inside menu */
    .subscribe-btn {
        display: none;
    }

    .header-nav .subscribe-btn-mobile {
        display: block;
        margin-top: 32px;
        padding: 12px 40px;
        font-family: var(--font-primary);
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        color: #fff;
        background: var(--color-text-primary);
        border: none;
        border-radius: 6px;
        cursor: pointer;
        transition: opacity 0.2s ease;
    }

    .header-nav .subscribe-btn-mobile:hover {
        opacity: 0.85;
    }
}

/* ── HERO SECTION ───────────────────────────────────────── */

.hero-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px var(--padding-mobile) 8px;
}

@media (min-width: 1024px) {
    .hero-section {
        padding: 56px var(--padding-desktop) 8px;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 1024px) {
    .hero-content {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 32px;
    }
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
    margin-bottom: 8px;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(40px, 7vw, 100px);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 0.88;
    text-transform: uppercase;
    color: var(--color-text-primary);
}

.hero-title-line {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.hero-dot {
    color: var(--color-accent);
}

.hero-description {
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    max-width: 300px;
    padding-bottom: 8px;
}

/* ── ACCENT LINE ────────────────────────────────────────── */

.accent-line-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px var(--padding-mobile);
}

@media (min-width: 1024px) {
    .accent-line-section {
        padding: 24px var(--padding-desktop);
    }
}

.accent-line {
    height: 1px;
    background: var(--color-border-light);
    position: relative;
}

.accent-line::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 48px;
    height: 1px;
    background: var(--color-accent);
}

/* ── LATEST POST BANNER ─────────────────────────────────── */

.latest-post-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--padding-mobile);
    padding-bottom: 32px;
}

@media (min-width: 1024px) {
    .latest-post-section {
        padding: 0 var(--padding-desktop);
        padding-bottom: 32px;
    }
}

.latest-post-banner {
    display: block;
    position: relative;
    overflow: hidden;
    background: #0a0a0a;
    text-decoration: none;
    height: 200px;
    transition: all 0.3s ease;
}

.latest-post-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.latest-post-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    transition: opacity 0.5s ease;
}

.latest-post-banner:hover .latest-post-image {
    opacity: 0.5;
}

.latest-post-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.latest-post-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    z-index: 1;
}

@media (min-width: 1024px) {
    .latest-post-content {
        padding: 40px;
    }
}

.latest-post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.latest-post-badge {
    padding: 2px 8px;
    background: #E00;
    color: white;
    font-family: var(--font-primary);
    font-size: 8px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
}

.latest-post-date {
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-mono);
    font-size: 10px;
}

.latest-post-title {
    color: white;
    font-family: var(--font-primary);
    font-size: clamp(16px, 2.5vw, 28px);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 0.95;
    max-width: 600px;
    margin: 0 0 12px 0;
}

.latest-post-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-mono);
    font-size: 10px;
}

.latest-post-separator {
    color: rgba(255, 255, 255, 0.3);
}

.latest-post-excerpt {
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.latest-post-arrow {
    position: absolute;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 1;
}

@media (min-width: 1024px) {
    .latest-post-arrow {
        right: 40px;
    }
}

.latest-post-banner:hover .latest-post-arrow {
    color: #E00;
    transform: translateY(-50%) translateX(4px);
}

/* ── ADVANCED FILTER BAR ────────────────────────────────── */

.filter-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--padding-mobile) 32px;
}

@media (min-width: 1024px) {
    .filter-section {
        padding: 0 var(--padding-desktop) 32px;
    }
}

.advanced-filter-bar {
    display: flex;
    flex-direction: column;
}

/* Top Row: Search + Toggle + Count */
.filter-top-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-wrapper-advanced {
    position: relative;
    flex: 1;
}

.search-icon-advanced {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-light);
}

.search-input-advanced {
    width: 100%;
    padding-left: 24px;
    padding-right: 32px;
    padding-top: 10px;
    padding-bottom: 10px;
    border: none;
    border-bottom: 2px solid var(--color-border);
    background: transparent;
    font-family: var(--font-primary);
    font-size: 14px;
    letter-spacing: 0.01em;
    color: var(--color-text);
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input-advanced:focus {
    border-bottom-color: var(--color-text);
}

.search-input-advanced::placeholder {
    color: var(--color-text-light);
}

.search-clear-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    padding: 4px;
    opacity: 0;
    transition: all 0.2s ease;
}

.search-clear-btn:hover {
    color: var(--color-text);
}

.search-input-advanced:not(:placeholder-shown)+.search-clear-btn {
    opacity: 1;
}

.filters-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-text-medium);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.filters-toggle-btn:hover {
    border-color: var(--color-text);
    color: var(--color-text);
}

.filters-toggle-btn.active {
    background: #0a0a0a;
    border-color: #0a0a0a;
    color: white;
}

.filters-toggle-text {
    font-family: var(--font-primary);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.filters-active-count {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    background: var(--color-accent);
    color: white;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
}

.filters-active-count.visible {
    display: flex;
}

.advanced-result-count {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-text-light);
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .advanced-result-count {
        display: none;
    }
}

/* Expandable Filter Panel */
.filter-panel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.3s ease;
}

.filter-panel.expanded {
    max-height: 600px;
    opacity: 1;
}

.filter-panel-content {
    padding-top: 24px;
    padding-bottom: 8px;
}

.filter-section-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border-light);
}

.filter-section-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-light);
    width: 80px;
    min-width: 80px;
    flex-shrink: 0;
    padding-top: 2px;
}

.filter-section-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
}

.filter-section-pill {
    padding: 4px 12px;
    border: 1px solid var(--color-border);
    background: transparent;
    font-family: var(--font-primary);
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--color-text-medium);
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.filter-section-pill:hover {
    border-color: var(--color-text);
    color: var(--color-text);
}

.filter-section-pill.active {
    background: #0a0a0a;
    border-color: #0a0a0a;
    color: white;
}

/* Rating Filter */
.rating-filter {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating-star {
    width: 14px;
    height: 14px;
    color: var(--color-text-light);
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 2px;
}

.rating-star:hover,
.rating-star.active {
    color: #0a0a0a;
    fill: #0a0a0a;
}

.rating-text {
    margin-left: 6px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--color-text-medium);
}

/* Active Filters Summary */
.active-filters-summary {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    gap: 16px;
}

.active-filters-summary.visible {
    display: flex;
}

.active-filters-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
}

.active-filter-pill {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: #f5f5f3;
    color: var(--color-text-medium);
    font-family: var(--font-primary);
    font-size: 10px;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border: none;
}

.active-filter-pill:hover {
    background: #e8e8e5;
}

.active-filter-pill svg {
    width: 9px;
    height: 9px;
}

.clear-all-filters-btn {
    background: transparent;
    border: none;
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-light);
    cursor: pointer;
    transition: color 0.2s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.clear-all-filters-btn:hover {
    color: var(--color-accent);
}

/* ── METADATA PILLS IN POST CONTENT ────────────────────── */

/* Style [category:value] metadata tags as pills in post content */
.post-content p {
    position: relative;
}

.post-content p:has([data-metadata-pill]) {
    margin-bottom: 16px;
}

/* Base metadata pill styling */
.metadata-pill {
    display: none !important;
    /* Hide from view but keep in DOM for filtering */
    padding: 3px 10px;
    margin: 0 3px 4px 0;
    border: 1px solid var(--color-border);
    background: transparent;
    font-family: var(--font-primary);
    font-size: 10px;
    letter-spacing: 0.04em;
    color: var(--color-text-medium);
    text-transform: none;
    vertical-align: baseline;
    transition: all 0.2s ease;
}

/* Category-specific metadata pill colors */
.metadata-pill[data-category="surface"] {
    border-color: #8B4513;
    color: #8B4513;
}

.metadata-pill[data-category="surface"]:hover {
    background: #8B4513;
    color: white;
}

.metadata-pill[data-category="lighting"] {
    border-color: #FFD700;
    color: #B8860B;
}

.metadata-pill[data-category="lighting"]:hover {
    background: #FFD700;
    color: #333;
}

.metadata-pill[data-category="style"] {
    border-color: #4169E1;
    color: #4169E1;
}

.metadata-pill[data-category="style"]:hover {
    background: #4169E1;
    color: white;
}

.metadata-pill[data-category="mood"] {
    border-color: #DC143C;
    color: #DC143C;
}

.metadata-pill[data-category="mood"]:hover {
    background: #DC143C;
    color: white;
}

.metadata-pill[data-category="palette"] {
    border-color: #9370DB;
    color: #9370DB;
}

.metadata-pill[data-category="palette"]:hover {
    background: #9370DB;
    color: white;
}

.metadata-pill[data-category="category"] {
    border-color: #228B22;
    color: #228B22;
}

.metadata-pill[data-category="category"]:hover {
    background: #228B22;
    color: white;
}

/* Metadata pills container styling */
.metadata-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 12px 0 16px 0;
    padding: 8px 0;
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
}

.metadata-pills-container::before {
    content: "Tags:";
    font-family: var(--font-mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-light);
    margin-right: 8px;
    align-self: center;
}

/* Ensure post content paragraphs have proper positioning context */
.post-content p {
    position: relative;
}

/* ── GRID ───────────────────────────────────────────────── */

.grid-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--padding-mobile) 80px;
}

@media (min-width: 1024px) {
    .grid-section {
        padding: 0 var(--padding-desktop) 80px;
    }
}

.photo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    grid-auto-rows: 220px;
    grid-auto-flow: dense;
}

@media (min-width: 640px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5px;
        grid-auto-rows: 260px;
    }
}

@media (min-width: 1024px) {
    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 280px;
    }
}

.photo-card {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: block;
    text-decoration: none;
    color: inherit;
}

.photo-card.span-normal {
    grid-column: span 1;
    grid-row: span 1;
}

.photo-card.span-tall {
    grid-column: span 1;
    grid-row: span 1;
}

@media (min-width: 640px) {
    .photo-card.span-tall {
        grid-row: span 2;
    }
}

.photo-card.span-wide {
    grid-column: span 1;
    grid-row: span 1;
}

@media (min-width: 640px) {
    .photo-card.span-wide {
        grid-column: span 2;
        grid-row: span 1;
    }
}

.photo-card.span-large {
    grid-column: span 1;
    grid-row: span 1;
}

@media (min-width: 640px) {
    .photo-card.span-large {
        grid-column: span 2;
        grid-row: span 2;
    }
}

.photo-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #eeedeb;
}

.photo-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.7s ease-out, opacity 0.3s ease;
}

.photo-card-image.loaded {
    opacity: 1;
}

.photo-card:hover .photo-card-image {
    transform: scale(1.035);
}

.photo-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.15) 40%, rgba(0, 0, 0, 0) 60%);
    opacity: 0.15;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 10;
}

.photo-card:hover .photo-card-overlay {
    opacity: 1;
}

.photo-card-top {
    position: absolute;
    top: 12px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: none;
    z-index: 20;
}

.photo-card-id {
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    user-select: none;
}

.photo-card-rating {
    display: none;
    gap: 2px;
}

.rating-star {
    width: 9px;
    height: 9px;
}

.rating-star.filled {
    fill: rgba(255, 255, 255, 0.6);
}

.rating-star.empty {
    fill: rgba(255, 255, 255, 0.15);
}

.photo-card-bookmark {
    position: absolute;
    top: 12px;
    right: 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    z-index: 20;
    display: none;
}

.photo-card:hover .photo-card-bookmark {
    opacity: 1;
}

.photo-card-bookmark:hover {
    color: white;
}

.photo-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 16px 16px;
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.4s ease-out;
    pointer-events: none;
    z-index: 20;
}

.photo-card:hover .photo-card-info {
    opacity: 1;
    transform: translateY(0);
}

.photo-card-title {
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.25;
    color: white;
}

.photo-card-photographer {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
    display: none;
}

.photo-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 10px;
}

.photo-card-tag {
    padding: 1px 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-family: var(--font-primary);
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 128px 20px;
}

.empty-state-number {
    font-family: var(--font-mono);
    font-size: 56px;
    line-height: 1;
    color: var(--color-text-quinary);
    margin-bottom: 12px;
}

.empty-state-title {
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
}

.empty-state-subtitle {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-text-quaternary);
    margin-top: 4px;
}

/* ── COLLECTIONS PAGE ──────────────────────────────────── */

.collections-hero {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px var(--padding-mobile) 24px;
}

@media (min-width: 1024px) {
    .collections-hero {
        padding: 56px var(--padding-desktop) 24px;
    }
}

.collections-hero-content {
    max-width: 900px;
}

.collections-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.collections-indicator {
    width: 10px;
    height: 10px;
    background: var(--color-accent);
}

.collections-label {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-light);
}

.collections-title {
    font-family: var(--font-primary);
    font-size: clamp(32px, 6vw, 80px);
    font-weight: 500;
    line-height: 0.9;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: var(--color-text);
    margin: 0;
}

.collections-dot {
    color: var(--color-accent);
}

.collections-description {
    font-family: var(--font-primary);
    font-size: 15px;
    line-height: 1.7;
    letter-spacing: -0.005em;
    color: var(--color-text-medium);
    margin: 16px 0 0 0;
    max-width: 520px;
}

.collections-filter-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--padding-mobile) 32px;
}

@media (min-width: 1024px) {
    .collections-filter-section {
        padding: 0 var(--padding-desktop) 32px;
    }
}

.collections-filter-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

@media (min-width: 640px) {
    .collections-filter-container {
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }
}

.collections-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.collections-filter-pill {
    padding: 6px 12px;
    border: 1px solid var(--color-border);
    background: transparent;
    font-family: var(--font-primary);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.collections-filter-pill:hover,
.collections-filter-pill.active {
    background: #0a0a0a;
    border-color: #0a0a0a;
    color: white;
}

.collections-filter-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.collections-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-text-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.collections-search-btn:hover {
    border-color: #0a0a0a;
    color: #0a0a0a;
}

.collections-count {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--color-text-light);
}

.collections-posts-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--padding-mobile) 64px;
}

@media (min-width: 1024px) {
    .collections-posts-section {
        padding: 0 var(--padding-desktop) 64px;
    }
}

.collections-posts-container {
    max-width: 1200px;
    margin: 0 auto;
}

.collections-posts-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.collections-post-card {
    display: block;
    border: 1px solid var(--color-border);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.3s ease;
}

.collections-post-card:hover {
    border-color: #ccc;
}

.collections-post-card.featured {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

@media (min-width: 1024px) {
    .collections-post-card.featured {
        grid-template-columns: 1fr 1fr;
    }
}

.collections-post-image {
    display: block;
    position: relative;
    overflow: hidden;
    background: #eeedeb;
    aspect-ratio: 16/10;
}

@media (min-width: 1024px) {
    .collections-post-card.featured .collections-post-image {
        aspect-ratio: auto;
    }
}

.collections-post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease-out;
}

.collections-post-card:hover .collections-post-img {
    transform: scale(1.02);
}

.collections-post-issue {
    position: absolute;
    top: 0;
    left: 0;
    padding: 8px 12px;
    background: #0a0a0a;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.06em;
}

.collections-post-category {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #666;
    font-family: var(--font-primary);
    font-size: 8px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.collections-post-content {
    padding: 20px;
}

@media (min-width: 1024px) {
    .collections-post-card.featured .collections-post-content {
        padding: 32px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}

.collections-post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.collections-post-badge {
    padding: 2px 8px;
    background: var(--color-accent);
    color: white;
    font-family: var(--font-primary);
    font-size: 8px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
}

.collections-post-date {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--color-text-light);
}

.collections-post-title {
    font-family: var(--font-primary);
    font-size: clamp(16px, 2.5vw, 28px);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: -0.015em;
    line-height: 0.96;
    color: var(--color-text);
    margin: 0 0 12px 0;
}

.collections-post-title-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.collections-post-card:hover .collections-post-title-link {
    color: var(--color-accent);
}

.collections-post-title-dot {
    color: var(--color-accent);
    transition: color 0.3s ease;
}

.collections-post-card:hover .collections-post-title-dot {
    color: var(--color-text);
}

.collections-post-excerpt {
    font-family: var(--font-primary);
    font-size: 13px;
    line-height: 1.6;
    letter-spacing: -0.005em;
    color: var(--color-text-medium);
    margin: 0 0 16px 0;
}

.collections-post-brands {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 16px;
}

.collections-post-brand {
    padding: 2px 6px;
    border: 1px solid var(--color-border-light);
    font-family: var(--font-primary);
    font-size: 8px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-light);
}

.collections-post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f2f2f0;
}

.collections-post-author {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.collections-post-author:hover {
    color: var(--color-accent);
}

.collections-post-arrow-link {
    text-decoration: none;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.collections-post-arrow {
    color: inherit;
    transition: color 0.3s ease;
}

.collections-post-card:hover .collections-post-arrow {
    color: var(--color-accent);
}

/* ── STATIC PAGES ───────────────────────────────────────── */

.static-page {
    min-height: 100vh;
    background: var(--color-bg);
}

.page-hero {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px var(--padding-mobile) 40px;
}

@media (min-width: 1024px) {
    .page-hero {
        padding: 120px var(--padding-desktop) 60px;
    }
}

.page-hero-content {
    max-width: 800px;
}

.page-eyebrow {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.page-title {
    font-family: var(--font-primary);
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--color-text);
    margin: 0;
}

.page-content-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px var(--padding-mobile) 80px;
}

@media (min-width: 1024px) {
    .page-content-wrapper {
        padding: 60px var(--padding-desktop) 120px;
    }
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-content h2 {
    font-family: var(--font-primary);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: var(--color-text);
    margin: 48px 0 24px 0;
}

.page-content h3 {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text);
    margin: 32px 0 16px 0;
}

.page-content p {
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.8;
    color: var(--color-text-medium);
    margin: 0 0 20px 0;
}

.page-content ul,
.page-content ol {
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.8;
    color: var(--color-text-medium);
    margin: 0 0 20px 0;
    padding-left: 24px;
}

.page-content li {
    margin-bottom: 8px;
}

.page-content a {
    color: var(--color-accent);
    text-decoration: none;
    border-bottom: 1px solid var(--color-accent);
    transition: opacity 0.3s ease;
}

.page-content a:hover {
    opacity: 0.7;
}

.page-content blockquote {
    border-left: 3px solid var(--color-accent);
    padding-left: 24px;
    margin: 32px 0;
    font-family: var(--font-primary);
    font-size: 16px;
    font-style: italic;
    color: var(--color-text-medium);
}

.footer-link {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--color-text-medium);
}

/* ── ARTICLE PAGE ───────────────────────────────────────── */

.article-page {
    min-height: 100vh;
    background: var(--color-bg);
}

.article-hero {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px var(--padding-mobile) 40px;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
}

@media (min-width: 1024px) {
    .article-hero {
        padding: 80px var(--padding-desktop) 60px;
        min-height: 500px;
    }
}

.article-hero-image-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.article-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.article-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(250, 250, 248, 0) 0%, rgba(250, 250, 248, 0.8) 60%, rgba(250, 250, 248, 1) 100%);
}

.article-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.article-separator {
    color: var(--color-border);
}

.article-title {
    font-family: var(--font-primary);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--color-text);
    margin: 0 0 16px 0;
}

.article-excerpt {
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.7;
    color: var(--color-text-medium);
    max-width: 600px;
}

.article-content-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px var(--padding-mobile);
}

@media (min-width: 1024px) {
    .article-content-wrapper {
        padding: 60px var(--padding-desktop);
    }
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-content h2 {
    font-family: var(--font-primary);
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: var(--color-text);
    margin: 48px 0 24px 0;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.article-content p {
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.8;
    color: var(--color-text-medium);
    margin: 0 0 20px 0;
}

.article-content figure {
    margin: 32px 0;
}

.article-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 8px;
}

.article-content img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-image {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.gallery-image:hover {
    opacity: 0.85;
}

/* ── RELATED POSTS ──────────────────────────────────────── */

.related-posts-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px var(--padding-mobile);
    border-top: 1px solid var(--color-border);
}

@media (min-width: 1024px) {
    .related-posts-section {
        padding: 80px var(--padding-desktop);
    }
}

.related-posts-container {
    max-width: 1200px;
    margin: 0 auto;
}

.related-posts-title {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text);
    margin: 0 0 32px 0;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .related-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.related-post-card {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-4px);
}

.related-post-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--color-border-light);
}

.related-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-post-card:hover .related-post-image {
    transform: scale(1.05);
}

.related-post-content {
    padding: 16px 0;
}

.related-post-date {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.related-post-title {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: var(--color-text);
    margin: 8px 0 0 0;
    line-height: 1.3;
}


/* ── SUBSCRIBE BUTTON ───────────────────────────────────── */

.subscribe-btn {
    padding: 6px 16px;
    background: #0a0a0a;
    color: white;
    border: none;
    font-family: var(--font-primary);
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.subscribe-btn:hover {
    background: var(--color-accent);
}

/* ── FOOTER ─────────────────────────────────────────────── */

.site-footer {
    border-top: 1px solid var(--color-border);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 32px var(--padding-mobile);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 640px) {
    .footer-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    .footer-container {
        padding: 32px var(--padding-desktop);
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logo-square {
    width: 12px;
    height: 12px;
    background: var(--color-accent);
}

.footer-logo-text {
    font-family: var(--font-primary);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-quaternary);
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-text {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--color-text-quinary);
}

/* ── LOADING STATE ──────────────────────────────────────── */

.loading {
    text-align: center;
    padding: 60px 20px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-text-tertiary);
}

.loading.hidden {
    display: none;
}

/* ── HOVER IMAGE GALLERY (existing functionality) ───────── */

.hover-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.05s ease;
    will-change: opacity;
    isolation: isolate;
}

.hover-img.top {
    opacity: 1;
    z-index: 2;
}

.hover-img:not(.top) {
    z-index: 1;
}

/* ============================================================
   GHOST KOENIG EDITOR — CARD STYLES
   Required by gscan for proper rendering of Ghost editor content
   ============================================================ */

/* Width modifiers */
.kg-width-wide {
    position: relative;
    width: 85vw;
    min-width: 100%;
    margin: var(--space-lg) calc(50% - 42.5vw);
}

.kg-width-full {
    position: relative;
    width: 100vw;
    min-width: 100%;
    margin: var(--space-lg) calc(50% - 50vw);
}

.kg-width-wide img,
.kg-width-full img {
    width: 100%;
}

/* Gallery card */
.kg-gallery-container {
    display: flex;
    flex-direction: column;
    max-width: 1040px;
    width: 100%;
    margin: var(--space-lg) auto;
}

.kg-gallery-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.kg-gallery-row:not(:first-of-type) {
    margin: 0.75em 0 0;
}

.kg-gallery-image {
    flex: 1 1 0%;
    margin: 0 0.75em 0 0;
}

.kg-gallery-image:last-of-type {
    margin-right: 0;
}

.kg-gallery-image img {
    display: block;
    margin: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm, 4px);
}

/* Bookmark card */
.kg-bookmark-card {
    width: 100%;
    margin: var(--space-lg) 0;
}

.kg-bookmark-container {
    display: flex;
    text-decoration: none;
    border: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-sm, 6px);
    overflow: hidden;
    color: inherit;
    transition: border-color 0.2s ease;
}

.kg-bookmark-container:hover {
    border-color: var(--color-text-muted, rgba(255, 255, 255, 0.2));
}

.kg-bookmark-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 20px;
    overflow: hidden;
}

.kg-bookmark-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text, #fff);
    margin-bottom: 6px;
}

.kg-bookmark-description {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--color-text-muted, rgba(255, 255, 255, 0.5));
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.kg-bookmark-metadata {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: var(--color-text-muted, rgba(255, 255, 255, 0.5));
    gap: 6px;
}

.kg-bookmark-icon {
    width: 16px;
    height: 16px;
    border-radius: 2px;
}

.kg-bookmark-author {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.kg-bookmark-publisher {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.kg-bookmark-thumbnail {
    position: relative;
    flex: 0 0 33%;
    min-height: 160px;
}

.kg-bookmark-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Bookmark card — responsive */
@media (max-width: 600px) {
    .kg-bookmark-container {
        flex-direction: column;
    }

    .kg-bookmark-thumbnail {
        min-height: 120px;
        order: -1;
    }
}

/* ============================================================
   MOBILE LAYOUT — Pinterest-style 2-col cards with swipeable galleries
   All changes scoped to mobile viewport only
   ============================================================ */

/* ── MOBILE CARD LAYOUT ─────────────────────────────────── */

@media (max-width: 767px) {
    .photo-grid {
        display: block;
        columns: 2;
        column-gap: 10px;
        padding: 0 8px;
    }

    /* Remove span variants on mobile — all cards flow naturally */
    .photo-card.span-normal,
    .photo-card.span-tall,
    .photo-card.span-wide,
    .photo-card.span-large {
        grid-column: unset;
        grid-row: unset;
    }

    .photo-card {
        height: auto;
        overflow: visible;
        border-radius: 12px;
        break-inside: avoid;
        margin-bottom: 12px;
        display: inline-block;
        width: 100%;
    }

    .photo-card-inner {
        display: flex;
        flex-direction: column;
        height: auto;
        overflow: visible;
        background: transparent;
        border-radius: 12px;
    }

    /* Image frame — fixed aspect ratio container */
    .photo-card-inner .hover-wrapper,
    .photo-card-inner>.photo-card-image {
        aspect-ratio: 4 / 5;
        width: 100%;
        height: auto;
        border-radius: 12px;
        overflow: hidden;
        flex-shrink: 0;
    }

    .hover-wrapper {
        height: auto !important;
        aspect-ratio: 4 / 5;
        border-radius: 12px;
    }

    /* Single images also need correct sizing in mobile */
    .photo-card-image {
        aspect-ratio: 4 / 5;
        border-radius: 12px;
    }

    /* Hide hover-only overlay elements on mobile */
    .photo-card-overlay {
        display: none;
    }

    .photo-card-top {
        display: none;
    }

    .photo-card-bookmark {
        display: none;
    }

    /* Info section — always visible, positioned below image */
    .photo-card-info {
        position: static;
        opacity: 1;
        transform: none;
        padding: 8px 6px 4px;
        pointer-events: auto;
        transition: none;
    }

    .photo-card:hover .photo-card-info {
        opacity: 1;
        transform: none;
    }

    /* Restyle text for light background — smaller for 2-col */
    .photo-card-title {
        color: var(--color-text-primary);
        font-size: 13px;
        font-weight: 500;
        letter-spacing: -0.02em;
        line-height: 1.3;
    }

    .photo-card-photographer {
        color: var(--color-text-secondary);
        font-size: 11px;
    }

    .photo-card-tags {
        margin-top: 4px;
    }

    .photo-card-tag {
        border-color: var(--color-border);
        color: var(--color-text-secondary);
        font-size: 8px;
        padding: 1px 4px;
    }

    /* Disable hover scale on mobile */
    .photo-card:hover .photo-card-image {
        transform: none;
    }
}

/* ── MOBILE SWIPE DOT INDICATORS ────────────────────────── */

.mobile-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    /* Liquid glass effect */
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 0.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 100px;
    padding: 4px 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    pointer-events: auto;
}

.mobile-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
    pointer-events: auto;
    flex-shrink: 0;
}

.mobile-dot.active {
    background: white;
    transform: scale(1.3);
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
}

/* Hide dots on desktop */
@media (min-width: 768px) {
    .mobile-dots {
        display: none !important;
    }

    .swipe-overlay {
        display: none !important;
    }
}

/* ── MOBILE SWIPE OVERLAY ───────────────────────────────── */

.swipe-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    background: transparent;
    touch-action: pan-y;
}

/* ── MOBILE SLIDE TRANSITIONS ───────────────────────────── */

.hover-img.slide-in-right {
    transform: translateX(100%);
    opacity: 1 !important;
    visibility: visible !important;
    transition: transform 0.3s ease-out;
}

.hover-img.slide-in-left {
    transform: translateX(-100%);
    opacity: 1 !important;
    visibility: visible !important;
    transition: transform 0.3s ease-out;
}

.hover-img.slide-out-right {
    transform: translateX(100%);
    opacity: 1 !important;
    transition: transform 0.3s ease-out;
}

.hover-img.slide-out-left {
    transform: translateX(-100%);
    opacity: 1 !important;
    transition: transform 0.3s ease-out;
}

/* When an image has .top and is sliding, override base styles */
.hover-img.top {
    transform: translateX(0);
}

/* ── MOBILE FILTERS ──────────────────────────────────── */
@media (max-width: 767px) {
    .filter-section-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-right: 20px;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        scrollbar-width: none;
        /* Firefox */
        padding-bottom: 4px;
        /* Space for scrollbar if visible */
    }

    .filter-section-pills::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }
}

/* ── LIGHTBOX ──────────────────────────────────────────── */

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(250, 250, 248, 0.98);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.lightbox-overlay.active .lightbox-image {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    cursor: pointer;
    color: var(--color-text-primary);
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: 2px;
    transition: all 0.2s ease;
}

.lightbox-close:hover {
    background: #0a0a0a;
    color: white;
    border-color: #0a0a0a;
}

/* ── POST CONTENT TYPOGRAPHY FIXES ─────────────────────── */

.article-content a {
    color: var(--color-text-primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.article-content a:hover {
    color: var(--color-accent);
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    font-family: var(--font-primary);
    color: var(--color-text-primary);
    margin-top: 2.5em;
    margin-bottom: 0.8em;
    line-height: 1.2;
    letter-spacing: -0.01em;
    font-weight: 500;
    text-transform: none;
}

.article-content p {
    margin-bottom: 1.5em;
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.article-content img {
    border-radius: 2px;
    cursor: zoom-in;
}

/* Remove default blue outline */
*:focus-visible {
    outline: 2px solid var(--color-text-primary);
    outline-offset: 2px;
}

/* ── ABOUT PAGE ────────────────────────────────────────── */

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 5fr 7fr;
        gap: 48px;
    }
}

.about-photo-col {
    position: relative;
}

.about-bio-text {
    font-family: var(--font-primary);
    font-size: 17px;
    line-height: 1.8;
    color: #333;
    max-width: 580px;
}

.about-bio-text p {
    margin-bottom: 24px;
}

.about-data-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0ed;
}

.about-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    color: #bbbbbb;
    text-transform: uppercase;
    width: 120px;
    flex-shrink: 0;
}

.about-value {
    font-family: var(--font-primary);
    font-size: 13px;
    color: #555;
    text-align: right;
}

/* ── POST PAGE REFACTOR STYLES ────────────────────────── */

.container-wide {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 760px;
    margin: 0 auto;
}

.post-back-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
}

.back-nav-link,
.post-slug-meta {
    font-family: var(--font-mono);
    font-size: 10px;
    color: #bbbbbb;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.back-nav-link:hover {
    color: var(--color-text-primary);
}

.hidden-mobile {
    display: none;
}

@media (min-width: 640px) {
    .hidden-mobile {
        display: block;
    }
}

.post-tag-pill {
    display: inline-block;
    padding: 4px 10px;
    background: #E00;
    color: white;
    font-family: var(--font-primary);
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-right: 8px;
    text-decoration: none;
}

.post-title {
    font-family: var(--font-primary);
    font-size: clamp(28px, 5vw, 72px);
    font-weight: 500;
    line-height: 0.92;
    letter-spacing: -0.035em;
    text-transform: uppercase;
    color: #0a0a0a;
    max-width: 1100px;
    margin-bottom: 1.25rem;
}

.post-subtitle {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.75;
    color: #777;
    max-width: 680px;
    margin-top: 1.25rem;
}

.post-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    margin: 2rem 0;
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 11px;
    color: #999;
}

.author-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    filter: grayscale(100%);
}

.meta-divider {
    width: 1px;
    height: 12px;
    background: #e0e0dd;
}

/* Post Cover */
.post-cover-container {
    background: #eeedeb;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.post-cover-image {
    width: 100%;
    height: 100%;
    max-height: 700px;
    /* Limit height slightly */
    object-fit: cover;
    transition: transform 0.7s ease;
    display: block;
}

.post-cover-container:hover .post-cover-image {
    transform: scale(1.01);
}

.post-cover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
}

.post-cover-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-cover-container:hover .post-cover-icon {
    opacity: 1;
}

/* Technical Tags */
.technical-tags-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 2rem 0 1rem 0;
}

.square-dot {
    width: 8px;
    height: 8px;
    background: #0a0a0a;
}

.details-label {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    color: #bbbbbb;
    text-transform: uppercase;
}

.tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
}

.tech-tag {
    padding: 4px 12px;
    border: 1px solid #e0e0dd;
    color: #666;
    font-family: var(--font-primary);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tech-tag:hover {
    border-color: #0a0a0a;
    color: #0a0a0a;
}

/* ── MOBILE SPACING & FONT UPDATES ───────────────────── */
@media (max-width: 767px) {

    /* Spacing for specific structural containers mentioned by user */
    .container-wide.pt-8.lg\:pt-10,
    .container-wide.py-8 {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }

    .items-center.gap-3.mb-6 {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }

    /* Ensure body font and buttons are 0.875rem (14px) on mobile */
    body,
    .article-content p,
    .about-bio-text p,
    .post-subtitle,
    .author-bio {
        font-size: 0.875rem !important;
    }

    .subscribe-btn,
    .subscribe-btn-mobile,
    .tech-tag,
    .back-nav-link,
    .post-slug-meta,
    .nav-item,
    .post-meta-item,
    .details-label,
    .back-link,
    .footer-logo-text,
    .footer-text {
        font-size: 0.875rem !important;
    }

    /* Adjust items that might look too large at 0.875rem in tight spots */
    .post-meta-item svg {
        width: 14px;
        height: 14px;
    }
}

.accent-line-container {
    height: 1px;
    background: #e8e8e5;
    position: relative;
}

.accent-line-red {
    position: absolute;
    left: 0;
    top: 0;
    width: 48px;
    height: 1px;
    background: #E00;
}

/* Author Section */
.author-large-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    filter: grayscale(40%);
    flex-shrink: 0;
}

.author-bio {
    font-family: var(--font-primary);
    font-size: 15px;
    line-height: 1.75;
    color: #333;
    margin-bottom: 0;
}

.social-link {
    font-family: var(--font-mono);
    font-size: 11px;
    color: #999;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.social-link:hover {
    color: #E00;
}

/* Fade in animations */
.fade-in-delay-1 {
    animation: fadeIn 0.8s ease forwards 0.1s;
    opacity: 0;
}

.fade-in-delay-2 {
    animation: fadeIn 0.8s ease forwards 0.2s;
    opacity: 0;
}

.fade-in-delay-3 {
    animation: fadeIn 0.8s ease forwards 0.3s;
    opacity: 0;
}

.fade-in-delay-4 {
    animation: fadeIn 0.8s ease forwards 0.4s;
    opacity: 0;
}

.fade-in-delay-5 {
    animation: fadeIn 0.8s ease forwards 0.5s;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* ── AUTOMATED SMART GRID (JS-Injected) ────────────────── */
.smart-grid-container {
    margin: 32px 0;
    display: grid;
    gap: 4px;
}

/* Image Card Styling for Hover Effects */
.smart-grid-container .kg-image-card,
.smart-grid-container img {
    position: relative;
    overflow: hidden;
    margin: 0 !important;
    display: block;
    width: 100%;
    height: 100%;
}

.smart-grid-container img {
    object-fit: cover;
    transition: transform 0.5s ease-out;
    backface-visibility: hidden;
    /* Smoother scaling */
    transform: translateZ(0);
    /* Hardware accel */
}

/* Hover Scale */
.smart-grid-container .kg-image-card:hover img,
.smart-grid-container div:hover>img {
    /* Targeting div in case wrapper structure varies */
    transform: scale(1.02);
}

/* Hover Overlay (injected by JS) */
.smart-grid-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.15);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    /* Let clicks pass through to lightbox */
    z-index: 10;
}

.smart-grid-container .kg-image-card:hover .smart-grid-overlay,
.smart-grid-container div:hover .smart-grid-overlay {
    opacity: 1;
}

.smart-grid-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0a0a;
}

/* Layout Variations */
/* 2 Images: Side by side */
.smart-grid-2 {
    grid-template-columns: 1fr 1fr;
}

.smart-grid-2 img {
    aspect-ratio: 3/2;
}

/* 3 Images: 1 Top (Full), 2 Bottom (Split) */
.smart-grid-3 {
    grid-template-columns: 1fr 1fr;
}

.smart-grid-3 .kg-image-card:nth-child(1),
.smart-grid-3>div:nth-child(1) {
    /* robust selector */
    grid-column: span 2;
}

/* 4+ Images: 2-column grid */
.smart-grid-multi {
    grid-template-columns: 1fr 1fr;
}

.smart-grid-multi img {
    aspect-ratio: 3/2;
}

/* ── AUTHOR SECTION ENHANCEMENTS ────────────────────── */
.post-author-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
    border-top: 1px solid #f2f2f0;
}

.author-details-flex {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.author-large-thumb {
    width: 120px;
    height: 120px;
    border-radius: 0;
    object-fit: cover;
    flex-shrink: 0;
}

.author-bio {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text-medium);
}

.author-socials {
    display: flex;
    gap: 20px;
    margin-top: 24px;
}

.photographers-disclaimer {
    margin-top: 4rem;
    padding: 24px 32px;
    background: #f6f6f4;
    border-left: 2px solid #e0e0dd;
}

.photographers-disclaimer p {
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.8;
    color: #999;
    margin: 0;
}

.editorial-disclaimer-wrapper {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.editorial-disclaimer-link {
    font-family: var(--font-mono);
    font-size: 10px;
    color: #ccc;
    text-decoration: none;
    transition: all 0.2s ease;
}

.editorial-disclaimer-link:hover {
    color: var(--color-accent);
}

@media (max-width: 767px) {
    .post-author-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .author-details-flex {
        flex-direction: column;
        gap: 20px;
    }

    .author-large-thumb {
        width: 80px;
        height: 80px;
    }

    .author-bio {
        font-size: 0.95rem;
    }
}

/* ── NAV OVERRIDE: Hide Submit Link ────────────────── */
.nav-item[href*="submit"],
.nav-item:contains("Submit") {
    display: none !important;
}

/* JS-based hiding backup class */
.nav-item-hidden {
    display: none !important;
}