body {
    font-family: Inter, sans-serif;
    margin: 0px;
    background-color: rgb(255, 255, 255);
}

/* LOGO + NAVLINK */

#logo {
    font-size: 4em;
    font-weight: lighter;
    margin: auto;
    font-family: Inter, sans-serif;
    color: rgb(16, 16, 147);
    margin-bottom: 0.3em;
    transition: all .2s ease;

}

#logo a {
    text-decoration: none;
    color: rgb(16, 16, 147);

}

#logo a:visited {
    color: rgb(16, 16, 147);
}



#logo:hover {
    letter-spacing: 0.2em;
    transition: all .2s ease-in-out;
}

nav {
    width: auto;
    margin-top: 0.2em;
    margin-bottom: 0.4em;
    text-align: center;
    padding: 0.3em;
    background-color: #00000000;
    border: none;
    opacity: 0.9;
    font-size: 13px;
    background-position-x: 0%;
    background-position-y: 0%;
    background-size: auto;
    background-size: 50%;
    background-position: -0px -0px;
    border-radius: 3px;
}

.navlink {
    color: rgb(16, 16, 147);
    text-decoration: none;
    transition: all .2s ease;
    font-weight: bold;
    margin: 50px;
}

.navlink:hover {
    letter-spacing: 0.2em;
    transition: all .2s ease-in-out;
}

.navlink:visited {
    color: none;
}

.hoverItem {
    display: inline-block;
    opacity: 0;
    transition: all 0.2 ease;
}

.hoverItem:hover {
    opacity: 100%;
    transition: all 0.2 ease-in-out;
}

ul {
    list-style: none;
    text-align: center;
    padding: 0;
    margin: 0;
    color: #000000;
}

li {
    display: inline-block;
    text-transform: lowercase;
    padding: 0.5em 0.3em;
}

/* MAIN CONTENT */
#container {
    margin: 0 auto;
    margin-top: 2em;
    max-width: 1000px;

}

#flex {
    display: flex;
    width: 100%;
    margin: auto;
}

aside {
    margin: 0 auto;

}

#leftSidebar {
    order: 1;
    position: sticky;
    top: 0;
    font-size: 12px;
    width: 370px;
    max-height: 20px;
}

.mainContent {
    text-align: center;
    padding: 20px;
    order: 2;
    width: 700px;
    max-height: 700px;
    margin: auto;

}

#mainContent img {
    max-height: 400px;
    max-width: 600px;
}

#mainHello {
    background-color: yellow;
    padding: 20px;
    border-radius: 10px;
    border: 3px dotted blue;
}

#rightSidebar {
    order: 3;
    width: 370px;
    font-size: 12px;
    top: 0;
    position: sticky;
    max-height: 20px;
}

#leftSidebarContent {
    padding: 20px;


}

#rightSidebarContent {
    padding: 20px;


}

#header {
    max-height: 100px;
    position: static;
}

.header-img {
    max-height: 100px;
    margin: center;
}



/* General body styling */
body {
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}



/* Gallery grid layout */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    width: 100%;
    height: 600px;
    max-height: 700px;
    grid-template-rows: min-content;
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
    transform: rotate(-20deg);

}

/* Lightbox styling */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
}

.lightbox .prev,
.lightbox .next {
    height: 50px;
    width: 50px;
    position: absolute;
    transform: translateY(-50%);
    font-size: 2.5rem;
    background-color: transparent;
    color: rgb(16, 16, 147);
    padding: 10px;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    z-index: 1001;
}

.lightbox .prev {
    left: 20px;
}

.lightbox .next {
    right: 20px;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: rgb(16, 16, 147);
    background: none;
    cursor: pointer;
    border: none;
    z-index: 1001;
}

/* PHOTO GALLERY */

/* Gallery grid layout */

#photogallery {
    display: inline-block;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2px;
    width: 100%;
    height: 600px;
    max-height: fit-content;
    grid-template-rows: max-content;
}

#photogallery img {
    width: 100%;
    height: fit-content;
    border-radius: 0px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#photogallery img:hover {
    transform: scale(1.05);


}

#galleryContainer {
    max-height: fit-content;
    margin-bottom: 100px;

}