/* =========================================================
   7px.pl - Photo view v3.5
   Immersive single-photo layout. Scoped to /p/{web_id}.
   ========================================================= */

html.photo-view-shell {
  --photo-rail: 76px;
  --photo-content-max: 1380px;
  background: var(--brand-bg);
}

html.photo-view-shell.collab-side-expanded {
  --photo-rail: 260px;
}

html.photo-view-shell,
html.photo-view-shell body {
  min-height: 100%;
}

html.photo-view-shell body,
html.photo-view-shell .wo-board,
html.photo-view-shell .wo-content,
html.photo-view-shell .wo-gridwrap,
html.photo-view-shell .wo-footer {
  background: var(--brand-bg);
}

html.photo-view-shell .wo-board {
  height: auto !important;
  min-height: 100svh !important;
  overflow: visible !important;
}

/* Header lies over the photo stage. */
html.photo-view-shell .wo-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 80;
  background: linear-gradient(to bottom, rgba(4, 6, 9, .74), rgba(4, 6, 9, 0));
  border: 0;
  color: #fff;
}

html.photo-view-shell .wo-header-iconbtn,
html.photo-view-shell .wo-theme-btn,
html.photo-view-shell .wo-header-search i {
  color: #fff !important;
}

html.photo-view-shell .wo-header-iconbtn:hover,
html.photo-view-shell .wo-theme-btn:hover {
  background: #15191f !important;
  color: #fff !important;
}

html.photo-view-shell .wo-header-avatar {
  border-color: rgba(255, 255, 255, .34) !important;
}

html.photo-view-shell .wo-side-toggle {
  display: inline-flex !important;
}

html.photo-view-shell .wo-content {
  overflow: visible !important;
}

html.photo-view-shell .wo-gridwrap,
html.photo-view-shell .wo-gridwrap-cols-1,
html.photo-view-shell .wo-gridwrap-cols-2,
html.photo-view-shell .wo-gridwrap-cols-3 {
  grid-template-columns: var(--photo-rail) minmax(0, 1fr) !important;
  min-width: 0;
  background: transparent;
  transition: grid-template-columns .2s ease;
}

/* Icon-only rail, same interaction as directory/user profiles. */
html.photo-view-shell .wo-gridwrap > aside.wo-col {
  position: relative;
  z-index: 70;
  width: var(--photo-rail);
  min-width: 0;
  padding: 86px 8px 18px !important;
  background: linear-gradient(to right, rgba(4, 6, 9, .86), rgba(4, 6, 9, .36), transparent) !important;
  border: 0 !important;
  color: #fff;
  transition: width .2s ease, background-color .2s ease;
}

html.photo-view-shell.collab-side-expanded .wo-gridwrap > aside.wo-col {
  background: #11151b !important;
  border-right: 1px solid #2b3039 !important;
}

html.photo-view-shell .wo-left-sticky {
  width: 100%;
  overflow: visible;
}

html.photo-view-shell .wo-logo {
  width: 100%;
  margin: 4px 0 14px;
}

html.photo-view-shell .wo-logo-link {
  min-height: 52px;
  padding: 4px 0;
}

html.photo-view-shell .wo-logo-img {
  width: 44px !important;
  height: 44px !important;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 2px 12px rgba(0, 0, 0, .5)) !important;
  transition: width .2s ease, height .2s ease;
}

html.photo-view-shell.collab-side-expanded .wo-logo-img {
  width: 156px !important;
  height: 72px !important;
}

html.photo-view-shell .wo-side-nav {
  display: grid !important;
  gap: 4px;
  margin: 0;
  padding: 0;
  overflow: visible !important;
  max-height: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

html.photo-view-shell .wo-side-link {
  position: relative;
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #fff !important;
  font-size: 0;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .7);
  transition: width .2s ease, padding .2s ease, background-color .15s ease;
}

html.photo-view-shell .wo-side-link i {
  width: 22px;
  flex: 0 0 22px;
  color: #fff !important;
  font-size: 16px;
  text-align: center;
}

html.photo-view-shell .wo-side-link .wo-side-mini {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border-color: rgba(255, 255, 255, .34);
}

html.photo-view-shell .wo-side-link:hover,
html.photo-view-shell .wo-side-link.wo-is-active {
  background: #15191f;
  color: #fff !important;
}

