/* Reset and Base Styles */
*,
*::before,
*::after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Courier New', Menlo, monospace;
    background: #fff;
    overflow: hidden;
}

body.gallery {
    overflow-y: hidden;
}

/* Vertical scrolling pages */
body.vertical_page {
    overflow-y: auto;
}

body.vertical_page #content {
    overflow-y: auto;
    height: auto;
}

/* Default cursor for entire site */
* {
    cursor: url('cursor.svg'), auto;
}

/* Custom cursors for clickable elements */
a, button, [role="button"], .clickable {
    cursor: url('hand-pointing.svg'), pointer;
}

/* Gallery pages keep custom navigation cursors - but not projects page */
body.gallery:not(.projects_page) #content {
    cursor: none; /* Will be overridden by custom cursor JS */
}

/* Projects page should show default cursor everywhere */
body.projects_page,
body.projects_page *,
body.projects_page #content,
body.projects_page .projects_assets,
body.projects_page .project {
    cursor: url('cursor.svg'), auto !important;
}

/* But clickable elements still get hand cursor */
body.projects_page a,
body.projects_page button,
body.projects_page .project_link {
    cursor: url('hand-pointing.svg'), pointer !important;
}

/* Remove default cursor from home page scroller area - only arrows should show */
body.gallery:not(.projects_page) .assets,
body.gallery:not(.projects_page) .assets *,
body.gallery:not(.projects_page) .asset,
body.gallery:not(.projects_page) .asset *,
body.gallery:not(.projects_page) #assets_wrap,
body.gallery:not(.projects_page) #assets_wrap * {
    cursor: none !important;
}

/* Other pages use default cursor */
body:not(.gallery) #content {
    cursor: url('cursor.svg'), auto;
}

/* Navigation Styles */
.nav_container {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 100;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.nav {
    padding: 40px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.logo h1 {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    color: #000;
    letter-spacing: 1px;
}

.logo h1 a {
    color: #000;
    text-decoration: none;
    cursor: url('hand-pointing.svg'), pointer;
}

.logo h1 a:hover {
    opacity: 0.8;
}

.main_nav_links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main_nav_links li {
    margin-bottom: 20px;
}

.main_nav_links a {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: opacity 0.2s ease;
}

.main_nav_links a:hover {
    opacity: 0.6;
}

/* Navigation title styling */
.nav_section {
    margin-top: 40px;
    margin-bottom: 20px;
}

.nav_title {
    font-size: 14px;
    font-weight: normal;
    margin: 0;
    letter-spacing: 0.5px;
}

.nav_title a {
    color: #000;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.nav_title a:hover {
    opacity: 0.6;
}

.social_icons {
    margin-top: auto;
}

.social_icons a {
    color: #000;
    text-decoration: none;
    margin-right: 15px;
    font-size: 12px;
    letter-spacing: 0.5px;
}

/* Main Content */
#content {
    margin-left: 300px;
    height: 100vh;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.container {
    height: 100vh;
    position: relative;
}

/* Gallery Styles */
.assets {
    height: 100vh;
    overflow-x: scroll;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.assets::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

#assets_wrap {
    display: inline-flex;
    height: 100vh;
    align-items: center;
    gap: 30px;
    padding: 0 50px;
}

.asset {
    display: inline-block;
    vertical-align: top;
    position: relative;
    height: auto;
    flex-shrink: 0;
}

.asset.image {
    text-align: center;
}

.asset .img {
    display: block;
    position: relative;
}

.asset img {
    max-height: 85vh;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}


/* Image Text/Caption */
.image_text_container {
    margin-top: 15px;
    text-align: center;
}

.asset_copy {
    font-size: 12px;
    color: #666;
    letter-spacing: 0.5px;
    font-weight: normal;
}

/* Cursor Styles for Navigation */
#content.cursor_left {
    cursor: w-resize;
}

#content.cursor_right {
    cursor: e-resize;
}

/* Arrow Navigation (IE8 fallback) */
.ie-prev, .ie-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.1);
    border: none;
    font-size: 24px;
    color: #666;
    width: 50px;
    height: 50px;
    z-index: 200;
    transition: background 0.2s ease;
}

.ie-prev {
    left: 320px;
}

.ie-next {
    right: 20px;
}

.ie-prev:hover, .ie-next:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Mobile Header */
.mobile_header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 1001;
}

.desktop_only {
    display: block;
}

/* Hamburger Menu */
.hamburger_menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: url('hand-pointing.svg'), pointer;
    padding: 0;
    position: relative;
    z-index: 1002;
}

