/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: hsl(0 0% 4%);
    --foreground: hsl(30 8% 92%);
    --card: hsl(0 0% 6%);
    --card-foreground: hsl(30 8% 92%);
    --popover: hsl(0 0% 6%);
    --popover-foreground: hsl(30 8% 92%);
    --primary: hsl(45 45% 65%);
    --primary-foreground: hsl(0 0% 8%);
    --accent: hsl(45 45% 65%);
    --accent-foreground: hsl(0 0% 8%);
    --secondary: hsl(0 0% 12%);
    --secondary-foreground: hsl(30 8% 92%);
    --muted: hsl(0 0% 14%);
    --muted-foreground: hsl(30 5% 58%);
    --border: hsl(0 0% 16%);
    --input: hsl(0 0% 16%);
    --ring: hsl(45 45% 65%);
    --destructive: hsl(0 62.8% 50.6%);
    --destructive-foreground: hsl(30 8% 92%);
    --radius: 0rem;
}

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

body {
    font-family: 'Libre Baskerville', 'Times New Roman', serif;
    line-height: 1.7;
    color: var(--foreground);
    background-color: var(--background);
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--foreground);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* Navigation */
.navbar {
    background-color: hsla(0, 0%, 4%, 0.8);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    transition: color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: absolute;
    left: 0;
}

.logo:hover {
    color: var(--foreground);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

.nav-links a {
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

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

.nav-links a.active {
    color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: absolute;
    right: 0;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 1px;
    background: var(--primary);
    transition: all 0.3s;
    display: block;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .logo {
        position: static;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background-color: var(--background);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 2rem;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        font-size: 1rem;
        width: 100%;
        padding: 0.75rem 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid var(--border);
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.alert-success {
    background-color: hsla(45, 45%, 65%, 0.1);
    color: var(--primary);
    border-color: var(--primary);
}

.alert-error {
    background-color: hsla(0, 62.8%, 50.6%, 0.1);
    color: var(--destructive);
    border-color: var(--destructive);
}

/* Home Page Hero */
.hero-home {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 0 5rem;
    margin-top: 5rem;
}

.hero-content {
    text-align: center;
    max-width: 1000px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--foreground);
}

.hero-subtitle {
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    color: var(--muted-foreground);
    letter-spacing: 0.3em;
    margin-bottom: 4rem;
    text-transform: uppercase;
    font-weight: 400;
}

.hero-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.hero-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.hero-card {
    background: transparent;
    border: 1px solid var(--border);
    padding: 4rem 2rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.hero-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--primary);
    opacity: 0.05;
    transition: height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-card:hover::after {
    height: 100%;
}

.hero-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.hero-card h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    margin-bottom: 0.75rem;
}

/* Hero Background Effect */
.hero-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    background-size: cover;
    background-position: center;
    will-change: transform, filter;
    pointer-events: none;
}

.hero-home {
    position: relative;
    z-index: 1;
}

.hero-card p {
    color: var(--muted-foreground);
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    letter-spacing: 0.05em;
}

.hero-arrow {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    font-size: 1.5rem;
    color: var(--primary);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-card:hover .hero-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Page Headers */
.page-header {
    text-align: center;
    padding: 8rem 0 5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 5rem;
    margin-top: 5rem;
}

.page-header h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.subtitle {
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    color: var(--muted-foreground);
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Portfolio Sections */
.featured-section {
    margin-bottom: 8rem;
}

.section-title {
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 3rem;
    color: var(--muted-foreground);
}

.featured-gallery {
    margin-bottom: 2rem;
}

.featured-link {
    text-decoration: none;
    color: inherit;
}

.featured-image {
    position: relative;
    width: 100%;
    height: clamp(400px, 60vh, 700px);
    overflow: hidden;
    border: 1px solid var(--border);
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.featured-link:hover .featured-image img {
    transform: scale(1.05);
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, var(--background) 0%, transparent 100%);
    padding: 3rem 2rem;
    color: var(--foreground);
}

.featured-overlay h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}

.featured-overlay p {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    color: var(--muted-foreground);
}

/* Gallery Grid */
.galleries-section {
    margin-bottom: 8rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: clamp(2rem, 4vw, 3rem);
}

.gallery-card {
    text-decoration: none;
    color: inherit;
    display: block;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: transparent;
    overflow: hidden;
}

.gallery-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.gallery-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    background: var(--secondary);
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.gallery-info {
    padding: 2rem;
    border-top: 1px solid var(--border);
}

.gallery-info h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
    transition: color 0.4s;
}

.gallery-card:hover .gallery-info h3 {
    color: var(--primary);
}

.gallery-count {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* Photo Grid - Masonry Layout */
.photo-grid {
    column-count: 3;
    column-gap: clamp(2rem, 4vw, 3rem);
    margin-bottom: 5rem;
}

.photo-item {
    break-inside: avoid;
    margin-bottom: clamp(2rem, 4vw, 3rem);
    border: 1px solid var(--border);
    overflow: hidden;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-block; /* Ensures proper breaking behavior */
    width: 100%;
}

.photo-item:hover {
    border-color: var(--primary);
}

.photo-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.photo-item:hover img {
    transform: scale(1.05);
}

.photo-caption {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
}

.photo-caption h3 {
    font-size: 1.125rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.photo-caption p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Responsive Masonry */
@media (max-width: 1024px) {
    .photo-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .photo-grid {
        column-count: 1;
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        width: calc(100% + 3rem);
    }
    
    .photo-item {
        border-left: none;
        border-right: none;
        margin-bottom: 1rem;
    }
}

/* Gallery Header */
.gallery-header {
    margin-bottom: 5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
    margin-top: 8rem;
}

.gallery-header h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 1.5rem 0;
}

.gallery-description {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--muted-foreground);
    line-height: 1.8;
    max-width: 800px;
}

.back-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
    transition: color 0.4s;
}

