.sf-gallery {
  background: #101315;
  color: #f6f1e9;
  padding-block: clamp(2.75rem, 6vw, 5rem);
  scroll-margin-top: 6rem;
}
.sf-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem 2rem;
  margin-bottom: 1.4rem;
}
.sf-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  line-height: 1.14;
}
.sf-gallery a.sf-all, .sf-copy a {
  color: #f0c582;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.sf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: clamp(.75rem, 2vw, 1.25rem);
}
.sf-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #1a1d1f;
  border: 1px solid #4b4031;
  border-radius: .75rem;
}
.sf-card[hidden], .sf-more[hidden] { display: none; }
.sf-image {
  display: grid;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #151719;
}
.sf-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.sf-card[data-foto-kind="foto"] img,
.sf-dialog[data-foto-kind="foto"] img {
  filter: brightness(1.045) contrast(1.035) saturate(1.025);
}
.sf-copy { padding: .95rem 1rem 1.1rem; }
.sf-copy p, .sf-status {
  margin: 0 0 .4rem;
  color: #cdc6bb;
  font-size: .9rem;
}
.sf-copy h3 { margin: 0 0 .5rem; font-size: 1.02rem; }
.sf-copy a { font-size: .9rem; }
.sf-filters {
  display: none;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: .8rem;
}
.sf-gallery[data-foto-enabled] .sf-filters { display: flex; }
.sf-filters button, .sf-more, .sf-close {
  min-height: 2.75rem;
  padding: .4rem .85rem;
  border: 1px solid #896e49;
  border-radius: .45rem;
  color: #f6f1e9;
  background: #222426;
  font: inherit;
  cursor: pointer;
}
.sf-filters [aria-pressed="true"] {
  border-color: #eac58c;
  color: #151719;
  background: #eac58c;
}
.sf-more { display: block; margin: 1.5rem auto 0; }
.sf-gallery :focus-visible, .sf-dialog :focus-visible {
  outline: 2px solid #ffd193;
  outline-offset: 3px;
}
.sf-image:focus-visible { outline-offset: -4px; }
.sf-dialog {
  width: min(62rem, calc(100% - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  border: 1px solid #896e49;
  border-radius: .75rem;
  padding: 1rem;
  color: #f6f1e9;
  background: #16191a;
}
.sf-dialog::backdrop { background: rgb(0 0 0 / .84); }
.sf-dialog img {
  display: block;
  width: 100%;
  height: min(72dvh, 42rem);
  object-fit: contain;
}
.sf-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
}
.sf-dialog-head p { margin: 0; }
