@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Theme switching animation fix */
.theme-switching *,
.theme-switching *::before,
.theme-switching *::after {
    transition: none !important;
}

/* CSS Variables for Light/Dark Mode */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    --border-color: #dee2e6;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
    --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.05);
    --accent-color: #000;
    --accent-hover: #333;
    --transition-base: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-theme="dark"] {
    --bg-primary: #2d2d2d;
    --bg-secondary: #404040;
    --bg-tertiary: #525252;
    --text-primary: #f5f5f5;
    --text-secondary: #d4d4d4;
    --text-muted: #a3a3a3;
    --border-color: #525252;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.2);
    --accent-color: #f5f5f5;
    --accent-hover: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Performance optimizations */
* {
    will-change: auto;
}

.gallery-item,
.hero-image img,
.featured-item,
.blog-post-preview {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Reduce motion for users who prefer . . . */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Optimize image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    transition: var(--transition-smooth);
}

/* Typography */

h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    font-weight: 400;
    text-align: justify;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-base);
    font-weight: 500;
}

a:hover {
    color: var(--accent-hover);
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition-base);
    color: var(--text-primary);
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
    transform: rotate(15deg);
}

.theme-icon {
    width: 20px;
    height: 20px;
    transition: var(--transition-base);
}

.sun-icon {
    display: block;
}

.moon-icon {
    display: none;
}

[data-theme="dark"] .sun-icon {
    display: none;
}