html.photo-view-shell .wo-side-link.wo-is-active::before {
  left: 0;
  width: 2px;
  height: 24px;
}

html.photo-view-shell .wo-side-subtitle {
  display: none;
}

html.photo-view-shell.collab-side-expanded .wo-side-nav {
  gap: 3px;
  padding: 0 6px;
}

html.photo-view-shell.collab-side-expanded .wo-side-link {
  width: 100%;
  justify-content: flex-start;
  gap: 12px;
  margin: 0;
  padding: 0 14px;
  color: rgba(255, 255, 255, .84) !important;
  font-size: 13px;
  text-shadow: none;
}

html.photo-view-shell.collab-side-expanded .wo-side-link:hover,
html.photo-view-shell.collab-side-expanded .wo-side-link.wo-is-active {
  background: #1b2029;
  color: #fff !important;
}

html.photo-view-shell.collab-side-expanded .wo-side-subtitle {
  display: block;
  margin: 14px 14px 7px;
  color: #7f8998;
  font-size: 9px;
}

/* Page shell */
html.photo-view-shell .photo-page {
  min-width: 0;
  grid-column: 2;
  color: var(--brand-text);
}

html.photo-view-shell .photo-stage {
  position: relative;
  width: calc(100% + var(--photo-rail));
  min-height: 100svh;
  margin-left: calc(-1 * var(--photo-rail));
  padding: max(84px, calc(var(--wo-header-h) + 18px)) 34px 36px calc(var(--photo-rail) + 34px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #06080b;
  transition: width .2s ease, margin-left .2s ease, padding-left .2s ease;
}

html.photo-view-shell .photo-stage__backdrop {
  position: absolute;
  inset: -40px;
  z-index: -3;
  background-image: var(--photo-stage-image);
  background-size: cover;
  background-position: center;
  filter: blur(34px) saturate(.84);
  opacity: .48;
  transform: scale(1.1);
}

html.photo-view-shell .photo-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3, 5, 8, .76) 0%, rgba(3, 5, 8, .18) 42%, rgba(3, 5, 8, .34) 100%),
    linear-gradient(to bottom, rgba(3, 5, 8, .18) 0%, rgba(3, 5, 8, .08) 50%, rgba(3, 5, 8, .9) 100%);
}

html.photo-view-shell .photo-stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 130px;
  z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--brand-bg));
  pointer-events: none;
}

html.photo-view-shell .photo-stage__breadcrumbs {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 9px;
  align-self: start;
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
}

html.photo-view-shell .photo-stage__breadcrumbs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .84) !important;
}

html.photo-view-shell .photo-stage__breadcrumbs a:hover {
  color: var(--brand-accent) !important;
}

html.photo-view-shell .photo-stage__viewer {
  position: relative;
  z-index: 3;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 18px 0 150px;
}

html.photo-view-shell .photo-viewer {
  width: 100%;
  min-width: 0;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

html.photo-view-shell .photo-viewer__media,
html.photo-view-shell .wo-photo-media {
  position: relative;
  width: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  background: transparent !important;
  overflow: visible;
}

html.photo-view-shell .photo-viewer__media > img,
html.photo-view-shell .wo-photo-media > img {
  width: auto !important;
  max-width: min(100%, 1320px) !important;
  height: auto !important;
  max-height: calc(100svh - 215px) !important;
  object-fit: contain !important;
  display: block;
  background: transparent !important;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .38);
}

html.photo-view-shell .wo-photo-media.is-expanded > img {
  max-height: none !important;
  max-width: 100% !important;
}

html.photo-view-shell .photo-viewer__nav {
  position: absolute;
  top: 50%;
  z-index: 8;
  transform: translateY(-50%);
}

html.photo-view-shell .photo-viewer__nav--left { left: 2px; }
html.photo-view-shell .photo-viewer__nav--right { right: 2px; }

html.photo-view-shell .photo-viewer__tools {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: auto;
  z-index: 9;
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

html.photo-view-shell .wo-toolbtn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #11151b;
  color: #fff !important;
  box-shadow: none;
  backdrop-filter: none;
}

html.photo-view-shell .wo-toolbtn:hover {
  background: #1c222b;
  border-color: rgba(255, 255, 255, .38);
  transform: translateY(-1px);
}

