/* ===================================
   MOUROS41 - Main Stylesheet
   =================================== */

:root {
    --primary: #1a1a1a;
    --secondary: #2d3436;
    --accent: #8b7355;
    --accent-light: #a68b6c;
    --cream: #f9f7f4;
    --white: #ffffff;
    --gold: #c9a962;

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', -apple-system, sans-serif;

    --transition: all 0.3s ease;
    --shadow: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--primary);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Enhanced Responsive Image Styles */
img, picture, canvas, svg, video {
    max-width: 100%;
    height: auto;
    display: block;
    width: 100%;
}

/* Picture element optimization */
picture {
    display: block;
    width: 100%;
}

/* Prevent layout shift with aspect ratios */
.gallery-item {
    aspect-ratio: 4/3;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 8px;
    background: var(--secondary);
    contain: layout style;
}

/* Responsive hero background */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(26,26,26,0.7) 0%, rgba(45,52,54,0.5) 100%),
                url('../images/properties/hero.jpg') center/cover no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    contain: layout style;
}

/* Improved image loading states */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Object-fit utilities */
.object-fit-cover {
    object-fit: cover;
    object-position: center;
}

.object-fit-contain {
    object-fit: contain;
    object-position: center;
}

.object-fill {
    object-fit: fill;
}

/* Responsive image containers */
.img-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: var(--light-gray);
}

.img-container img {
    transition: transform 0.3s ease;
}

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

/* High DPI support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero {
        background-image: url('../images/properties/hero@2x.jpg');
    }

    /* Add other high DPI images as needed */
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

nav.scrolled {
    padding: 10px 50px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

nav .logo {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--white);
    font-weight: 600;
    letter-spacing: 2px;
}

nav .logo span {
    color: var(--gold);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--gold);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
    padding: 6px 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
    border-radius: 3px;
}

.lang-btn:hover,
.lang-btn.active {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201, 169, 98, 0.1);
}

.lang-btn:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(26,26,26,0.7) 0%, rgba(45,52,54,0.5) 100%),
                url('../images/properties/hero.jpg') center/cover no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    color: var(--white);
    max-width: 900px;
    padding: 0 40px;
}

.hero-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--gold);
    margin-bottom: 20px;
    display: block;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero h1 em {
    font-style: italic;
    color: var(--gold);
}

.hero-details {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.hero-detail {
    text-align: center;
}

.hero-detail .value {
    font-family: var(--font-display);
    font-size: 48px;
    color: var(--white);
    display: block;
}

.hero-detail .label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.7);
    margin-top: 8px;
    display: block;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    width: 30px;
    height: 30px;
    stroke: var(--gold);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Sections */
section {
    padding: 120px 50px;
}

.section-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 15px;
    display: block;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 400;
    margin-bottom: 50px;
    color: var(--primary);
}

/* About Section */
.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.about-text p {
    font-size: 16px;
    line-height: 2;
    color: var(--secondary);
    margin-bottom: 30px;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 3/4;
}

.about-image picture {
    width: 100%;
    height: 100%;
    display: block;
}

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

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

.about-image::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    transform: rotate(45deg);
}

/* Features Section */
.features {
    background: var(--cream);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 8px;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 15px;
    color: var(--primary);
}

.feature-card p {
    font-size: 14px;
    color: var(--secondary);
    line-height: 1.8;
}

.feature-card.highlight {
    background: var(--primary);
    color: var(--white);
}

.feature-card.highlight h3,
.feature-card.highlight p {
    color: var(--white);
}

/* Gallery Section */
.gallery {
    background: var(--primary);
    color: var(--white);
}

.gallery .section-title {
    color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    aspect-ratio: 4/3;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 8px;
    background: var(--secondary);
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.gallery-item span {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    background: linear-gradient(135deg, rgba(26,26,26,0.9) 0%, rgba(45,52,54,0.8) 100%);
    padding: 8px 16px;
    border-radius: 4px;
    color: var(--white);
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.gallery-item:hover span,
.gallery-item:focus-within span {
    opacity: 1;
    transform: translateY(0);
}

/* Lazy loading indicator */
.gallery-item img {
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item img.loaded {
    opacity: 1;
}

/* Grid responsivo melhorado */
@media (min-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 300px;
        gap: 24px;
    }

    .gallery-item {
        aspect-ratio: auto;
        height: 100%;
    }

    .gallery-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
    }

    .gallery-item:nth-child(2) {
        grid-column: span 1;
        grid-row: span 2;
    }

    .gallery-item:nth-child(3) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-item:nth-child(4) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-item:nth-child(5) {
        grid-column: span 2;
        grid-row: span 1;
    }

    .gallery-item:nth-child(6) {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 280px;
        gap: 20px;
    }

    .gallery-item {
        aspect-ratio: 4/3;
    }

    .gallery-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
        aspect-ratio: 3/4;
    }
}

@media (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 300px;
        gap: 16px;
        padding: 0 16px;
    }

    .gallery-item {
        aspect-ratio: 16/9;
    }

    .gallery-item:nth-child(1) {
        grid-column: span 1;
        grid-row: span 1;
        aspect-ratio: 16/9;
    }
}