[data-theme="dark"] .moon-icon {
    display: block;
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .header {
    background: rgba(45, 45, 45, 0.95);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand a {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    font-size: 0.95rem;
    font-weight: 450;
    letter-spacing: 0.5px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #000 0%, #333 100%);
    transform: translateX(-50%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
}

.nav-menu a.active::after,
.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a.active,
.nav-menu a:hover {
    color: #000;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 1px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

.admin-link {
    color: #666;
    font-weight: 400;
}

/* Main Content */
.main {
    margin-top: 80px;
    min-height: calc(100vh - 160px);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
    padding: 1.5rem 0;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
    margin-bottom: 1rem;
}

.hero-content {
    flex: 1;
    padding-left: 57px;
    padding-right: 50px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-image {
    flex: 1;
    padding-left: 4rem;
    padding-right: 3.65rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hamburger {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: 0.3s;
    background-color: var(--text-primary);
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .gallery-hero {
        padding: 2rem 1rem 0;
    }

    .blog-hero {
        padding: 2rem 1rem 0;
    }

    .hero {
        gap: 0.2rem;
        margin-bottom: 0rem;
    }

    .hero-content {
        padding-left: 0rem;
        padding-right: 0rem;
    }

    .hero-image {
        padding-left: 0rem;
        padding-right: 0rem;
    }

    /* Disable hover captions on mobile - not needed for touch */
    .gallery-item .image-overlay {
        display: none !important;
    }

    .gallery-item:hover .image-overlay {
        display: none !important;
    }

    /* Exception for featured section - title should be visible on mobile */
    .featured-grid .gallery-item .image-overlay {
        display: block !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        padding: 1.5rem 1rem 1rem !important;
    }
}

.hero-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    object-fit: cover;
    will-change: transform;
    backface-visibility: hidden;
}

.hero-image img:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 0 10px 20px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .hero-image img:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 12px 24px rgba(0, 0, 0, 0.3);
}

.hero-content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-content p {
    font-size: 1rem;
    color: var(--text-primary);
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}

/* Desktop only - make hero text black */
@media (min-width: 769px) {
    .hero-content h1 {
        color: #000000;
    }

    .hero-content p {
        color: #000000;
    }
}

/* Dark mode hero text - override black for visibility */
[data-theme="dark"] .hero-content h1 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .hero-content p {
    color: var(--text-primary) !important;
}

/* Featured Section */
.featured {
    padding: 0rem 2rem 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.featured h2 {
    text-align: left;
    margin: 0;
    font-weight: 200;
    color: var(--text-primary);
}

.featured-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin: 0;
    flex-wrap: wrap;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.featured-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
    background: var(--bg-secondary);
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2), 0 12px 24px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .featured-item:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 12px 24px rgba(0, 0, 0, 0.3);
}

.featured-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
    display: block;
    margin: 0;
    padding: 0;
}

.featured-item:hover img {
    transform: scale(1.05);
}

.featured-item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    padding: 3rem 1.5rem 1.5rem;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.featured-item:hover .featured-item-content {
    transform: translateY(0);
}

.featured-btn {
    display: inline-block;
    padding: 0.05rem 0.2rem;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    border: none;
    border-radius: 0;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    min-width: auto;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    position: relative;
}

.featured-btn::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-primary);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.featured-btn:hover {
    background: transparent;
    color: var(--text-primary);
    transform: translateY(-1px);
}

.featured-btn:hover::after {
    width: 100%;
}

[data-theme="dark"] .featured-btn {
    background: transparent;
    color: var(--text-primary);
    border: none;
}

[data-theme="dark"] .featured-btn:hover {
    background: transparent;
    color: var(--text-primary);
}

[data-theme="dark"] .featured-btn::after {
    background: var(--text-primary);
}

/* Gallery Hero Section */
.gallery-hero {
    padding: 2rem 2rem 2rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-hero h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.gallery-hero h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.gallery-hero h6 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.gallery-hero p {
    font-size: 1.25rem;
    color: #666;
    animation: fadeInUp 0.8s ease 0.2s both;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Hero Section */
.blog-hero {
    padding: 2rem 2rem 2rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-hero h1,
.blog-hero h6 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.blog-hero p {
    font-size: 1.25rem;
    color: #666;
    animation: fadeInUp 0.8s ease 0.2s both;
    max-width: 600px;
    margin: 0 auto;
}

/* Gallery Section */
.gallery-section {
    padding: 2rem;
    max-width: 1200px;
    margin: -2rem auto 0rem auto;
}

.gallery-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.tab-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.tab-btn:hover,
.tab-btn.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

.gallery-container {
    position: relative;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    opacity: 1;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    align-items: center;
    transform: translateY(0) scale(1);
}

.gallery-grid.hidden {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.gallery-grid:not(.hidden) {
    animation: galleryGridFadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Exhibition Wall Masonry Basics (Mimicking gallery2.html) */
#exhibition-wall {
    display: block;
    /* Required for column layout */
    column-count: 2;
    /* Default Mobile */
    column-gap: 1rem;
    /* 16px */
    width: 100%;
}

@media (min-width: 768px) {
    #exhibition-wall {
        column-count: 3;
    }
}

@media (min-width: 1280px) {
    #exhibition-wall {
        column-count: 4;
    }
}

.exhibition-item {
    break-inside: avoid;
    /* CRITICAL for masonry columns so images don't split */
    page-break-inside: avoid;
    /* Safari fallback */
    display: inline-block;
    width: 100%;
    margin-bottom: 1rem !important;
    /* 1rem / 16px gap vertically between rows - Important prevents collapsing */
    border-radius: 0.75rem;
    /* Match Tailwind xl rounding */
    box-shadow: none;
    /* Removed heavy shadow to match cleaner look */
    background: transparent;
}

.exhibition-photo-container {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: inherit;
    display: block;
    background-color: #f1f5f9;
    /* Match Tailwind slate-200 loading background */
}

/* Dark mode fallback for loading background */
[data-theme="dark"] .exhibition-photo-container {
    background-color: #1e293b;
    /* Match Tailwind slate-800 */
}

.exhibition-photo {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    /* Cover is better than contain if heights vary slightly */
    border-radius: inherit;
    border-radius: inherit;
    transition: transform 0.5s ease, opacity 0.4s ease;
}

.exhibition-item:hover .exhibition-photo {
    transform: scale(1.03);
}

@keyframes galleryGridFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Gallery Item with Hover Caption */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25), 0 6px 12px rgba(0, 0, 0, 0.2);
    margin: 0;
    padding: 0;
    display: block;
    background: transparent;
    will-change: transform;
    backface-visibility: hidden;
    max-height: 500px;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .gallery-item:hover {
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6), 0 8px 16px rgba(0, 0, 0, 0.5);
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    margin: 0;
    padding: 0;
    border-radius: 0;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover .image-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Always show title in featured section */
.featured-grid .gallery-item .image-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item .image-overlay h3,
.gallery-item .image-overlay h4 {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
}

/* Image Viewer */
.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-viewer.active {
    display: flex;
    opacity: 1;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.viewer-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.viewer-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2001;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.viewer-close:hover {
    opacity: 1;
}

.viewer-content {
    display: flex;
    width: 55%;
    max-width: 1400px;
    height: 60vh;
    gap: 2rem;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Center the entire content unit (Photo + Description) */
@media (min-width: 769px) {
    .viewer-content.has-description::before {
        display: none !important;
    }
}

.viewer-image-container {
    flex: 0 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.viewer-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: grab;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.viewer-image.zooming {
    cursor: zooming;
}

.viewer-description {
    flex: 0 0 auto;
    width: 400px;
    background: #000000 !important;
    background-color: #000000 !important;
    background-image: none !important;
    backdrop-filter: none !important;
    border-radius: 16px;
    padding: 2rem;
    padding-top: 1rem;
    /* Reduced top padding to remove gap */
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-height: 100%;
    /* Height will be set dynamically by JavaScript to match image height */
}

#viewer-text {
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.5;
}

/* Hide scrollbar for short content */
.viewer-description.no-scroll {
    overflow-y: hidden;
}

/* Center all text in shutterbug page lightbox */
body.shutterbug-page .viewer-description {
    text-align: center !important;
    justify-content: center !important;
    overflow-y: hidden !important;
}

body.shutterbug-page .viewer-description h3,
body.shutterbug-page .viewer-description h4,
body.shutterbug-page .viewer-description p {
    text-align: center !important;
}

/* Hide scrollbars completely on shutterbug page */
body.shutterbug-page .viewer-description::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
}

body.shutterbug-page .viewer-description {
    -ms-overflow-style: none !important;
    /* IE and Edge */
    scrollbar-width: none !important;
    /* Firefox */
}

/* Custom scrollbar for viewer description - inside the box */
.viewer-description::-webkit-scrollbar {
    width: 6px;
}

.viewer-description::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    margin: 8px;
    /* Add margin to keep scrollbar inside */
}

.viewer-description::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.viewer-description::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Mobile adjustments for scrollbar */
@media (max-width: 768px) {
    .viewer-description::-webkit-scrollbar {
        width: 4px;
    }

    .viewer-description::-webkit-scrollbar-track {
        margin: 4px;
    }

    .viewer-description::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.15);
    }
}