html.photo-view-shell .wo-toolbtn.is-disabled {
  opacity: .25;
  pointer-events: none;
}

html.photo-view-shell .photo-stage__caption {
  position: absolute;
  z-index: 6;
  left: calc(var(--photo-rail) + 34px);
  right: 34px;
  bottom: 56px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  color: #fff;
  transition: left .2s ease;
}

html.photo-view-shell .photo-stage__identity {
  min-width: 0;
  max-width: min(760px, 64vw);
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 17px;
  align-items: center;
}

html.photo-view-shell .photo-stage__avatar {
  width: 66px;
  height: 66px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .75);
  border-radius: 9px;
  background: #11151b;
}

html.photo-view-shell .photo-stage__avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

html.photo-view-shell .photo-stage__author-copy {
  min-width: 0;
}

html.photo-view-shell .photo-stage__kicker,
html.photo-view-shell .photo-side-kicker,
html.photo-view-shell .photo-section-heading > span {
  display: block;
  margin-bottom: 5px;
  color: var(--brand-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

html.photo-view-shell .photo-stage h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 4.5vw, 68px);
  font-weight: 950;
  letter-spacing: -.055em;
  line-height: .98;
  text-wrap: balance;
  text-shadow: 0 3px 24px rgba(0, 0, 0, .45);
}

html.photo-view-shell .photo-stage__authorline {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  flex-wrap: wrap;
}

html.photo-view-shell .photo-stage__authorline a {
  color: #fff !important;
  font-weight: 800;
}

html.photo-view-shell .photo-stage__authorline .wo-icon-stack {
  color: var(--brand-accent);
}

html.photo-view-shell .photo-stage__actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

html.photo-view-shell .photo-action {
  min-height: 44px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 8px;
  background: #11151b;
  color: #fff !important;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: none;
}

html.photo-view-shell .photo-action:hover {
  background: #1c222b;
  border-color: #4a5260;
  color: #fff !important;
  transform: translateY(-1px);
}

html.photo-view-shell .photo-action--primary {
  border-color: transparent;
  background: var(--brand-accent);
  color: #111 !important;
}

html.photo-view-shell .photo-action--primary:hover {
  background: var(--brand-accent-hover);
  color: #111 !important;
}

html.photo-view-shell .photo-action--icon {
  width: 44px;
  padding: 0;
}

html.photo-view-shell .photo-action--full {
  width: 100%;
}

html.photo-view-shell .photo-stage__metrics {
  position: absolute;
  z-index: 7;
  right: 34px;
  top: 84px;
  display: flex;
  align-items: center;
  gap: 8px;
}

html.photo-view-shell .photo-stage__metrics > span,
html.photo-view-shell .photo-stage__metrics > a {
  min-height: 36px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  background: #11151b;
  color: rgba(255, 255, 255, .84) !important;
  font-size: 11px;
  font-weight: 650;
}

html.photo-view-shell .photo-stage__metrics b {
  color: #fff;
}

/* Editorial detail area. */
html.photo-view-shell .photo-page__content {
  width: min(calc(100% - 40px), var(--photo-content-max));
  margin: 0 auto;
  padding: 18px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 28px;
  align-items: start;
}

html.photo-view-shell .photo-page__main,
html.photo-view-shell .photo-page__aside {
  min-width: 0;
}

html.photo-view-shell .photo-page__aside {
  display: grid;
  gap: 14px;
}

html.photo-view-shell .photo-detail-section,
html.photo-view-shell .photo-side-card {
  border-radius: 10px;
  background: var(--brand-surface);
}

html.photo-view-shell .photo-detail-section {
  padding: clamp(22px, 4vw, 46px);
}

html.photo-view-shell .photo-section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 42px);
  letter-spacing: -.045em;
  line-height: 1.05;
}

html.photo-view-shell .photo-detail-description,
html.photo-view-shell .photo-detail-empty {
  margin: 22px 0 0;
  color: var(--brand-muted);
  font-size: 15px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

html.photo-view-shell .photo-detail-description a {
  color: var(--brand-link);
}

html.photo-view-shell .photo-side-card {
  padding: 20px;
  overflow: visible;
}

html.photo-view-shell .photo-side-card h2 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -.035em;
}

