body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    overflow:hidden;
}

.container {
    display: flex;
    height:100%;
}

.sidebar {
    width: 250px;
    padding: 20px;
    transition: transform 0.5s, opacity 0.5s;
    height: 100%;
    position: fixed;
}

#main-content {
    display: flex;
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    position: relative;
    margin-left: 250px;
}

.top-bar {
    padding: 10px;
    height: 50px;
    display: none;
}

.hamburger-icon {
    width: 30px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 9px 0;  /* Padding to center the lines within the 50x50 box */
}

.hamburger-icon span {
    width: 100%;
    height: 6px;
    background-color: #7a7a7a;  /* Color of the lines */
    border-radius: 1px;
}
.logo-small {
    position:absolute;
    top: 10px;
    right:5px;
}

.menu {
    list-style-type: none;
    padding: 0;
}

.menu > li {
    padding: 8px 0; /* Reduced padding for tighter spacing */
    cursor: pointer;
    text-transform: uppercase;
}

.menu a {
    text-decoration: none;
    color: inherit;
}

.menu .submenu {
    display: none;
    list-style-type: none;
    padding-left: 20px;
}

.menu .submenu > li {
    padding: 5px 0; /* Reduced padding for tighter spacing */
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9em; /* Smaller font size for submenu items */
}

.menu .submenu a {
    text-decoration: none;
    color: inherit;
}

.menu .submenu-active .submenu {
    display: block;
}

.menu li.selected {
    font-weight: bold;
}




#gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* adjust as per preference */
}

/* Styles for each image cell */
.thumb-cell {
    flex-basis: calc(33.33% - 8px); /* assuming a gap of 10px between images */
    max-width: calc(33.33% - 8px);
    box-sizing: border-box;
    margin-bottom: 10px; /* Gap at the bottom */
    overflow: hidden; /* To ensure nothing spills out of the cell */
    display: flex;
    align-items: center;
    justify-content: center;
    background: black;
}

.thumb-cell img {
    max-width: 100%;
    max-height: 500px;
    display: block; /* To remove any default margin or spacing */
}


.full-size-container {
    display:flex;
    flex:1;
    overflow-y: scroll;
    scrollbar-width: none; /* Firefox */
    -webkit-scrollbar-width: none; /* Webkit-based browsers */
}
/* Style the thumb and track for webkit-based browsers */
.full-size-container::-webkit-scrollbar {
  width: 0.5rem; /* Adjust as needed */
}

.full-size-container::-webkit-scrollbar-thumb {
  background-color: #888; /* Color of the thumb */
  border-radius: 4px; /* Rounded corners for the thumb */
}

.full-size-container::-webkit-scrollbar-track {
  background-color: #f1f1f1; /* Color of the track */
}

#image-viewer {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content:center;
    max-width: 1600px;

}

#current-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.nav-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
}

.previous, .next, .up {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.previous:hover, .next:hover, .up:hover {
    opacity: 0.6;
}

.previous{
    cursor:url('res/nav_arrow_left.png'), auto;
}
.next{
    cursor:url('res/nav_arrow_right.png'), auto;
}
.up{
    cursor:url('res/nav_arrow_up.png'), auto;
}





@media (max-width: 768px) {
    .sidebar {
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
        background-color: white;
        transform: translateX(-100%);
        opacity: 0;
        z-index: 5;
        margin-top:20px;
    }
    .top-bar {
        display: block;
    }

    .logo-large {
        display: none;
    }

    #main-content {
        margin-left: 0;
    }

    .sidebar.active {
        transform: translateX(0);
        opacity: 1;
    }
    #current-img {
        align-self: flex-start;
    }
}