/* Dark aesthetic for image viewer */
[data-theme="light"] .image-viewer,
[data-theme="dark"] .image-viewer,
.image-viewer {
    background: rgba(0, 0, 0, 0.5) !important;
    background-image: none !important;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

[data-theme="light"] .viewer-description,
[data-theme="dark"] .viewer-description,
.viewer-description {
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background-image: none !important;
}

.viewer-description h3 {
    margin-bottom: 1rem;
    margin-top: 0;
    /* Remove top margin to eliminate gap */
    font-weight: 700;
    color: #ffffff;
}

.viewer-description p {
    line-height: 1.6;
    color: #ffffff;
    font-weight: 300;
    white-space: pre-wrap;
    margin-top: 0;
    /* Remove top margin from first paragraph */
}

/* Remove margin from first element in description */
.viewer-description h3:first-child,
.viewer-description p:first-child {
    margin-top: 0;
}

.viewer-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff !important;
    font-size: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
    z-index: 99999;
    pointer-events: all;
    background: none;
    border: none;
    padding: 1rem;
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.viewer-nav:hover {
    opacity: 1;
}


.viewer-prev {
    left: 2rem;
}

.viewer-next {
    right: 2rem;
}


.blog-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-list.hidden,
.blog-content.hidden {
    display: none;
}

.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 2rem 0;
}

[data-theme="dark"] .blog-list {
    gap: 2.5rem;
}

.blog-post-preview {
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* Slightly more defined border */
    border-radius: 24px;
    /* More rounded corners */
    overflow: hidden;
    background: #fdfdfd;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .blog-post-preview {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.blog-post-preview:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.blog-preview-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.blog-thumbnail {
    overflow: hidden;
    aspect-ratio: 4/5;
    /* Taller card look like in reference */
}

.blog-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-post-preview:hover .blog-thumbnail img {
    transform: scale(1.05);
}

.blog-preview-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: center;
}

.blog-post-preview h2 {
    margin: 0.5rem 0 0.2rem;
    font-weight: 700;
    color: #222;
    font-size: 1.1rem;
    line-height: 1.4;
    padding: 0 1rem;
}

.blog-post-preview .blog-date {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-align: center;
    font-weight: 500;
}

.blog-post-preview p {
    color: var(--text-secondary);
    line-height: 1.4;
    flex: 1;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.blog-content.hidden {
    display: none;
}

.back-btn {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #333;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0.75rem 1rem;
    margin-bottom: 2rem;
    display: block !important;
    width: fit-content;
    border-radius: 8px;
    font-weight: 500;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 10;
}

.back-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
}

[data-theme="dark"] .back-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ddd;
}

[data-theme="dark"] .back-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.back-link {
    display: inline-block;
    background: none;
    border: none;
    color: #666;
    font-size: 0.9rem;
    padding: 0;
    margin-bottom: 2rem;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s ease;
    text-align: left;
}

.back-link:hover {
    color: #000;
}

