:root {
  --surface: #fff8f5;
  --surface-bright: #fff8f5;
  --surface-lowest: #ffffff;
  --surface-low: #fff1e8;
  --surface-container: #feeadc;
  --surface-high: #f8e5d7;
  --surface-highest: #f3dfd1;
  --on-surface: #231a11;
  --on-surface-variant: #524440;
  --primary: #54291d;
  --primary-container: #6f3f32;
  --secondary: #6b5c4c;
  --secondary-container: #f1dcc8;
  --outline: #84736f;
  --outline-variant: #d7c2bd;
  --viewer-photo: #f3e9dc;
  --viewer-panel: #f8f2e9;
  --viewer-card: #f1dfcf;
  --viewer-border: #d8cabc;
  --serif: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--on-surface);
  background-color: #fff8f5;
  background-image: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noise"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100" height="100" filter="url(%23noise)" opacity="0.05"/%3E%3C/svg%3E');
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--primary-container);
  outline-offset: 4px;
}

.site-page {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.site-page::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  content: "";
  background: url("../ladoga-skerries-watercolor.webp") center / cover no-repeat;
  opacity: 0.4;
  mix-blend-mode: multiply;
  pointer-events: none;
}

@media (min-width: 761px) {
  .site-page::before {
    background-position: 80% center;
    opacity: 0.46;
    transform: scale(1.14);
  }
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 16px 64px;
  border-bottom: 1px solid rgba(215, 194, 189, 0.2);
  background: rgba(255, 248, 245, 0.8);
  box-shadow: 0 1px 3px rgba(84, 41, 29, 0.06);
  backdrop-filter: blur(12px);
}

.site-header__brand {
  color: var(--primary);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-header__nav a {
  padding: 4px 8px;
  border-bottom: 2px solid transparent;
  color: var(--on-surface-variant);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, background-color 180ms ease;
}

.site-header__nav a:first-child {
  border-bottom-color: var(--primary-container);
  color: var(--primary);
}

.site-header__nav a:hover {
  color: var(--primary);
  background: rgba(243, 223, 209, 0.3);
}

.site-shell {
  min-height: 100vh;
}

.site-sidebar {
  position: fixed;
  z-index: 40;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  width: 192px;
  flex-direction: column;
  padding: 32px 16px;
}

.site-sidebar nav {
  display: grid;
  gap: 8px;
}

.site-sidebar nav a {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--on-surface-variant);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.site-sidebar nav a svg,
.photo-card__badge svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.site-sidebar nav a.is-active,
.site-sidebar nav a:hover {
  color: var(--primary);
  background: rgba(111, 63, 50, 0.14);
  transform: translateX(4px);
}

.site-main {
  min-width: 0;
  min-height: 100vh;
  padding-top: 0;
  margin-left: 0;
}

.album-hero {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 48px;
  border-bottom: 1px solid rgba(215, 194, 189, 0.2);
}

.album-hero__content {
  position: relative;
  z-index: 2;
  width: min(896px, calc(100% - 96px));
  padding: 48px 64px;
  text-align: center;
}

.album-hero h1,
.album-hero__school,
.album-hero__class,
.album-hero__intro {
  text-shadow: 0 1px 0 rgba(255, 248, 245, 0.88), 0 0 28px rgba(255, 248, 245, 0.72);
}

.album-hero h1 {
  margin: 0 0 8px;
  color: var(--primary);
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.album-hero__school {
  margin: 0;
  color: var(--on-surface);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
}

.album-hero__class {
  margin: 4px 0 0;
  color: var(--on-surface-variant);
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  line-height: 1.4;
}

.album-hero__class::after {
  display: block;
  width: 96px;
  height: 1px;
  margin: 24px auto 0;
  content: "";
  background: rgba(215, 194, 189, 0.5);
}

.album-hero__intro {
  max-width: 672px;
  margin: 24px auto 0;
  color: var(--on-surface-variant);
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}

.album-hero__access,
.album-access-dialog__submit {
  border: 1px solid var(--primary-container);
  border-radius: 999px;
  color: #fffaf7;
  background: var(--primary-container);
  box-shadow: 0 8px 18px rgba(84, 41, 29, 0.18);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
}

.album-hero__access {
  margin-top: 28px;
  padding: 14px 22px;
}

.album-hero__access:hover,
.album-access-dialog__submit:hover {
  background: var(--primary);
}

.album-hero__visits {
  margin: 16px 0 0;
  color: var(--on-surface-variant);
  font-family: var(--sans);
  font-size: 13px;
  text-shadow: 0 1px 8px rgba(255, 248, 245, 0.95);
}

.photo-gallery {
  position: relative;
  z-index: 2;
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 100px 64px 96px;
  scroll-margin-top: 0;
}

.album-toolbar {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  justify-content: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--outline-variant);
  background: rgba(255, 248, 245, 0.96);
  box-shadow: 0 4px 18px rgba(84, 41, 29, 0.08);
}

.album-categories {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 10px;
}

.album-categories button {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--outline-variant);
  border-radius: 999px;
  color: var(--primary);
  background: rgba(255, 248, 245, 0.8);
  cursor: pointer;
  white-space: nowrap;
}

