/*
Theme Name: Photographer Portfolio
Theme URI: https://example.com
Author: Svirelka
Description: Минималистичная тема для сайта фотографа: главная с героем, портфолио, галерея, о себе, контакты.
Version: 1.16.56
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: photographer-portfolio
*/

:root {
  --bg: #0f0f0f;
  --bg-soft: #1a1a1a;
  --text: #f5f5f4;
  --muted: #a8a29e;
  --accent: #d6d3d1;
  --line: rgba(255, 255, 255, 0.08);
  --max: 1200px;
  --header-h: 72px;
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  min-height: var(--header-h);
  height: auto;
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgb(15 15 15 / 92%), transparent);
  backdrop-filter: blur(8px);
}

.site-branding {
  flex: 0 1 auto;
  min-width: 0;
}

.site-branding .custom-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.site-branding img,
.custom-logo {
  display: block;
  max-height: calc(var(--header-h) - 0.75rem);
  width: auto;
  max-width: min(220px, 42vw);
  height: auto;
  object-fit: contain;
}

.site-header__inner,
.site-footer__inner,
.section-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-header__tools {
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-left: auto;
}

.lang-switcher ul,
.lang-switcher__list,
.auth-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lang-switcher__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lang-switcher__select {
  display: none;
  max-width: 11rem;
  min-height: 2rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 4px;
  background: rgb(15 15 15 / 88%);
  color: #fff;
  font-size: 0.78rem;
  font-family: inherit;
  letter-spacing: 0.02em;
  text-transform: none;
}

.lang-switcher a,
.auth-links a {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.82;
}

.lang-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.28rem 0.45rem;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 4px;
  opacity: 0.75;
  transition: opacity 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.lang-switcher a:hover {
  opacity: 1;
  color: #fff;
  border-color: rgb(255 255 255 / 35%);
}

.lang-switcher .is-active a {
  opacity: 1;
  color: #1a1208;
  background: var(--accent, #e7c8a0);
  border-color: var(--accent, #e7c8a0);
  font-weight: 600;
}

.auth-links a:hover {
  opacity: 1;
  color: #fff;
}

.auth-links__user span {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.65;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.auth-links--footer a {
  font-size: 0.85rem;
}

.site-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.72;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
  transition: opacity 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover {
  opacity: 1;
  color: #fff;
}

.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.site-nav .current-menu-ancestor > a,
.site-nav .current-menu-parent > a,
.site-nav .current_page_parent > a,
.site-nav .current_page_ancestor > a,
.site-nav li.current-menu-item > a,
.site-nav li.current_page_item > a,
.site-nav a[aria-current="page"] {
  opacity: 1 !important;
  color: #fff !important;
  border-bottom-color: var(--accent, #e7c8a0) !important;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 0.45rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
}

main {
  min-height: 60vh;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: #111 center / cover no-repeat;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(0 0 0 / 35%), rgb(0 0 0 / 65%));
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 2rem) 1.5rem 4rem;
  max-width: 48rem;
}

.hero__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
}

.hero__subtitle {
  margin: 0 0 1rem;
  font-size: clamp(0.95rem, 2.2vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--muted);
  opacity: 0.92;
}

.hero__text {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: var(--muted);
}

.button {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s;
}

.button:hover {
  background: rgb(255 255 255 / 8%);
  border-color: rgb(255 255 255 / 60%);
  color: #fff;
}

.section {
  padding: 5rem 0;
}

.section--soft {
  background: var(--bg-soft);
}

.section__head {
  margin-bottom: 2.5rem;
  text-align: center;
}

.section__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
}

.section__lead {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--muted);
}

.section__lead--note {
  margin: 0.5rem auto 0;
  max-width: 36rem;
  font-size: 0.88rem;
  color: #e7c8a0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 4 / 5;
  background: #222;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.portfolio-card:hover img {
  transform: scale(1.04);
}

.portfolio-card__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem 1.1rem 1.15rem;
  background: linear-gradient(transparent, rgb(0 0 0 / 78%));
}

.portfolio-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

.portfolio-card__meta {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
}

.about-grid__photo {
  border-radius: 8px;
  overflow: hidden;
  background: #222;
}

.about-grid__photo img {
  width: 100%;
  height: auto;
  max-height: 36rem;
  object-fit: contain;
  object-position: center;
}