[data-theme="dark"] .back-link {
    color: #999;
}

[data-theme="dark"] .back-link:hover {
    color: #fff;
}


.blog-post {
    width: 100%;
}

.blog-post h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 1rem;
    line-height: 1.2;
    text-align: center;
}

.blog-meta {
    text-align: center;
    margin-bottom: 2rem;
}

.blog-meta time {
    color: #888;
    font-size: 0.95rem;
    font-weight: 500;
}

.blog-body {
    line-height: 1.8;
    color: var(--text-primary);
    text-align: left;
    /* Changed from justify for cleaner look */
    font-weight: 400;
    max-width: 100%;
}

.blog-body p {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: justify;
    white-space: pre-wrap;
    font-weight: 400;
}

.blog-featured-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    margin-left: 2rem;
    display: block;
}

.blog-post-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.blog-post-text {
    flex: 1;
    text-align: center;
}

.blog-post-image {
    flex: none;
    width: auto;
    max-width: 500px;
}

.blog-body h1,
.blog-body h2,
.blog-body h3,
.blog-body h4,
.blog-body h5,
.blog-body h6 {
    text-align: center;
}

.blog-body ul,
.blog-body ol {
    text-align: center;
    list-style-position: inside;
}

.blog-body blockquote {
    text-align: center;
    margin: 1rem auto;
    max-width: 80%;
}

.blog-inline-image {
    margin: 1rem 0;
    text-align: center;
}

.blog-content-image {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: block;
    margin: 1.5rem 0;
}

/* Blog body images - flexible with aspect ratio */
.blog-body img {
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 1rem auto;
}

.blog-content-image:hover {
    transform: translateY(-2px);
    box-shadow: none;
}

.blog-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.blog-link:hover {
    color: #004499;
    text-decoration: underline;
}

.back-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 0.8rem;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
    position: absolute;
    left: -170px;
    top: 2rem;
    padding: 0.25rem 0.5rem;
}

/* Mobile: Adjust back button position */
@media (max-width: 768px) {
    .back-btn {
        left: -3px;
        top: -0.5rem;
        padding: 0.25rem 0.5rem;
    }

    .blog-content {
        padding-top: 3rem;
        /* Add top margin to blog post content for mobile */
    }

    .individual-image-info {
        max-height: 500px;
        /* Increased height for mobile */
    }
}

.back-btn:hover {
    color: #000;
}

/* Messages Manager */
.message-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
}

.message-item.unread {
    border-left: 4px solid var(--accent-color);
    background: var(--bg-tertiary);
}

.message-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.message-info {
    flex: 1;
}

.message-info strong {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.message-info .message-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-left: 1rem;
}

.message-actions {
    display: flex;
    gap: 0.5rem;
}

.mark-read-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.mark-read-btn:hover {
    background: var(--accent-hover);
}

.message-subject {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.message-content {
    color: var(--text-secondary);
    line-height: 1.6;
    white-space: pre-wrap;
    text-align: justify;
}

.about-container {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.photos-row {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    flex: 0 0 auto;
}

.about-image {
    display: block;
    /* Show the second image on PC */
    max-width: 400px;
    margin: 0 auto;
}

.about-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 0;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.about-image img:hover {
    transform: translateY(-3px);
}

[data-theme="dark"] .about-image img:hover {
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.5), 0 15px 30px rgba(0, 0, 0, 0.3);
}

.about-content {
    flex: 1;
    max-width: 600px;
}

.personal-photo {
    flex: 0 0 auto;
    max-width: 320px;
}

.personal-photo img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    object-fit: cover;
}

.personal-photo img:hover {
    transform: translateY(-3px);
}

[data-theme="dark"] .personal-photo img:hover {
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.5), 0 15px 30px rgba(0, 0, 0, 0.3);
}

.about-content h1 {
    margin-bottom: 2.5rem;
    font-weight: 700;
    font-size: 3rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.2;
    text-align: justify;
}

.about-content p {
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-align: justify;
    white-space: pre-wrap;
}

.about-content strong {
    font-weight: 550;
    color: var(--text-primary);
}

.about-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.about-link:hover {
    color: #004499;
    text-decoration: underline;
}

/* Contact Section */
.contact-section {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    top: -80px;
}

.contact-container {
    display: flex;
    gap: 6rem;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    max-width: 1000px;
}

.contact-info {
    flex: 1;
}

.contact-info h1 {
    margin-bottom: 2rem;
    font-weight: 200;
}

.contact-info p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    text-align: justify;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item h3 {
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #666;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #272727;
    transition: color 0.3s ease;
    text-decoration: none;
    position: relative;
    font-weight: 500;
}