html.photo-view-shell .photo-author-summary {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

html.photo-view-shell .photo-author-summary__avatar {
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 9px;
  background: var(--brand-surface-3);
}

html.photo-view-shell .photo-author-summary__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

html.photo-view-shell .photo-author-summary h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

html.photo-view-shell .photo-author-summary p {
  margin: 5px 0 0;
  color: var(--brand-muted);
  font-size: 12px;
  line-height: 1.45;
}

html.photo-view-shell .photo-author-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 18px 0;
  background: var(--brand-line);
  border-top: 1px solid var(--brand-line);
  border-bottom: 1px solid var(--brand-line);
}

html.photo-view-shell .photo-author-stats span {
  min-width: 0;
  padding: 13px 8px;
  display: grid;
  gap: 3px;
  background: var(--brand-surface);
  text-align: center;
}

html.photo-view-shell .photo-author-stats b {
  font-size: 18px;
}

html.photo-view-shell .photo-author-stats small {
  color: var(--brand-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

html.photo-view-shell .photo-side-link {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--brand-text) !important;
  font-size: 12px;
  font-weight: 800;
}

html.photo-view-shell .photo-side-link:hover {
  color: var(--brand-accent) !important;
}

html.photo-view-shell .photo-owner-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

html.photo-view-shell .photo-owner-actions > a,
html.photo-view-shell .photo-owner-actions .wo-side-link {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 0;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--brand-bg);
  color: var(--brand-text) !important;
  font-size: 12px;
}

html.photo-view-shell .photo-owner-actions .wo-side-red-dot {
  margin-left: auto;
}

html.photo-view-shell .photo-side-card--cooperation .wo-photo-title {
  margin: 0 0 14px;
  font-size: 19px;
}

html.photo-view-shell .photo-side-card--cooperation .wo-photo-author {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

html.photo-view-shell .photo-side-muted {
  margin: 10px 0 0;
  color: var(--brand-muted);
  font-size: 12px;
  line-height: 1.55;
}

/* Contest components inside compact side card. */
html.photo-view-shell .contest-submit-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

html.photo-view-shell .contest-submit-form label {
  font-size: 12px;
  font-weight: 800;
}

html.photo-view-shell .contest-submit-select {
  width: 100%;
  min-height: 44px;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  background: var(--brand-bg);
  color: var(--brand-text);
}

html.photo-view-shell .contest-submit-rules {
  padding: 12px;
  border-radius: 8px;
  background: var(--brand-bg);
  color: var(--brand-muted);
  font-size: 11px;
  line-height: 1.5;
}

html.photo-view-shell .contest-submit-accept {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: var(--brand-muted);
  font-size: 11px !important;
}

html.photo-view-shell .contest-upcoming,
html.photo-view-shell .contest-submit-added {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

html.photo-view-shell .contest-upcoming-item,
html.photo-view-shell .contest-submit-added-item {
  display: grid;
  gap: 4px;
  padding: 11px;
  border-radius: 8px;
  background: var(--brand-bg);
  font-size: 11px;
}

/* Comments become a clean editorial stream. */
html.photo-view-shell #photo-comments {
  margin-top: 22px;
}

html.photo-view-shell #photo-comments .wo-entry-section,
html.photo-view-shell #photo-comments .wo-entry-form-section {
  margin: 0;
  padding: clamp(22px, 4vw, 40px);
  border-radius: 10px;
  background: var(--brand-surface);
}

html.photo-view-shell #photo-comments .wo-entry-form-section {
  margin-top: 14px;
}

html.photo-view-shell #photo-comments .wo-entry-title {
  margin: 0 0 18px !important;
  font-size: 24px;
  letter-spacing: -.04em;
}

html.photo-view-shell #photo-comments .wo-entry-list {
  display: grid;
  gap: 0;
}

html.photo-view-shell #photo-comments .wo-entry-card {
  padding: 20px 0;
  border: 0;
  border-radius: 0;
  border-top: 1px solid var(--brand-line);
  background: transparent;
}

html.photo-view-shell #photo-comments .wo-entry-card:first-child {
  border-top: 0;
}

html.photo-view-shell #photo-comments .wo-entry-avatar {
  width: 48px;
  height: 48px;
  border-radius: 9px;
}

html.photo-view-shell #photo-comments .wo-entry-add {
  padding: 0;
  border: 0;
}

