/* ===========================
   Global Styles & Reset
   =========================== */

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

:root {
    --color-primary: #E4DCC7;
    --color-secondary: #8B7355;
    --color-accent: #5D4E37;
    --color-dark: #3E2723;
    --color-light: #F5F1E8;
    --color-white: #FFFFFF;
    --color-text: #2C2C2C;
    --color-text-light: #666666;
    --color-beige-100: #F5F3ED;
    --color-beige-200: #E8E4D9;

    --font-heading: 'Georgia', 'Palatino', serif;
    --font-body: 'Helvetica Neue', Arial, sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    background: var(--color-white);
    position: relative;
}

/* Background Textures */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(139, 115, 85, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(139, 115, 85, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 20% 70%, rgba(228, 220, 199, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(228, 220, 199, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(93, 78, 55, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.15'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0 L30 2 M30 58 L30 60 M0 30 L2 30 M58 30 L60 30' stroke='rgba(139,115,85,0.08)' stroke-width='0.5'/%3E%3C/svg%3E");
    background-size: 100% 100%, 60px 60px;
    background-position: 0 0, 0 0;
    opacity: 1;
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    line-height: 1.3;
}

h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

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

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

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

/* ===========================
   Mobile Hamburger Menu
   =========================== */

.hamburger-btn {
    display: none;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1001;
    width: 45px;
    height: 45px;
    background: var(--color-accent);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.hamburger-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--color-white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn:hover {
    background: var(--color-secondary);
    transform: scale(1.05);
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
}

/* ===========================
   Language Selector
   =========================== */

.language-selector {
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-accent) 100%);
    padding: var(--spacing-sm);
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(228, 220, 199, 0.3);
    color: var(--color-primary);
    padding: 0.5rem 1.5rem;
    margin: 0 0.25rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Show full text on desktop, hide short codes */
.lang-btn .lang-full {
    display: inline;
}

.lang-btn .lang-short {
    display: none;
}

.lang-btn:hover {
    background-color: rgba(139, 115, 85, 0.4);
    border-color: var(--color-secondary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.lang-btn.active {
    background-color: var(--color-primary);
    color: var(--color-dark);
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(228, 220, 199, 0.3);
}

/* ===========================
   Header
   =========================== */

header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-beige-100) 100%);
    padding: var(--spacing-lg) 0;
    text-align: center;
    border-bottom: 2px solid var(--color-secondary);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 40%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.2) 0%, transparent 70%);
    pointer-events: none;
}

header h1 {
    font-size: clamp(2.5rem, 7vw, 3.5rem);
    color: var(--color-dark);
    margin-bottom: var(--spacing-xs);
    letter-spacing: 3px;
    position: relative;
    font-family: 'Cinzel', 'Georgia', serif;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow:
        1px 1px 2px rgba(255, 255, 255, 0.8),
        -1px -1px 1px rgba(93, 78, 55, 0.4),
        2px 2px 3px rgba(0, 0, 0, 0.1);
}

header .subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--color-text-light);
    font-style: italic;
    margin-bottom: var(--spacing-md);
}

/* Header ornaments */
.header-ornament {
    width: 100%;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
}

