.gallery-hero {
  background-image: linear-gradient(#00000072, #00000072), url(images/aerial-wide.png);
  background-position: center;
}
.gallery-introduction {
  padding-bottom: 64px;
}
.gallery-heading-row {
  align-items: end;
  display: flex;
  gap: 30px;
  justify-content: space-between;
}
.gallery-heading-row .heading h2 {
  margin-bottom: 0;
}
.gallery-count {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  white-space: nowrap;
}
.gallery-filters {
  align-items: end;
  background: #fff;
  border: 1px solid #d6d2ca;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(5, minmax(130px, 1fr)) auto;
  margin: 34px 0 38px;
  padding: 22px;
}
.gallery-filters label {
  color: #333;
  display: block;
  font-size: 12px;
  font-weight: 700;
}
.gallery-filters select {
  background: #fff;
  border: 1px solid #777;
  border-radius: 0;
  color: #111;
  display: block;
  font: inherit;
  font-size: 14px;
  height: 46px;
  margin-top: 7px;
  padding: 9px 34px 9px 11px;
  width: 100%;
}
.gallery-clear {
  background: transparent;
  border: 1px solid #111;
  color: #111;
  cursor: pointer;
  font-family: Fjalla One, Impact, sans-serif;
  font-size: 16px;
  height: 46px;
  padding: 8px 16px;
  white-space: nowrap;
}
.gallery-clear:hover,
.gallery-clear:focus-visible {
  background: #111;
  color: #fff;
}
.gallery-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.gallery-card {
  background: #fff;
  box-shadow: 0 8px 24px #0000000d;
}
.gallery-card button {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: block;
  padding: 0;
  text-align: left;
  width: 100%;
}
.gallery-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.gallery-card-copy {
  padding: 20px 20px 22px;
}
.gallery-card h3 {
  font-family: Fjalla One, Impact, sans-serif;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 10px;
}
.gallery-card p {
  color: #555;
  font-size: 12px;
  margin: 0;
}
.gallery-status:empty {
  display: none;
}
.gallery-empty,
.gallery-error {
  background: #fff;
  border: 1px solid #d6d2ca;
  grid-column: 1 / -1;
  padding: 42px 28px;
  text-align: center;
}
.gallery-error {
  border-color: #a43b32;
  color: #7e241e;
}
.gallery-dialog {
  background: #111;
  border: 0;
  color: #fff;
  height: min(92vh, 900px);
  max-width: 1200px;
  padding: 0;
  width: min(94vw, 1200px);
}
.gallery-dialog::backdrop {
  background: #000000db;
}
.gallery-dialog figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
  margin: 0;
}
.gallery-dialog figure > img {
  height: 100%;
  min-height: 0;
  object-fit: contain;
  width: 100%;
}
.gallery-dialog figcaption {
  background: #000;
  padding: 22px 70px;
}
.gallery-dialog h2 {
  font-family: Fjalla One, Impact, sans-serif;
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 7px;
}
.gallery-dialog figcaption p {
  font-size: 13px;
  margin-bottom: 7px;
}
.gallery-photo-details {
  color: #c8c8c8;
}
.gallery-dialog-close,
.gallery-dialog-nav {
  background: #000000b8;
  border: 1px solid #ffffff52;
  color: #fff;
  cursor: pointer;
  position: absolute;
  z-index: 2;
}
.gallery-dialog-close {
  font-size: 32px;
  height: 48px;
  right: 12px;
  top: 12px;
  width: 48px;
}
.gallery-dialog-nav {
  font-size: 48px;
  height: 72px;
  top: 42%;
  width: 52px;
}
.gallery-dialog-prev { left: 12px; }
.gallery-dialog-next { right: 12px; }
@media (max-width: 1100px) {
  .gallery-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .gallery-heading-row { align-items: flex-start; flex-direction: column; gap: 12px; }
  .gallery-filters { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-dialog figcaption { padding: 18px 20px; }
}
@media (max-width: 460px) {
  .gallery-filters { grid-template-columns: 1fr; }
}