.about-grid__text h2 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
}

.about-grid__text p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-list strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.page-header {
  padding: calc(var(--header-h) + 3rem) 0 2rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.page-header h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
}

.page-header p {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--muted);
}

.panorama-demo-note {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.entry-content {
  width: min(100% - 2rem, 720px);
  margin: 0 auto;
  padding: 3rem 0 4rem;
  color: #e7e5e4;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
  color: var(--muted);
}

.gallery-masonry {
  columns: 3 260px;
  column-gap: 1rem;
}

.gallery-masonry .gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: 6px;
  overflow: hidden;
}

.gallery-masonry img {
  width: 100%;
}

.modula-section {
  position: relative;
  z-index: 1;
  isolation: isolate;
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.modula-wrap {
  position: relative;
  width: 100%;
  clear: both;
}

.modula-wrap .modula,
.modula-wrap .modula-gallery {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.modula-wrap .modula .modula-items {
  position: relative;
  width: 100%;
  min-height: 1px;
}

/* Не растягивать кадр: глобальный img{height:auto} ломает сетку Modula */
.modula-wrap .modula-item,
.modula-wrap .modula-item .pic,
.modula .modula-item,
.modula .modula-item .pic,
.modula-gallery .modula-item {
  overflow: hidden !important;
}

.modula-wrap .modula-item img,
.modula-wrap .modula-item .pic > img,
.modula-wrap .modula-item .jtg-social + img,
.modula-wrap img.pic,
.modula .modula-item img,
.modula .modula-item .pic img,
.modula-gallery .modula-item img,
figure.modula-item img,
.jg-entry img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* Колоночная сетка Modula: картинка в потоке, не absolute 100% */
.modula-wrap .modula.modula-columns .modula-item img.pic,
.modula-wrap .modula.modula-columns .modula-item picture.pic {
  position: relative !important;
  height: auto !important;
  max-width: 100% !important;
}

/* Ссылка «Edit gallery» — только в админке, на сайте мешает вёрстке */
.modula-wrap .post-edit-link {
  display: none !important;
}

/* Секции ниже галереи — поверх absolute-элементов Modula */
main > .section:not(.modula-section) {
  position: relative;
  z-index: 2;
  background-color: var(--bg);
}

main > .section.section--soft {
  background-color: var(--bg-soft);
}

.modula-placeholder {
  margin: 0;
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.modula-placeholder code {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.2rem 0.45rem;
  background: rgb(255 255 255 / 6%);
  border-radius: 4px;
  color: #e7e5e4;
}

.modula-page-content {
  width: min(100% - 2rem, var(--max));
  max-width: none;
  padding-top: 0;
}

.gallery-nav__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}

.gallery-nav__item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 255 255 / 3%);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.gallery-nav__item:hover {
  border-color: rgb(255 255 255 / 22%);
  background: rgb(255 255 255 / 6%);
  transform: translateY(-2px);
}

.gallery-nav__title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}

