/* --- 1. FONTS & RESET --- */
@import url('https://fonts.googleapis.com/css2?family=Niconne&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: #1f1f1f;
    color: #e0e0e0;
    font-family: 'Helvetica Light', 'Helvetica', Arial, sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
a:hover { color: #a8d1ff; }

/* --- 2. HEADER & NAVIGATION --- */
.site-header {
    background-color: #1f1f1f;
    padding: 1rem 2rem;
    border-bottom: none;
    display: flex;
    justify-content: space-between; 
    align-items: flex-end;        
    max-width: 1200px; 
    margin: 0 auto; 
}

.logo-container { text-align: left; }

.logo-container h1 {
    font-family: 'Niconne', cursive; 
    font-size: 68pt;                  
    font-weight: 400;                
    margin-bottom: 0;
    line-height: 0.8;                
    color: #fff;                      
    font-style: italic;
}

.subtitle {
    font-family: 'Niconne', cursive; 
    font-size: 56pt;                  
    font-weight: 400;
    color: #aaa;                      
    margin-top: 0;
    line-height: 1;
    font-style: italic;
}

.main-nav { padding-bottom: 5px; }
.main-nav ul { list-style: none; display: flex; gap: 2rem; }
.main-nav a { font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; padding-bottom: 5px; }
.main-nav a.active { border-bottom: 2px solid #e0e0e0; }

/* --- DROPDOWN MENU --- */
.dropdown { position: relative; display: inline-block; }
.dropdown-content {
    display: none; position: absolute;
    background-color: #2a2a2a; min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    z-index: 1000; top: 100%; left: 50%;
    transform: translateX(-50%); border: 1px solid #333;
}
.dropdown-content a {
    color: #e0e0e0; padding: 12px 16px;
    text-decoration: none; display: block;
    text-align: center; font-size: 0.9rem;
    border-bottom: 1px solid #333;
}
.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a:hover { background-color: #333; color: #a8d1ff; }
.dropdown:hover .dropdown-content { display: block; }

/* --- 3. MAIN LAYOUT --- */
.main-content {
    margin-top: 1.5rem !important;
	max-width: 1200px;
    margin: 0 auto;

}

.portfolio-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* --- CARD LAYOUT --- */
.project-card {
    background-color: transparent;
    padding: 20px;
    border: none;
    display: flex; 
    flex-direction: row; 
    align-items: flex-start; 
    gap: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.0);
}

.card-visuals { 
    flex: 0 0 60%; 
    min-width: 300px; 
    /* Centers thumbnails */
    text-align: center; 
}
.card-text { flex: 1; padding-top: 5px; text-align: left; }

/* --- MAIN PAGE SLIDESHOWS --- */
.slideshow-container {
    position: relative;
    width: 100%;
    height: auto;
    border: none; 
    margin-bottom: 10px;
    overflow: hidden;
}

.mySlides { display: none; width: 100%; }

/* FIX FOR VERTICAL IMAGES: Use !important to override HTML styles */
.mySlides img { 
    cursor: zoom-in; 
    max-height: 500px !important; 
    width: auto !important;       
    max-width: 100% !important;   
    display: block;
    margin: 0 auto;    
    object-fit: contain; 
}

/* Hover Banner on Slides */
.caption-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    text-align: left;
    padding: 10px 20px; 
    font-family: 'Helvetica Light', sans-serif;
    font-size: 14px;
    opacity: 0; 
    transition: opacity 0.3s ease;
    pointer-events: none; 
}

.mySlides:hover .caption-banner { opacity: 1; }

/* Arrows (Main Page Only) */
.prev, .next {
    cursor: pointer; position: absolute; top: 50%; margin-top: -22px; padding: 16px;
    color: white; font-weight: bold; font-size: 18px; transition: 0.6s ease;
    background-color: rgba(0,0,0,0.3); user-select: none;
    z-index: 100; /* Ensure arrows sit on top of images */
}

/* FIXED: Explicitly anchor arrows to left and right */
.prev { left: 0; }
.next { right: 0; }

.prev:hover, .next:hover { background-color: rgba(0,0,0,0.8); }

/* --- THUMBNAILS (SCROLLABLE & CENTERED) --- */
.thumbnail-row { 
    display: inline-flex; 
    justify-content: flex-start; 
    
    max-width: 100%; 
    gap: 10px; 
    flex-wrap: nowrap !important; 
    overflow-x: auto; 
    padding-bottom: 5px; 
    
    /* Hide scrollbar */
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}

.thumbnail-row::-webkit-scrollbar { display: none; }

.thumbnail {
    cursor: pointer; 
    height: 50px; 
    width: 75px; 
    min-width: 75px; 
    max-width: 75px; 
    flex: 0 0 auto; 
    border: 1px solid #444; 
    opacity: 0.6; 
    transition: 0.3s;
    object-fit: cover;
}

.thumbnail:hover, .thumbnail.active { 
    opacity: 1; 
    border-color: #fff; 
}

/* --- TYPOGRAPHY --- */
.project-title {
    font-family: 'Helvetica', Arial, sans-serif; 
    font-weight: 300; 
    font-size: 24px;
    color: #fff;
    margin-bottom: 5px;
    font-style: italic !important; 
    text-transform: none;
    letter-spacing: 1px;
}
.project-subtitle {
    font-family: 'Helvetica', Arial, sans-serif; 
    font-weight: 300; 
    font-size: 24px;
    color: #fff;
    margin-bottom: 5px;
    font-style: normal !important; 
    text-transform: none;
    letter-spacing: 1px;
}
.project-venue {
    font-size: 13px;
    color: #a8d1ff; 
    margin-bottom: 20px;
    font-style: normal !important;
    border-bottom: 1px solid #555;
    padding-bottom: 10px;
    display: inline-block;
    min-width: 50%;
    font-weight: 400; 
}
.project-venue.multiline {
    line-height: 1.4; 
    padding-bottom: 12px; 
}

.credits-list { list-style: none; font-size: 13px; color: #ccc; line-height: 1.6; }
.credits-list strong { 
    color: #fff; 
    margin-right: 5px; 
    font-weight: 700; 
    font-family: 'Helvetica', Arial, sans-serif; 
}

/* --- FOOTER --- */
.site-footer {
    background-color: #1f1f1f;
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #666;
    width: 100%;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .site-header { flex-direction: column; gap: 1rem; text-align: center; }
    .logo-container { text-align: center; }
    .main-nav ul { justify-content: center; }
}

@media (max-width: 768px) {
    .site-header { padding: 2rem 1rem; }
    .logo-container h1 { font-size: 48pt; }
    .subtitle { font-size: 36pt; }
    .main-nav ul { flex-direction: column; gap: 1rem; text-align: center; }
    .project-card { flex-direction: column; }
    .card-visuals { width: 100%; margin-bottom: 20px; }
    .project-venue { display: block; }
}

/* =========================================
   LIGHTBOX MODAL (ZOOM) - FIXED
   ========================================= */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    padding-top: 0; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.95); 
    
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* THE WRAPPER */
.modal-image-container {
    display: inline-flex; 
    position: relative; 
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    
    max-width: 90vw;   
    max-height: 90vh;  
}

/* THE IMAGE ITSELF */
.modal-content {
    display: block;
    width: auto;
    height: auto;
    
    max-width: 100%;
    max-height: 90vh; 
    
    object-fit: contain;
    border: 2px solid #333;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* NAVIGATION ARROWS (Outside the image) */
.modal-prev, .modal-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px; 
    color: #ccc;   
    font-weight: bold;
    font-size: 60px; 
    line-height: 1;
    user-select: none;
    background-color: transparent;
    transition: 0.3s ease;
    text-decoration: none;
    z-index: 2010;
}

/* Push arrows outward using negative values */
.modal-prev { 
    left: -80px; 
}
.modal-next { 
    right: -80px;
}

.modal-prev:hover, .modal-next:hover {
    background-color: transparent; 
    color: #fff; 
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

#caption {
    margin-top: 15px;
    text-align: center;
    color: #fff;
    font-family: 'Helvetica Light', sans-serif;
    font-size: 16px;
    width: 100%;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2020;
}
.close-modal:hover { color: #bbb; text-decoration: none; }

/* MOBILE ADJUSTMENT */
@media (max-width: 768px) {
    .modal-image-container { max-width: 100vw; }
    .modal-prev { left: 0; background-color: rgba(0,0,0,0.3); }
    .modal-next { right: 0; background-color: rgba(0,0,0,0.3); }
}