.about-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.about-container .page-header {
  margin-bottom: clamp(16px, 2.5vw, 24px);
}

.about-ornament {
  --ornament-width: 100%;
  --ornament-icon-size: 24px;
  --ornament-gap: 18px;
  --ornament-top: 0;
  --ornament-center: 12px;
  position: relative;
  width: min(160px, 65%);
  height: 24px;
  margin: clamp(24px, 4vw, 36px) auto 0;
  color: var(--gold);
}

.about-slogan {
  margin: 20px auto 0;
  max-width: 620px;
  color: var(--brown);
  font: 400 clamp(29px, 5vw, 42px)/1.25 var(--display-font);
  text-align: center;
  text-wrap: balance;
}

.about-slogan-accent {
  color: var(--gold);
}

@media (width > 950px) {
  .about-content { gap: 20px; }
}

@media (width > 950px) and (pointer: fine), (width > 950px) and (pointer: none), (width > 1440px) {
  .about-container .page-header { margin-bottom: 18px; }
  .about-content { gap: 14px; }
  .about-ornament { margin-top: 20px; }
  .about-slogan { margin-top: 12px; }
}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
  width: min(100%, 760px);
  margin: clamp(20px, 3vw, 30px) auto 0;
}

.about-gallery-item {
  position: relative;
  min-width: 0;
  margin: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
}

.about-gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 2px solid var(--panel-border-strong);
  border-radius: inherit;
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.25);
  opacity: var(--photo-highlight, 0);
  pointer-events: none;
}

.about-gallery-item:has(.about-gallery-photo:is(:active, :focus-visible)),
.about-gallery-item.is-pressed {
  --photo-highlight: 1;
}

.about-gallery-photo {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  cursor: pointer;
}

.about-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  transition: transform 420ms ease;
}

@media (prefers-reduced-motion: no-preference) {
  .about-gallery-item::after {
    transition: opacity 170ms ease;
  }
}

@media (hover: hover) and (pointer: fine) {
  .about-gallery-item:hover {
    --photo-highlight: 1;
  }

  .about-gallery-item:hover img {
    transform: scale(1.045);
  }
}

.about-gallery-item:not(:first-child) img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}

@media (width > 950px) and (pointer: fine), (width > 950px) and (pointer: none), (width > 1440px) {
  .about-gallery {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
    align-items: stretch;
    width: 100%;
    aspect-ratio: 3.3;
    gap: 16px;
  }

  .about-gallery-item {
    min-height: 0;
  }

  .about-gallery-item:nth-child(2) {
    order: -1;
  }

  .about-gallery .about-gallery-item img {
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
  }
}

@media (max-width: 950px), (max-width: 1440px) and (pointer: coarse) {
  .about-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    width: min(100%, 480px);
    gap: 8px;
  }

  .about-gallery-item:first-child {
    grid-column: 1 / -1;
    width: min(100%, 390px);
    justify-self: center;
  }
}

@media (max-width: 600px) {
  .about-gallery { gap: 6px; }
}