.album-categories button[aria-pressed="true"] {
  border-color: var(--primary-container);
  color: #fffaf7;
  background: var(--primary-container);
}

.album-empty {
  margin: 24px auto 64px;
  color: var(--on-surface-variant);
  text-align: center;
}

.album-actions {
  display: flex;
  justify-content: center;
  margin: 36px 0 0;
}

.album-actions button,
.photo-upload-dialog__actions button[type="submit"] {
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--primary-container);
  border-radius: 999px;
  color: #fffaf7;
  background: var(--primary-container);
  cursor: pointer;
}

.photo-upload-dialog {
  width: min(520px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  overflow: auto;
  padding: 28px;
  border: 1px solid var(--outline-variant);
  border-radius: 16px;
  color: var(--on-surface);
  background: var(--surface);
  box-shadow: 0 24px 64px rgba(35, 26, 17, 0.24);
}

.photo-upload-dialog::backdrop {
  background: rgba(35, 26, 17, 0.58);
}

.photo-upload-dialog form,
.photo-upload-dialog label {
  display: grid;
  gap: 8px;
}

.photo-upload-dialog form {
  gap: 18px;
}

.photo-upload-dialog h2 {
  margin: 0 0 6px;
  color: var(--primary);
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
}

.photo-upload-dialog input,
.photo-upload-dialog select {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--outline-variant);
  border-radius: 8px;
  color: var(--on-surface);
  background: #fff;
  font: inherit;
}

.photo-upload-dialog input[type="file"] {
  padding: 9px;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--primary);
  font-size: 13px;
}

.photo-upload-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.photo-upload-dialog__actions button[type="button"] {
  padding: 10px 16px;
  border: 0;
  color: var(--on-surface-variant);
  background: transparent;
  cursor: pointer;
}

.photo-grid {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.site-page[data-album-access="locked"] .photo-gallery {
  display: none;
}

.site-page[data-album-access="unlocked"] .album-hero {
  display: none;
}

.photo-card {
  min-width: 0;
  padding: 12px 12px 24px;
  border: 1px solid rgba(215, 194, 189, 0.3);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px -10px rgba(84, 41, 29, 0.08), 0 4px 10px -5px rgba(84, 41, 29, 0.04);
  backdrop-filter: blur(12px);
  transition: transform 500ms ease, box-shadow 500ms ease;
}

.photo-card:nth-child(1) {
  transform: rotate(-1deg);
}

.photo-card:nth-child(2) {
  margin-top: 32px;
  transform: rotate(1deg);
}

.photo-card:nth-child(3) {
  transform: rotate(-1deg);
}

.photo-card:nth-child(4) {
  margin-top: 16px;
  transform: rotate(2deg);
}

.photo-card--featured {
  grid-column: span 2;
}

.photo-card:hover,
.photo-card:focus-within {
  z-index: 3;
  transform: scale(1.035) rotate(0);
  box-shadow: 0 20px 38px -12px rgba(84, 41, 29, 0.18);
}

.photo-card__button {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: zoom-in;
}

.photo-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 16px;
  border: 4px solid rgba(255, 255, 255, 0.5);
  background: var(--surface-container);
}

.photo-card--portrait .photo-card__media {
  aspect-ratio: 3 / 4;
}

.photo-card--featured .photo-card__media {
  aspect-ratio: 16 / 9;
}

.photo-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: sepia(0.04) contrast(1.02);
}

.photo-card__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  color: var(--on-surface-variant);
  text-align: center;
}

.photo-card__body {
  position: relative;
  display: grid;
  width: 100%;
  gap: 4px;
  text-align: center;
}

.photo-card__body strong {
  color: var(--on-surface);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.photo-card__meta {
  color: var(--on-surface-variant);
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  line-height: 1.4;
}

.photo-card__views {
  color: var(--on-surface-variant);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.4;
}

.photo-card__badge {
  position: absolute;
  top: -52px;
  right: -4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border: 1px solid rgba(84, 41, 29, 0.62);
  color: #3f1d16;
  background: rgba(255, 238, 224, 0.98);
  box-shadow: 0 3px 10px rgba(84, 41, 29, 0.18);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.2;
  transform: rotate(3deg);
  backdrop-filter: blur(4px);
}

.album-access-dialog {
  width: min(440px, calc(100% - 32px));
  padding: 0;
  border: 1px solid rgba(111, 63, 50, 0.35);
  border-radius: 6px;
  color: var(--on-surface);
  background: var(--surface-bright);
  box-shadow: 0 28px 80px rgba(35, 26, 17, 0.4);
}

.album-access-dialog::backdrop {
  background: rgba(35, 26, 17, 0.72);
  backdrop-filter: blur(5px);
}

.album-access-dialog__card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 34px;
}

