/* Общие стили */
body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  box-sizing: border-box;
}

body {
  background-color: #e6e6e6;
}

/* Подключение шрифтов */
@font-face {
  font-family: "HelveticaNeueCyr Bold";
  src: url("../fonts/HelveticaNeueCyr-Bold.woff2") format("woff2"),
    url("../fonts/HelveticaNeueCyr-Bold.otf") format("opentype");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HelveticaNeueCyr Light";
  src: url("../fonts/HelveticaNeueCyr-Light.woff2") format("woff2"),
    url("../fonts/HelveticaNeueCyr-Light.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HelveticaNeueCyr Roman";
  src: url("../fonts/HelveticaNeueCyr-Roman.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "FuturaPTBook";
  src: url("../fonts/FuturaPTBook.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "FuturaPTHeavy";
  src: url("../fonts/FuturaPTHeavy.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

.header {
  height: 90px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #e6e6e6;
  z-index: 1000;
  padding: 0 30px;
  box-sizing: border-box;
}

.logo {
  display: flex;
  margin: 0;
  padding: 0;
  height: 30px;
  cursor: pointer;
}

.logo img {
  transition: transform 0.75s ease;
}

.logo img:hover {
  transform: scale(1.1);
}

.navbar {
  display: flex;
  justify-content: center;
  padding: 15px;
  justify-self: center;
}

/* Wide screens (3 tiles layout): navbar pinned to page center */
@media (min-width: 1025px) {
  .navbar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    justify-self: auto;
  }
}

.button-active,
.button-disabled {
  margin: 0px 20px;
  text-align: center;
  font-family: "FuturaPTBook", sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.75s ease;
  text-decoration: none;
}

.button-active {
  font-family: "FuturaPTHeavy", sans-serif;
  font-weight: 700;
  color: #333333;
}

.button-disabled {
  color: #333333;
  opacity: 0.5;
}

.button-active:hover,
.button-disabled:hover {
  transform: scale(1.25);
  font-family: "FuturaPTHeavy", sans-serif;
  font-weight: 700;
}

/* Стили для меню */
.menu img {
  filter: invert(18%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%)
    contrast(81%);
  height: 14px;
  margin-right: 0;
  cursor: pointer;
  transition: transform 0.75s ease;
}

.menu img:hover {
  transform: scale(1.25);
}

.menu {
  justify-self: end;
  display: flex;
  align-items: center;
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #e6e6e6;
  z-index: 1000;
}

.footer a {
  margin: 0 8px;
}

.footer img {
  width: 20px;
  filter: invert(40%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(91%)
    contrast(83%);
  opacity: 0.25;
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.footer img:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Основной контент с отступами для хедера и футера */
.content {
  padding-top: 140px;
  padding-bottom: 110px;
}

/* Стили для плиток */
.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  max-width: 1500px; /* Ограничиваем максимальную ширину */
}

.grid-item {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 1s ease-in-out, filter 1s ease-in-out; /* Добавлен transition для filter */
}

/* Основное изображение (project-X-cut) */
.grid-item img.cut {
  opacity: 1; /* По умолчанию видимо */
  z-index: 1; /* Находится поверх */
}

/* Изображение при наведении (project-X) */
.grid-item img.full {
  opacity: 0; /* По умолчанию скрыто */
  z-index: 2; /* Находится под cut, но будет проявляться поверх */
}

/* При наведении меняем прозрачность */
.grid-item:hover img.cut {
  opacity: 0; /* Основное изображение скрывается */
}

.grid-item:hover img.full {
  opacity: 1; /* Изображение при наведении проявляется */
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 3; /* Текст должен быть поверх изображений */
}

.grid-item h2 {
  font-family: "HelveticaNeueCyr Bold", sans-serif;
  font-size: 24px;
  color: #333333;
  margin: 0;
  margin-top: 30px;
}

.grid-item p {
  font-family: "HelveticaNeueCyr Light", sans-serif;
  font-size: 14px;
  color: #333333;
  margin: 0;
  margin-bottom: 30px;
}

.grid-item:hover .overlay {
  opacity: 1;
  transition: opacity 1s ease-in-out;
}

/* ========== Services page: idle blur + centered title, hover shows price like work ========== */
.grid-item--services {
  position: relative;
}

.grid-item--services::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(204, 204, 204, 0.8); /* #CCCCCC ~80% opacity (20% transparency) */
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.75s ease-in-out;
}

.grid-item--services:hover::before {
  opacity: 0;
}

.grid-item--services img.full {
  opacity: 1; /* на services плитки сразу видимы */
  filter: blur(24px); /* ещё более сильный блюр в спокойном состоянии */
  z-index: 1;
  transition: opacity 0.75s ease-in-out, filter 0.75s ease-in-out;
}

.grid-item--services:hover img.full {
  filter: blur(0);
}

/* Idle centered title (separate element) */
.services-idle-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: calc(100% - 36px);
  text-align: center;
  font-family: "HelveticaNeueCyr Bold", sans-serif;
  font-size: 24px;
  color: #333333;
  opacity: 1;
  transition: opacity 0.75s ease-in-out;
}

.grid-item--services:hover .services-idle-title {
  opacity: 0;
}

/* Hover overlay fades in with same timing as image reveal */
.grid-item--services .overlay {
  opacity: 0;
  transition: opacity 0.75s ease-in-out;
}

.grid-item--services:hover .overlay {
  opacity: 1;
}

.grid-item--services .overlay h2 {
  margin-top: 30px;
}

.grid-item--services .overlay p {
  margin-bottom: 30px;
}

/* Полоска прокрутки */
.scroll-indicator {
  position: fixed;
  top: 85px;
  left: 0;
  height: 5px;
  background-color: #b3b3b3;
  z-index: 1000;
  transition: width 0s ease-in-out;
}

/* Адаптивность */
/* Для экранов шире 1025px */
@media (min-width: 1025px) {
  .grid-container {
    grid-template-columns: repeat(3, minmax(200px, 450px)); /* 3 колонки */
  }
}

/* Для экранов от 768px до 1024px */
@media (max-width: 1024px) and (min-width: 769px) {
  .grid-container {
    grid-template-columns: repeat(2, minmax(200px, 600px)); /* 2 колонки */
  }
}

/* Для экранов уже 768px */
@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(1, minmax(200px, 600px)); /* 1 колонка */
  }
}

/* Стрелка "наверх" */
.scroll-to-top {
  position: fixed;
  bottom: 60px;
  right: 30px;
  width: 30px;
  height: 15px;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 1s ease-in-out, transform 1s ease-in-out;
  z-index: 1001;
}

.scroll-to-top:hover {
  opacity: 1;
  transform: scale(1.25);
}

.scroll-to-top.hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-to-top img {
  width: 100%;
  height: 100%;
  filter: invert(20%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%)
    contrast(83%);
}

@media (max-width: 768px) {
  .navbar {
    padding: 0;
  }

  .header {
    padding: 0 20px;
  }
}

/* === Hamburger panel (global) === */

.hamburger-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1999;
  background: transparent;
  display: none;
}