.header-ornament-top {
    margin-bottom: var(--spacing-sm);
    background-image: url("data:image/svg+xml,%3Csvg width='300' height='40' viewBox='0 0 300 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='0.75'%3E%3C!-- Branch --%3E%3Cpath d='M 80 25 Q 100 20, 120 25 L 150 25 Q 180 20, 200 25 L 220 25' fill='none' stroke='%238B7355' stroke-width='2' stroke-linecap='round'/%3E%3C!-- Left bird --%3E%3Cpath d='M 105 18 Q 100 15, 105 12 Q 108 14, 110 12 Q 112 15, 110 18 Q 108 16, 105 18 Z' fill='%235D4E37'/%3E%3Cpath d='M 98 16 Q 102 14, 105 16' fill='none' stroke='%235D4E37' stroke-width='1.2' stroke-linecap='round'/%3E%3C!-- Right bird --%3E%3Cpath d='M 190 18 Q 195 15, 190 12 Q 187 14, 185 12 Q 183 15, 185 18 Q 187 16, 190 18 Z' fill='%235D4E37'/%3E%3Cpath d='M 197 16 Q 193 14, 190 16' fill='none' stroke='%235D4E37' stroke-width='1.2' stroke-linecap='round'/%3E%3C!-- Small leaves --%3E%3Cellipse cx='130' cy='22' rx='3' ry='5' fill='%238B7355' opacity='0.6'/%3E%3Cellipse cx='145' cy='20' rx='3' ry='5' fill='%238B7355' opacity='0.6'/%3E%3Cellipse cx='160' cy='22' rx='3' ry='5' fill='%238B7355' opacity='0.6'/%3E%3Cellipse cx='170' cy='23' rx='3' ry='5' fill='%238B7355' opacity='0.6'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.header-ornament-bottom {
    margin-top: var(--spacing-sm);
    background-image: url("data:image/svg+xml,%3Csvg width='400' height='35' viewBox='0 0 400 35' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='0.75'%3E%3C!-- Vine --%3E%3Cpath d='M 80 20 Q 110 15, 140 18 Q 170 22, 200 18 Q 230 14, 260 18 Q 290 22, 320 20' fill='none' stroke='%238B7355' stroke-width='1.5' stroke-linecap='round'/%3E%3C!-- Flowers --%3E%3Ccircle cx='120' cy='15' r='4' fill='none' stroke='%235D4E37' stroke-width='1.2'/%3E%3Ccircle cx='120' cy='15' r='1.5' fill='%238B7355'/%3E%3Ccircle cx='180' cy='20' r='4' fill='none' stroke='%235D4E37' stroke-width='1.2'/%3E%3Ccircle cx='180' cy='20' r='1.5' fill='%238B7355'/%3E%3Ccircle cx='220' cy='15' r='4' fill='none' stroke='%235D4E37' stroke-width='1.2'/%3E%3Ccircle cx='220' cy='15' r='1.5' fill='%238B7355'/%3E%3Ccircle cx='280' cy='18' r='4' fill='none' stroke='%235D4E37' stroke-width='1.2'/%3E%3Ccircle cx='280' cy='18' r='1.5' fill='%238B7355'/%3E%3C!-- Small petals --%3E%3Cellipse cx='117' cy='12' rx='2' ry='3' fill='%235D4E37' opacity='0.5'/%3E%3Cellipse cx='123' cy='12' rx='2' ry='3' fill='%235D4E37' opacity='0.5'/%3E%3Cellipse cx='177' cy='17' rx='2' ry='3' fill='%235D4E37' opacity='0.5'/%3E%3Cellipse cx='183' cy='17' rx='2' ry='3' fill='%235D4E37' opacity='0.5'/%3E%3Cellipse cx='217' cy='12' rx='2' ry='3' fill='%235D4E37' opacity='0.5'/%3E%3Cellipse cx='223' cy='12' rx='2' ry='3' fill='%235D4E37' opacity='0.5'/%3E%3C!-- Leaves --%3E%3Cellipse cx='150' cy='20' rx='3' ry='5' fill='%238B7355' opacity='0.6' transform='rotate(-30 150 20)'/%3E%3Cellipse cx='200' cy='22' rx='3' ry='5' fill='%238B7355' opacity='0.6' transform='rotate(20 200 22)'/%3E%3Cellipse cx='250' cy='16' rx='3' ry='5' fill='%238B7355' opacity='0.6' transform='rotate(-25 250 16)'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.header-contact {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
}

.header-address,
.header-info {
    margin: 0.5rem 0;
    color: var(--color-text);
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.header-info a {
    color: var(--color-accent);
    font-weight: 500;
    transition: color 0.3s ease;
}

.header-info a:hover {
    color: var(--color-secondary);
}

/* ===========================
   Navigation
   =========================== */

nav {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    padding: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: sticky;
    top: 53px;
    z-index: 999;
    transition: top 0.3s ease;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    display: block;
    padding: 1.2rem 2rem;
    color: var(--color-white);
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    background-color: rgba(0,0,0,0.2);
    color: var(--color-primary);
}

nav ul li a:hover::before {
    width: 80%;
}

/* ===========================
   Welcome Text Section
   =========================== */

.welcome-text {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg, rgba(245, 243, 237, 0.4) 0%, transparent 100%);
}

.text-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.text-content h2 {
    color: var(--color-dark);
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
}

.text-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
}

.text-content p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
    line-height: 1.8;
}

.text-content strong {
    color: var(--color-accent);
    font-weight: 600;
}

.cta {
    margin-top: var(--spacing-lg);
    text-align: center;
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    color: var(--color-white);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    color: var(--color-white);
}

.btn:hover::before {
    left: 100%;
}

/* ===========================
   Gallery Section
   =========================== */

.gallery-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-white);
}

