/* ===================================================
   style.css — v2.5 (исправленный)
   =================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --glow-strength: .9;
  --header-h: 56px;
}

@media (max-width: 640px) {
  :root { --header-h: 52px; }
}

html,
body {
  height: 100%;
}

body {
  background: #090909;
  color: #fff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell,
    "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", "Noto Color Emoji", sans-serif;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow-x: hidden;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top));
  position: relative;
}

/* ======== ОБЕРТКА ГАЛЕРЕИ (первая секция) ======== */
#galleryWrap {
  position: relative;
  width: 100%;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: clamp(0px, 4vw, 0px);
  gap: clamp(0px, 3vw, 32px);
}

/* ======== ЗАГОЛОВОК (ЛОГО + ТЕКСТ) ======== */
#galleryHeading {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
  z-index: 0;
  pointer-events: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
  margin-left: clamp(4vw, 6vw, 8vw);
}

#galleryLogo {
  width: clamp(50px, 10vw, 120px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, .18));
}

#galleryWord {
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 700;
  text-transform: uppercase;
  color: rgb(255, 255, 255);
  line-height: 1.05;
}

@media (max-width: 600px) {
  #galleryWord { font-size: clamp(22px, 5vw, 36px); }
}

/* ======== СВЕЧЕНИЕ ======== */
.glow-layer {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  border-radius: 28px;
  filter: blur(60px);
  transition: opacity .45s ease, left .35s ease, top .35s ease,
    width .35s ease, height .35s ease;
  background:
    radial-gradient(60% 70% at 50% 30%, var(--glow-1, #222) 0%, rgba(0, 0, 0, 0) 65%),
    radial-gradient(70% 60% at 85% 70%, var(--glow-2, #222) 0%, rgba(0, 0, 0, 0) 70%),
    radial-gradient(70% 60% at 15% 70%, var(--glow-3, #222) 0%, rgba(0, 0, 0, 0) 70%);
  will-change: left, top, width, height, opacity;
  contain: layout paint;
}

/* ======== ГАЛЕРЕЯ ======== */
.carousel-container {
  position: relative;
  z-index: 2;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-container::-webkit-scrollbar { display: none; }

.carousel {
  display: flex;
  align-items: center;
  padding-top: 5vh;
  gap: clamp(16px, 4vw, 40px);
  flex-wrap: nowrap;
  scroll-behavior: smooth;
  scroll-padding-inline: 50%;
  padding-bottom: 2vh; /* было 5vh — интегрировано из фикса */
  width: 100%;
}

.spacer {
  flex: 0 0 var(--w, 1px);
  height: 10px;
  scroll-snap-align: none;
}

/* ======== ПЛИТКИ ======== */
.tile {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  background: transparent;
  transition: transform .5s ease, opacity .5s ease;
  scroll-snap-align: center;
  will-change: transform;
}
.tile.active { transform: scale(1.05); }

.gallery-swipe-hint {
  position: absolute;
  left: clamp(16px, 4vw, 64px);
  z-index: 5;
  width: min(39vh, 390px);
  max-height: min(60vh, 520px);
  aspect-ratio: 3 / 4;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(8px, 1.2vw, 14px);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  pointer-events: none;
  opacity: 1;
  transform: translateX(0);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
}

.gallery-swipe-hint.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-24px);
}

.gallery-swipe-hint__text {
  color: #fff;
  font-size: clamp(12px, 1.05vw, 16px);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-wrap: balance;
}

.gallery-swipe-hint__image {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

@media (max-width: 760px), (pointer: coarse) {
  .gallery-swipe-hint {
    display: none;
  }
}

@media (max-width: 760px) {
  [id^="galleryWrap"] {
    overflow-x: clip;
  }

  .glow-layer {
    max-width: 100%;
    left: 0 !important;
  }

  .tile,
  body[data-orientation="portrait"] .tile {
    width: min(82vw, 360px);
    height: auto;
    max-height: none;
    aspect-ratio: 3 / 4;
    opacity: 1;
    visibility: visible;
  }

  .tile.active {
    transform: none;
  }

  .tile-inner,
  .tile img,
  body[data-orientation="portrait"] .tile img {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    opacity: 1;
    visibility: visible;
    object-fit: cover;
  }

  .carousel {
    gap: 16px;
  }
}

.tile-inner {
  border-radius: 20px;
  overflow: hidden;
  background: #11111100;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.tile-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: opacity .3s ease;
}
.tile.active .tile-inner::after { opacity: 0; }

.tile img {
  display: block;
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
}

/* Портретные кадры: масштаб от высоты окна, чтобы всё залезало на экран */
body[data-orientation="portrait"] .tile {
  /* ширину считаем из aspect-ratio по высоте */
  width: auto;
  max-height: min(60vh, 520px); /* ключевая строка: ограничиваем высоту галереи */
  aspect-ratio: 3 / 4;
}

/* заполняем всю плитку, как и раньше */
body[data-orientation="portrait"] .tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  
  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  border: none;

  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-size: 22px;
  font-weight: bold;

  cursor: pointer;
  z-index: 1000;

  backdrop-filter: blur(6px);
  transition: all 0.25s ease;

  opacity: 1;
  pointer-events: auto;
}

.gallery-arrow:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: translateY(-50%) scale(1.08);
}

.gallery-arrow-left {
  left: 20px;
}

.gallery-arrow-right {
  right: 20px;
}


/* ======== ТОЧКИ ======== */
.dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  background: #181818;
  padding: 10px 20px;
  border-radius: 40px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .6);
  margin: 12px auto 24px; /* вместо 4vh auto — из фикса */
  flex-wrap: wrap;
  z-index: 4;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #555;
  transition: all .3s;
}
.dot.active {
  width: 28px;
  height: 12px;
  border-radius: 6px;
  background: #fff;
}

/* ===== Шапка ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  backdrop-filter: blur(8px) saturate(140%);
  background: rgba(6, 6, 6, 0.45);
  z-index: 80;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}
.header-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-name {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .6px;
}
.header-nav {
  display: flex;
  gap: 16px;
  align-items: center;
}
.nav-btn {
  color: #cfe0ff;
  text-decoration: none;
  font-size: 14px;
  opacity: .9;
}

.brand-name {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}

.brand-subtitle {
  position: absolute;
  right: 0;
  bottom: -9px; /* регулируй если нужно чуть ниже/выше */
  font-size: 9px; /* меньше основной */
  letter-spacing: 2px;
  color: #fff;
  opacity: 0.85;
  white-space: nowrap;
}

/* ======== ПУСТОЙ ГЛАВНЫЙ ЭКРАН (фон glow под hero) ======== */
/* 1) glow-фон поверх страницы над галереей */
body::before {
  content: "";
  position: absolute;
  top: calc(var(--header-h) + env(safe-area-inset-top));
  left: 0;
  right: 0;
  height: calc(100vh - var(--header-h) - env(safe-area-inset-top));
  max-height: 100vh;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(60% 70% at 50% 30%, var(--glow-1, #222) 0%, rgba(0, 0, 0, 0) 65%),
    radial-gradient(70% 60% at 85% 70%, var(--glow-2, #222) 0%, rgba(0, 0, 0, 0) 70%),
    radial-gradient(70% 60% at 15% 70%, var(--glow-3, #222) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(60px);
  opacity: .85;
}

/* 2) отступ первой галереи после hero-секции */
#galleryWrap {
  margin-top: clamp(32px, 6vh, 72px);
  z-index: 6;
}

/* На очень низких экранах — меньше высота glow, отступ галереи оставляем тем же */
@media (max-height: 560px) {
  body::before {
    height: calc(85vh - var(--header-h) - env(safe-area-inset-top));
  }
}

/* ===== HERO-СЕКЦИЯ (слайдер на всю высоту экрана под шапкой) ===== */

.hero-slider,
#heroSlider {
  position: relative;
  display: block;
  width: 100%;
  min-height: calc(100vh - var(--header-h) - env(safe-area-inset-top));
  margin: 0;
  padding: 0;
  overflow: hidden;
  z-index: 2;              /* выше фонового glow, ниже шапки */
  background: #050505;     /* на случай, если фото ещё не загрузились */
}

/* контейнер внутри hero */
#heroSlider .hero-track {
  position: relative;
  width: 100%;
  height: 100%;
}

#heroSlider .hero-track > picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* сами фото hero */
#heroSlider .hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition:
    opacity 0.8s ease,
    transform 8s ease;
}

/* активный слайд */
#heroSlider .hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

@media (hover: none) and (pointer: coarse) and (max-width: 950px) {
  html,
  body {
    height: auto;
    min-height: 100%;
    overflow-x: clip !important;
    overflow-y: visible !important;
  }

  .hero-slider,
  #heroSlider {
    height: calc(100svh - var(--header-h) - env(safe-area-inset-top));
    min-height: 0;
  }

  #heroSlider .hero-track,
  #heroSlider .hero-track > picture {
    height: 100%;
  }
}

/* точки-переключатели hero снизу */
#heroSlider .hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  z-index: 3;
}

