/* Quieter, editorial controls for the curated photographic portfolio. */
/* Consistent, edge-to-edge series previews with per-album focal positions. */
.album-cover {
  overflow: hidden;
}
.album-cover img {
  object-position: var(--cover-position, 50% 50%);
}
.album-catalog .album-cover,
.related-grid .album-cover,
.selected-grid > .album-card:not(.is-featured) .album-cover {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: transparent;
}
.album-catalog .album-cover img,
.related-grid .album-cover img,
.selected-grid > .album-card:not(.is-featured) .album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .album-cover img {
    transform: scale(1);
    transform-origin: center;
    transition: transform 650ms cubic-bezier(.2, .65, .3, 1), opacity 250ms ease;
  }
  .album-cover:hover img {
    transform: scale(1.03);
  }
}
/* Album contact sheet: complete frames, row-by-row reading order. */
.story-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  max-width: none;
  gap: 30px 28px;
  margin-top: 10px;
}
.story-gallery .gallery-item {
  width: 100%;
  max-width: none;
  min-width: 0;
  align-self: start;
}
.story-gallery .photo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
}
.story-gallery .photo img {
  width: 100%;
  height: 100%;
  max-width: var(--photo-width);
  max-height: var(--photo-height);
  object-fit: contain;
}
.story-gallery .caption {
  gap: 8px;
  padding-top: 8px;
  font-size: 12px;
}
.story-gallery .caption-meta {
  flex-shrink: 0;
  margin-left: auto;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .story-gallery .photo { perspective: 900px; perspective-origin: 50% 50%; }
  .story-gallery .photo img {
    transform-origin: 50% 50%;
    transform: none;
    transition: transform 360ms cubic-bezier(.2, .65, .3, 1);
    backface-visibility: hidden;
  }
  .story-gallery .photo.is-floating img {
    transform: rotateX(var(--photo-tilt-x, 0deg)) rotateY(var(--photo-tilt-y, 0deg));
    transition-duration: 110ms;
    will-change: transform;
  }
}
@media (max-width: 1000px) {
  .story-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 22px; }
}
@media (max-width: 700px) {
  .story-gallery { gap: 22px 12px; margin-top: 0; }
  .story-gallery .photo { aspect-ratio: 1; }
  .story-gallery .portrait-item .photo { aspect-ratio: 2 / 3; }
}
@media (max-width: 359px) {
  .story-gallery { grid-template-columns: 1fr; }
  .story-gallery .photo { aspect-ratio: 4 / 3; }
}
.catalog-controls {
  border-top: 0;
  padding-top: 16px;
}
.filters {
  gap: 4px 15px;
}
.filter {
  min-height: 44px;
  padding: 9px 5px 7px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none;
  justify-content: center;
  gap: 7px;
}
.filter:hover {
  border-bottom-color: var(--muted);
}
.filter.is-active {
  background: none;
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.filter span {
  opacity: .62;
}
@media (max-width: 700px) {
  .filters { gap: 1px 13px; }
  .filter { padding: 9px 4px 7px; }
}
