* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --global-border-radius: 6px;
}
body {
  background-color: #fbfbfc;
  color: #070e08;
  font-family: "Roboto", sans-serif;
}
header {
  width: 100%;
  background: #f49301;
  background: linear-gradient(52deg, #f49301 23%, #e35c3b 100%);
  font-family: "Mochiy Pop P One", sans-serif;
  color: #faf0f5;
  letter-spacing: 0.2ch;
  padding: 3rem 0 4rem 0;
  text-align: center;
}
.emoji {
  font-size: 2rem;
}
footer {
  width: 100%;
  text-align: center;
  background-color: #f49301;
  color: #070e08;
  padding: 2ch 0;
}
.photos {
  width: 100%;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90%, 1fr));
  grid-gap: 2rem;
}
.photo {
  max-width: 800px;
  aspect-ratio: 3 / 2;
  background-color: #b3a6ac;
  border-radius: var(--global-border-radius);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: all 200ms linear;
  transform: scale(0.99);
  box-shadow: 2px 2px 6px 0 #070e0891;
  opacity: 0.95;
}
.photo:hover {
  opacity: 1;
  transform: scale(1);
}
.hidden {
  display: none;
}
.search-container {
  padding: 2rem 2rem 0 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
}
label {
  display: inline-block;
  width: 4ch;
  text-align: right;
}
.search-container input[type="date"],
.search-container button {
  margin: 12px;
  padding: 5px;
  height: 2.5rem;
  font: inherit;
  border-radius: var(--global-border-radius);
  border: 2px solid #a33317;
}
.search-container button {
  width: 10ch;
  font-size: 1.1rem;
  background-color: #a33317;
  color: #faf0f5;
}
button {
  outline: none;
  transition: all 80ms ease-in-out;
}
button:focus {
  border: 2px solid #f49301;
}
button:hover {
  filter: brightness(80%);
}
button:active {
  filter: brightness(70%);
}
.modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: all;
  background-color: #27120de3;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.modal.hidden {
  opacity: 0;
  pointer-events: none;
}
.modal button {
  width: max-content;
  background: transparent;
  outline: none;
  border: none;
  font-size: 3rem;
  color: #faf0f5;
}
.modal-image {
  max-width: 80vw;
  max-height: 60vh;
  margin: 2rem 0;
  border-radius: var(--global-border-radius);
  box-shadow: 2px 2px 6px 0 #070e0891;
}
.modal figure {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.modal figcaption {
  max-width: 35ch;
  color: #faf0f5;
  text-align: center;
}
.modal-caption {
  padding: 10px 0;
  font-style: italic;
}
.modal-date {
  padding: 10px 0;
  opacity: 0.6;
}
@media screen and (min-width: 600px) {
  .photos {
    grid-template-columns: repeat(auto-fill, minmax(30%, 1fr));
  }
  .search-container {
    flex-direction: row;
  }
}
