@import url('https://fonts.googleapis.com/css2?family=Julius+Sans+One&display=swap');

/* ==========================================================================
   DAJO EXHIBITION ENGINE · MASTER STYLESHEET (studio.css)
   ========================================================================== */

* {
    box-sizing: border-box;
}

body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Julius Sans One', sans-serif;
    margin: 0;
    padding: 2vh 40px 40px 40px; 
    min-height: 100vh;
    position: relative; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    align-items: center;     
    text-align: center;
    overflow: hidden; 
}

/* Page Title Navigation */
.page-title {
    font-weight: 400;
    font-size: 0.9rem; 
    letter-spacing: 0.35em;
    margin: 0 0 2vh 0; 
    text-transform: uppercase;
    text-indent: 0.35em; 
    z-index: 10;
    opacity: 1;
    transition: opacity 0.6s ease-in-out; 
    white-space: nowrap;
}

.page-title a, .page-title a:visited, .page-title a:link, .page-title a:active {
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none !important;
    outline: none !important;
    transition: color 0.3s ease;
}

.page-title a:hover {
    color: #ffffff !important;
}

/* Adaptive Grid Viewport Canvas */
.gallery-viewport {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    max-height: 93vh; 
    width: 100%; 
    margin: 0 auto;
    cursor: none; 
}

/* Slide Container Layering */
.gallery-slide {
    grid-area: 1 / 1; 
    opacity: 0;
    transition: opacity 1.2s ease-in-out; 
    pointer-events: none; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-slide.active {
    opacity: 1;
    pointer-events: auto; 
}

/* Responsive Orientation Engine */
.gallery-slide img {
    max-height: 93vh; 
    max-width: 95vw;  
    width: auto;
    height: auto;
    object-fit: contain; 
    display: block;
}

/* Elegant Gallery Wall Placeholder Card */
.text-placeholder {
    display: none; 
    width: 62vh; 
    height: 93vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 0.75rem;
    line-height: 2.2;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.35); 
    border: 1px solid rgba(255, 255, 255, 0.08); 
    padding: 40px;
    user-select: none;
}

.wall-number {
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 15px;
    text-indent: 0.3em;
}

/* Custom Tracking Cursor Framework */
#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    font-family: 'Julius Sans One', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.6); 
    padding: 6px 10px;
    pointer-events: none; 
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.4s ease, background-color 0.2s ease; 
    z-index: 9999;
    white-space: nowrap;
}

/* Mobile Optimization Matrix */
@media (max-width: 768px) {
    body { padding: 4vh 20px 20px 20px; }
    .page-title { font-size: 3.5vw; margin-bottom: 3vh; opacity: 1 !important; display: inline-block; }
    .gallery-viewport { width: 100%; max-width: 100%; height: auto; cursor: pointer; }
    .gallery-slide img { width: 100%; height: auto; max-height: 75vh; }
    .text-placeholder { width: 100%; height: auto; aspect-ratio: 2 / 3; padding: 20px; font-size: 0.68rem; letter-spacing: 0.16em; }
    #custom-cursor { position: absolute; top: auto; bottom: 12vh; left: 50%; transform: translateX(-50%); opacity: 0; background-color: rgba(0, 0, 0, 0.85); border: 1px solid rgba(255, 255, 255, 0.2); font-size: 0.85rem; padding: 10px 18px; letter-spacing: 0.22em; }
    #custom-cursor.pulsing { background-color: rgba(255, 255, 255, 0.3); }
    .wall-number { font-size: 0.8rem; }
}