.gallery-nav__lead {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.gallery-nav-hint {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

.site-footer {
  position: relative;
  z-index: 5;
  isolation: isolate;
  clear: both;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  background-color: var(--bg);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  opacity: 0.8;
}

.support-section {
  border-top: 1px solid var(--line);
}

.support-group + .support-group {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.support-group__title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.support-gateway {
  margin: 0 0 0.5rem;
}

.support-gateway__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.35rem;
}

.support-gateway__hint {
  margin: 0 0 1.25rem;
  max-width: 40rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.support-mcc {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
}

.support-mcc--primary {
  margin-bottom: 1.5rem;
}

.support-mcc__summary {
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--accent);
}

.support-mcc__note {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.support-mcc__widget {
  margin-top: 0.75rem;
}

.support-network-alert {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #fecaca;
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: 10px;
}

.support-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.support-card {
  padding: 1.1rem 1.2rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.support-card__head {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.support-card__label-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.6rem;
}

.support-card__label {
  font-size: 0.95rem;
}

.support-network-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--accent);
  background: var(--bg);
}

.support-network-badge--trc20 {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(220, 38, 38, 0.1);
}

.support-network-badge--btc {
  color: #fcd34d;
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(245, 158, 11, 0.08);
}

.support-card__network-warning {
  margin: -0.35rem 0 0.75rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #fca5a5;
}

.support-card__hint {
  font-size: 0.8rem;
  color: var(--muted);
}

.support-card__value {
  display: block;
  font-size: 0.82rem;
  word-break: break-all;
  padding: 0.65rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.support-card__link {
  color: var(--accent);
  word-break: break-all;
}

.support-card__copy.is-copied {
  opacity: 0.75;
}

.support-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.support-card__qr {
  display: block;
  width: 168px;
  height: 168px;
  margin: 0 0 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.best-carousel-section {
  position: relative;
  z-index: 1;
}

.photo-carousel {
  position: relative;
  margin: 0 auto;
}

.photo-carousel__viewport {
  position: relative;
  height: min(68vh, 620px);
  overflow: hidden;
  border-radius: 10px;
  background: #111;
  border: 1px solid var(--line);
}

.photo-carousel__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.photo-carousel__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.photo-carousel__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.photo-carousel__link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  color: inherit;
  text-decoration: none;
}

.photo-carousel__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111;
  display: block;
}

.photo-carousel__link-hint {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 22%);
  background: rgb(15 15 15 / 78%);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
}

.best-carousel-section__more {
  margin: 1rem 0 0;
  text-align: center;
}

.best-photos-viewer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .best-photos-viewer__grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }
}

.best-photos-viewer__thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
}

.best-photos-viewer__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  transition: transform 0.35s ease;
}

.best-photos-viewer__thumb:hover .best-photos-viewer__image,
.best-photos-viewer__thumb:focus-visible .best-photos-viewer__image {
  transform: scale(1.03);
}

.best-photos-viewer__hint {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 22%);
  background: rgb(15 15 15 / 78%);
  color: #fff;
  font-size: 0.95rem;
  pointer-events: none;
}

/* На body (JS), иначе шапка перекрывает кнопки закрытия */
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200000;
  width: 100vw;
  height: 100%;
  height: 100dvh;
  background: #000;
}

.photo-lightbox:fullscreen,
.photo-lightbox:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  background: #000;
}

.photo-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: #000;
  cursor: zoom-out;
}

.photo-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 0;
  pointer-events: none;
}

.photo-lightbox__toolbar {
  position: absolute;
  top: max(0.75rem, env(safe-area-inset-top));
  right: max(0.75rem, env(safe-area-inset-right));
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  z-index: 3;
  pointer-events: auto;
}

.photo-lightbox__close,
.photo-lightbox__fullscreen,
.photo-lightbox__home,
.photo-lightbox__nav {
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.85rem;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 999px;
  background: rgb(15 15 15 / 88%);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  pointer-events: auto;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.photo-lightbox__home {
  background: rgb(255 255 255 / 10%);
  border-color: rgb(255 255 255 / 35%);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fff;
}

.photo-lightbox__home:hover {
  background: rgb(255 255 255 / 22%);
  color: #fff;
}

.photo-lightbox__close {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.photo-lightbox__close:hover,
.photo-lightbox__fullscreen:hover,
.photo-lightbox__nav:hover {
  background: rgb(40 40 40 / 95%);
}

.photo-lightbox__fullscreen.is-active {
  background: rgb(255 255 255 / 18%);
}

.photo-lightbox__stage {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: #000;
  padding: 4rem 3rem 1rem;
  box-sizing: border-box;
  pointer-events: auto;
  cursor: zoom-out;
}

.photo-lightbox:fullscreen .photo-lightbox__stage,
.photo-lightbox:-webkit-full-screen .photo-lightbox__stage {
  padding: 3.5rem 1rem 1rem;
}

.photo-lightbox__image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center center;
  pointer-events: none;
}

.photo-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  pointer-events: auto;
}

.photo-lightbox__nav--prev {
  left: 0.5rem;
}

.photo-lightbox__nav--next {
  right: 0.5rem;
}

body.photo-lightbox-open {
  overflow: hidden;
}

body.photo-lightbox-open .site-header {
  visibility: hidden;
}

.photo-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(15 15 15 / 78%);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.photo-carousel__btn:hover {
  background: rgb(15 15 15 / 92%);
}

.photo-carousel__btn--prev {
  left: 0.75rem;
}

.photo-carousel__btn--next {
  right: 0.75rem;
}

