body.photo-template .site-shell {
  grid-template-columns: 210px minmax(0, 960px);
  max-width: 1240px;
  gap: 54px;
}

.photo-home {
  width: 100%;
  min-width: 0;
}

.photo-simple-header {
  position: static;
  float: none;
  width: auto;
  min-height: 0;
  padding: 10px 0 44px;
  text-align: left;
  -webkit-font-smoothing: inherit;
}

.photo-simple-header h1 {
  margin: 0 0 12px;
  color: var(--site-text);
  font-family: inherit;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.photo-simple-header p {
  max-width: 520px;
  margin: 0;
  color: var(--site-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.photo-summary {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  color: var(--site-faint);
  font-size: 0.78rem;
}

.photo-summary span + span::before {
  content: "/";
  margin-right: 14px;
  color: var(--site-line);
}

.photo-map-section,
.photo-stories {
  position: static;
  float: none;
  width: auto;
  margin: 0;
  padding: 38px 0 0;
  border: 0;
  text-align: left;
  -webkit-font-smoothing: inherit;
}

.photo-map-section {
  margin-bottom: 54px;
}

.photo-simple-section-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: baseline;
  margin-bottom: 18px;
}

.photo-simple-section-header h2 {
  margin: 0;
  color: var(--site-text);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.photo-simple-section-header p {
  max-width: 320px;
  margin: 0;
  color: var(--site-faint);
  font-size: 0.78rem;
  line-height: 1.6;
  text-align: right;
}

.photo-map-shell {
  position: relative;
  overflow: hidden;
  background: var(--site-surface);
  border-radius: 2px;
}

.photo-map {
  width: 100%;
  height: 300px;
  background: var(--site-surface);
}

.photo-map .leaflet-tile-pane {
  filter: grayscale(0.9) saturate(0.45) contrast(0.94) brightness(1.03);
}

.photo-map .leaflet-control-container {
  opacity: 0.72;
}

.photo-map .leaflet-control-attribution {
  color: #737373;
  font-size: 10px;
}

.photo-map-marker {
  background: transparent;
  border: 0;
}

.photo-map-marker-dot {
  display: block;
  width: 10px;
  height: 10px;
  box-sizing: border-box;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #303030;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.22);
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.photo-map-marker.is-active .photo-map-marker-dot {
  background: var(--site-accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--site-accent) 18%, transparent);
  transform: scale(1.28);
}

.photo-map .leaflet-tooltip {
  padding: 4px 7px;
  border: 0;
  border-radius: 2px;
  color: #242424;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  font-size: 0.72rem;
}

.photo-map .leaflet-popup-content-wrapper,
.photo-map .leaflet-popup-tip {
  color: #242424;
  background: #fff;
  border-radius: 2px;
}

.photo-map-popup {
  width: 168px;
}

.photo-map-popup img {
  display: block;
  width: 100%;
  height: 96px;
  margin-bottom: 9px;
  object-fit: cover;
}

.photo-map-popup strong,
.photo-map-popup span,
.photo-map-popup a {
  display: block;
}

.photo-map-popup strong {
  margin-bottom: 2px;
  font-size: 0.9rem;
  font-weight: 600;
}

.photo-map-popup span {
  color: #737373;
  font-size: 0.74rem;
  line-height: 1.45;
}

.photo-map-popup a {
  margin-top: 8px;
  color: #222;
  font-size: 0.76rem;
}

.photo-albums-header {
  margin-bottom: 18px;
}

.photo-filter,
.photo-year-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.photo-filter button,
.photo-year-nav button {
  appearance: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--site-faint);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  line-height: 1.6;
}

.photo-filter button:hover,
.photo-filter button.active,
.photo-year-nav button:hover,
.photo-year-nav button.active {
  color: var(--site-text);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.photo-year-nav {
  margin: 0 0 28px;
}

.photo-year-nav span {
  margin-right: 3px;
  color: var(--site-faint);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.photo-story-card {
  grid-column: auto;
  min-width: 0;
  transition: opacity 0.16s ease;
}

.photo-story-card[hidden] {
  display: none;
}

.photo-story-card a {
  display: block;
  color: var(--site-text);
  text-decoration: none;
}

.photo-story-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--site-surface);
  border-radius: 2px;
}

.photo-story-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.01);
  transition: transform 0.28s ease, filter 0.28s ease;
}

.photo-story-card:hover .photo-story-image img,
.photo-story-card.map-active .photo-story-image img {
  transform: scale(1.018);
  filter: saturate(1.02) contrast(1.02);
}

.photo-story-card.map-active .photo-story-image {
  outline: 1px solid var(--site-accent);
  outline-offset: 4px;
}

.photo-story-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding-top: 11px;
}

.photo-story-info h3 {
  margin: 0 0 4px;
  color: var(--site-text);
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.photo-story-info p {
  margin: 0;
  color: var(--site-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.photo-story-meta {
  display: grid;
  gap: 2px;
  align-content: start;
  color: var(--site-faint);
  font-size: 0.72rem;
  line-height: 1.45;
  text-align: right;
  white-space: nowrap;
}

@media screen and (max-width: 960px) {
  body.photo-template .site-shell {
    max-width: none;
    gap: 36px;
  }

  .photo-story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 620px) {
  body.photo-template .site-shell {
    grid-template-columns: 1fr;
  }

  .photo-simple-header {
    padding-top: 0;
    padding-bottom: 34px;
  }

  .photo-simple-section-header {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .photo-simple-section-header p {
    max-width: none;
    text-align: left;
  }

  .photo-map {
    height: 260px;
  }

  .photo-story-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .photo-story-info {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .photo-story-meta {
    display: flex;
    gap: 12px;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo-map-marker-dot,
  .photo-story-image img,
  .photo-story-card {
    transition: none;
  }
}
