.gallery {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.shot {
  padding: 0;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 56px;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 100%;
}


.shot-media {
  grid-column: 2;
  justify-self: center;
  margin: 0;
  display: flex;
  justify-content: center;
  width: 100%;
}

.frame {
  position: relative;
  background: transparent;
  display: inline-block;
  width: 100%;
  max-width: 760px;
  overflow: hidden;
}

.frame img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.shot-meta {
  grid-column: 1;
  justify-self: center;
  flex: 0 0 300px;
  max-width: 300px;
  width: 100%;
  min-width: 0;
}


.meta-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.meta-header h2 {
  margin: 0;
  font-size: 20px;
}

.meta-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.exif {
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 13px;
}

.exif-row {
  display: flex;
  align-items: center;
  font-family: var(--mono);
  letter-spacing: 0.02em;
  min-width: 0;
}

.exif-row dt {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  order: 1;
  flex: 0 0 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exif-row::after {
  content: "................................................................................";
  order: 2;
  flex: 1 1 0;
  min-width: 0;
  margin: 0 10px;
  color: #bdbdbd;
  white-space: nowrap;
  overflow: hidden;
}

.exif-row dd {
  margin: 0;
  font-weight: 600;
  order: 3;
  flex: 0 0 auto;
  max-width: 27ch;
  min-width: 0;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta-foot {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.meta-foot .film-code {
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.meta-foot a {
  width: fit-content;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@media (max-width: 960px) {
  .shot-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }

  .shot-meta {
    display: flex;
    flex-direction: column;
    padding: 0;
    width: 100%;
    max-width: 100%;
  }

  .shot-media {
    order: 0;
  }

  .shot-meta {
    order: 1;
  }

  .meta-header {
    order: 0;
  }

  .exif {
    order: 1;
  }

  .meta-foot {
    order: 2;
  }

  .shot {
    padding: 0;
  }

  .frame {
    width: 100%;
    max-width: 100%;
  }

  .shot-grid {
    padding: 0;
  }
}

@media (max-width: 600px) {
  .shot {
    padding: 0;
  }

  .frame {
    width: 100%;
    max-width: 100%;
  }

  .shot-grid {
    padding: 0;
    gap: 18px;
  }
}
