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

/* SEO Text - Hidden from users but accessible to bots and screen readers */
.seo-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

html {
    scroll-behavior: auto; /* Lenis handles smooth scrolling */
    /* Smooth scroll offset - matches JavaScript calculation for native anchor links */
    scroll-padding-top: 20px;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #1d1d1d;
    background: linear-gradient(0deg,rgb(15, 15, 15) 0%, rgb(0, 0, 0) 20%, rgb(0, 0, 0) 90%, rgb(0, 0, 0) 100%);
    position: relative;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    /* Improve font loading performance */
    font-display: swap;
    /* Prevent text selection on images/videos */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Prevent image and video selection and dragging */
img, video {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: auto;
}

/* Allow text selection for readable content */
.about-text, .artwork-description, .modal-info p, .exhibition-list, 
.contact-link, .social-link, .footer-copyright, .section-title, 
.artwork-title, .modal-info h3 {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}


.main {
    position: relative;
    z-index: 2;
    margin: 0;
    margin-top: 0;
    padding: 0;
}

.container {
    max-width: auto;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: none!important;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    max-width: auto;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3% 0 3%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 60px;
    width: auto;
    opacity: 0.9;
    max-width: 60px;
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 6rem;
}

.nav-link {
    color: #d6d6d6;
    text-decoration: none;
    font-weight: 300;
    font-size: 1.2rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: #ffffff;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Video Section */
.hero-video {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
    margin: 0;
    padding: 0;
    opacity: 0.8;
    z-index: 1;
    top: 0;
    left: 0;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.hero-video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.3) 1px, transparent 1px);
    background-size: 3px 3px;
    background-position: 0 0;
    background-repeat: repeat;
    z-index: 2;
    pointer-events: none;
    opacity: 0.5;
}

.unmute-prompt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 300;
    text-align: center;
    pointer-events: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    background: none;
    padding: 0;
    border: none;
    /* Fixed width to prevent position shift when text changes */
    min-width: 120px;
    width: auto;
}

.unmute-prompt:hover {
    color: #ffffff;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.unmute-prompt span {
    display: inline-block;
    pointer-events: none;
}

.unmute-prompt.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

@media (max-width: 768px) {
    .unmute-prompt {
        font-size: 1rem;
        /* Fixed width for mobile to prevent position shift when text changes */
        min-width: 100px;
    }
}

.hero-video video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 1;
}

.hero-video-desktop {
    display: block;
}

.hero-video-mobile {
    display: none;
}

/* Gallery Section */
.gallery {
    padding: 20px 0 20px 0;
    margin-top: 0;
    min-height: 400px; /* Reserve space to prevent layout shift */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    padding: 0 3% 0 3%;
}

.artwork-card {
    background: #111111;
    border: none; /* Remove border, using corner lines instead */
    overflow: visible; /* Changed from hidden to allow scale effect to show */
    transition: transform 0.25s ease-in-out;
    cursor: pointer;
    position: relative;
    z-index: 1; /* Ensure card appears above others when scaled */
    padding: 0; /* No padding - corner brackets are separate divs */
    will-change: transform;
}

/* Wrapper for card content */
.artwork-card-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 3px;
}

/* Corner bracket base styles */
.corner-bracket {
    position: absolute;
    width: 0rem;
    height: 0rem;
    border: 1px solid #8d8d8d;
    z-index: 3;
    transition: all 0.5s ease-in-out;
    pointer-events: none;
    will-change: transform;
    opacity: 0;

}

/* Top left corner bracket - positioned outside card with offset */
.corner-top-left {
    top: -0.25rem; /* Offset spacing outside card */
    left: -0.25rem; /* Offset spacing outside card */
    border-bottom: 0;
    border-right: 0;
}

/* Top right corner bracket - positioned outside card with offset */
.corner-top-right {
    top: -0.25rem; /* Offset spacing outside card */
    right: -0.25rem; /* Offset spacing outside card */
    border-bottom: 0;
    border-left: 0;
}

/* Bottom left corner bracket - positioned outside card with offset */
.corner-bottom-left {
    bottom: -0.25rem; /* Offset spacing outside card */
    left: -0.25rem; /* Offset spacing outside card */
    border-top: 0;
    border-right: 0;
}

/* Bottom right corner bracket - positioned outside card with offset */
.corner-bottom-right {
    bottom: -0.25rem; /* Offset spacing outside card */
    right: -0.25rem; /* Offset spacing outside card */
    border-top: 0;
    border-left: 0;
}

