* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #111;
  color: #eee;
}
header {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem;
  position: sticky;
  top: 0;
  background: #111e;
  backdrop-filter: blur(6px);
}
header h1 {
  margin: 0 auto 0 0;
  font-size: 1.25rem;
}
select,
input {
  padding: 0.4rem 0.6rem;
  background: #222;
  color: inherit;
  border: 1px solid #444;
  border-radius: 6px;
}
#grid {
  --row-height: 200px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 6px 6px;
}
/* Justified rows: each photo's width follows its aspect ratio (--ar) and rows fill the width. */
#grid::after {
  content: "";
  flex-grow: 1000;
}
#grid img {
  height: var(--row-height);
  flex: calc(var(--ar) * 100) 1 calc(var(--ar) * var(--row-height));
  min-width: 0;
  object-fit: cover;
  cursor: zoom-in;
  background: #222;
}
h1 a {
  color: inherit;
  text-decoration: none;
}
#collections {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  padding: 12px;
}
#collections a {
  color: inherit;
  text-decoration: none;
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
}
#collections img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}
#collections div {
  padding: 0.6rem 0.8rem;
}
#collections small {
  color: #999;
}
.hide {
  display: none;
}
[hidden] {
  /* biome-ignore lint/complexity/noImportantStyles: [hidden] must beat component display rules */
  display: none !important;
}

.info-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: none;
  padding: 0.8rem 1rem calc(0.8rem + env(safe-area-inset-bottom));
  background: #000c;
  color: #eee;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.pswp--info .info-panel {
  display: flex;
}
.info-panel .meta {
  color: #bbb;
  font-size: 0.9rem;
}
.info-panel .actions {
  display: flex;
  gap: 0.5rem;
}
.info-panel button {
  background: #2a2a2a;
  color: #fff;
  border: 1px solid #555;
  border-radius: 6px;
  padding: 0.55rem 0.9rem;
  font-size: 1rem;
  cursor: pointer;
}
.info-panel button[hidden] {
  display: none;
}
.pswp__button--info-button {
  font-size: 1.5rem;
  color: #fff;
  width: 50px;
}
@media (max-width: 600px) {
  #grid {
    --row-height: 120px;
  }
  header {
    flex-wrap: wrap;
  }
  header h1 {
    flex-basis: 100%;
  }
}
.about {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
}
.about-photo {
  flex: 1 1 320px;
  min-width: 0;
  max-width: 100%;
  align-self: flex-start;
  border-radius: 8px;
}
.about-text {
  flex: 1 1 320px;
  line-height: 1.5;
}
.link {
  color: #9cf;
}
.site-footer {
  padding: 1.5rem;
  text-align: center;
}
#contact-form {
  display: grid;
  gap: 0.75rem;
}
#contact-form label {
  display: grid;
  gap: 0.25rem;
}
#contact-form textarea {
  padding: 0.4rem 0.6rem;
  background: #222;
  color: inherit;
  border: 1px solid #444;
  border-radius: 6px;
  font: inherit;
}
#contact-form button {
  justify-self: start;
  padding: 0.5rem 1.2rem;
  background: #2a2a2a;
  color: #fff;
  border: 1px solid #555;
  border-radius: 6px;
  cursor: pointer;
}