#heroSlider .hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.25s ease;
}

#heroSlider .hero-dot.active {
  width: 26px;
  background: #ffffff;
}

/* стрелки */
#heroSlider .hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  z-index: 4;
  display: none; /* по умолчанию скрыты */
  transition: background 0.25s ease;
}

#heroSlider .hero-arrow:hover {
  background: rgba(0,0,0,0.7);
}

#heroSlider .hero-arrow-left {
  left: 24px;
}

#heroSlider .hero-arrow-right {
  right: 24px;
}

/* ======== СТИЛИ ДЛЯ ДОПОЛНИТЕЛЬНЫХ ГАЛЕРЕЙ (2–4) ======== */

/* общие стили для всех обёрток галерей */
[id^="galleryWrap"] {
  position: relative;
  width: 100%;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: clamp(0px, 4vw, 0px);
  gap: clamp(0px, 3vw, 32px);
}

[id^="galleryWrap"][hidden] {
  display: none !important;
}

/* Заголовок (лого + слово “Media Basket”) */
[id^="galleryHeading"] {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
  z-index: 0;
  pointer-events: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
  margin-left: clamp(4vw, 6vw, 8vw);
}

[id^="galleryLogo"] {
  width: clamp(50px, 10vw, 120px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, .18));
}

[id^="galleryWord"] {
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 700;
  text-transform: uppercase;
  color: rgb(255, 255, 255);
  line-height: 1.05;
}