.artwork-card:hover {
    transform: translateY(-1px) scale(1.01);
    z-index: 2; /* Higher z-index on hover */
}

/* Brighten corner lines on hover */
.artwork-card:hover .corner-bracket {
    opacity: 1;
    width: 4rem;
    height: 2rem;


}

.artwork-media {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    overflow: hidden;
    /* Fallback for older browsers */
    min-height: 200px;
    max-height: 400px;
}

.artwork-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out, filter 0.5s ease-in-out;
}

.artwork-thumbnail {
    /* Apply grayscale filter by default */
    filter: grayscale(0%) contrast(1) brightness(1);
    transition: filter 0.5s ease-in-out;
}

/* Remove grayscale on hover with smooth transition */
.artwork-card:hover .artwork-thumbnail {
    filter: grayscale(100%) contrast(1.2) brightness(0.8);
}

/* Mobile styles - Touch and focus support */
@media (max-width: 768px) {
    .artwork-thumbnail {
        filter: grayscale(0%) contrast(1) brightness(1);
        transition: filter 0.5s ease-in-out;
    }
    
    /* Touch support - active state when tapped (matches desktop hover) */
    .artwork-card:active .artwork-thumbnail {
        filter: grayscale(100%) contrast(1.2) brightness(0.8);
}

    .artwork-card:active {
        transform: translateY(-1px) scale(1.01); /* Match desktop hover */
        z-index: 2;
}

    /* Corner brackets animate on mobile tap (matches desktop hover) */
    .artwork-card:active .corner-bracket {
        opacity: 1;
        width: 4rem;
        height: 2rem;
    }
    
    /* Focus support - for keyboard navigation (matches desktop hover) */
    .artwork-card:focus .artwork-thumbnail,
    .artwork-card:focus-within .artwork-thumbnail {
        filter: grayscale(100%) contrast(1.2) brightness(0.8);
    }
    
    .artwork-card:focus,
    .artwork-card:focus-within {
        transform: translateY(-1px) scale(1.01); /* Match desktop hover */
        z-index: 2;
    }
    
    /* Corner brackets animate on focus (matches desktop hover) */
    .artwork-card:focus .corner-bracket,
    .artwork-card:focus-within .corner-bracket {
        opacity: 1;
        width: 4rem;
        height: 2rem;
    }
    
    /* Hover support for devices that support it (some tablets) */
    .artwork-card:hover .artwork-thumbnail {
        filter: grayscale(100%) contrast(1.2) brightness(0.8);
}

    .artwork-card:hover {
        transform: translateY(-1px) scale(1.01); /* Match desktop hover */
        z-index: 2;
    }
    
    /* Corner brackets animate on hover (matches desktop) */
    .artwork-card:hover .corner-bracket {
        opacity: 1;
        width: 4rem;
        height: 2rem;
    }
}

.artwork-info {
    padding: 1.5rem;
    position: relative; /* Needed for corner bracket positioning */
}

.artwork-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.artwork-description {
    color: #aaaaaa;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* About Section */
.about {
    padding: 40px 0 20px 0;
    /* Prevent layout shift by reserving space */
    min-height: 600px;
}

.section-title {
    /* Use clamp to respect user font size preferences and fix deprecated API warning */
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 300;
    text-align: center;
    margin-bottom: 1rem;
    color: #ffffff;
    /* Ensure h1 in sections respects user font size preferences */
    min-height: 1.2em;
    line-height: 1.2;
}

.about-text {
    max-width: 1200px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.1rem;
    color: #cccccc;
    line-height: 1.8;
}

.exhibitions {
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.exhibitions h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-align: center;
}

.exhibition-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.5rem;
}

.exhibition-list li {
    padding: 0.75rem 1rem;
    background: #1f1f1f;
    border-radius: 1px;
    color: #cccccc;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.exhibition-list li:hover {
    background: #333;
}

/* Footer/Contact Section */
.footer {
    color: rgb(255, 255, 255);
    padding: 10px 0 10px;
    margin-top: 0;
    border: none;
}

    .footer .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        text-align: center;
    }

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 0rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    align-items: center;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #cccccc;
    font-size: 1rem;
    margin: 0;
}