.back-link:hover {
    color: var(--foreground);
}

/* Posts Grid */
.posts-grid {
    display: grid;
    gap: clamp(3rem, 5vw, 4rem);
    margin-bottom: 5rem;
}

.post-card {
    background: transparent;
    padding: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 3rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.post-card:last-child {
    border-bottom: none;
}

.post-card h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    letter-spacing: -0.01em;
    margin: 1rem 0;
}

.post-card h2 a {
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.4s;
}

.post-card h2 a:hover {
    color: var(--primary);
}

.post-meta {
    color: var(--muted-foreground);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.post-excerpt {
    color: var(--muted-foreground);
    margin: 1rem 0;
    line-height: 1.7;
    font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: color 0.4s;
    display: inline-block;
    margin-top: 1rem;
}

.read-more:hover {
    color: var(--foreground);
}

.no-posts {
    text-align: center;
    color: var(--muted-foreground);
    padding: 5rem 1rem;
    font-size: 1rem;
    letter-spacing: 0.1em;
}

/* Post Detail */
.post-detail {
    background: transparent;
    max-width: 800px;
    margin: 8rem auto 5rem;
    padding: 0;
}

.post-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 2rem;
    margin-bottom: 3rem;
}

.post-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 1.5rem 0;
}

.post-content {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.8;
}

.post-content h1,
.post-content h2,
.post-content h3 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.post-content h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.post-content h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
.post-content h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content ul,
.post-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.post-content code {
    background-color: var(--secondary);
    padding: 0.2rem 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875em;
    color: var(--primary);
    border: 1px solid var(--border);
}

.post-content pre {
    background-color: var(--secondary);
    color: var(--foreground);
    padding: 1.5rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.post-content pre code {
    background: none;
    padding: 0;
    color: inherit;
    border: none;
}

.post-content blockquote {
    border-left: 2px solid var(--primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: var(--muted-foreground);
    font-style: italic;
}

.post-actions {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid var(--border);
}

.badge-success {
    background-color: hsla(45, 45%, 65%, 0.1);
    color: var(--primary);
    border-color: var(--primary);
}

.badge-draft {
    background-color: var(--muted);
    color: var(--muted-foreground);
    border-color: var(--border);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 400;
    text-decoration: none;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-family: 'Libre Baskerville', 'Times New Roman', serif;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: hsla(45, 45%, 55%, 1);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--foreground);
    border-color: var(--border);
}

.btn-secondary:hover {
    background-color: var(--card);
    border-color: var(--primary);
}

.btn-danger {
    background-color: var(--destructive);
    color: var(--destructive-foreground);
    border-color: var(--destructive);
}

.btn-danger:hover {
    background-color: hsla(0, 62.8%, 40%, 1);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--foreground);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--input);
    font-size: 1rem;
    font-family: 'Libre Baskerville', 'Times New Roman', serif;
    background-color: var(--card);
    color: var(--foreground);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.form-control:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 2px hsla(45, 45%, 65%, 0.2);
}

.form-control:hover:not(:focus) {
    border-color: var(--muted-foreground);
}