.hamburger-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  z-index: 2000;
  display: none;
  background: rgba(51, 51, 51, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}

body.hamburger-open .hamburger-backdrop,
body.hamburger-open .hamburger-panel {
  display: block;
}

body.hamburger-open .menu {
  visibility: hidden;
}

.hamburger-panel__header {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 0 30px;
  box-sizing: border-box;
}

.hamburger-search {
  position: relative;
  height: 20px;
  flex: 1 1 auto;
  max-width: 100%;
}

.hamburger-search__input {
  width: 100%;
  height: 20px;
  border: none;
  outline: none;
  box-sizing: border-box;
  border-radius: 10px;
  background: rgba(51, 51, 51, 0.15);
  padding: 0 28px 0 10px;
  font-family: "FuturaPTBook", sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: rgba(51, 51, 51, 0.9);
}

.hamburger-search__input::placeholder {
  color: rgba(51, 51, 51, 0.5);
}

.hamburger-search__icon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  opacity: 0.75;
  filter: invert(18%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%)
    contrast(81%);
  pointer-events: none;
}

.hamburger-close {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  cursor: pointer;
  opacity: 0.75;
  transition: transform 0.25s ease;
  filter: invert(18%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%)
    contrast(81%);
}

.hamburger-close:hover {
  transform: scale(1.2);
}