.album-access-dialog__close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  color: var(--on-surface-variant);
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.album-access-dialog__eyebrow,
.album-access-dialog__text,
.album-access-dialog__error,
.album-access-dialog h2 {
  margin: 0;
}

.album-access-dialog__eyebrow {
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.album-access-dialog h2 {
  color: var(--primary);
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.1;
}

.album-access-dialog__text {
  color: var(--on-surface-variant);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.45;
}

.album-access-dialog label {
  margin-bottom: -7px;
  color: var(--on-surface);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.album-access-dialog input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--outline-variant);
  border-radius: 2px;
  color: var(--on-surface);
  background: #fff;
  font: inherit;
}

.album-access-dialog__error {
  min-height: 18px;
  color: #9f2e23;
  font-size: 13px;
  line-height: 1.3;
}

.album-access-dialog__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 4px;
}

.album-access-dialog__cancel {
  padding: 10px 8px;
  border: 0;
  color: var(--primary);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.album-access-dialog__submit {
  padding: 12px 16px;
}

.photo-card__badge svg {
  width: 14px;
  height: 14px;
}

.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 176px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 36px 56px 36px 248px;
  border-top: 1px solid rgba(215, 194, 189, 0.3);
  color: var(--on-surface-variant);
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
  backdrop-filter: blur(12px);
}

.site-footer p {
  margin: 0;
  color: var(--primary);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1.35;
}

.site-footer span {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

.site-footer a {
  margin-top: 8px;
  color: var(--on-surface-variant);
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  line-height: 1.4;
  text-underline-offset: 4px;
}

.lightbox {
  width: min(1440px, calc(100% - 40px));
  max-width: none;
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 1px solid var(--viewer-border);
  border-radius: 2px;
  color: var(--on-surface);
  background: var(--viewer-panel);
  box-shadow: 0 34px 110px rgba(35, 26, 17, 0.55);
}

.lightbox::backdrop {
  background: rgba(35, 26, 17, 0.88);
  backdrop-filter: blur(8px);
}

.lightbox__panel {
  max-height: calc(100vh - 42px);
  overflow: auto;
}

.lightbox__header {
  position: sticky;
  z-index: 4;
  top: 0;
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--viewer-border);
  background: var(--viewer-panel);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lightbox__close {
  padding: 8px 2px;
  border: 0;
  color: var(--primary);
  background: transparent;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.lightbox__header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lightbox__delete,
.lightbox__delete-own,
.memory-panel__delete {
  padding: 6px 0;
  border: 0;
  color: var(--on-surface-variant);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lightbox__action-error {
  margin: 0;
  padding: 10px 20px;
  color: #8a241c;
  background: #fff1e8;
  font-size: 13px;
}

.lightbox__views {
  margin: 12px 0 0;
  color: var(--on-surface-variant);
  font-family: var(--sans);
  font-size: 13px;
  text-align: center;
}

.memory-panel__delete {
  margin-top: 8px;
}

.memory-panel__error {
  display: block;
  margin-top: 6px;
  color: #8a241c;
  font-size: 11px;
}

.lightbox__body {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(340px, 0.72fr);
}

.lightbox__photo-pane {
  min-width: 0;
  padding: clamp(20px, 3vw, 42px);
  background: var(--viewer-photo);
}

.lightbox__stage {
  display: grid;
  align-items: center;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: clamp(6px, 1.5vw, 20px);
}

.lightbox__stage figure {
  display: grid;
  min-width: 0;
  justify-items: center;
  margin: 0;
}

.lightbox__stage img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 250px);
  border: 12px solid rgba(255, 255, 255, 0.9);
  object-fit: contain;
  box-shadow: 0 20px 50px rgba(84, 41, 29, 0.22);
}

.lightbox__stage figcaption {
  margin-top: 16px;
  color: var(--on-surface-variant);
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
}

.lightbox__download {
  max-width: 340px;
  margin: 20px;
  color: var(--on-surface-variant);
  text-align: center;
}

.lightbox__download a {
  display: block;
  margin-top: 8px;
  color: var(--primary);
}

.lightbox__arrow {
  width: 46px;
  height: 68px;
  padding: 0;
  border: 0;
  color: var(--primary);
  background: transparent;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 300;
  line-height: 1;
}

.lightbox__arrow:disabled {
  opacity: 0.18;
  cursor: default;
}

.lightbox__summary {
  max-width: 760px;
  margin: 28px auto 0;
  padding-left: 16px;
  border-left: 2px solid var(--primary-container);
}

.lightbox__summary strong,
.memory-panel__heading span {
  color: var(--primary);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lightbox__summary p {
  margin: 9px 0 0;
  color: var(--on-surface-variant);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
}

.memory-panel {
  min-width: 0;
  padding: 30px 28px 40px;
  border-left: 1px solid var(--viewer-border);
  background: var(--viewer-panel);
}

.memory-panel__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--viewer-border);
}

