/* /gallery/gallery.css */

/* =======================================================================
   Base
   ======================================================================= */
:root {
  --bg: #ffffff;
  --text: #111111;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: var(--bg);
}

body {
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* =======================================================================
   Header (same system as Story)
   ======================================================================= */
.hero-header {
  max-width: var(--max);
  margin: 0 auto;

  padding-top: 22px;
  padding-bottom: 20px;
  padding-left: 24px;
  padding-right: 24px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.hero-logo {
  display: block;
  line-height: 0;
}

.hero-logo img {
  width: 160px;
  height: auto;
  display: block;
}

.hero-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;

  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-nav a {
  color: rgba(0, 0, 0, 0.78);
  text-decoration: none;
}

.hero-nav a[aria-current="page"] {
  background: #111;
  color: #fff;
  padding: 6px 12px;
  font-weight: 500;
}

.hero-nav a:hover {
  color: #111;
}

/* Mobile parity */
@media (max-width: 640px) and (orientation: portrait) {
  .hero-header {
    padding-top: calc(14px + env(safe-area-inset-top));
    padding-bottom: 18px;
    gap: 12px;
  }

  .hero-logo img {
    width: clamp(120px, 42vw, 160px);
  }

  .hero-nav {
    font-size: 14px;
    letter-spacing: 0.14em;
    gap: 12px;
  }

  .hero-nav a {
    padding: 6px 0;
  }

  .hero-nav a[aria-current="page"] {
    padding: 6px 12px;
  }
}

/* =======================================================================
   Gallery viewport + horizontal scroll strip
   ======================================================================= */
.gallery-viewport {
  position: relative;
  width: 100%;
  padding: 34px 24px 70px;
  overflow: hidden;
  /* hides fade edge overflow */
}

/* Horizontal strip */
.gallery-strip {
  display: flex;
  align-items: center;
  gap: 26px;

  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;

  padding: 10px 6px 18px;
  margin: 0 auto;
  max-width: min(1400px, 96vw);

  /* nicer feel */
  scroll-snap-type: x proximity;
}

/* Hide scrollbar (optional; keeps premium) */
.gallery-strip::-webkit-scrollbar {
  height: 0px;
}

.gallery-strip {
  scrollbar-width: none;
}

/* Items */
.g-item {
  flex: 0 0 auto;
  margin: 0;
  /* background: #fff; */
  /* border: 10px solid #fff; */
  /* “mat” */
  /* outline: 1px solid rgba(0, 0, 0, 0.25); */
  /* thin frame line */
  scroll-snap-align: start;
}

.g-item img {
  display: block;
  height: 340px;
  /* baseline height */
  width: auto;
}

/* Variants to mimic your mockup */
.g-wide img {
  height: 360px;
}

.g-tall img {
  height: 360px;
}

/* Responsive sizing */
@media (max-width: 980px) {
  .g-item img {
    height: 280px;
  }
}

/* =======================================================================
   Right-edge white fade (PNG overlay)
   ======================================================================= */
.gallery-fade {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(220px, 22vw);

  background: url("images/g_right_blend.png") right center / cover no-repeat;

  pointer-events: none;
}

/* =======================================================================
   Gallery scroll arrows
   ======================================================================= */

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;

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

  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.25);
  color: #111;

  width: 42px;
  height: 42px;
  border-radius: 999px;

  font-size: 26px;
  line-height: 1;
  /* important */
  cursor: pointer;

  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
}


/* Placement */
.gallery-arrow--left {
  left: 20px;
}

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

/* Reveal on hover */
.gallery-viewport:hover .gallery-arrow {
  opacity: 1;
}

/* Subtle hover nudge */
.gallery-arrow:hover {
  transform: translateY(-50%) scale(1.05);
}

/* Hide on mobile (touch scroll is better) */
@media (max-width: 768px) {
  .gallery-arrow {
    display: none;
  }
}

.gallery-arrow {
  opacity: 0.25;
  padding: 0px 0px 5px 0px;
}

.gallery-arrow:hover {
  background: #111;
  color: #fff;
}