.note-overview {
  grid-template-columns: repeat(4, 1fr);
}

.note-photo-folder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  background: #eef6f4;
}

.note-photo-folder > div {
  display: grid;
  gap: 3px;
}

.note-photo-folder strong {
  color: var(--navy);
  font-size: 14px;
}

.note-photo-folder span {
  color: var(--muted);
  font-size: 12px;
}

.note-photo-folder button,
.photo-stage-toolbar a {
  flex: 0 0 auto;
  padding: 10px 13px;
  border: 1px solid var(--teal);
  background: var(--teal);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.photo-folder-viewer {
  width: min(1120px, calc(100vw - 28px));
  max-width: none;
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: #f3f7f6;
  box-shadow: 0 24px 70px rgba(7, 29, 43, 0.32);
}

.photo-folder-viewer > header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid #c9d8d5;
  background: #fff;
}

.photo-folder-viewer h2 {
  margin: 3px 0 0;
}

.photo-folder-body {
  padding: 20px;
}

.photo-folder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.photo-folder-grid figure {
  display: grid;
  gap: 7px;
  margin: 0;
}

.photo-folder-grid button {
  width: 100%;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid #b9cbc8;
  background: #dfe9e7;
  cursor: zoom-in;
}

.photo-folder-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.photo-folder-grid figcaption {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.photo-stage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.photo-folder-stage > img {
  display: block;
  width: 100%;
  height: min(68vh, 760px);
  object-fit: contain;
  background: #102f38;
}

.material-previews img {
  cursor: zoom-in;
}

@media (max-width: 800px) {
  .note-overview,
  .photo-folder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .note-overview,
  .photo-folder-grid {
    grid-template-columns: 1fr;
  }

  .note-photo-folder {
    align-items: stretch;
    flex-direction: column;
  }

  .note-photo-folder button {
    width: 100%;
  }

  .photo-folder-viewer {
    width: calc(100vw - 12px);
    max-height: 96vh;
  }

  .photo-folder-viewer > header,
  .photo-folder-body {
    padding: 14px;
  }

  .photo-folder-stage > img {
    height: 68vh;
  }
}
