:root{
    --beige: #F8E9CA;
}

*{
    box-sizing: border-box;
}


html, body{
    margin: 0;
    padding: 0;
}



.grayscale{
    filter: grayscale(100%);
}

.desaturated{
    filter: grayscale(85%);
}

.grayscale:hover,
.desaturated:hover{
    filter: grayscale(0%);
    transition: filter 0.5s ease;
}


.home-header{
    max-width: 75rem;
    width: calc(100%-1rem);
    padding: .5rem;
    margin: 0 auto;
    font-family: "Hepta Slab", serif;
    font-optical-sizing: auto;
    text-align: center;
}

.home-header-image{
    margin: 1rem;
    max-width: 10rem;
    border-radius: 50%;
}



.album-header{
    max-width: 75rem;
    width: calc(100%-1rem);
    padding: .5rem;
    margin: 0 auto;
    font-family: "Hepta Slab", serif;
    font-optical-sizing: auto;
}


.massonry-wrapper {
    display: grid;
    grid-gap: min(.5rem, 2vw);
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    grid-auto-rows: 15rem;
    grid-auto-flow: dense;
    padding: .5rem;


    max-width: 75rem;
    width: calc(100%-1rem);
    margin: 0 auto;
}


@media screen and (max-width: 40rem) {
    .massonry-wrapper {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: calc(50vw - 1rem);
    }
}

.massonry-wrapper>* {
    display: block;
    border-radius: .25rem;
    overflow: hidden;
    position: relative;
}

.massonry-wrapper>*>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.massonry-wrapper .r1x1 {}

.massonry-wrapper .r1x2,
.massonry-wrapper .r2x3,
.massonry-wrapper .r3x4,
.massonry-wrapper .r9x16 {
    /* vertical */
    grid-row: span 2;
}

.massonry-wrapper .r2x1,
.massonry-wrapper .r3x2,
.massonry-wrapper .r4x3,
.massonry-wrapper .r16x9 {
    /* horizontal */
    grid-column: span 2;
}

.massonry-wrapper .image-info {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: .25rem 1em;
    font-size: .8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.massonry-wrapper > *:hover .image-info {
    opacity: 1;
}


#full-pic-link {
    display: none;
    margin: 1rem;
    padding: .5rem 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: .25rem;
    font-family: "Hepta Slab", serif;
    font-weight: 400;
}


#popup{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    display: none;
    text-align: center;
}

#popup-content{
    max-height: 100vh;
    max-width: 100vw;
    padding: 1rem;
}

#popup #popup-video,
#popup #popup-img{
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 2rem);
    border-radius: .5rem;
    display: inline-block;
    box-shadow: 0 0 3rem rgba(0, 0, 0, 0.5);
}


#popup #left-control, #popup #right-control, #popup #close-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
}
#popup button svg {
    width: 3rem;
    height: 3rem;
    fill: white;
    stroke: black;
}

#popup #left-control {
    left: 2rem;
}

#popup #right-control {
    right: 2rem;
}

#popup #close-control {
    top: 2rem;
    right: 2rem;
    transform: none;
}

#popup #close-control svg{
    width: 2rem;
    height: 2rem;
}

.album-cover{
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.wrapper{
    background-color: #ececec;
    width: calc(100vw - 2rem);
    height: calc(100vh - 2rem);
    display: flex;
    margin: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.background{
    height: 100%;
    width: 50%;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom left;
}

.content{
    height: 100%;
    width: 50%;
    display: flex;
}