* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f5f4ed;
  color: #284434;
  font-family: Arial, sans-serif;
}
header {
  padding: 24px 5vw;
  border-bottom: 1px solid #dce1d4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
}
header > span {
  font-size: 8px;
  letter-spacing: 2px;
  color: #9a9f8e;
}
.brand {
  font-family: Georgia;
  font-size: 25px;
  letter-spacing: 5px;
  text-decoration: none;
  color: #244a35;
}
.brand span {
  display: block;
  font-family: Arial;
  font-size: 7px;
  letter-spacing: 2px;
  margin-top: 7px;
}
main {
  max-width: 1400px;
  margin: auto;
  padding: 55px 5vw;
}
.eyebrow {
  font-size: 9px;
  color: #ab945f;
  letter-spacing: 3px;
}
h1 {
  font-family: Georgia;
  font-size: clamp(30px, 5vw, 62px);
  font-weight: 400;
  margin: 18px 0;
}
#date {
  color: #909a82;
  font-size: 13px;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 35px 0 25px;
}
.toolbar p {
  margin-right: auto;
  font-size: 12px;
  color: #8d997e;
}
button,
.viewer-actions a {
  background: #224d35;
  color: white;
  border: 0;
  border-radius: 6px;
  padding: 13px 18px;
  font-size: 11px;
  text-decoration: none;
  cursor: pointer;
}
button:disabled {
  opacity: 0.35;
}
#gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 22px;
}
.photo {
  position: relative;
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 3px 14px #163d2810;
}
.photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: contain;
  cursor: zoom-in;
  display: block;
}
.photo label {
  font-size: 11px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: #87977a;
  margin-top: 12px;
}
.photo input {
  accent-color: #285b3c;
  width: 18px;
  height: 18px;
}
.privacy {
  margin-top: 40px;
  font-size: 11px;
  line-height: 1.7;
  color: #939e86;
}
dialog {
  border: 0;
  border-radius: 10px;
  background: #f7f7ef;
  max-width: 95vw;
  max-height: 96vh;
  padding: 20px;
}
dialog::backdrop {
  background: #0d2b22df;
}
#viewer > button {
  display: block;
  margin-left: auto;
  margin-bottom: 10px;
}
#large {
  display: block;
  max-width: 85vw;
  max-height: 72vh;
  object-fit: contain;
  margin: auto;
}
.viewer-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding-top: 16px;
}
footer {
  padding: 28px;
  text-align: center;
  border-top: 1px solid #dce1d4;
  font-size: 8px;
  letter-spacing: 3px;
  color: #96a187;
}
@media (max-width: 550px) {
  header > span {
    display: none;
  }
  main {
    padding-top: 35px;
  }
  #gallery {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .photo {
    padding: 7px;
  }
  .toolbar button {
    padding: 11px;
    font-size: 10px;
  }
  .toolbar p {
    width: 100%;
  }
}