@media (max-width: 600px) {
  [id^="galleryWord"] {
    font-size: clamp(22px, 5vw, 36px);
  }
}

/* Отступы между секциями галерей */
[id^="galleryWrap"] + [id^="galleryWrap"] {
  margin-top: clamp(36px, 8vw, 80px);
}

/* ======== ЭКРАН ЗАГРУЗКИ ======== */
#preloader {
  position: fixed;
  inset: 0;
  background: #0f0f0f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-ring {
  width: 80px;
  height: 80px;
  border: 4px solid rgba(255, 255, 255, 0.15);
  border-top-color: rgb(255, 0, 0);
  border-radius: 50%;
  animation: spin 1.3s linear infinite;
  margin-bottom: 18px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.loader-text {
  color: #fff;
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 400;
  letter-spacing: 1.2px;
  opacity: 0.85;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ======== ЭТАПЫ ОБРАБОТКИ (одиночный вертикальный кадр) ======== */

#processWrap {
  position: relative;
  width: 100%;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;         /* центрируем всё по горизонтали */
  justify-content: flex-start;
  padding: clamp(16px, 4vw, 10px);
  gap: clamp(16px, 3vw, 32px);
  margin-top: clamp(36px, 8vw, 80px);
}

/* заголовок этапов */
#galleryHeading5 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 20px);
  z-index: 0;
  pointer-events: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

