main {
    display: flex;
    justify-content: space-between;
    min-height: calc(100vh - 150px)
}
#main-side {
    background: linear-gradient(180deg,#fbfbfb 20%,#d7d6d6 90%);
}
#main-sidemenu {
    position: sticky;
    overflow: hidden;
    top: 0px;
    text-align: center;
    width: 100px;
    background-color: #fff;
    border-bottom: 5px solid var(--accent-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
#main-sidemenu a {
    font-family: var(--font-main), sans-serif;
    font-weight: 300;
    font-size: 28px;
    text-decoration: none;
    color: #000;
}
#main-sidemenu a:first-of-type{
    margin-top: 5px;
}
#main-sidemenu a:hover{
    font-weight: 600;
  
    background-color: #2a2a2a;
    border: 2px solid #2a2a2a;
    border-radius: 2px;
    color: #fff;
    animation: pulse 0.3s ease 0s 1 normal forwards;
}
@keyframes pulse {
	0%   { transform: scale(1); }
	50%  { transform: scale(1.08); }
	100% { transform: scale(1); }
}
#main-cont {
    width: 90%;
    margin: 20px;
}
.sub-cont {
    margin: 20px 0;
}
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-content: center;
    align-items: stretch;
    font-family: var(--font-main), sans-serif;
    font-weight: 450;
    font-size: 1rem;
}
.gallery::after {
    content:"";
    flex-grow: 999;
}
.gallery > li {
    flex: auto;
    height: 300px;
    list-style: none;
    position: relative;
}
.gallery li img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    vertical-align: middle;
}
.overlay {
    position: absolute;
    width: 100%;
    height: 20%;
    background: rgba(0,0,0,.75);
    bottom: 0;
    left: 0;
    height: 19%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
}
.overlay span{
    padding-left: 10px;
}
.overlay a{
    color: #fff;
    text-decoration: none;
    width: 20%;
    font-size: 3em;
}
@media (hover:hover){ 
    .overlay {
        transform: scaleY(0);
        transform-origin: center bottom;
        transition: all .2s .1s ease-in-out;
        height: 25%;
    }
    .gallery li:hover .overlay {
        transform: scaleY(1);
    }
}
@media (max-width:650px) {
    main {
        display: block;
    }
    #main-side {
        top: 60px;
        position: sticky;
        z-index: 99;
    }
    #main-sidemenu {
        width: 100%;
        height: 36px;
        flex-direction: row;
        justify-content: space-evenly;
        align-items: center;
        border-bottom: 3px solid var(--accent-color);
    }
    #main-sidemenu a{
        font-size: 22px;
    }
    #main-sidemenu a:first-of-type{
        margin-top: 0;
    }
    #main-cont {
        width: 100%;
        flex-shrink: 0;
        margin: 0;
    }
    #main-cont h1,h2,h3{
        text-align: center;
    }
    .sub-cont {
        margin: 10px 0;
    }
    .modal-header h3,  .modal section h3{
        font-size: 14px;
    }
    .overlay {
        height: 20%;
    }
    .gallery::after {
        flex-grow: 0;
    }
}
@media not (hover:hover) { 
    @media (max-width: 650px) {
    .gallery {
        display: block;
        margin: 8px;
    }
    .gallery li + li {
        margin-top: 8px;
    }
}}

video {display: block;}
button {margin: auto;}