.wsnn-photo-archive {
  --wsnn-photo-black: #030303;
  --wsnn-photo-ink: #f7f7f7;
  --wsnn-photo-muted: #a7a7a7;
  --wsnn-photo-line: rgba(255, 255, 255, .12);
  --wsnn-photo-red: #e60012;
  min-height: 100vh;
  background: var(--wsnn-photo-black);
}

.wsnn-photo-archive .wsnn-photo-archive__main {
  padding-top: 0;
  background: var(--wsnn-photo-black);
  color: var(--wsnn-photo-ink);
}

.wsnn-photo-archive .site-header a,
.wsnn-photo-archive .main-navigation a,
.wsnn-photo-archive .masthead a,
.wsnn-photo-archive .global-nav a {
  color: inherit;
}

.wsnn-photo-archive .site-header a:hover,
.wsnn-photo-archive .main-navigation a:hover,
.wsnn-photo-archive .masthead a:hover,
.wsnn-photo-archive .global-nav a:hover {
  color: inherit;
}

.wsnn-photo-archive .wsnn-photo-hero {
  background: #030303;
  border-bottom: 1px solid var(--wsnn-photo-line);
}

.wsnn-photo-archive .wsnn-photo-hero .container {
  padding-top: 72px;
  padding-bottom: 46px;
}

.wsnn-photo-archive .wsnn-photo-hero__kicker {
  margin: 0 0 14px;
  color: var(--wsnn-photo-red);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.wsnn-photo-archive .wsnn-photo-hero h1 {
  max-width: 900px;
  margin: 0;
  color: #fff;
  font-size: 58px;
  font-weight: 950;
  line-height: .96;
  text-transform: uppercase;
}

.wsnn-photo-archive .wsnn-photo-hero p:last-child {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--wsnn-photo-muted);
  font-size: 16px;
  font-weight: 750;
}

.wsnn-photo-archive .wsnn-photo-filter {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(3, 3, 3, .88);
  border-bottom: 1px solid var(--wsnn-photo-line);
  backdrop-filter: blur(14px);
}

body.admin-bar .wsnn-photo-archive .wsnn-photo-filter {
  top: 32px;
}

.wsnn-photo-archive .wsnn-photo-filter .container {
  padding-top: 14px;
  padding-bottom: 14px;
}

.wsnn-photo-archive .wsnn-photo-filter__list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.wsnn-photo-archive .wsnn-photo-filter__list::-webkit-scrollbar {
  display: none;
}

.wsnn-photo-archive .wsnn-photo-filter button,
.wsnn-photo-archive .wsnn-photo-filter a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 13px;
  border: 1px solid var(--wsnn-photo-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.wsnn-photo-archive .wsnn-photo-filter button.is-active,
.wsnn-photo-archive .wsnn-photo-filter button:hover,
.wsnn-photo-archive .wsnn-photo-filter button:focus-visible,
.wsnn-photo-archive .wsnn-photo-filter a.is-active,
.wsnn-photo-archive .wsnn-photo-filter a:hover,
.wsnn-photo-archive .wsnn-photo-filter a:focus-visible {
  border-color: #fff;
  background: #fff;
  color: #050505;
}

.wsnn-photo-archive .wsnn-photo-grid-section {
  padding: 10px 0 82px;
}

.wsnn-photo-archive .wsnn-photo-grid {
  column-count: 3;
  column-gap: 4px;
}

.wsnn-photo-archive .wsnn-photo-grid--cards {
  display: block;
  column-count: 3;
  column-gap: 4px;
}

.wsnn-photo-archive .wsnn-photo-item {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 4px;
  overflow: hidden;
  break-inside: avoid;
  background: #070707;
  box-shadow: none;
}

.wsnn-photo-archive .wsnn-photo-card {
  display: inline-block;
  width: 100%;
  min-width: 0;
  margin: 0 0 4px;
  overflow: hidden;
  position: relative;
  break-inside: avoid;
  background: #070707;
  box-shadow: none;
}

.wsnn-photo-archive .wsnn-photo-card a {
  position: relative;
  display: block;
  min-height: 100%;
  color: #fff;
  outline-offset: 3px;
}

.wsnn-photo-archive .wsnn-photo-card img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(.96) contrast(1.04);
  transform: scale(1);
  transition: transform .38s ease, filter .38s ease;
}

.wsnn-photo-archive .wsnn-photo-item a {
  position: relative;
  display: block;
  color: #fff;
  outline-offset: 3px;
}

.wsnn-photo-archive .wsnn-photo-item img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(.96) contrast(1.04);
  transform: scale(1);
  transition: transform .38s ease, filter .38s ease;
}

.wsnn-photo-archive .wsnn-photo-card:nth-child(-n+3) img,
.wsnn-photo-archive .wsnn-photo-item:nth-child(-n+3) img {
  filter: brightness(.98) contrast(1.06);
}

.wsnn-photo-archive .wsnn-photo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 36%, rgba(0, 0, 0, .1) 58%, rgba(0, 0, 0, .82) 100%);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .3s ease, transform .3s ease;
}

