.notice-grid {
  list-style: none;
  padding: 0;
  columns: 2;
  column-gap: 2em;
  li {
    break-inside: avoid;
    padding: 0.25em 0;
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    color: inherit;
    &:hover {
      background-color: #d9d9d9;
    }
  }
}

.notice-fields {
  dt {
    margin-top: 1em;
    font-weight: bold;
    text-transform: lowercase;
    &.admin {
      color: var(--color-red);
    }
  }
  dd {
    margin: 0;
  }
}

.notice-nav {
  display: flex;
  justify-content: space-between;
  margin: 1.5em 0;
}

form.notice-edit {
  .form-row {
    label {
      width: 20%;
    }
    input, select, textarea {
      box-sizing: border-box;
      width: 80%;
    }
    textarea {
      font-family: inherit;
      resize: vertical;
    }
  }
}

.notice-links {
  text-align: center;
}

.gallery-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1em;
  margin: 1em 0;
  a, .disabled {
    display: inline-flex;
    padding: 0.25em;
  }
  .disabled {
    opacity: 0.3;
  }
  form {
    display: flex;
    gap: 0.5em;
  }
  input[type='number'] {
    width: 5em;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.gallery-viewer {
  position: relative;
  .gallery-tools {
    position: absolute;
    top: 0.5em;
    left: 0.5em;
    z-index: 1;
    display: flex;
    gap: 0.25em;
    button {
      display: inline-flex;
      padding: 0.35em;
      cursor: pointer;
    }
  }
  .gallery-canvas {
    height: 70vh;
    background-color: #222;
    img {
      max-width: 100%;
    }
  }
  &:fullscreen .gallery-canvas {
    height: 100vh;
  }
}

.notice-photos {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  margin: 1.5em 0;
  li {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 200px;
    font-size: 0.85em;
    text-align: center;
  }
  img {
    display: block;
    max-width: 100%;
    height: auto;
  }
}

.gallery-legend {
  text-align: center;
  font-style: italic;
}

form.photo-edit .form-row {
  label {
    width: 35%;
  }
  input:not([type='checkbox']), select {
    box-sizing: border-box;
    width: 62%;
  }
}