.contact-info i {
    color: #ffffff;
    width: 20px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #cccccc;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.contact-link:hover {
    color: #ffffff;
    background: #33333375;
    transform: translateY(-2px);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #cccccc;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-link:hover {
    color: #ffffff;
    background: #33333375;
    transform: translateY(-2px);
}

.footer-copyright {
    border-top: 1px solid #5e5e5e71;
    padding-top: 1rem;
    padding-bottom: 2rem;
    width: 100%;
    text-align: center;
}

.footer-copyright p {
    color: #aaaaaa;
    font-size: 0.9rem;
    margin: 0;
    padding: 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Keep modal visible during closing animation */
.modal.closing {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #111;
    margin: 0;
    padding: 0.25rem; /* Add padding for corner bracket spacing */
    border-radius: 0; /* Remove border radius, using corner brackets instead */
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: visible; /* Allow corner brackets to show outside */
    position: relative;
    animation: modalScaleIn 0.5s ease;
}

/* Scale out animation when modal is closing */
.modal-content.closing {
    animation: modalScaleOut 0.3s ease;
}

/* Modal corner brackets - same style as gallery cards */
.modal-content .corner-bracket {
    position: absolute;
    width: 0rem;
    height: 0rem;
    border: 1px solid #505050;
    z-index: 3;
    transition: all 0.5s ease-in-out;
    pointer-events: none;
    will-change: transform;
    opacity: 0;
}

/* Top left corner bracket */
.modal-content .corner-top-left {
    top: -0.25rem;
    left: -0.25rem;
    border-bottom: 0;
    border-right: 0;
}

/* Top right corner bracket */
.modal-content .corner-top-right {
    top: -0.25rem;
    right: -0.25rem;
    border-bottom: 0;
    border-left: 0;
}

/* Bottom left corner bracket */
.modal-content .corner-bottom-left {
    bottom: -0.25rem;
    left: -0.25rem;
    border-top: 0;
    border-right: 0;
}

/* Bottom right corner bracket */
.modal-content .corner-bottom-right {
    bottom: -0.25rem;
    right: -0.25rem;
    border-top: 0;
    border-left: 0;
}

/* Show corner brackets when modal is visible */
.modal.show .modal-content .corner-bracket {
    opacity: 1;
    width: 8rem;
    height: 4rem;
}

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

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

.modal-body {
    display: flex;
    height: 100%;
}

.modal-body.vertical-layout {
    flex-direction: row;
}

.modal-body.vertical-layout .modal-image {
    flex: 0 0 50%;
    min-height: 500px;
    max-height: 80vh;
}

.modal-body.vertical-layout .modal-info {
    flex: 0 0 50%;
    overflow-y: auto;
    max-height: 80vh;
}

/* Portrait videos closer to square (4:5, 3:4) need more space */
.modal-body.vertical-layout.portrait-wide .modal-image {
    flex: 0 0 60%;
    min-height: 500px;
    max-height: 80vh;
}

.modal-body.vertical-layout.portrait-wide .modal-info {
    flex: 0 0 40%;
    overflow-y: auto;
    max-height: 80vh;
}

.modal-body.horizontal-layout {
    flex-direction: column;
    max-height: 80vh;
}

.modal-image {
    flex: 1;
    min-height: 400px;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Loading indicator for modal videos */
.modal-loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: none;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Hide video 3-dots menu button and overflow controls completely */
.modal-image video::-webkit-media-controls-overlay-enclosure {
    display: none !important;
}

.modal-image video::-webkit-media-controls-overlay-play-button {
    display: none !important;
}

/* Hide the overflow menu button (3 dots) - Target the specific button */
.modal-image video::-webkit-media-controls-enclosure {
    overflow: hidden !important;
}

/* Hide overflow menu button specifically */
.modal-image video::-webkit-media-controls-panel {
    display: flex !important;
}

/* Hide picture-in-picture button */
.modal-image video::-webkit-media-controls-picture-in-picture-button {
    display: none !important;
}

/* Hide overflow menu for all videos */
video::-webkit-media-controls-overlay-enclosure {
    display: none !important;
}

video::-webkit-media-controls-enclosure {
    overflow: hidden !important;
}

/* Hide picture-in-picture button globally */
video::-webkit-media-controls-picture-in-picture-button {
    display: none !important;
}

/* Additional protection - hide any menu buttons */
.modal-image video::-webkit-media-controls-overlay-play-button,
.modal-image video::-webkit-media-controls-overlay-enclosure {
    display: none !important;
}

/* Firefox - hide download option and overflow menu */
video::-moz-media-controls {
    display: none !important;
}

video::-moz-media-controls-picture-in-picture-button {
    display: none !important;
}

/* Additional CSS to hide 3-dots overflow menu button */
.modal-image video {
    --webkit-media-controls-overlay-enclosure-display: none !important;
}

/* Target the overflow menu button more aggressively */
.modal-image video::--webkit-media-controls-overlay-enclosure {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Hide any button that might be the overflow menu */
.modal-image video::-webkit-media-controls-panel > *:last-child {
    display: none !important;
}

/* Mobile video controls improvements */
@media (max-width: 768px) {
    .modal-image video {
        max-width: 100%;
        max-height: 100%;
        object-fit: fit!important;
    }

    

    .modal-image video::-webkit-media-controls-play-button,
    .modal-image video::-webkit-media-controls-current-time-display,
    .modal-image video::-webkit-media-controls-time-remaining-display,
    .modal-image video::-webkit-media-controls-timeline,
    .modal-image video::-webkit-media-controls-volume-slider,
    .modal-image video::-webkit-media-controls-fullscreen-button {
        color: white;
    }

    /* Hide picture-in-picture button on mobile */
    .modal-image video::-webkit-media-controls-picture-in-picture-button {
        display: none !important;
    }

    .modal-image video::-moz-media-controls-picture-in-picture-button {
        display: none !important;
    }
}


.modal.show .modal-content .corner-bracket {
    opacity: 1;
    width: 3rem;
    height: 2rem;
}
/* Video fullscreen handling */
.modal-image video:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    object-fit: contain !important;
    background: #000 !important;
}

.modal-image video:fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    object-fit: contain !important;
    background: #000 !important;
}

/* Prevent fullscreen container from interfering */
.modal-image:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #000 !important;
}