.wsnn-photo-archive .wsnn-photo-overlay__content {
  width: 100%;
  transform: translateY(8px);
  transition: transform .3s ease;
}

.wsnn-photo-archive .wsnn-photo-category {
  display: inline-block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, .56);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.wsnn-photo-archive .wsnn-photo-overlay h2 {
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: 11px;
  font-weight: 950;
  line-height: 1.18;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.wsnn-photo-archive .wsnn-photo-overlay time {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, .48);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}

.wsnn-photo-archive .wsnn-photo-item a:hover img,
.wsnn-photo-archive .wsnn-photo-item a:focus-visible img,
.wsnn-photo-archive .wsnn-photo-card a:hover img,
.wsnn-photo-archive .wsnn-photo-card a:focus-visible img {
  transform: scale(1.055);
  filter: brightness(1.08) contrast(1.1) saturate(1.04);
}

.wsnn-photo-archive .wsnn-photo-item a:hover .wsnn-photo-overlay,
.wsnn-photo-archive .wsnn-photo-item a:focus-visible .wsnn-photo-overlay,
.wsnn-photo-archive .wsnn-photo-card a:hover .wsnn-photo-overlay,
.wsnn-photo-archive .wsnn-photo-card a:focus-visible .wsnn-photo-overlay {
  opacity: 1;
  transform: translateY(0);
}

.wsnn-photo-archive .wsnn-photo-item a:hover .wsnn-photo-overlay__content,
.wsnn-photo-archive .wsnn-photo-item a:focus-visible .wsnn-photo-overlay__content,
.wsnn-photo-archive .wsnn-photo-card a:hover .wsnn-photo-overlay__content,
.wsnn-photo-archive .wsnn-photo-card a:focus-visible .wsnn-photo-overlay__content {
  transform: translateY(0);
}

.wsnn-photo-archive .wsnn-photo-pagination {
  margin-top: 34px;
  color: #fff;
}

.wsnn-photo-single {
  --wsnn-photo-black: #030303;
  --wsnn-photo-ink: #f7f7f7;
  --wsnn-photo-muted: #a7a7a7;
  --wsnn-photo-line: rgba(255, 255, 255, .12);
  --wsnn-photo-red: #e60012;
  min-height: 100vh;
  background: var(--wsnn-photo-black);
}

.wsnn-photo-single .wsnn-photo-single__main {
  padding-top: 28px;
  background: var(--wsnn-photo-black);
  color: var(--wsnn-photo-ink);
}

.wsnn-photo-single {
  user-select: none;
}

.wsnn-photo-single img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}

.wsnn-photo-single .wsnn-photo-single-content {
  user-select: text;
}

.wsnn-photo-single .site-header a,
.wsnn-photo-single .main-navigation a,
.wsnn-photo-single .masthead a,
.wsnn-photo-single .global-nav a {
  color: inherit;
}

.wsnn-photo-single .site-header a:hover,
.wsnn-photo-single .main-navigation a:hover,
.wsnn-photo-single .masthead a:hover,
.wsnn-photo-single .global-nav a:hover {
  color: inherit;
}

.wsnn-photo-single .wsnn-photo-single-header .container {
  padding-top: 30px;
  padding-bottom: 24px;
}

.wsnn-photo-single .wsnn-photo-single-kicker {
  margin: 0 0 10px;
  color: var(--wsnn-photo-red);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.wsnn-photo-single .wsnn-photo-single-header h1 {
  max-width: 1040px;
  margin: 0;
  color: #fff;
  font-size: 50px;
  font-weight: 950;
  line-height: 1.02;
  text-transform: uppercase;
}

.wsnn-photo-single .wsnn-photo-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 14px;
  color: var(--wsnn-photo-muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.wsnn-photo-single .wsnn-photo-single-hero figure,
.wsnn-photo-single .wsnn-photo-single-frame {
  margin: 0;
}

.single-photo .wsnn-photo-single .wsnn-photo-single-hero .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px 16px;
}

.wsnn-photo-single .wsnn-photo-single-hero a {
  display: block;
  outline-offset: 3px;
}

.wsnn-photo-single .wsnn-photo-single-hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  background: #070707;
  filter: brightness(.98) contrast(1.04);
}

.wsnn-photo-single .wsnn-photo-single-copy .container {
  padding-top: 30px;
  padding-bottom: 10px;
}

.wsnn-photo-single .wsnn-photo-single-content {
  max-width: 720px;
  color: rgba(255, 255, 255, .72);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.8;
}

.wsnn-photo-single .wsnn-photo-single-related-slot {
  display: none;
}

.wsnn-photo-single .wsnn-photo-single-gallery .container {
  max-width: 1100px;
  margin: 56px auto 0;
  padding: 0 24px 82px;
}

.wsnn-photo-single .wsnn-photo-single-grid {
  column-count: 3;
  column-gap: 14px;
}

.wsnn-photo-single .wsnn-photo-single-frame {
  display: inline-block;
  width: 100%;
  margin-bottom: 18px;
  break-inside: avoid;
  overflow: hidden;
  background: #070707;
}