html.photo-view-shell #photo-comments .wo-entry-add textarea {
  border-radius: 9px;
}

html.photo-view-shell #photo-comments .wo-entry-add-actions button {
  border-radius: 8px;
  background: var(--brand-accent);
  color: #111;
}

/* Share confirmation. */
html.photo-view-shell .photo-share-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  padding: 12px 15px;
  border-radius: 8px;
  background: #11151b;
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
}

html.photo-view-shell .photo-share-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  html.photo-view-shell {
    --photo-rail: 0px;
  }

  html.photo-view-shell .wo-header {
    position: relative;
    background: #0b0e13;
  }

  html.photo-view-shell .wo-gridwrap,
  html.photo-view-shell .wo-gridwrap-cols-1,
  html.photo-view-shell .wo-gridwrap-cols-2,
  html.photo-view-shell .wo-gridwrap-cols-3 {
    display: block !important;
  }

  html.photo-view-shell .wo-gridwrap > aside.wo-col {
    width: auto;
    padding: 0 !important;
    background: #11151b !important;
  }

  html.photo-view-shell .wo-side-nav {
    display: none !important;
  }

  html.photo-view-shell .wo-side-nav.wo-is-open {
    display: grid !important;
    padding: 12px;
  }

  html.photo-view-shell .photo-page {
    grid-column: auto;
  }

  html.photo-view-shell .photo-stage {
    width: 100%;
    min-height: calc(100svh - var(--wo-header-h));
    margin-left: 0;
    padding: 22px 18px 30px;
  }

  html.photo-view-shell .photo-stage__caption {
    left: 18px;
    right: 18px;
    bottom: 40px;
  }

  html.photo-view-shell .photo-stage__metrics {
    top: 22px;
    right: 18px;
  }

  html.photo-view-shell .photo-stage__viewer {
    padding-bottom: 170px;
  }

  html.photo-view-shell .photo-viewer__media > img,
  html.photo-view-shell .wo-photo-media > img {
    max-height: calc(100svh - 250px) !important;
  }

  html.photo-view-shell .photo-page__content {
    width: min(calc(100% - 28px), 980px);
    grid-template-columns: 1fr;
    gap: 16px;
  }

  html.photo-view-shell .photo-page__aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  html.photo-view-shell .photo-stage {
    min-height: auto;
    padding: 18px 10px 18px;
    display: block;
  }

  html.photo-view-shell .photo-stage__breadcrumbs {
    margin-bottom: 14px;
  }

  html.photo-view-shell .photo-stage__viewer {
    display: block;
    padding: 0;
  }

  html.photo-view-shell .photo-viewer__media > img,
  html.photo-view-shell .wo-photo-media > img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 72svh !important;
    border-radius: 7px;
  }

  html.photo-view-shell .photo-viewer__nav {
    top: 50%;
  }

  html.photo-view-shell .photo-viewer__nav--left { left: 6px; }
  html.photo-view-shell .photo-viewer__nav--right { right: 6px; }

  html.photo-view-shell .photo-viewer__tools {
    right: 7px;
    bottom: 7px;
  }

  html.photo-view-shell .wo-toolbtn {
    width: 40px;
    height: 40px;
  }

  html.photo-view-shell .photo-stage__caption {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    display: grid;
    gap: 18px;
    margin-top: 18px;
  }

  html.photo-view-shell .photo-stage__identity {
    max-width: none;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
  }

  html.photo-view-shell .photo-stage__avatar {
    width: 54px;
    height: 54px;
  }

  html.photo-view-shell .photo-stage h1 {
    font-size: clamp(28px, 10vw, 46px);
  }

  html.photo-view-shell .photo-stage__actions {
    justify-content: flex-start;
  }

  html.photo-view-shell .photo-action {
    flex: 1 1 auto;
  }

  html.photo-view-shell .photo-action--icon {
    flex: 0 0 44px;
  }

  html.photo-view-shell .photo-stage__metrics {
    position: relative;
    top: auto;
    right: auto;
    margin-top: 14px;
    flex-wrap: wrap;
  }

  html.photo-view-shell .photo-page__content {
    width: calc(100% - 16px);
    padding-top: 8px;
    gap: 10px;
  }

  html.photo-view-shell .photo-page__aside {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  html.photo-view-shell .photo-detail-section,
  html.photo-view-shell .photo-side-card,
  html.photo-view-shell #photo-comments .wo-entry-section,
  html.photo-view-shell #photo-comments .wo-entry-form-section {
    padding: 18px 16px;
    border-radius: 8px;
  }

  html.photo-view-shell #photo-comments .wo-entry-add {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  html.photo-view-shell .photo-stage__actions .photo-action span {
    display: none;
  }

  html.photo-view-shell .photo-stage__actions .photo-action {
    flex: 0 0 44px;
    width: 44px;
    padding: 0;
  }

  html.photo-view-shell .photo-stage__metrics > span:first-child {
    flex-basis: 100%;
    width: max-content;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.photo-view-shell .wo-gridwrap,
  html.photo-view-shell .wo-gridwrap > aside.wo-col,
  html.photo-view-shell .wo-logo-img,
  html.photo-view-shell .wo-side-link,
  html.photo-view-shell .photo-stage,
  html.photo-view-shell .photo-stage__caption,
  html.photo-view-shell .photo-action {
    transition: none !important;
  }
}