#galleryWord5 {
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.05;
  opacity: .95;
}

.process {
  width: 100%;
  display: flex;
  justify-content: center;
}

.process input[type="radio"] {
  position: absolute;
  inset: auto;
  opacity: 0;
  pointer-events: none;
}

.process-inner {
  position: relative;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 3vw, 24px);
}

/* КАРТОЧКА С ФОТО: максимально большая, но внутри экрана */
.process-card {
  position: relative;
  z-index: 3;
  display: grid;
  border-radius: 24px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);

  aspect-ratio: 3 / 4;             /* портретное соотношение */

  /* базовый размер: почти на всю ширину, ограничен по высоте окна */
  width: min(90vw, 520px);
  max-height: calc(100vh - 220px); /* 220px оставляем под шапку, заголовок и табы */
}

.stage-img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  visibility: hidden;
  transition: none;
}

/* переключение изображений без JS */
#stage-1:checked ~ .process-inner .s1 {
  opacity: 1;
  visibility: visible;
}
#stage-2:checked ~ .process-inner .s2 {
  opacity: 1;
  visibility: visible;
}
#stage-3:checked ~ .process-inner .s3 {
  opacity: 1;
  visibility: visible;
}

/* активный таб */
#stage-1:checked ~ .process-inner .stage-tabs label[for="stage-1"],
#stage-2:checked ~ .process-inner .stage-tabs label[for="stage-2"],
#stage-3:checked ~ .process-inner .stage-tabs label[for="stage-3"] {
  color: #0d0d0d;
  background: #ffffff;
  border-color: transparent;
}

.stage-tabs {
  z-index: 4;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  background: #181818;
  padding: 10px 14px;
  border-radius: 40px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .6);
}

.stage-tabs label {
  cursor: pointer;
  user-select: none;
  padding: 10px 18px;
  border-radius: 28px;
  font-size: clamp(12px, 1.6vw, 16px);
  color: #cfcfcf;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: background .25s ease, color .25s ease, transform .2s ease;
}

.stage-tabs label:hover {
  transform: translateY(-1px);
}

/* glow-слой для процесса — такой же размер, как у карточки */
.process-inner .process-glow {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -52%);
  width: min(95vw, 640px);
  max-height: calc(100vh - 220px);
  aspect-ratio: 3 / 4;
  filter: blur(90px);
  opacity: var(--glow-strength, .9);
  border-radius: 28px;
}

/* цвета glow по этапам */
#stage-1:checked ~ .process-inner {
  --glow-1: rgba(107, 255, 90, 0.9);
  --glow-2: rgba(0, 255, 140, 0.7);
  --glow-3: rgba(0, 110, 255, 0.7);
}

#stage-2:checked ~ .process-inner {
  --glow-1: rgba(255, 180, 40, 0.9);
  --glow-2: rgba(255, 206, 9, 0.7);
  --glow-3: rgba(220, 157, 40, 0.7);
}

#stage-3:checked ~ .process-inner {
  --glow-1: rgba(255, 0, 0, 0.922);
  --glow-2: rgba(255, 86, 2, 0.65);
  --glow-3: rgba(255, 0, 85, 0.6);
}

/* Мобильная ширина — скругления чуть меньше */
@media (max-width: 520px) {
  .process-card { border-radius: 20px; }
}

/* ПОРТРЕТНАЯ ОРИЕНТАЦИЯ: фото почти на весь экран */
@media (orientation: portrait) {
  .process-card {
    width: min(90vw, 5000px);
    max-height: calc(100vh - 220px);  /* блок целиком влезает в экран */
  }

.process-inner .process-glow {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -52%);
  width: 100%;        /* вместо min(95vw, 640px) */
  max-width: 560px;   /* чтобы не раздувался на больших экранах */
  aspect-ratio: 3 / 4;
  filter: blur(60px);
  opacity: var(--glow-strength, .9);
  border-radius: 28px;
}

}