.modal-image:fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #000 !important;
}

.horizontal-layout .modal-image {
    flex: none;
    height: auto;
    min-height: 400px;
    max-height: 50vh;
    width: 100%;
}

.horizontal-layout .modal-info {
    flex: 1;
    min-height: 200px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
}

.modal-image img,
.modal-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: #000;
    min-width: 100%;
    min-height: 100%;
}

.modal-info {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    position: relative;
}

.scroll-indicator {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 24px;
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 10;
    transform: translateY(0);
    animation: scroll-bounce 2s infinite;
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(0);
}

@keyframes scroll-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-2px);
    }
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
    color: #ffffff;
}

.scroll-indicator path {
    fill: currentColor;
}

.modal-info h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.modal-info p {
    color: #cccccc;
    margin-bottom: auto;

}

/* Modern minimal scrollbar for body */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 8px !important;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: #000000 !important;
    border-radius: 100px;
    padding: 10px;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background: #5e5e5e !important;
    border-radius: 32px;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
    background: #cccccc !important;
    cursor: pointer;
}

/* Modern minimal scrollbar for modals */
.modal-info::-webkit-scrollbar {
    width: 5px;
}

.modal-info::-webkit-scrollbar-track {
    background: transparent;
}

.modal-info::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    pointer-events: cursor;
}

.modal-info::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}
/* Responsive Design */

/* Large screens (1920px and above) */
@media (min-width: 1920px) {
    .hero-video {
        height: 100vh;
        margin-top: -70px;
    }
    .hero-video video {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }
    
    .header .container {
        padding: 2rem 4% 0.1rem 4%;
    }

    .nav-link {

        font-size: 1.3rem;
    }
    
.logo-image {
    height: 75px!important;
    max-width: 75px!important;
}

}


/* Large screens (1600px and above) */
@media (min-width: 1600px) and (max-width: 1919px) {
    .hero-video {
        height: 95vh;
        margin-top: -50px;
    }
    .hero-video video {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }

    .header .container {
        padding: 2rem 2.5% 0.5rem 2.5%;
    }
}

/* Medium-large screens (1280px to 1599px) */
@media (min-width: 1280px) and (max-width: 1599px) {
    .hero-video {
        height: 95vh;
        margin-top: -45px;
    }
    .hero-video video {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }

    .header .container {
        padding: 2rem 2.5% 0.5rem 2.5%;
    }
}

/* Standard screens (769px to 1279px) */
@media (min-width: 769px) and (max-width: 1279px) {
    .hero-video {
        margin-top: 0px;
    }
}

