:root {
    --header-height: 60px;
    --header-color: #4a90e2;
    
    --menu-height: 80px;
    --menu-color: #70a1ff;
    --menu-padding: 0px 20px;
    
    /* Top Menu Item Parameters */
    --top-item-height: 40px;
    --top-item-width: auto;
    --top-item-bg: #ffffff;
    --top-item-text-size: 14px;
    --top-item-text-color: #333333;
    --top-item-padding: 0px 15px;
    
    --left-col-width: 200px;
    --left-col-color: #a8c9ff;
    
    --footer-height: 60px;
    --footer-color: #4a90e2;

    /* Max dimension parameter for your images */
    --max-dim: 150px;

    /* Frame Style Parameters - Set to white to hide them */
    --item-bg-color: #ffffff;
    --item-border-color: #ffffff;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-header {
    width: 100%;
    height: var(--header-height);
    background-color: var(--header-color);
}

.top-menu {
    width: 100%;
    height: var(--menu-height);
    background-color: var(--menu-color);
    display: flex;
    align-items: center;
    padding: var(--menu-padding);
    box-sizing: border-box;
}

.top_menu-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--top-item-height);
    width: var(--top-item-width);
    background-color: var(--top-item-bg);
    font-size: var(--top-item-text-size);
    color: var(--top-item-text-color);
    padding: var(--top-item-padding);
    margin-right: 10px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

.top_menu-item.active {
    filter: brightness(0.9);
    font-weight: bold;
}

.main-container {
    display: flex;
    flex: 1;
    flex-direction: row;
    width: 100%;
}

.sidebar {
    width: var(--left-col-width);
    background-color: var(--left-col-color);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.left-menu-list {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.left-menu-item {
    display: block;
    text-decoration: none;
    color: #333;
    padding: 3px 15px;  /* Changed from 10px to 3px to tighten vertical space */
    margin: 0px 8px;   /* Changed from 2px to 0px to bring them even closer */
    line-height: 1.2;  /* Added to force a tight, compact text height */ 
}

.left-menu-item.active {
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
    border-radius: 4px;
}

.content {
    flex: 1;
    padding: 20px;
    background-color: #f8f9fa;
}

.site-footer {
    width: 100%;
    height: var(--footer-height);
    background-color: var(--footer-color);
    margin-top: auto;
}

/* --- GALLERY ADDITIONS --- */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    width: 100%;
}

.gallery-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; 
    height: 160px;
    background-color: var(--item-bg-color);
    border: 1px solid var(--item-border-color);
    border-radius: 6px;
    overflow: hidden;
}

.gallery-image {
    max-width: var(--max-dim);
    max-height: var(--max-dim);
    width: auto;
    height: auto;
    object-fit: contain; 
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
}

.no-images {
    color: #777;
    font-style: italic;
    grid-column: 1 / -1;
    padding: 10px;
}