.wsnn-photo-single .wsnn-photo-single-frame a {
  position: relative;
  display: block;
  outline-offset: 3px;
}

.wsnn-photo-single .wsnn-photo-single-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: brightness(.96) contrast(1.04);
  transform: scale(1);
  transition: transform .38s ease, filter .38s ease;
}

.single-photo .wsnn-photo-caption {
  max-width: 900px;
  margin: 10px auto 0;
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .02em;
}

.wsnn-photo-single .wsnn-photo-single-frame-overlay {
  position: absolute;
  inset: 0;
  display: block;
  background: linear-gradient(180deg, rgba(0,0,0,0) 42%, rgba(0,0,0,.08) 68%, rgba(0,0,0,.42) 100%);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease;
}

.wsnn-photo-single .wsnn-photo-single-frame a:hover img,
.wsnn-photo-single .wsnn-photo-single-frame a:focus-visible img {
  transform: scale(1.045);
  filter: brightness(1.06) contrast(1.08) saturate(1.03);
}

.wsnn-photo-single .wsnn-photo-single-frame a:hover .wsnn-photo-single-frame-overlay,
.wsnn-photo-single .wsnn-photo-single-frame a:focus-visible .wsnn-photo-single-frame-overlay {
  opacity: 1;
  transform: translateY(0);
}

.single-photo .glightbox-container .gslide-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.single-photo .glightbox-container .gslide-image img {
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.wsnn-photo-archive .wsnn-photo-empty {
  padding: 44px 0 64px;
  color: var(--wsnn-photo-muted);
  font-size: 15px;
  font-weight: 750;
}

/*
 * Future photo experience extensions:
 * - Lightbox for focused viewing
 * - Infinite scroll for deeper archives
 * - Popularity sorting for high-engagement photo stories
 */

@media (min-width: 1400px) {
  .wsnn-photo-archive .wsnn-photo-grid,
  .wsnn-photo-archive .wsnn-photo-grid--cards {
    column-count: 4;
  }
}

@media (max-width: 1024px) {
  .wsnn-photo-archive .wsnn-photo-hero h1 {
    font-size: 46px;
  }

  .wsnn-photo-archive .wsnn-photo-grid {
    column-count: 2;
    column-gap: 4px;
  }

  .wsnn-photo-archive .wsnn-photo-grid--cards {
    column-count: 2;
    column-gap: 4px;
  }

  .wsnn-photo-single .wsnn-photo-single-grid {
    column-count: 2;
    column-gap: 12px;
  }

  .wsnn-photo-single .wsnn-photo-single-frame {
    margin-bottom: 16px;
  }
}

@media (max-width: 640px) {
  body.admin-bar .wsnn-photo-archive .wsnn-photo-filter {
    top: 46px;
  }

  .wsnn-photo-archive .wsnn-photo-hero .container {
    padding-top: 44px;
    padding-bottom: 34px;
  }

  .wsnn-photo-archive .wsnn-photo-hero h1 {
    font-size: 34px;
    line-height: 1.02;
  }

  .wsnn-photo-archive .wsnn-photo-hero p:last-child {
    font-size: 14px;
  }

  .wsnn-photo-archive .wsnn-photo-grid-section {
    padding-top: 10px;
  }

  .wsnn-photo-archive .wsnn-photo-grid {
    column-count: 1;
    column-gap: 4px;
  }

  .wsnn-photo-archive .wsnn-photo-grid--cards {
    column-count: 1;
  }

  .wsnn-photo-archive .wsnn-photo-item {
    margin-bottom: 4px;
  }

  .wsnn-photo-archive .wsnn-photo-overlay {
    padding: 16px;
    opacity: 1;
    transform: none;
  }

  .wsnn-photo-archive .wsnn-photo-overlay__content {
    transform: none;
  }

  .wsnn-photo-single .wsnn-photo-single-header .container {
    padding-top: 42px;
  }

  .wsnn-photo-single .wsnn-photo-single-header h1 {
    font-size: 32px;
  }

  .wsnn-photo-single .wsnn-photo-single-grid {
    column-count: 1;
  }

  .wsnn-photo-single .wsnn-photo-single-gallery .container {
    margin-top: 36px;
    padding-right: 16px;
    padding-bottom: 64px;
    padding-left: 16px;
  }

  .wsnn-photo-single .wsnn-photo-single-frame {
    margin-bottom: 32px;
  }

  .single-photo .wsnn-photo-caption {
    margin-top: 8px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wsnn-photo-archive .wsnn-photo-item img,
  .wsnn-photo-archive .wsnn-photo-card img,
  .wsnn-photo-archive .wsnn-photo-overlay,
  .wsnn-photo-archive .wsnn-photo-overlay__content,
  .wsnn-front-page .wsnn-photo-home-item img,
  .wsnn-front-page .wsnn-photo-home-overlay,
  .wsnn-photo-single .wsnn-photo-single-frame img,
  .wsnn-photo-single .wsnn-photo-single-frame-overlay {
    transition: none;
  }
}