.gallery-section.paintings {
    background: linear-gradient(180deg, transparent 0%, rgba(245, 243, 237, 0.4) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
}

.section-header h2 {
    color: var(--color-dark);
    margin-bottom: var(--spacing-sm);
}

.section-header h3 {
    color: var(--color-secondary);
    font-style: italic;
    font-weight: normal;
}

.blog-link {
    margin-top: var(--spacing-md);
    font-size: 1.1rem;
}

.blog-link a {
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: underline;
}

/* ===========================
   Gallery Grid
   =========================== */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.gallery-item {
    background-color: var(--color-white);
    padding: var(--spacing-md);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.gallery-item:hover::before {
    transform: scaleX(1);
}

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

.gallery-item img {
    width: 100%;
    height: auto;
    border: 2px solid var(--color-beige-200);
    margin-bottom: var(--spacing-sm);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    border-color: var(--color-secondary);
}

.gallery-item p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
    text-align: center;
}

/* Centered gallery item (for last image) */
.gallery-item-centered {
    grid-column: 1 / -1;
    max-width: 702px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .gallery-item-centered {
        max-width: 100%;
    }
}

/* ===========================
   Contact Section
   =========================== */

.contact-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-beige-100) 100%);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 40%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.2) 0%, transparent 70%);
    pointer-events: none;
}

.contact-section h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--color-dark);
    position: relative;
}

.contact-info {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.contact-item {
    text-align: center;
    flex: 1;
    min-width: 200px;
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.contact-item h3 {
    color: var(--color-accent);
    margin-bottom: var(--spacing-sm);
}

.contact-item p {
    color: var(--color-text);
    font-size: 1.1rem;
}

.contact-item a {
    color: var(--color-accent);
    font-weight: 500;
}

.visit-info {
    text-align: center;
    max-width: 800px;
    margin: var(--spacing-lg) auto 0;
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.visit-info p {
    font-size: 1.1rem;
    color: var(--color-text);
}

/* ===========================
   Footer
   =========================== */

footer {
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-accent) 100%);
    color: var(--color-light);
    padding: var(--spacing-md) 0;
    text-align: center;
}

footer p {
    margin: 0;
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    /* Show hamburger button */
    .hamburger-btn {
        display: flex;
    }

    /* Mobile Menu Container - combine language and nav */
    .language-selector {
        position: fixed;
        right: -100%;
        top: 0;
        height: auto;
        width: 280px;
        background: transparent;
        box-shadow: none;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center;
        align-items: flex-start;
        padding: 80px 20px 15px;
        transition: right 0.3s ease;
        z-index: 1001;
        gap: 8px;
    }

    .language-selector.mobile-menu-open {
        right: 0;
    }

    /* Language buttons in mobile menu - compact horizontal */
    .lang-btn {
        font-size: 0.85rem;
        padding: 0.5rem 0.7rem;
        width: auto;
        min-width: 45px;
        max-width: 55px;
        flex-shrink: 0;
        pointer-events: auto;
        cursor: pointer;
    }

    /* Hide full language names on mobile, show only codes */
    .lang-btn .lang-full {
        display: none;
    }

    .lang-btn .lang-short {
        display: inline;
        font-weight: 600;
    }

    /* Navigation in mobile menu */
    nav {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 280px;
        background: linear-gradient(180deg, var(--color-dark) 0%, var(--color-accent) 100%);
        box-shadow: -4px 0 12px rgba(0,0,0,0.3);
        padding: 150px 20px 20px;
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 1000;
    }

    nav.mobile-menu-open {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        padding: 1rem;
        text-align: left;
        border-bottom: 1px solid rgba(228, 220, 199, 0.2);
        background: rgba(0, 0, 0, 0.1);
    }

    nav ul li a::before {
        display: none;
    }

    header h1 {
        font-size: 2.5rem;
    }

    header .subtitle {
        font-size: 1rem;
    }

    .gallery {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .contact-info {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    header h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .lang-btn {
        display: block;
        width: 100%;
        margin: 0.25rem 0;
    }

    .gallery-item {
        padding: var(--spacing-sm);
    }
}

/* ===========================
   Print Styles
   =========================== */

@media print {
    .language-selector,
    nav {
        display: none;
    }

    body::before,
    body::after {
        display: none;
    }

    body {
        background-color: white;
    }

    .gallery-item {
        page-break-inside: avoid;
    }

    .lightbox {
        display: none;
    }
}

/* ===========================
   Lightbox Modal
   =========================== */

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lightbox-content {
    max-width: 98%;
    max-height: 98vh;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-caption {
    text-align: center;
    color: var(--color-white);
    padding: var(--spacing-md);
    max-width: 800px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--color-white);
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    background: var(--color-accent);
    transform: rotate(90deg);
    color: var(--color-white);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 4px;
    transition: all 0.3s ease;
    user-select: none;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--color-secondary);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Mobile responsiveness for lightbox */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 98%;
        max-height: 90vh;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 40px;
        width: 40px;
        height: 40px;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 30px;
        padding: 12px 16px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-caption {
        font-size: 0.95rem;
        padding: var(--spacing-sm);
    }
}

/* Cursor change for gallery items */
.gallery-item a {
    cursor: zoom-in;
}

.gallery-item a:hover img {
    opacity: 0.9;
}