.hamburger_line {
    width: 20px;
    height: 2px;
    background: #000;
    margin: 2px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger Animation to Minus */
.hamburger_menu.active .hamburger_line:nth-child(1) {
    transform: rotate(0deg) translateY(6px);
    opacity: 0;
}

.hamburger_menu.active .hamburger_line:nth-child(2) {
    transform: rotate(0deg);
}

.hamburger_menu.active .hamburger_line:nth-child(3) {
    transform: rotate(0deg) translateY(-6px);
    opacity: 0;
}

/* Mobile Navigation */
.nav_container.mobile_open .nav {
    transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 850px) {
    .mobile_header {
        display: flex;
    }

    .desktop_only {
        display: none;
    }

    .nav_container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        z-index: 1000;
    }

    .nav {
        position: fixed;
        top: 60px;
        left: 0;
        width: 280px;
        height: calc(100vh - 60px);
        background: #fff;
        border-right: 1px solid #eee;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        padding: 30px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }

    .main_nav {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        margin: 20px 0 0 0 !important;
        padding: 0 !important;
    }

    .nav_section {
        margin: 0 !important;
        padding: 0 !important;
        order: 1 !important;
    }

    .nav_title {
        font-size: 16px !important;
        margin: 0 !important;
        padding: 10px 0 !important;
        line-height: normal !important;
    }

    .main_nav_links {
        flex-direction: column !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        order: 2 !important;
        list-style: none !important;
    }

    .main_nav_links li {
        margin: 0 !important;
        padding: 0 !important;
        margin-bottom: 0 !important;
    }

    .main_nav_links a {
        font-size: 16px !important;
        display: block !important;
        padding: 10px 0 !important;
        margin: 0 !important;
        line-height: normal !important;
    }

    .social_icons {
        margin-top: auto;
        margin-bottom: 30px;
    }

    #content {
        margin-left: 0;
        height: calc(100vh - 60px);
        margin-top: 60px;
    }

    .container {
        height: calc(100vh - 60px);
    }

    .assets {
        height: calc(100vh - 60px);
        -webkit-overflow-scrolling: touch;
        overflow-x: auto;
    }

    .assets::-webkit-scrollbar {
        display: none;
    }

    #assets_wrap {
        height: calc(100vh - 60px);
        padding: 0 10px 0 20px !important;
        gap: 20px;
        width: fit-content !important;
    }

    /* Ensure last image has minimal right padding */
    .asset:last-child {
        margin-right: 10px !important;
        padding-right: 0 !important;
    }

    .asset img {
        max-height: calc(70vh - 60px);
    }

    .ie-prev, .ie-next {
        display: none; /* Hide on mobile */
    }

    /* Custom cursor disabled on mobile */
    .custom-cursor {
        display: none;
    }

    #content {
        cursor: default !important;
    }

    /* Mobile styles for new pages */
    .page_container {
        padding: 20px;
    }

    .about_content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about_image {
        order: -1;
    }

    /* Projects vertical scrolling on mobile - OVERRIDE HORIZONTAL */
    body.projects_page {
        overflow-y: auto !important;
    }

    body.projects_page #content {
        overflow-y: auto !important;
        height: auto !important;
    }

    .projects_assets {
        height: auto !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
        white-space: normal !important;
        display: block !important;
    }

    #projects_wrap {
        display: block !important;
        height: auto !important;
        padding: 20px !important;
        gap: 0 !important;
        width: 100% !important;
    }

    .project {
        width: 100% !important;
        display: block !important;
        margin-bottom: 40px !important;
        flex-shrink: 1 !important;
    }

    .project_image {
        width: 100% !important;
        margin-bottom: 20px !important;
    }

    .project_image img {
        width: 100% !important;
        height: 40vh !important;
        object-fit: cover !important;
        display: block !important;
    }

    .project_info {
        padding-right: 10px;
    }

    .project_info h3 {
        font-size: 16px;
    }

    .project_description {
        font-size: 12px;
        line-height: 1.5;
    }

    /* Vertical project detail mobile styles */
    .project_detail_vertical {
        max-width: 100%;
    }

    .project_grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project_meta {
        flex-direction: column;
        gap: 10px;
    }

    .project_header h1 {
        font-size: 28px;
    }

    .project_description_top .lead {
        font-size: 16px;
    }

    .contact_content {
        max-width: 100%;
        padding: 0 20px;
    }

    /* About page mobile styles */
    .about_content {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        gap: 20px;
        padding: 0 20px;
    }

    .about_image {
        order: 1;
        max-width: 300px;
        margin: 0 auto;
        width: 100%;
    }

    .about_text {
        order: 2;
        width: 100%;
        margin-top: -40px;
    }

    .about_text h2 {
        font-size: 24px;
    }

    /* Project detail page mobile styles */
    .project_detail_vertical {
        max-width: 100%;
        padding: 0 20px;
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
    }

    .project_header h1 {
        font-size: 28px;
    }

    .project_meta {
        flex-direction: column;
        gap: 10px;
    }

    .project_grid {
        grid-template-columns: 1fr;
        gap: 20px;
        justify-items: center !important;
    }

    .page_container {
        padding: 20px !important;
        margin: 0 auto !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .grid_item {
        width: 100% !important;
        max-width: 350px !important;
        text-align: center !important;
        margin: 0 auto !important;
    }

    .grid_item img {
        display: block !important;
        margin: 0 auto !important;
        width: 100% !important;
        height: auto !important;
    }

    .project_statement {
        padding: 20px;
        margin: 40px 0;
    }

    .form_row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .project_statement {
        padding: 20px;
        margin: 40px 0;
    }

    .nav_links {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 20px;
        text-align: center;
    }

    .nav_links a {
        flex: 0 1 auto !important;
        text-align: center !important;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .assets {
        -webkit-overflow-scrolling: touch;
    }

    #content.cursor_left,
    #content.cursor_right {
        cursor: default;
    }
}

