/* ── Photos page ── */

.photos-page {
  background: #0a0a0a;
  min-height: 100vh;
}

.gallery-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px);
  padding: 3rem 2rem;
  opacity: 0;
  animation: fadeIn 1s ease 0.1s forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.gallery-outer {
  position: relative;
  width: 100%;
  max-width: 960px;
}

.gallery-viewport {
  overflow: hidden;
  width: 100%;
  padding: 0 9rem;
  cursor: grab;
  user-select: none;
}

.gallery-viewport:active { cursor: grabbing; }

.gallery-track {
  display: flex;
  will-change: transform;
}

.slide {
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 0 0.4rem;
}

.slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: opacity 0.2s;
}

.slide img:hover { opacity: 0.85; }

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 0.75rem 1rem;
  transition: color 0.2s, background 0.2s;
  z-index: 2;
  line-height: 1;
}

.arrow:hover { color: #C9A84C; background: rgba(0,0,0,0.8); }
.arrow-left  { left: -3rem; }
.arrow-right { right: -3rem; }

.counter {
  margin-top: 1.5rem;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.3);
}

.counter span { color: #C9A84C; }

/* ── Fullscreen overlay ── */
.fs-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.97);
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
}

.fs-overlay.open {
  display: flex;
}

.fs-img {
  max-width: 100vw;
  max-height: 100vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.fs-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #fff;
  font-size: 1.75rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.fs-close:hover { color: #C9A84C; }

.fs-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 0.75rem 1rem;
  z-index: 10000;
  transition: color 0.2s, background 0.2s;
  line-height: 1;
}

.fs-arrow:hover { color: #C9A84C; background: rgba(0, 0, 0, 0.8); }
.fs-prev { left: 1rem; }
.fs-next { right: 1rem; }

.fs-counter {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.4);
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .slide img { height: 300px; }
  .arrow-left  { left: -0.25rem; }
  .arrow-right { right: -0.25rem; }
  .gallery-wrap { padding: 2rem 1.5rem; }
  .gallery-viewport { padding: 0; overflow: visible; touch-action: pan-y; }
  .gallery-outer { overflow: hidden; }

  .fs-img {
    max-width: 100vw;
    max-height: 100vh;
    width: 100vw;
  }
}
