body {
    margin: 0;
    min-height: 650px;
}

#Main-menu {
    position: fixed;
    top: 0;
    left: 0;
}
#Main-menu button {
	font-size: 22px;
    padding: 4px 8px;
    border-radius: 0;
    border-left: 0;
    border-top: 0;
}
#Main-menu button.active {
	background: lightblue;
    font-weight: bold;
}

#gallery-container {
    display: grid;
    grid-template-columns: 1fr minmax(120px, 250px);
    gap: 10px;
    grid-template-areas: "gallery overview"; 
	padding-top: 40px;
}

.grid-item {
    padding: 0 10px;
}

#overview {
	position: sticky;
	top: 0;
    grid-area: overview; /* Place in defined grid area */
    height: 100vh;
    max-height: 100vh;
    min-height: 100vh;
    overflow: auto;
}

#gallery {
    grid-area: gallery; /* Place in defined grid area */
}



/* +++++++++++++++++++++++++++++++++++++ */


#gallery img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    margin: 10px 0;
    border: 2px solid #3f5666;
}

#gallery img.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffffc9;
    z-index: 1;
    margin: 0;
}

.thumbnail {
    position: relative;
    cursor: pointer;
    transition: width 0.3s ease, height 0.3s ease;
    height: 102px;
    margin: 20px 0;
    overflow: hidden;
    border: 2px solid #3f5666;
    color: #3f5666;
}

.thumbnail .image {
    background-position: top left;
    background-size: 1224px auto;
    height: 100%;
    width: 100%;
}

.thumbnail .count {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 5px 10px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
}