/* Animation classes for smooth transitions */
.asset.loading {
    opacity: 0.5;
}

.asset.image-loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Custom cursor arrows - Large SVG style */
#content.cursor_left,
#content.cursor_right {
    cursor: none;
}

.custom-cursor {
    position: fixed;
    width: 40px;
    height: 40px;
    pointer-events: none;
    z-index: 1000;
    transform: translate(-50%, -50%);
    opacity: 0.7;
    transition: opacity 0.2s ease;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.custom-cursor.hidden {
    opacity: 0;
}

/* Cursor arrow images */
.custom-cursor.left {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12l-8 8 8 8'/%3E%3Cpath d='M30 12l-8 8 8 8'/%3E%3C/g%3E%3C/svg%3E");
}

.custom-cursor.right {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 12l8 8-8 8'/%3E%3Cpath d='M10 12l8 8-8 8'/%3E%3C/g%3E%3C/svg%3E");
}

/* Light cursor arrows */
.custom-cursor.white.left {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12l-8 8 8 8'/%3E%3Cpath d='M30 12l-8 8 8 8'/%3E%3C/g%3E%3C/svg%3E");
}

.custom-cursor.white.right {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 12l8 8-8 8'/%3E%3Cpath d='M10 12l8 8-8 8'/%3E%3C/g%3E%3C/svg%3E");
}

/* Cursor size variations */
.custom-cursor.small {
    width: 30px;
    height: 30px;
}

.custom-cursor.medium {
    width: 40px;
    height: 40px;
}

.custom-cursor.large {
    width: 80px;
    height: 80px;
}

/* Hover effects */
.custom-cursor:hover {
    opacity: 1;
}

/* Page-specific styles */
.page_container {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Active navigation state */
.main_nav_links a.active {
    opacity: 0.5;
}

/* About Page */
.about_content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about_text h2 {
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: normal;
    color: #000;
}

.about_text h3 {
    font-size: 16px;
    margin: 30px 0 15px 0;
    font-weight: bold;
    color: #000;
    letter-spacing: 0.5px;
}

.about_text p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #333;
}

.bio_section, .approach_section, .background_section {
    margin-bottom: 40px;
}

.about_image img {
    width: 100%;
    height: auto;
    display: block;
}

.image_caption {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    text-align: center;
    letter-spacing: 0.5px;
}

/* Projects Page - Horizontal Scrolling */
.projects_assets {
    height: 100vh;
    overflow-x: scroll;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.projects_assets::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

#projects_wrap {
    display: inline-flex;
    height: 100vh;
    align-items: flex-start;
    gap: 50px;
    padding: 50px;
}

.project {
    display: flex;
    flex-direction: column;
    position: relative;
    height: auto;
    flex-shrink: 0;
    width: 400px;
    text-align: left;
    align-self: flex-start;
}

.project_image a,
.project_info a {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
    cursor: url('hand-pointing.svg'), pointer;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.project_info a {
    line-height: normal;
}

.project_image a:hover,
.project_info a:hover {
    opacity: 0.8;
}

.project_image {
    margin-bottom: 20px;
    flex-shrink: 0;
    display: block;
}

.project_image img {
    width: 100%;
    height: 65vh;
    object-fit: cover;
    display: block;
}

.project_info {
    white-space: normal;
    width: 100%;
    padding-right: 20px;
}

.project_info h3 {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: normal;
    color: #000;
    white-space: normal;
    word-wrap: break-word;
}

.project_year {
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    white-space: normal;
}

.project_description {
    font-size: 13px;
    line-height: 1.6;
    color: #333;
    white-space: normal;
    word-wrap: break-word;
    hyphens: auto;
    text-align: justify;
}

/* Project Detail Page - Vertical Layout */
.project_detail_vertical {
    max-width: 1200px;
    margin: 0 auto;
}

.back_link {
    font-size: 12px;
    color: #666;
    text-decoration: none;
    margin-bottom: 20px;
    display: inline-block;
    letter-spacing: 0.5px;
}

.back_link:hover {
    color: #000;
}

.project_header h1 {
    font-size: 36px;
    margin: 20px 0;
    font-weight: normal;
    color: #000;
}

.project_meta {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    font-size: 12px;
    color: #666;
    letter-spacing: 0.5px;
}

.project_description_top {
    margin-bottom: 60px;
    max-width: 800px;
}

.project_description_top .lead {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 30px;
    color: #000;
}

.project_description_top p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #333;
}

/* Grid Gallery Layout */
.project_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.grid_item {
    display: flex;
    flex-direction: column;
}

.grid_item img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.2s ease;
}

