/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.4;
    font-size: 14px;
}

/* MAIN LAYOUT */
.container {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: 190px;
    padding: 40px 25px;
    height: auto;
    position: relative;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
    /* overflow-y: auto; CASO QUEIRA MUDAR*/
}

.header h1 {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.15rem; 
    font-weight: bold;
    letter-spacing: -0.5px;
    margin-bottom: 1px;
    color: #333; 
}

.subtitle {
    font-family: 'Courier New', Courier, monospace;
    color: #888;
    font-size: 0.85rem;
}

/* GLOBAL LINKS */
a {
    text-decoration: none;
    color: #333;
    transition: color 0.2s;
}

/* --- SIDEBAR MENU & DROPDOWNS --- */
.menu a, .dropdown-btn {
    font-family: 'Courier New', Courier, monospace; 
    font-size: 16px;       
    font-weight: normal;
    text-decoration: none;
    color: #333;
    display: block;
    margin-bottom: 8px;    
    transition: color 0.2s;
    cursor: pointer;
}

.menu a:hover, .dropdown-btn:hover {
    color: #999;
}

/* The hidden container */
.dropdown-container {
    display: none;       
    padding-left: 20px;  
    margin-bottom: 15px;
    overflow: hidden;
}

/* Links inside the dropdown */
.dropdown-container a {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;     
    color: #8da69e;      
    margin-bottom: 8px;  
}

.dropdown-container a:hover {
    color: #000;         
}

/* ACTIVE PAGE MARKER */
a.active {
    font-weight: bold;
    color: #000;
    text-decoration: underline;
}

/* GALLERY - DESKTOP (3 Columns) */
.gallery {
    flex: 1;
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px; /* <-- Reverted to your tight horizontal gap */
    align-items: start;
}

.gallery-column {
    display: flex;
    flex-direction: column;
    gap: 15px; /* <-- Reverted to your tight vertical gap */
}

img {
    width: 100%;
    height: auto;
    display: block;
}

/* Update your main gallery container */
.gallery {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px; /* This keeps the vertical spacing seamless between rows */
}

/* Add this new Row class for the 3 columns */
.gallery-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    align-items: start;
}
/* =========================================
   MOBILE RESPONSIVENESS
========================================= */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 30px; 
    }
    /* Force 1 column on mobile rows */
        .gallery-row {
            grid-template-columns: 1fr;
            gap: 15px;
        }
        
        .gallery {
            padding: 30px; 
        } 
        
} /* <--- THIS WAS THE MISSING BRACKET THAT BROKE EVERYTHING! */

/* --- SMART FRAMING & ZOOM ANIMATION --- */

.gallery-column img {
    width: 100%;
    display: block;
    
    /* 1. The Smart Framing (Crop don't squish) */
    object-fit: cover; 
    
    /* 2. The Smoothness Setup */
    transition: transform 0.6s ease; /* Takes 0.6 seconds to zoom */
    transform-origin: center center; /* Zooms from the middle */
}

/* 3. The Hover Action (What happens when mouse is over) */
.gallery-column img:hover {
    transform: scale(1.20); /* Zooms in just 3% (very subtle & classy) */
    z-index: 10;            /* Ensures it sits ON TOP of neighboring images */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* distinct pop */
}

/* Specific Heights for your Grid Math */
.h-800 { height: 800px; }
.h-390 { height: 390px; }

/* --- 4 Vertical Mini-Grid (The 5px Fix) --- */
.inner-vertical-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important; 
    grid-template-rows: repeat(2, 1fr); /* Forces 2 perfectly equal rows */
    gap: 15px; 
    width: 100%;
    /* Moving the ratio to the container fixes the 5px math glitch */
    aspect-ratio: 3 / 4; 
}

.inner-vertical-grid img {
    width: 100% !important;
    height: 100% !important; /* Stretches safely to fill the perfect grid cell */
    object-fit: cover;
    margin: 0;
}