
.overlay{
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(75, 75, 75, 0.664);
}

.overlay:hover{
    opacity: 1;
}

.overlay > * {
    margin: 0;
    background: yellow;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%)
}
#downloadfull{
    text-decoration: none;
    color: white;
}

ul.imagegrid {
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
}

li {
    position: relative;
    height: min(400px,30vh);
    flex-grow: 1;
}

li h3{
    /* dot after too long text */
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;

    color: white;
    position: absolute;
    bottom: 0;
    padding: 1rem 0;
    margin: 0;
    background-color: rgba(44, 44, 44, 0.795);
    width: 100%;
}
li p{
    font-size: 1rem;
    color: white;
    position: absolute;
    bottom: 0;
    padding: 1rem 0;
    margin: 0;
    background-color: rgba(44, 44, 44, 0.795);
    width: 100%;
}

li:last-child {
    flex-grow: 10;
}

.imagegrid img {
    max-height: 100%;
    min-width: 100%;
    max-width: 100%;
    object-fit: cover;
    vertical-align: bottom;
}
.blurred-img {
    background-repeat: no-repeat;
    background-size: cover;
    filter: blur(10%);
}
.blurred-img-js::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    animation: pulse 2.5s infinite;
    background-color: white;
}

img.loading{
    opacity: 0;
    transition: opacity 250mS ease-in-out;
}
img.loaded{
    opacity: 1;
}

.imageinfo{
    margin-top: 12px;
}
.imageinfo img{
    height: 22px;
    width: 22px;
    filter: brightness(0) invert(1);
    display: inline-block;
}
.imageinfo div,
.imageinfo h2,
.imageinfo h3,
.imageinfo h4{
    display: inline-block;
    margin: 0;
}

@keyframes pulse {
    0% {
      opacity: 0;
    }
    50% {
      opacity: 0.1;
    }
    100% {
      opacity: 0;
    }
}


@media (max-aspect-ratio: 1/1) {
    li {
        height: min(400px,30vh);
    }
}


@media (max-height: 480px) {
    li {
        height: 80vh;
    }
}

@media (max-aspect-ratio: 1/1) and (max-width: 480px) {
    ul {
        flex-direction: row;
    }

    li {
        height: auto;
        width: 100%;
    }

    img {
        width: 100%;
        max-height: 75vh;
        min-width: 0;
    }
}