.memory-panel__heading h2 {
  margin: 5px 0 0;
  color: var(--primary);
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
}

.memory-panel__heading > strong {
  color: var(--on-surface-variant);
  font-family: var(--sans);
  font-size: 11px;
  white-space: normal;
}

.memory-panel__list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.memory-panel blockquote {
  margin: 0;
  padding: 15px 16px;
  border: 1px solid var(--viewer-border);
  background: var(--viewer-card);
}

.memory-panel cite {
  color: var(--primary);
  font-family: var(--sans);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.memory-panel blockquote p {
  margin: 8px 0 0;
  color: var(--on-surface-variant);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
}

.memory-panel__more {
  width: 100%;
  min-height: 44px;
  margin-top: 16px;
  border: 1px solid var(--primary-container);
  color: var(--primary);
  background: transparent;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.comment-form {
  display: grid;
  gap: 10px;
  width: min(100%, 340px);
  margin: 24px auto 0;
  padding: 18px;
  border: 1px solid var(--viewer-border);
  border-radius: 8px;
  background: #fffdf9;
}

.comment-form h3 {
  margin: 0;
  color: var(--primary);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}

.comment-form label {
  display: grid;
  gap: 7px;
  font-size: 13px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--viewer-border);
  border-radius: 7px;
  color: var(--on-surface);
  background: #fff;
  font: inherit;
}

.comment-form textarea {
  min-height: 68px;
  resize: vertical;
}

.comment-form button {
  min-height: 40px;
  border: 1px solid var(--primary-container);
  border-radius: 999px;
  color: #fffaf7;
  background: var(--primary-container);
  cursor: pointer;
}

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

  .photo-card--featured {
    grid-column: span 2;
  }

  .lightbox__body {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 16px;
  }

  .site-header {
    position: sticky;
    display: grid;
    gap: 12px;
    padding: 16px 18px 12px;
  }

  .site-header__brand {
    text-align: center;
  }

  .site-header__nav {
    justify-content: center;
    gap: 16px;
  }

  .site-header__nav a {
    padding: 4px 8px;
    font-size: 11px;
  }

  .site-sidebar {
    display: none;
  }

  .site-main {
    padding-top: 0;
    margin-left: 0;
  }

  .album-hero {
    min-height: 100vh;
    margin-bottom: 48px;
  }

  .album-hero__content {
    width: calc(100% - 24px);
    padding: 42px 20px;
  }

  .album-hero h1 {
    font-size: clamp(36px, 10vw, 42px);
  }

  .album-hero__school {
    font-size: 21px;
  }

  .album-hero__intro {
    font-size: 16px;
  }

  .photo-gallery {
    padding: 84px 18px 72px;
  }

  .album-toolbar {
    padding: 10px 18px;
  }

  .album-categories {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .album-categories button {
    padding: 10px 8px;
    font-size: 13px;
  }

  .photo-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .photo-card,
  .photo-card:nth-child(n) {
    margin-top: 0;
    transform: none;
  }

  .photo-card--featured {
    grid-column: auto;
  }

  .photo-card--featured .photo-card__media {
    aspect-ratio: 4 / 3;
  }

  .site-footer {
    min-height: 192px;
    padding: 36px 24px;
  }

  .site-footer p {
    font-size: 19px;
  }

  .site-footer span {
    font-size: 14px;
  }

  .lightbox {
    width: 100%;
    height: 100%;
    max-height: none;
    border: 0;
  }

  .lightbox__panel {
    max-height: 100vh;
  }

  .lightbox__header {
    min-height: 55px;
    padding: 8px 14px;
  }

  .lightbox__header--editable {
    flex-wrap: wrap;
  }

  .lightbox__header--editable .lightbox__header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .lightbox__body {
    display: block;
  }

  .lightbox__photo-pane {
    padding: 22px 14px 28px;
  }

  .lightbox__stage {
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    gap: 2px;
  }

  .lightbox__stage img {
    max-height: 50vh;
    border-width: 6px;
  }

  .lightbox__arrow {
    width: 28px;
    height: 58px;
    font-size: 42px;
  }

  .lightbox__summary {
    margin-top: 24px;
  }

  .memory-panel {
    padding: 30px 18px 48px;
    border-top: 1px solid var(--viewer-border);
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