/* Market Section */
.market {
    background: var(--white);
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.market-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.stat-card {
    padding: 30px;
    background: var(--cream);
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
}

.stat-card .value {
    font-family: var(--font-display);
    font-size: 36px;
    color: var(--primary);
    display: block;
}

.stat-card .label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary);
    margin-top: 10px;
    display: block;
}

.stat-card .change {
    font-size: 14px;
    color: #27ae60;
    margin-top: 8px;
    display: block;
}

.market-info h4 {
    font-family: var(--font-display);
    font-size: 24px;
    margin-bottom: 20px;
}

.market-info ul {
    list-style: none;
}

.market-info li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    font-size: 15px;
}

.market-info li span:last-child {
    font-weight: 600;
    color: var(--accent);
}

/* Price Section */
.price-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    text-align: center;
}

.price-section .section-label {
    color: var(--gold);
}

.price-section .section-title {
    color: var(--white);
}

.price-display {
    max-width: 800px;
    margin: 0 auto;
}

.price-main {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 80px);
    color: var(--gold);
    display: block;
    margin-bottom: 30px;
}

.price-breakdown {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.price-item {
    text-align: center;
}

.price-item .label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    display: block;
    margin-bottom: 8px;
}

.price-item .value {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--white);
}

/* Contact Section */
.contact {
    background: var(--cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h3 {
    font-family: var(--font-display);
    font-size: 32px;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 16px;
    line-height: 2;
    color: var(--secondary);
    margin-bottom: 30px;
}

.contact-details {
    margin-top: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent);
    flex-shrink: 0;
}

.contact-item a {
    color: var(--primary);
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--accent);
}

.contact-form {
    background: var(--white);
    padding: 50px;
    box-shadow: var(--shadow);
    border-radius: 8px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary);
    margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(0,0,0,0.1);
    font-family: var(--font-body);
    font-size: 15px;
    transition: var(--transition);
    border-radius: 4px;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.btn-submit {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 18px 40px;
    font-family: var(--font-body);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    border-radius: 4px;
}

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

.btn-submit:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 60px 50px;
    text-align: center;
}

footer .logo {
    font-family: var(--font-display);
    font-size: 28px;
    margin-bottom: 20px;
}

footer .logo span {
    color: var(--gold);
}

footer p {
    font-size: 13px;
    opacity: 0.6;
    margin-top: 10px;
}

.footer-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-links a {
    font-size: 11px;
    opacity: 0.7;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--gold);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-grid,
    .contact-grid,
    .market-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item:nth-child(1) {
        grid-column: span 1;
        grid-row: span 1;
        aspect-ratio: 4/3;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 15px 20px;
    }

    nav ul {
        display: none;
    }

    .lang-switcher {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    section {
        padding: 80px 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .market-stats {
        grid-template-columns: 1fr;
    }

    .hero-details {
        gap: 30px;
    }

    .price-breakdown {
        flex-direction: column;
        gap: 20px;
    }

    .contact-form {
        padding: 30px;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

/* Print Styles */
@media print {
    nav,
    .scroll-indicator,
    .mobile-menu-toggle,
    .lang-switcher {
        display: none !important;
    }

    body {
        background: white;
    }

    section {
        page-break-inside: avoid;
    }

    .hero {
        height: 100vh;
        background: var(--primary) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .feature-card.highlight,
    .price-section {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Focus Styles for Accessibility */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Reduced Motion */
/* Form Status Messages */
.form-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    line-height: 1.6;
}

.form-status.form-success {
    background: #e8f5e9;
    color: #27ae60;
    border: 1px solid #27ae60;
}

.form-status.form-error {
    background: #fdeea9;
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* =========================================
   GALLERY LIGHTBOX - PREMIUM DESIGN
   ========================================= */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 40px;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.lightbox-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 50px 100px rgba(0,0,0,0.5);
    background: #000;
}

.lightbox-image {
    max-width: 100vw;
    max-height: 85vh;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    will-change: transform, opacity;
}

.lightbox-image.zoomed {
    cursor: zoom-out;
}

.lightbox-caption {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--white);
    font-size: 14px;
    opacity: 0.8;
    padding: 10px;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.lightbox-close svg {
    width: 24px;
    height: 24px;
    stroke: var(--white);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-50%) scale(1.05);
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

.lightbox-nav svg {
    width: 28px;
    height: 28px;
    stroke: var(--white);
}

.lightbox-zoom-controls {
    position: absolute;
    bottom: 30px;
    right: 40px;
    display: flex;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    padding: 8px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.lightbox-zoom-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-zoom-btn:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-zoom-level {
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: var(--white);
    font-size: 12px;
    font-family: var(--font-body);
    opacity: 0.8;
}

/* Loading state */
.lightbox-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive Lightbox */
@media (max-width: 768px) {
    .lightbox {
        padding: 20px;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    .lightbox-nav {
        width: 50px;
        height: 50px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-zoom-controls {
        bottom: 20px;
        right: 20px;
        padding: 6px;
    }

    .lightbox-zoom-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .lightbox-zoom-level {
        padding: 0 8px;
        font-size: 11px;
    }

    .lightbox-caption {
        bottom: -40px;
        font-size: 13px;
        padding: 8px;
    }
}

/* Keyboard focus styles */
.lightbox-nav:focus,
.lightbox-close:focus,
.lightbox-zoom-btn:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Prevent body scroll when lightbox is open */
body.lightbox-open {
    overflow: hidden;
}
