* {
	box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: linear-gradient(
		60deg, 
		rgb(255, 238, 255), 
		rgb(255, 238, 255)
	);
    color: rgb(0, 0, 128);
    display: flex;
    flex-direction: column;
    font-family: courier new;
	font-size: 36px;
    justify-content: center;
    min-height: 50vh;
    min-width: 50vw;
    overflow-x: hidden;
    padding: 5px;
}

h1 {
    font-size: 36px;
    margin: 36px;
    text-align: center;
}

.gallery {
    background: linear-gradient(
        60deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.5)
    );
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    list-style-type: none;
    padding: 64px;
}

.thumbnail {
    border: solid 3px rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 48px 2px rgba(0, 0, 128, 0.5);
    cursor: pointer;
    margin: 32px;
    max-height: 200px;
    max-width: 300px;
    overflow: hidden;
    transform: scale(1);
    transition: transform 0.3s;
}

.thumbnail:hover {
    transform: scale(1.75);
}

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

.thumbnail img:focus,
.thumbnail img:focus {
    border: solid 5px rgb(0, 0, 128);
}

.popup {
    align-content: center;
    animation: fadeIn 0.3s;
    background: rgba(0, 0, 128, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    height: 100vh;
    left: 0;
    position: fixed;
    top: 0;
    width: 100vw;
}

.popup.hidden {
    display: none;
}

.popup.fade-out {
    animation: fadeOut 0.3s both;
}

.popup__img {
    max-height: 80%;
    max-width: 80%;
}

.popup__close {
    background-color: transparent;
    border: none;
    color: rgb(255, 255, 255);
    cursor: pointer;
    font-size: 75px;
    position: fixed;
    right: 75px;
    top: 75px;
}

.popup__arrow {
    border: none;
    cursor: pointer;
    font-size: 75px;
    height: 75px;
    line-height: 75px;
    position: absolute;
    top: 85%;
    width: 75px;
}

.popup__close,
.popup__arrow {
    opacity: 0.1;
    transition: opacity 0.3s;
}

.popup__close:hover,
.popup__arrow:hover {
    opacity: 0.5;
}

.popup__arrow--left {
    left: 10%;
}

.popup__arrow--right {
    right: 10%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}