.grid_item img:hover {
    opacity: 0.9;
}

.grid_item .image_caption {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.project_statement {
    margin: 60px 0;
    padding: 40px;
    background: #f9f9f9;
    max-width: 800px;
}

.project_statement h3 {
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: bold;
    color: #000;
    letter-spacing: 0.5px;
}

.project_statement p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #333;
    font-style: italic;
}

.project_navigation {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.nav_links {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav_links a {
    font-size: 12px;
    color: #666;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.nav_links a:hover {
    color: #000;
}

/* Contact Page */
.contact_content {
    display: block;
    max-width: 600px;
}

.contact_info h2 {
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: normal;
    color: #000;
}

.contact_intro p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #333;
}

.contact_item {
    margin-bottom: 30px;
}

.contact_item h3 {
    font-size: 12px;
    font-weight: bold;
    color: #000;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.contact_item a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.contact_item a:hover {
    color: #000;
}

.contact_item p {
    font-size: 14px;
    color: #333;
    margin: 0;
}

.social_links {
    display: flex;
    gap: 20px;
}

.social_links a {
    font-size: 14px;
    color: #333;
    text-decoration: none;
}

.social_links a:hover {
    color: #000;
}

.availability {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.availability h3 {
    font-size: 12px;
    font-weight: bold;
    color: #000;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.availability p {
    font-size: 14px;
    color: #333;
    margin: 0;
}

/* Contact Form */
.contact_form h3 {
    font-size: 20px;
    margin-bottom: 30px;
    font-weight: normal;
    color: #000;
}

.inquiry_form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form_row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form_group {
    display: flex;
    flex-direction: column;
}

.form_group label {
    font-size: 12px;
    font-weight: bold;
    color: #000;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.form_group input,
.form_group select,
.form_group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    font-family: 'Courier New', Menlo, monospace;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.2s ease;
}

.form_group input:focus,
.form_group select:focus,
.form_group textarea:focus {
    outline: none;
    border-color: #000;
}

.form_group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit_button {
    padding: 15px 30px;
    background: #000;
    color: #fff;
    border: none;
    font-family: 'Courier New', Menlo, monospace;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: url('hand-pointing.svg'), pointer;
    transition: background 0.2s ease;
    align-self: flex-start;
    margin-top: 20px;
}

.submit_button:hover {
    background: #333;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: url('cursor.svg'), auto;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: lightbox-zoom 0.3s ease;
}

@keyframes lightbox-zoom {
    from { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
    to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: url('hand-pointing.svg'), pointer;
    z-index: 10000;
    transition: opacity 0.2s ease;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 4px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 30px;
    padding: 15px 20px;
    cursor: url('hand-pointing.svg'), pointer;
    border-radius: 4px;
    transition: background 0.2s ease;
    pointer-events: auto;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-prev {
    left: 0;
}

.lightbox-next {
    right: 0;
}

/* Make grid images clickable */
.grid_item img {
    cursor: url('hand-pointing.svg'), pointer;
    transition: opacity 0.2s ease;
}

.grid_item img:hover {
    opacity: 0.9;
}

/* Mobile lightbox adjustments */
@media (max-width: 850px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 85%;
    }

    .lightbox-close {
        font-size: 30px;
        top: 10px;
        right: 15px;
    }

    .lightbox-nav {
        padding: 0 15px;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 24px;
        padding: 10px 15px;
    }

    .lightbox-caption {
        bottom: 10px;
        font-size: 12px;
        padding: 8px 15px;
    }
}