/* ===== v3.4: pojedynczy wskaźnik aktywnego elementu w zwiniętym aside =====
   Aktywny wpis ma tło i pionowy pomarańczowy akcent. Dodatkowa kropka
   była redundantna i wyglądała jak przypadkowy status/powiadomienie. */
html.photo-view-shell .wo-side-link .wo-side-red-dot {
  display: none !important;
}

/* =========================================================
   v3.5 - jasny wariant immersyjnej strony zdjęcia
   Jasne zdjęcie otrzymuje jasne rozmycie, ciemne ikony oraz
   natywne logo bez filtra brightness/invert.
   ========================================================= */

/* Logo korzysta z właściwego pliku dla motywu. Nie odbarwiamy go filtrem. */
html.photo-view-shell .wo-logo-img {
  filter: none !important;
}

html[data-theme="light"].photo-view-shell .logo-img-light {
  display: block !important;
}

html[data-theme="light"].photo-view-shell .logo-img-dark {
  display: none !important;
}

html[data-theme="dark"].photo-view-shell .logo-img-light {
  display: none !important;
}

html[data-theme="dark"].photo-view-shell .logo-img-dark {
  display: block !important;
}

/* Jasna scena: fotografia pozostaje tłem, ale rozmycie i warstwa UI są jasne. */
html[data-theme="light"].photo-view-shell .photo-stage {
  background: #eef1f4;
}

html[data-theme="light"].photo-view-shell .photo-stage__backdrop {
  filter: blur(34px) saturate(.72) brightness(1.28);
  opacity: .68;
}

html[data-theme="light"].photo-view-shell .photo-stage::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .84) 0%, rgba(255, 255, 255, .30) 45%, rgba(255, 255, 255, .56) 100%),
    linear-gradient(to bottom, rgba(255, 255, 255, .48) 0%, rgba(255, 255, 255, .18) 48%, rgba(245, 246, 247, .96) 100%);
}

/* Header i zwinięte menu przechodzą na ciemne ikony. */
html[data-theme="light"].photo-view-shell .wo-header {
  background: linear-gradient(to bottom, rgba(245, 246, 247, .92), rgba(245, 246, 247, 0));
  color: #171717;
}

html[data-theme="light"].photo-view-shell .wo-header-iconbtn,
html[data-theme="light"].photo-view-shell .wo-theme-btn,
html[data-theme="light"].photo-view-shell .wo-header-search i {
  color: #171717 !important;
}

html[data-theme="light"].photo-view-shell .wo-header-iconbtn:hover,
html[data-theme="light"].photo-view-shell .wo-theme-btn:hover {
  background: #fff !important;
  color: #171717 !important;
}

html[data-theme="light"].photo-view-shell .wo-header-avatar {
  border-color: rgba(23, 23, 23, .28) !important;
}

html[data-theme="light"].photo-view-shell .wo-gridwrap > aside.wo-col {
  background: linear-gradient(to right, rgba(245, 246, 247, .96), rgba(245, 246, 247, .56), transparent) !important;
  color: #171717;
}

html[data-theme="light"].photo-view-shell.collab-side-expanded .wo-gridwrap > aside.wo-col {
  background: #f5f6f7 !important;
  border-right-color: #dfe3e8 !important;
}