/* Mobile screens (768px and below) */
@media (max-width: 768px) {
    .hero-video {
        height: 87vh;
        margin-top: 0px;
    }

    .hero-video-desktop {
        display: none;
}

    .hero-video-mobile {
        display: block;
    }
    
    /* Hide grid overlay on mobile */
    .hero-video::before {
        display: none;
    }
    
    /* Mobile video specific styling for better fit */
    .hero-video video {
        width: 100%;
        height: 100%;
        padding: 0 2%;
        object-fit: contain;
        object-position: center;
    }

    .header {
        background: none!important;
        backdrop-filter: none!important;
    }

    /* Adjust scroll padding for mobile header height */
    html {
        scroll-padding-top: 20px;
    }

    .header .container {
        flex-direction: row;
        gap: 2.5rem;
        padding: 2rem 5% 0 5%;
    }

    .nav {
        gap: 2.5rem;
    }

    .logo-image {
        height: 45px;
        max-width: 45px;
    }


    .modal-info h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
        color: #ffffff;
    }

    .modal-info p {
        font-size: 0.85rem;
        color: #cccccc;
        margin-bottom: auto;
    }

.about-text {   
    font-size: 0.95rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0!important;
    }

    .contact-info {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        text-align: center;
        align-items: center;
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
    }
    
    .contact-links {
        display: flex;
        flex-direction: row;
        gap: 1rem;
        justify-content: center;
        align-items: center;
        width: 100%;
        flex-wrap: wrap;
    }
    
    .contact-link {
        font-size: 1rem;
        padding: 1rem 1rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .social-link {
        font-size: 1rem;
        padding: 1rem 1rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .section-title {
        margin-bottom: 0.1rem;
    }

    .modal-body {
        flex-direction: column;
    }

    .modal-body.vertical-layout {
        flex-direction: column;
    }

    .modal-body.vertical-layout .modal-image {
        flex: none;
        min-height: 30vh;
        max-height: 50vh;
    }

    .modal-body.vertical-layout .modal-info {
        flex: 1;
        max-height: 20vh;
        overflow-y: auto;
    }

    /* Portrait-wide videos on mobile get more height */
    .modal-body.vertical-layout.portrait-wide .modal-image {
        flex: none;
        min-height: 40vh;
        max-height: 50vh;
    }

    .modal-body.vertical-layout.portrait-wide .modal-info {
        flex: 1;
        max-height: 20vh;
        overflow-y: auto;
    }

    .modal-body.horizontal-layout {
        flex-direction: column;
    }

    .modal-image {
        min-height: 40vh;
        max-height: 50vh;
        width: 100%;
        overflow: hidden;
        
    }
    

    .modal-info {
        padding: 1.5rem;
        flex: 1;
        overflow-y: auto;
        max-height: 30vh;
        min-height: 200px;
    }

    .horizontal-layout .modal-image {
        height: 30vh;
        min-height: 300px;
        max-height: 90vh;
    }

    .horizontal-layout .modal-info {
        height: auto;
        flex: 1;
        max-height: 30vh;
        overflow-y: auto;
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
        margin: 1rem;
        margin-bottom: 5rem;

    }

    .artwork-details p {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    /* Modern minimal scrollbar */
    .modal-info::-webkit-scrollbar {
        width: 4px;
    }

    .modal-info::-webkit-scrollbar-track {
        background: transparent;
    }

    .modal-info::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
    }

    .modal-info::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.5);
    }

    .scroll-indicator {
        top: 1.5rem;
        right: 1.5rem;
        width: 20px;
        height: 20px;
        animation: scroll-bounce 2s infinite;
    }

    .scroll-indicator svg {
        width: 20px;
        height: 20px;
    }


}
/* iOS Safari specific styling */
@supports (-webkit-touch-callout: none) {

    /* Force dark theme for Safari */
    html {
        background: #000 !important;
        color-scheme: dark;
    }

    body {
        background: #000 !important;
    }
}

/* Safari address bar styling */
@media screen and (max-device-width: 812px) and (-webkit-min-device-pixel-ratio: 2) {

    /* Prevent address bar color change on scroll */
    html {
        scroll-behavior: smooth; /* Native smooth scroll for mobile (Lenis smoothTouch is disabled) */
    }
    
    body {
        scroll-behavior: smooth; /* Native smooth scroll for mobile anchor links */
    }

    body {
        -webkit-text-size-adjust: 100%;
        -webkit-tap-highlight-color: transparent;
    }

}