.textarea-large {
    min-height: 400px;
    font-family: 'Courier New', monospace;
    line-height: 1.6;
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    color: var(--muted-foreground);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.error {
    color: var(--destructive);
    font-size: 0.75rem;
    display: block;
    margin-top: 0.5rem;
    letter-spacing: 0.05em;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding-top: 5rem;
}

.login-box {
    background: var(--card);
    padding: 3rem;
    border: 1px solid var(--border);
    width: 100%;
    max-width: 450px;
}

.login-box h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Admin Dashboard */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    margin-top: 8rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.admin-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    letter-spacing: -0.01em;
}

.admin-sections {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-bottom: 5rem;
}

.admin-section {
    background: transparent;
    border: 1px solid var(--border);
    padding: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.admin-posts {
    background: transparent;
    overflow-x: auto;
}

.posts-table {
    width: 100%;
    border-collapse: collapse;
}

.posts-table thead {
    background-color: var(--secondary);
    border-bottom: 1px solid var(--border);
}

.posts-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted-foreground);
}

.posts-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9375rem;
}

.posts-table tbody tr:hover {
    background-color: hsla(45, 45%, 65%, 0.03);
}

.posts-table td a {
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.4s;
}

.posts-table td a:hover {
    color: var(--primary);
}

.posts-table .actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.posts-table form {
    margin: 0;
}

/* Admin Edit */
.admin-edit {
    background: transparent;
    max-width: 900px;
    margin: 8rem auto 5rem;
    padding: 0;
}

.admin-edit h1 {
    margin-bottom: 3rem;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    letter-spacing: -0.01em;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.post-form {
    max-width: 100%;
}

/* Admin Photo Grid */
.photo-grid-admin {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.photo-item-admin {
    border: 1px solid var(--border);
    background: transparent;
    overflow: hidden;
    transition: all 0.4s;
    position: relative;
    cursor: move;
}

.photo-item-admin:hover {
    border-color: var(--primary);
}

.photo-drag-handle {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: var(--primary);
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
    cursor: move;
    z-index: 10;
    user-select: none;
}

.featured-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--primary);
    color: var(--background);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
}

.photo-item-admin img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.photo-controls {
    padding: 1rem;
    border-top: 1px solid var(--border);
}

.photo-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
}

.photo-title {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    color: var(--foreground);
}

/* Footer */
footer {
    background-color: var(--background);
    border-top: 1px solid var(--border);
    padding: 3rem 0;
    margin-top: 8rem;
    text-align: center;
    color: var(--muted-foreground);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    z-index: 9999;
    transition: width 0.1s;
}

/* Utility Classes */
img {
    opacity: 0;
    transition: opacity 0.3s;
}

img.loaded {
    opacity: 1;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-home {
        min-height: 80vh;
        padding: 6rem 0 4rem;
    }
    
    .featured-image {
        height: 50vh;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 0;
    }
    
    .hero-home {
        min-height: 85vh;
        padding: 5rem 0 3rem;
        margin-top: 4rem;
    }
    
    .hero-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-card {
        padding: 3rem 1.5rem;
    }

    .page-header {
        padding: 5rem 0 3rem;
        margin-bottom: 3rem;
        margin-top: 4rem;
    }

    .gallery-grid {
        gap: 2rem;
    }

    .photo-grid {
        gap: 2rem;
    }

    .gallery-header {
        margin-top: 5rem;
        margin-bottom: 3rem;
    }

    .admin-header {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
        margin-top: 5rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .posts-table {
        font-size: 0.875rem;
    }

    .posts-table th,
    .posts-table td {
        padding: 0.75rem 0.5rem;
    }

    .login-container {
        padding-top: 3rem;
    }

    .login-box {
        padding: 2rem;
        margin: 1rem;
    }
    
    .photo-grid-admin {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .gallery-info {
        padding: 1.5rem;
    }
    
    .featured-overlay {
        padding: 2rem 1.5rem;
    }
    
    .admin-edit {
        margin-top: 5rem;
    }
}

@media (max-width: 480px) {
    .hero-card {
        padding: 2.5rem 1.25rem;
    }
    
    .hero-arrow {
        bottom: 1.5rem;
        right: 1.5rem;
        font-size: 1.25rem;
    }
    
    .post-card {
        padding-bottom: 2rem;
    }
    
    .photo-caption {
        padding: 1rem;
    }
    
    .admin-section {
        padding: 1.5rem 1rem;
    }
    
    .posts-table {
        font-size: 0.8rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Print styles */
@media print {
    .navbar,
    footer,
    .btn,
    .admin-actions,
    .post-actions,
    .scroll-progress {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--card);
    border-top: 1px solid var(--primary);
    padding: 2rem;
    z-index: 10000;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.5s ease-out;
}

.cookie-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0 2rem;
}

.cookie-content p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--foreground);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-buttons .btn {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 0 1rem;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}