/* ГОРИЗОНТАЛЬНАЯ ОРИЕНТАЦИЯ: уменьшаем заголовок, фото максимально по высоте */
@media (orientation: landscape) {
  #galleryWord5 {
    font-size: clamp(20px, 3vh, 32px);  /* текст меньше, чем в портрете */
  }

  .process-card {
    width: min(60vw, 480px);
    max-height: calc(100vh - 20px);   /* больше места под фото, но без выхода за экран */
  }

@media (max-width: 520px) {
  .process-inner .process-glow {
    width: 100%;
    max-width: 560px;
  }
}

}

/* --- Универсальный футер Mikhail Brynn --- */

.mb-footer {
  width: 100%;
  background: #0a0a0c;
  padding: 32px 20px;
  margin-top: auto; /* футер прилипает к низу окна, если контента мало */
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.05);
}

.mb-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  color: #e6e6ea;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

.mb-footer-inner p {
  margin: 4px 0;
}



/* ============================================================
   Уменьшение размеров ВСЕХ логотипов и заголовков галерей
   в горизонтальной ориентации (not portrait)
   ============================================================ */
@media (orientation: landscape) {

  /* Контейнер заголовка – меньше отступов и дистанции */
  #galleryHeading,
  [id^="galleryHeading"] {
    gap: clamp(8px, 1vw, 14px);
    margin-left: clamp(1.5vw, 2.5vw, 3vw);
  }

  /* ЛОГО — уменьшение для всех галерей */
  #galleryLogo,
  [id^="galleryLogo"] {
    width: clamp(32px, 5vw, 70px); /* было до 120px → теперь компактно */
  }

  /* ТЕКСТ (MEDIA BASKET, KIKI CLUB, etc.) — тоже уменьшаем */
  #galleryWord,
  [id^="galleryWord"] {
    font-size: clamp(18px, 2.6vw, 38px); /* аккуратнее, не огромно */
    line-height: 1.1;
  }
}

html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  position: relative;
}


/* кнопка увеличения */

.zoom-btn{
position:absolute;
right:14px;
bottom:14px;

width:44px;
height:44px;

border-radius:50%;
border:none;

background:rgba(0,0,0,.75);
backdrop-filter:blur(6px);

display:flex;
align-items:center;
justify-content:center;

cursor:pointer;

opacity:0;
transform:scale(.9);
transition:.25s;

z-index:5;
}

.tile.active .zoom-btn{
opacity:1;
transform:scale(1);
}

.zoom-btn:hover{
background:rgba(0,0,0,.9);
transform:scale(1.05);
}


/* VIEWER */

#photoViewer{
  position:fixed;
  inset:0;

  display:flex;
  align-items:center;
  justify-content:center;

  pointer-events:none;
  opacity:0;

  transition:.35s;
  z-index:9999;
}

#photoViewer.open{
  opacity:1;
  pointer-events:auto;
}

.viewer-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.82);
  backdrop-filter:blur(6px);
}

#viewerImage{
  position:relative;

  max-width:90vw;
  max-height:88vh;

  border-radius:18px;

  box-shadow:0 30px 120px rgba(0,0,0,.7);

  transform:scale(.92);
  transition:.35s;
}

#photoViewer.open #viewerImage{
  transform:scale(1);
}

#viewerClose{
position:absolute;

top:24px;
right:24px;

width:46px;
height:46px;

border-radius:50%;
border:none;

background:rgba(0,0,0,.75);
backdrop-filter:blur(6px);

display:flex;
align-items:center;
justify-content:center;

cursor:pointer;

z-index:10001;
}

#viewerClose:hover{
background:rgba(0,0,0,.9);
}