html[data-theme="light"].photo-view-shell .wo-side-link,
html[data-theme="light"].photo-view-shell .wo-side-link i {
  color: #171717 !important;
  text-shadow: 0 1px 12px rgba(255, 255, 255, .82);
}

html[data-theme="light"].photo-view-shell .wo-side-link .wo-side-mini {
  border-color: rgba(23, 23, 23, .24);
}

html[data-theme="light"].photo-view-shell .wo-side-link:hover,
html[data-theme="light"].photo-view-shell .wo-side-link.wo-is-active {
  background: rgba(255, 255, 255, .86);
  color: #171717 !important;
}

html[data-theme="light"].photo-view-shell.collab-side-expanded .wo-side-link {
  color: #34383f !important;
  text-shadow: none;
}

html[data-theme="light"].photo-view-shell.collab-side-expanded .wo-side-link:hover,
html[data-theme="light"].photo-view-shell.collab-side-expanded .wo-side-link.wo-is-active {
  background: #fff;
  color: #171717 !important;
}

html[data-theme="light"].photo-view-shell.collab-side-expanded .wo-side-subtitle {
  color: #747b86;
}

/* Teksty i sterowanie sceny w jasnym wariancie. */
html[data-theme="light"].photo-view-shell .photo-stage__breadcrumbs {
  color: rgba(23, 23, 23, .66);
}

html[data-theme="light"].photo-view-shell .photo-stage__breadcrumbs a {
  color: rgba(23, 23, 23, .84) !important;
}

html[data-theme="light"].photo-view-shell .photo-stage__avatar {
  border-color: rgba(23, 23, 23, .64);
  background: #fff;
}

html[data-theme="light"].photo-view-shell .photo-stage,
html[data-theme="light"].photo-view-shell .photo-stage h1,
html[data-theme="light"].photo-view-shell .photo-stage__authorline,
html[data-theme="light"].photo-view-shell .photo-stage__authorline a {
  color: #171717 !important;
}

html[data-theme="light"].photo-view-shell .photo-stage h1 {
  text-shadow: 0 2px 22px rgba(255, 255, 255, .78);
}

html[data-theme="light"].photo-view-shell .photo-stage__authorline {
  color: rgba(23, 23, 23, .72) !important;
}

html[data-theme="light"].photo-view-shell .photo-action,
html[data-theme="light"].photo-view-shell .wo-toolbtn,
html[data-theme="light"].photo-view-shell .photo-stage__metrics > span,
html[data-theme="light"].photo-view-shell .photo-stage__metrics > a {
  border: 0;
  border-color: #d5dae1;
  background: #fff;
  color: #171717 !important;
}

html[data-theme="light"].photo-view-shell .photo-action i,
html[data-theme="light"].photo-view-shell .wo-toolbtn i,
html[data-theme="light"].photo-view-shell .photo-stage__metrics i,
html[data-theme="light"].photo-view-shell .photo-stage__metrics b {
  color: #171717 !important;
}

html[data-theme="light"].photo-view-shell .photo-action:hover,
html[data-theme="light"].photo-view-shell .wo-toolbtn:hover {
  background: #eceff3;
  border: 0;
  border-color: #bfc6d0;
  color: #171717 !important;
}

html[data-theme="light"].photo-view-shell .photo-action--primary,
html[data-theme="light"].photo-view-shell .photo-action--primary i {
  border-color: transparent;
  background: var(--brand-accent);
  color: #111 !important;
}

html[data-theme="light"].photo-view-shell .photo-viewer__media > img,
html[data-theme="light"].photo-view-shell .wo-photo-media > img {
  box-shadow: 0 24px 70px rgba(34, 42, 54, .22);
}

html[data-theme="light"].photo-view-shell .photo-share-toast {
  background: #fff;
  color: #171717;
}


/* v4.16: footer nie dziedziczy tła sceny zdjęcia. */
html.photo-view-shell .wo-footer {
  --wo-footer-bg: #101216;
  --wo-footer-line: rgba(255,255,255,.15);
  --wo-footer-text: #f7f7f5;
  --wo-footer-muted: rgba(255,255,255,.62);
  background: var(--wo-footer-bg) !important;
  color: var(--wo-footer-text) !important;
}
