/* for gallery */
html:has(.gallery){
    scroll-snap-type:both proximity;
}

/* for header to be visible */
header{
    scroll-snap-align: start;
}

/* make header non sticky */
.header-menu:has(~ .gallery-page){
    position:static;
}
.gallery{
    display: flex;
    flex-direction: column;    
    scroll-snap-align: start;
}
.gallery-page .date{
    text-align: right;
    padding: 20px;
    font-size: .8em;
}
.gallery-page .title{
    text-align: center;
    line-height: 1.5em;
    color: black;
    font-weight: 900;
}
.gallery-page .description{
    margin: 20px;
}
.gallery .section{
    position: relative;
}
.gallery .arrow{
    z-index: 10;
    position: absolute;
    display: block;
    top:50%;
    transform: translateY(-50%);
    background-color: #1b1b1b;
    opacity: .5;
    border: none;
    border-radius: 60px;
    width: 50px;
    height: 50px;
    box-sizing: border-box;
    padding: 10px;
    margin:10px;
    cursor: pointer;
}
.gallery .top:hover .arrow{opacity: 1;}
.gallery .bottom:hover .arrow{opacity: 1;}
.gallery .arrow.left{left:0;}
.gallery .arrow.right{right:0;}
.gallery .arrow .icon{
    max-width: 100%;
    stroke: white;
}
.gallery .window{
    /* border: 1px solid green; */
    margin:0 auto;
}
.gallery .top .window{
    height:calc( 100vh - 150px);
    width: 100%;
    display: flex;
    justify-content: center;
}
.gallery .bottom .window{
    height: 120px;
    width:100%;
    overflow: hidden;
}
.gallery .slider{
    margin: auto;
    height: inherit;
    display: flex;
    overflow: hidden;
    width: max-content;
    transition:.3s all;
}
.gallery .slider .photo-frame{
    height: inherit;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}
.gallery .top .photo-frame{    
    padding: 10px;
    /* aspect-ratio: 16 / 9; */
}
.gallery .bottom .photo-frame{
    width: 120px;
    height: 120px;
    overflow: hidden;
}
.gallery .bottom .photo-frame:not(:last-of-type){
    margin-right:10px;
}
.gallery .slider .photo{    
    max-width: 100%;
    max-height: 100%;
}
.gallery .bottom .photo{
    transform:scale(2);
    /* border: 4px solid green;
    border-radius: 6px; */
    /* min-width: 120%;
    min-height: 120%;
    height: auto;
    width: auto; */
}


