/* ==========================================
   1. CORE RESET & BASE
   ========================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: #DDDDDD; 
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    color: black;
    overflow-x: hidden;
}

.container {
    width: 1200px; 
    max-width: 95%;
    margin: 0 auto;
}

/* ==========================================
   2. TACTICAL BOXES & NAVIGATION
   ========================================== */
.tm-bg-white-translucent {
    background-color: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(8px);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.nav-link-custom {
    color: #1a1c0e !important;
    font-size: 0.75rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    text-decoration: none !important;
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    width: 0; height: 2px; bottom: -2px; left: 0;
    background-color: #4b5320;
    transition: width 0.3s ease;
}

.nav-link-custom:hover::after { width: 100%; }

.btn-seal {
    background-color: #4b5320 !important;
    color: white !important;
    padding: 16px 40px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px;
    display: inline-block;
    cursor: pointer;
}

/* ==========================================
   3. ADVANCED GALLERY VIEWER (FIXED)
   ========================================== */

.gallery-viewer {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 130px;
    background: rgba(0,0,0,0.95);
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 9000;
}

.gallery-viewer.active { display: flex; }

.viewer-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.viewer-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border: 3px solid #4b5320;
    box-shadow: 0 0 30px rgba(0,0,0,1);
}

/* Navigation Controls */
.viewer-close {
    position: absolute;
    top: 20px; right: 20px;
    background: #4b5320; color: white; border: none;
    width: 40px; height: 40px; border-radius: 50%;
    cursor: pointer; font-size: 24px; z-index: 9100;
}

.viewer-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(75, 83, 32, 0.6); color: white; border: none;
    padding: 20px 15px; cursor: pointer; font-size: 30px; z-index: 9100;
}

.arrow-prev { left: 0; border-radius: 0 8px 8px 0; }
.arrow-next { right: 0; border-radius: 8px 0 0 8px; }

/* Bottom Filmstrip Strip */
.thumbnail-strip {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 130px;
    background: rgba(26, 28, 14, 0.98);
    z-index: 9050;
    overflow-x: auto;
    border-top: 3px solid #4b5320;
    padding: 10px;
    align-items: center;
}

.thumbnail-strip.active { display: flex; }

.thumb-item {
    flex: 0 0 auto;
    margin: 0 8px;
    cursor: pointer;
    border: 3px solid transparent;
}

.thumb-item.active { border-color: #ffffff; transform: scale(1.05); }

.thumb-item img { width: 110px; height: 90px; object-fit: cover; }