.social-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #000;
    transition: width 0.3s ease;
}

.social-links a:hover {
    color: #000;
}

.social-links a:hover::after {
    width: 100%;
}

/* Dark mode social links - more specific */
[data-theme="dark"] .contact-section .social-links a {
    color: #ffffff !important;
}

[data-theme="dark"] .contact-section .social-links a:hover {
    color: #ffffff !important;
}

[data-theme="dark"] .contact-section .social-links a::after {
    background-color: #ffffff !important;
}

.contact-form {
    flex: 1;
    max-width: 500px;
    padding-left: 6rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-primary);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-group textarea {
    white-space: pre-wrap;
    line-height: 1.5;
    resize: vertical;
    resize: vertical;
    min-height: 120px;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
    border-color: var(--accent-color);
    background-color: var(--bg-primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 2px 10px rgba(0, 0, 0, 0.1), inset 0 1px 3px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.submit-btn {
    background: #000;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #333;
}

/* Email Copy Functionality */
.email-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.email-container p {
    margin: 0;
    font-family: inherit;
    font-weight: 500;
    color: var(--text-primary);
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.copy-btn:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

.copy-btn:active {
    transform: translateY(0);
}

.copy-btn svg {
    width: 14px;
    height: 14px;
}

.copy-feedback {
    color: #4CAF50;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: 500;
}

.copy-feedback.show {
    opacity: 1;
}

/* Individual Image View */
.individual-image-view {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.individual-image-container {
    background: var(--bg-primary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.back-to-gallery {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 8px;
    margin: 2rem;
    transition: background 0.3s ease;
}

.back-to-gallery:hover {
    background: var(--accent-hover);
}

.individual-image-wrapper {
    text-align: center;
    padding: 2rem;
    background: var(--bg-secondary);
}

.individual-image {
    max-width: 100%;
    max-height: 70vh;
    max-height: 70dvh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.individual-image-info {
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    max-height: 400px;
    overflow-y: auto;
    margin: 2rem;
}

/* Custom scrollbar for description box */
.individual-image-info::-webkit-scrollbar {
    width: 6px;
}

.individual-image-info::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.individual-image-info::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
    opacity: 0.6;
}

.individual-image-info::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

.individual-image-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 300;
}

.individual-image-info p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.individual-image-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.category-badge {
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.image-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Individual Blog View */
.back-to-blog-individual {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 8px;
    margin: 2rem 0;
    transition: background 0.3s ease;
}

.back-to-blog-individual:hover {
    background: var(--accent-hover);
}

.read-more-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-top: 1rem;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.read-more-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.blog-title-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title-link:hover {
    color: var(--accent-color);
}

/* Admin Styles */
.login-hint {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.featured-selector {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid #eee;
}

.featured-selector label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.featured-selector select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-family: inherit;
}

.image-preview {
    margin-top: 0.5rem;
    max-height: 200px;
    overflow: hidden;
    border-radius: 4px;
}

.image-preview img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Account Styles */
.account-section {
    padding: 6rem 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 200px);
    min-height: calc(100dvh - 200px);
}

.account-container {
    max-width: 480px;
    margin: 0 auto;
}

.auth-form {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 3rem 2rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    animation: fadeInUp 0.6s ease;
}

/* Dark mode for account section */
[data-theme="dark"] .auth-form {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .auth-header h1 {
    color: var(--text-primary);
}

[data-theme="dark"] .auth-header p {
    color: var(--text-secondary);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.auth-header p {
    color: var(--text-secondary);
    font-weight: 400;
}

.auth-form-inner {
    margin-bottom: 2rem;
}

.auth-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0;
}

.auth-btn.primary {
    background: #000;
    color: white;
}

.auth-btn.primary:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.auth-btn.secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.auth-btn.secondary:hover {
    background: #e8e8e8;
}

.auth-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.auth-footer p {
    color: #666;
    font-size: 0.9rem;
}

.user-dashboard {
    animation: fadeInUp 0.6s ease;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.user-info h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.user-info p {
    color: #666;
    font-weight: 400;
}

.dashboard-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.dashboard-tabs .tab-btn {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    color: #666;
}

.dashboard-tabs .tab-btn.active {
    color: #000;
}

.dashboard-tabs .tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #000;
}

.dashboard-tabs .tab-btn:hover {
    color: #000;
}

.tab-content {
    animation: fadeIn 0.4s ease;
}

.profile-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.profile-info {
    display: grid;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-item label {
    font-weight: 600;
    color: #333;
}

.info-item p {
    color: #666;
    margin: 0;
}

.favorites-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.empty-state {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 3rem 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.admin-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.admin-link-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: #000;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.admin-link-btn:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Account Link in Navigation */
.account-link {
    background: #333;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-link:hover {
    background: #333 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.account-icon {
    width: 20px;
    height: 20px;
    stroke: white;
}

/* Responsive Design */
.admin-section {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.admin-container {
    min-height: calc(100vh - 200px);
    min-height: calc(100dvh - 200px);
}

.admin-login {
    max-width: 400px;
    margin: 4rem auto;
    padding: 2rem;
    border: 1px solid #eee;
    border-radius: 8px;
}

.admin-login h1 {
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 200;
}

.admin-panel.hidden {
    display: none;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.logout-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #f5f5f5;
}

.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: tabContentFadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes tabContentFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.add-btn {
    background: #000;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.add-btn:hover {
    background: #333;
}

.image-manager,
.blog-manager,
.featured-manager,
.about-manager {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
}

.category-selector {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-selector select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.image-list,
.post-list,
.featured-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.image-item,
.post-item,
.featured-item {
    background: white;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-info {
    flex: 1;
}

.item-info h4 {
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.item-info p {
    color: #666;
    font-size: 0.9rem;
}

.item-actions {
    display: flex;
    gap: 0.5rem;
}

.edit-btn,
.delete-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 0.25rem 0.75rem;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.edit-btn:hover {
    background: #f0f0f0;
}

.delete-btn:hover {
    background: #ffebee;
    border-color: #f44336;
    color: #f44336;
}

.save-btn {
    background: #000;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.save-btn:hover {
    background: #333;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideUp 0.3s ease;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.close:hover {
    color: #000;
}

/* Footer */
.footer {
    text-align: center;
    padding: 1rem;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
    text-align: center !important;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-link {
    color: #666;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 50%;
    text-decoration: none;
}

.social-link:hover {
    color: #000;
    transform: translateY(-2px);
}

.social-links a:hover {
    color: #000;
}

[data-theme="dark"] .footer {
    border-top: 1px solid #333;
    color: #adb5bd;
}

[data-theme="dark"] .footer p {
    color: #adb5bd;
}

[data-theme="dark"] .social-link {
    color: #ffffff;
    background: #2a2f38;
}

[data-theme="dark"] .social-link:hover {
    color: #ffffff;
    background: #343a40;
}

/* Enhanced Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(40px) scale(0.98);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-30px) scale(0.98);
        opacity: 0;
    }

    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(30px) scale(0.98);
        opacity: 0;
    }

    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Enhanced Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-slide-up {
    animation: slideUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-slide-left {
    animation: slideInLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-slide-right {
    animation: slideInRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Responsive Design */
@media (max-width: 768px) {

    /* Gallery Mobile - 3D Shadow Effect */
    .gallery-item {
        border-radius: 0;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25), 0 6px 12px rgba(0, 0, 0, 0.2);
        background: transparent;
    }

    .gallery-item img {
        border-radius: 0;
    }

    .gallery-item:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.25);
    }

    [data-theme="dark"] .gallery-item:hover {
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6), 0 8px 16px rgba(0, 0, 0, 0.5);
    }

    /* Header & Navigation */
    .header {
        padding: 0 1rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        width: 60%;
        max-width: 240px;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        padding: 0.75rem 0;
        z-index: 1000;
        border-radius: 0 0 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 0.3rem 0;
    }

    .nav-menu li a {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
        border-radius: 8px;
        transition: all 0.3s ease;
        display: block;
        margin: 0 0.8rem;
        color: #333;
        font-weight: 500;
    }

    .nav-menu li a:hover {
        background: rgba(0, 0, 0, 0.1);
        transform: translateX(5px);
        color: #000;
    }

    .nav-menu li a.active {
        background: rgba(0, 0, 0, 0.15);
        color: #000;
        font-weight: 600;
    }

    .hamburger {
        display: block;
        cursor: pointer;
    }

    .hamburger .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: 0.3s;
        background-color: var(--text-primary);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Disable all hover effects on mobile */
    .gallery-item:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .gallery-item:hover img {
        transform: none !important;
    }

    .gallery-item .image-overlay {
        display: none !important;
    }

    .gallery-item:hover .image-overlay {
        display: none !important;
    }

    /* Main Content */
    .main {
        margin-top: 85px;
        min-height: calc(100vh - 100px);
    }


    /* Hero Section Mobile */
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 1rem 1rem;
        min-height: 30vh;
        min-height: 30dvh;
    }

    .hero-image {
        order: 1;
        padding-left: 0;
        margin-bottom: 1rem;
    }

    .hero-image img {
        max-width: 200px;
        border-radius: 20px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }

    .hero-content {
        order: 2;
        padding-right: 0;
        margin-bottom: 0;
    }

    .hero-content h1 {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 1rem;
        color: #000000;
    }

    .hero-content p {
        display: block;
        /* Show the paragraph text on mobile */
        font-size: 0.9rem;
        font-weight: 700;
        color: #000000;
        line-height: 1.4;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    /* Blog Grid Mobile */
    .blog-list {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
        margin-top: -1.5rem;
    }

    .blog-preview-content {
        padding: 1rem;
    }

    .blog-preview-image {
        height: 150px;
    }

    /* Gallery Mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.5rem;
    }

    .gallery-item {
        border-radius: 16px;
        overflow: hidden;
        height: auto;
    }

    .gallery-item img {
        border-radius: 16px;
    }

    /* Contact Section Mobile */
    .contact-container {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-form {
        max-width: 100%;
    }

    /* Modal Mobile */
    .modal-content {
        width: 95%;
        margin: 1rem;
        max-height: 90vh;
        max-height: 90dvh;
        overflow-y: auto;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    /* Blog Post Mobile */
    .blog-hero {
        padding: 1rem 0 0.5rem;
    }

    .blog-section {
        padding: 0 1rem 2rem;
    }

    .blog-content {
        padding: 0 0.5rem;
    }

    .back-btn {
        display: flex !important;
        margin-bottom: 1.5rem;
        font-size: 0.9rem;
    }

    .back-link {
        display: inline-block !important;
        margin-bottom: 1.5rem;
        font-size: 0.85rem;
        padding: 0;
    }

    .blog-post h1 {
        font-size: 1.75rem;
        margin: 0 0 0.75rem;
    }

    .blog-meta {
        margin-bottom: 1.5rem;
    }

    .blog-post-content-wrapper {
        flex-direction: column;
        gap: 0;
        margin: 0 !important;
        padding: 0 !important;
    }

    .blog-featured-image {
        max-width: 100%;
        width: auto;
        height: auto;
        margin-left: 0;
        margin-bottom: 0;
        margin-top: 0;
        padding: 0;
        display: block;
        object-fit: contain;
    }

    .blog-post-text {
        margin-top: 0;
        margin-bottom: 0;
        margin-left: 0;
        margin-right: 0;
        padding-top: 0.5rem;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 0.5rem;
        display: block;
        font-size: 1rem;
        line-height: 1.6;
        word-wrap: break-word;
        white-space: normal;
    }

    .blog-post-text p {
        margin-top: 0.5rem !important;
        margin-bottom: 0.5rem !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        display: block;
        word-wrap: break-word;
        white-space: normal;
    }

    .blog-post-text * {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    /* Theme Toggle Mobile */
    .theme-toggle {
        margin-left: auto;
    }

    /* About Section Mobile - Redesigned */
    .about-container {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        padding: 2rem 1rem;
        justify-content: flex-start;
    }

    .photos-row {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 400px;
        order: 1;
        margin: 0 auto;
    }

    .personal-photo {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .about-image {
        display: block;
        /* Show the second image on mobile */
        max-width: 350px;
        margin: 0 auto;
    }

    .about-image img {
        width: 100%;
        height: 250px;
        border-radius: 0;
        object-fit: cover;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.1);
        transition: transform 0.2s ease;
    }

    .about-image img:hover {
        transform: translateY(-3px);
    }

    [data-theme="dark"] .about-image img:hover {
        box-shadow: 0 35px 70px rgba(0, 0, 0, 0.5), 0 15px 30px rgba(0, 0, 0, 0.3);
    }

    .personal-photo img {
        width: 100%;
        height: 250px;
        border-radius: 16px;
        object-fit: cover;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
        max-width: 350px;
    }

    .personal-photo img:hover {
        transform: scale(1.05);
    }

    .about-content {
        order: 2;
        text-align: center;
        max-width: 100%;
        width: 100%;
        padding: 0 1rem;
    }

    .about-content h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        font-weight: 300;
        color: var(--text-primary);
    }

    .about-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.7;
        color: var(--text-primary);
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {

    /* Gallery Small Mobile - 3D Shadow Effect */
    .gallery-item {
        border-radius: 0;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25), 0 6px 12px rgba(0, 0, 0, 0.2);
        background: transparent;
    }

    .gallery-item img {
        border-radius: 0;
    }

    .gallery-item:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.25);
    }

    [data-theme="dark"] .gallery-item:hover {
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6), 0 8px 16px rgba(0, 0, 0, 0.5);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-image img:hover {
        transform: translateY(-4px)
    }

    .gallery-hero {
        padding: 2rem 1rem 0;
    }

    .featured {
        padding: 0rem 1rem 4rem 1rem;
    }

    .featured-header {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 1rem;
    }

    .featured h2 {
        margin-bottom: 0;
        text-align: center;
        margin-right: auto;
    }

    .featured-actions {
        flex-wrap: nowrap;
        gap: 0.5rem;
        margin-bottom: 0;
        justify-content: center;
        margin-left: auto;
    }

    .featured-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
        font-weight: 700;
        white-space: nowrap;
        flex-shrink: 0;
        border-radius: 3px;
        text-decoration: underline;
    }

    .featured-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .featured-item:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
    }

    [data-theme="dark"] .featured-item:hover {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 8px 16px rgba(0, 0, 0, 0.2);
    }

    .featured-item img {
        height: auto;
        min-height: 250px;
        max-height: 400px;
    }

    .gallery-section {
        padding: 2rem 1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .viewer-content {
        flex-direction: column;
        height: auto;
        max-height: 90vh;
        width: 90%;
        overflow-y: auto;
        padding: 0.05rem;
    }

    .viewer-image-container {
        flex: 1;
        max-height: 80vh;
        position: relative;
        margin-bottom: 0.2rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .viewer-image {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        border-radius: 0;
    }

    /* Image Viewer Mobile - Force visibility */
    .viewer-description {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        flex: none !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 1rem !important;
        background: #2d2d2d !important;
        background-color: #2d2d2d !important;
        backdrop-filter: none !important;
        border-radius: 8px !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        color: #ffffff !important;
        margin-top: 1rem !important;
        min-height: 50px !important;
        max-height: 30vh !important;
        overflow-y: auto !important;
    }

    .viewer-description h3 {
        display: block !important;
        visibility: visible !important;
        color: #ffffff !important;
        font-size: 1.2rem !important;
        font-weight: 700 !important;
        margin-bottom: 0.8rem !important;
        line-height: 1.3 !important;
    }

    .viewer-description p {
        display: block !important;
        visibility: visible !important;
        color: #ffffff !important;
        font-size: 1rem !important;
        line-height: 1.5 !important;
        font-weight: 400 !important;
        white-space: pre-wrap !important;
    }

    #viewer-title,
    #viewer-text {
        display: block !important;
        visibility: visible !important;
    }

    .viewer-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        border-radius: 50%;
        z-index: 10;
    }

    .viewer-prev {
        left: 0.1rem;
    }

    .viewer-next {
        right: 0.1rem;
    }

    .viewer-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        z-index: 11;
    }

    .blog-container {
        padding: 1rem;
    }

    .contact-section {
        flex-direction: column;
        gap: 2rem;
        justify-content: flex-start;
        align-items: center;
        min-height: auto;
        top: 0;
        position: relative;
        padding-top: 20px;
        padding-bottom: 2rem;
    }

    .contact-container {
        flex-direction: column;
        gap: 2rem;
        justify-content: flex-start;
        align-items: flex-start;
        width: 100%;
        max-width: 600px;
    }

    .contact-form {
        padding-left: 0rem;
        max-width: 100%;
    }

    .admin-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .admin-tabs .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .tab-content {
        padding: 1rem;
    }

    .image-list,
    .post-list,
    .featured-list {
        gap: 1rem;
    }

    .image-item,
    .post-item,
    .featured-item {
        padding: 1rem;
    }

    .item-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .item-actions button {
        width: 100%;
    }

    /* Account Responsive */
    .account-section {
        padding: 6rem 1rem 2rem;
    }

    .account-container {
        max-width: 100%;
    }

    .auth-form {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }

    .auth-header h1 {
        font-size: 1.75rem;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .dashboard-actions {
        width: 100%;
        justify-content: space-between;
    }

    .dashboard-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .dashboard-tabs .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        flex: 1;
        min-width: 80px;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .favorites-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.75rem;
    }

    .account-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .featured-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .account-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .auth-form {
        padding: 1.5rem 1rem;
    }

    .dashboard-tabs .tab-btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }

    .favorites-grid {
        grid-template-columns: 1fr;
    }
}

/* Ensure mobile menu trigger is white in dark mode */
[data-theme="dark"] .nav-toggle span,
[data-theme="dark"] .hamburger span,
[data-theme="dark"] .hamburger .bar {
    background: #ffffff !important;
}