.hamburger-panel__content {
  box-sizing: border-box;
  padding: 0 30px 40px;
  max-height: calc(100vh - 90px);
  overflow: auto;
}

.hamburger-links {
  display: none;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.hamburger-links a {
  font-family: "FuturaPTBook", sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(51, 51, 51, 0.9);
  transition: transform 0.75s ease;
  display: inline-block;
  width: fit-content;
  transform-origin: left center;
  font-weight: 400;
}

.hamburger-links a:hover {
  transform: scale(1.25);
  font-family: "FuturaPTHeavy", sans-serif;
  font-weight: 700;
}

.hamburger-results {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.hamburger-result {
  text-decoration: none;
  color: inherit;
  display: block;
}

.hamburger-result__image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.hamburger-result__title {
  margin-top: 10px;
  font-family: "HelveticaNeueCyr Bold", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #333333;
}

/* Стили для страницы проекта */
/* Ограничение ширины текста и выравнивание по левому краю изображения */
.content {
  padding: 190px 100px 110px;
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center; /* Центрируем контент по горизонтали */
}

/* ========== Service detail pages content layout ========== */
.content--service-detail {
  box-sizing: border-box;
  min-height: 100vh;
  padding: 190px 100px 110px; /* header (90) + 100px, and ~100px horizontally */
  display: flex;
  justify-content: flex-start;
  align-items: center; /* горизонтальное центрирование */
}

.service-detail {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.service-detail__title {
  font-family: "HelveticaNeueCyr Bold", sans-serif;
  font-size: 36px;
  color: #1a1a1a;
  margin: 0 0 45px;
}

.service-detail__price {
  font-family: "HelveticaNeueCyr Bold", sans-serif;
  font-size: 16px;
  color: #4d4d4d;
  margin: 0 0 40px; /* bigger gap before description */
}

.service-detail__description,
.service-detail__meta {
  font-family: "HelveticaNeueCyr Light", sans-serif;
  font-size: 14px;
  line-height: 150%;
  color: #000000;
  margin: 0 0 16px;
}

.service-detail__meta strong {
  font-family: "HelveticaNeueCyr Bold", sans-serif;
}

.service-detail__textblock {
  margin: 0 0 45px; /* gap before Order button */
}

.service-detail__order {
  width: 100px;
  height: 50px;
  border: none;
  border-radius: 7px;
  background: #3d993d;
  font-family: "HelveticaNeueCyr Bold", sans-serif;
  font-size: 20px;
  color: #e6e6e6;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0 0 65px; /* gap before Examples */
  transition: background-color 0.25s ease;
  text-decoration: none;
}

.service-detail__order:hover {
  background: #368736;
}

.service-detail__examples-title {
  font-family: "HelveticaNeueCyr Bold", sans-serif;
  font-size: 16px;
  color: #4d4d4d;
  margin: 0 0 15px;
}

.service-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
}

.service-tile {
  position: relative;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.service-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s ease-in-out;
}

.service-tile:hover img {
  transform: scale(1.07);
}

@media (max-width: 1100px) {
  .service-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .content {
    padding: 190px 24px 110px;
  }

  .content--service-detail {
    padding: 190px 24px 110px;
  }

  .service-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .service-gallery {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

h1,
#projectSubtitle,
.description {
  width: 100%;
  max-width: 900px; /* Ограничиваем ширину текста шириной изображения */
  text-align: left; /* Выравниваем текст по левому краю */
}

/* Стили для заголовка */
h1 {
  font-family: "HelveticaNeueCyr Bold", sans-serif;
  font-size: 36px;
  color: #333333;
  margin-bottom: 5px;
  max-width: 900px; /* Ограничиваем ширину текста шириной изображения */
  text-align: left; /* Выравниваем текст по левому краю */
}

/* Стили для подзаголовка */
.project-subtitle {
  font-family: "HelveticaNeueCyr Bold", sans-serif; /* Шрифт */
  font-size: 20px; /* Размер шрифта */
  color: #333333; /* Цвет текста */
  opacity: 0.3; /* Прозрачность */
  margin-bottom: 30px; /* Отступ снизу */
  max-width: 900px; /* Ограничиваем ширину текста шириной изображения */
  text-align: left; /* Выравниваем текст по левому краю */
}

/* Стили для текста */
.text-block {
  font-family: "HelveticaNeueCyr Light", sans-serif;
  font-size: 14px;
  line-height: 150%;
  color: #000000;
  margin-bottom: 30px;
  max-width: 900px; /* Ограничиваем ширину текста шириной изображения */
  text-align: left; /* Выравниваем текст по левому краю */
}

.text-block strong {
  font-family: "HelveticaNeueCyr Bold", sans-serif;
  font-size: 20px;
}

/* Стили для изображений */
.image-block {
  margin-bottom: 30px;
  text-align: center;
}

.image-block img {
  width: 100%;
  max-width: 900px;
  object-fit: cover;
}

.video-block {
  margin-bottom: 30px;
  text-align: center;
}

.video-block video {
  width: 100%;
  max-width: 900px;
  height: auto;
}

video {
  width: 100%;
  max-width: 900px;
  height: auto;
  margin-bottom: 30px; /* Чтобы отступы были как у изображений */
  pointer-events: auto; /* Разрешить взаимодействие с видео */
}

.smart-video--short::-webkit-media-controls {
  display: none !important;
}

.smart-video--short::-webkit-media-controls-enclosure {
  display: none !important;
}

/* Critical: prevent browser hover overlays (PiP, etc.) on short loop videos */
.image-block .smart-video--short {
  pointer-events: none;
}

/* Защита изображений от скачивания */
img {
  user-select: none; /* Запрет выделения */
  -webkit-user-select: none; /* Для Safari */
  -moz-user-select: none; /* Для Firefox */
  -ms-user-select: none; /* Для старых версий IE */
}

/* Заглушка для страниц в работе */
.page-placeholder {
  width: 100%;
  min-height: calc(100vh - 200px); /* с учётом фиксированных header + footer */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-placeholder-text {
  margin: 0;
  color: #333333;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.2;
}

.page-placeholder-strong {
  font-family: "HelveticaNeueCyr Bold", sans-serif;
}

.page-placeholder-light {
  font-family: "HelveticaNeueCyr Light", sans-serif;
}

/* ========== Contact / email page (Figma 1:116, 1:131) ========== */
.content--contact {
  box-sizing: border-box;
  min-height: 100vh;
  padding: 90px 24px 60px; /* fixed header + footer */
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  justify-content: center; /* vertical centering */
  align-items: center; /* horizontal centering */
}

/* Contacts Block (Figma 28:1490) */
.contacts-block {
  display: flex;
  gap: 192px;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 823px; /* 446 + 192 + 185 */
}

/* Block title: 24px, #333 — "Get " Bold, "in touch" Light / "Other " Bold, "contacts" Light */
.contact-block-title {
  margin: 0;
  font-size: 24px;
  color: #333333;
  line-height: 1.2;
}

.contact-block-title--bold {
  font-family: "HelveticaNeueCyr Bold", sans-serif !important;
}

.contact-block-title--light {
  font-family: "HelveticaNeueCyr Light", sans-serif !important;
  font-weight: normal;
}

.contacts-left {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 446px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.contact-form__input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  height: 36px;
  padding: 12px;
  margin-bottom: 0;
  font-family: "HelveticaNeueCyr Light", sans-serif;
  font-size: 12px;
  color: #333333;
  background-color: rgba(204, 204, 204, 0.5);
  border: none;
  border-radius: 0;
  outline: none;
}

.contact-form__input::placeholder {
  color: rgba(51, 51, 51, 0.5);
}

.contact-form__input:focus {
  background-color: rgba(204, 204, 204, 0.7);
}

.contact-form__textarea {
  height: 103px;
  min-height: 103px;
  resize: vertical;
}

.contact-form__submit {
  width: 120px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "HelveticaNeueCyr Bold", sans-serif;
  font-size: 12px;
  text-transform: none;
  color: #333333;
  background-color: #b3b3b3;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.contact-form__submit:hover {
  background-color: #a6a6a6;
}
.contacts-right {
  display: flex;
  flex-direction: column;
  gap: 29px;
  width: 185px;
}

.contacts-left,
.contacts-right {
  min-height: 295px;
}

.contacts-right-grid {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contacts-icons {
  width: 30px;
  display: flex;
  flex-direction: column;
  gap: 23px;
}

.contact-icon-link {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.contact-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon img {
  width: 30px;
  height: 30px;
  filter: invert(18%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%)
    contrast(81%);
  opacity: 0.25;
}

.contacts-text {
  width: 135px;
  display: flex;
  flex-direction: column;
  gap: 23px;
}

.contacts-text .contact-list__link {
  height: 30px;
  display: flex;
  align-items: center;
}

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

.contact-list__item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-list__item:last-child {
  margin-bottom: 0;
}

.contact-list__icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(204, 204, 204, 0.5);
}

.contact-list__icon img {
  width: 18px;
  height: 18px;
  filter: invert(18%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(81%);
}

.contact-list__link {
  font-family: "HelveticaNeueCyr Roman", "HelveticaNeueCyr Light", sans-serif;
  font-size: 12px;
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-list__link:hover {
  color: #333333;
}

@media (max-width: 768px) {
  .content--contact {
    padding: 190px 24px 60px;
  }

  .contacts-block {
    flex-direction: column;
    align-items: stretch;
    gap: 100px;
    max-width: 446px;
  }

  .contacts-left {
    width: 100%;
  }

  .contacts-right {
    width: 100%;
  }
}

/* When available width < 823px, pin columns to edges (no jump) */
@media (max-width: 871px) and (min-width: 769px) {
  .contacts-block {
    width: 100%;
    max-width: none;
    justify-content: space-between;
    gap: 0;
  }
}

/* ========== Work project page: fullscreen image lightbox ========== */
body.work-lightbox-open {
  overflow: hidden;
}

.work-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #333333;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}

.work-lightbox__stage {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.work-lightbox__viewport {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: default;
}

.work-lightbox__viewport--zoomed {
  cursor: grab;
}

.work-lightbox__viewport--dragging {
  cursor: grabbing;
}

.work-lightbox__pan {
  flex-shrink: 0;
  pointer-events: auto;
  transform-origin: center center;
}

.work-lightbox__media {
  display: block;
  pointer-events: auto;
}

/* Circular frosted disks under arrows (dia = 2 × arrow icon height) */
.work-lightbox__control-disk {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: rgba(51, 51, 51, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}

/* Same as homepage .left / .right positioning and arrow treatment (styles/style.css) */
.work-lightbox__arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10051;
  width: 60px;
  height: 60px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.work-lightbox__arrow--prev {
  left: 30px;
}

.work-lightbox__arrow--next {
  right: 30px;
}

.work-lightbox__arrow img.arrow-left,
.work-lightbox__arrow img.arrow-right {
  position: relative;
  z-index: 1;
  height: 30px;
  width: auto;
  filter: invert(80%) sepia(10%) saturate(0%) hue-rotate(180deg) brightness(95%);
  opacity: 0.5;
  transition: opacity 0.75s ease-in-out, transform 0.75s ease-in-out;
}

.work-lightbox__arrow:hover img.arrow-left,
.work-lightbox__arrow:hover img.arrow-right {
  opacity: 1;
  transform: scale(1.2);
}

/* Close icon: sidebar / hamburger (style-pages.css .hamburger-close), fixed corner */
.work-lightbox__close {
  position: fixed;
  top: 31px; /* vertically centered vs 90px header bar for 28px hit target */
  right: 30px;
  z-index: 10051;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.work-lightbox__control-disk--close {
  pointer-events: none;
}

.work-lightbox .work-lightbox__close-img.hamburger-close {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.75;
  transition: transform 0.25s ease;
  filter: invert(90%) sepia(10%) saturate(0%) hue-rotate(180deg)
    brightness(95%);
}

.work-lightbox__close:hover .work-lightbox__close-img {
  transform: scale(1.2);
}