.photo-carousel__dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.photo-carousel__dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 28%);
  cursor: pointer;
}

.photo-carousel__dot.is-active {
  background: #fff;
}

.support-note {
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer__report {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
}

.site-footer__report-label {
  color: var(--muted);
}

.site-footer__report a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__report a:hover {
  color: var(--accent);
}

.button--ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}

.button--ghost:hover {
  border-color: var(--accent);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: inline-block;
    flex: 0 0 auto;
  }

  .site-header__inner {
    row-gap: 0.35rem;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem 1.25rem 1.25rem;
    background: rgb(15 15 15 / 96%);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }

  .site-header__tools {
    order: 2;
    width: auto;
    margin-left: auto;
    flex: 0 1 auto;
    justify-content: flex-end;
  }

  .lang-switcher__list {
    display: none;
  }

  .lang-switcher__select {
    display: inline-block;
  }

  .site-branding {
    order: 1;
    flex: 1 1 auto;
  }

  .menu-toggle {
    order: 3;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .gallery-masonry {
    columns: 2 140px;
  }
}

/* Cookie consent (GDPR, built into theme) */
.privacy-consent {
  position: fixed;
  inset: auto 0 0;
  z-index: 100000;
  padding: 1rem;
  pointer-events: none;
}

.privacy-consent[hidden] {
  display: none !important;
}

.privacy-consent.is-visible {
  pointer-events: auto;
  display: block !important;
}

.privacy-consent__panel {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.25rem 1.35rem;
  background: rgb(20 20 20 / 96%);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgb(0 0 0 / 45%);
}

.privacy-consent__title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.privacy-consent__text {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.privacy-consent__text a {
  color: var(--accent);
}

.privacy-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.privacy-consent__toggle {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 0 0 0.75rem;
  cursor: pointer;
}

.privacy-consent__toggle small {
  display: block;
  color: var(--muted);
  font-weight: normal;
}

.site-footer__legal {
  margin-top: 0.75rem;
}

.site-footer__legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
}

.site-footer__legal a,
.site-footer__cookie-settings {
  color: var(--muted);
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.site-footer__legal a:hover,
.site-footer__cookie-settings:hover {
  color: var(--text);
}

/* Вход / регистрация (шорткоды темы) */
.pp-auth {
  max-width: 28rem;
  margin: 0 auto 3rem;
}

.pp-auth__notice {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 0.95rem;
}

.pp-auth__notice--success {
  background: rgb(34 120 80 / 18%);
  border-color: rgb(80 180 120 / 35%);
}

.pp-auth__notice--error {
  background: rgb(140 40 40 / 22%);
  border-color: rgb(200 90 90 / 40%);
}

.pp-auth__hint {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.pp-auth__subtitle {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.pp-auth__form {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.5rem;
}

.pp-auth__form--secondary {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.pp-auth__field {
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.pp-auth__field label {
  font-size: 0.85rem;
  color: var(--muted);
}

.pp-auth__field input[type="text"],
.pp-auth__field input[type="email"],
.pp-auth__field input[type="password"] {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
}

.pp-auth__field input:focus {
  outline: 1px solid rgb(255 255 255 / 35%);
  border-color: rgb(255 255 255 / 28%);
}

.pp-auth__field--check {
  display: block;
}

.pp-auth__field--check label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  cursor: pointer;
}

.pp-auth__actions {
  margin: 0.35rem 0 0;
}

.pp-auth__actions .button {
  cursor: pointer;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.pp-auth__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.pp-auth__links a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.pp-auth__honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.pp-account__title {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.15rem;
}

.pp-account__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.pp-account__table th,
.pp-account__table td {
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.pp-account__table th {
  width: 40%;
  color: var(--muted);
  font-weight: 500;
}

.pp-account__download {
  margin-top: 1rem;
}

.scroll-top {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 9000;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(15 15 15 / 88%);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  opacity: 0;
  transform: translateY(0.5rem);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover,
.scroll-top:focus-visible {
  background: rgb(26 26 26 / 95%);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.scroll-top__label {
  line-height: 1;
}

@media (max-width: 640px) {
  .scroll-top__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .scroll-top {
    left: 0.75rem;
    bottom: 0.75rem;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    justify-content: center;
    font-size: 1.15rem;
  }
}
