/* =============================================
   Lucifer Nails — Gallery Page
   ============================================= */

/* ---------- Hero ---------- */
.g-hero {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 150px 32px 60px;
  text-align: center;
}
.g-hero-eyebrow {
  justify-content: center;
}
.g-hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.5vw, 80px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin: 20px 0 28px;
}
.g-hero-title em {
  font-family: var(--font-highlight);
  font-weight: 800;
  font-style: italic;
  color: var(--accent);
  font-size: 1.15em;
  vertical-align: -0.01em;
  letter-spacing: -0.01em;
}
.g-hero-lede {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 auto;
}

/* ---------- Grid ---------- */
.g-section {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px 80px;
}

.g-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 720px) {
  .g-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}
@media (max-width: 720px) {
  .g-section { padding: 24px 20px 60px; }
}

.g-tile {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1), border-color 0.4s;
}
.g-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(1.3);
  transition: transform 0.7s cubic-bezier(.2,.8,.2,1), filter 0.4s;
}
.g-tile::after {
  /* subtle pink hover glow overlay */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 5, 127, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.g-tile:hover {
  border-color: var(--accent);
}
.g-tile:hover img {
  transform: scale(1.05);
}
.g-tile:hover::after {
  opacity: 1;
}

/* ---------- Show/hide logic — desktop shows 9, mobile shows 6 ---------- */
/* Desktop: hide tiles 10, 11, 12, 13 (nth-child(n+10)) */
.g-grid:not(.is-expanded) .g-tile:nth-child(n+10) {
  display: none;
}
/* Mobile: hide tiles 7+ */
@media (max-width: 720px) {
  .g-grid:not(.is-expanded) .g-tile:nth-child(n+7) {
    display: none;
  }
}
/* Extra tiles fade in when expanded */
.g-grid.is-expanded .g-tile:nth-child(n+10) {
  animation: g-fadeIn 0.6s ease both;
}
@media (max-width: 720px) {
  .g-grid.is-expanded .g-tile:nth-child(n+7) {
    animation: g-fadeIn 0.5s ease both;
  }
}
@keyframes g-fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Mehr Button ---------- */
.g-more-wrap {
  text-align: center;
  margin-top: 40px;
}
.g-more-btn {
  min-width: 200px;
}
.g-more-btn.is-hidden {
  display: none;
}

/* ---------- Instagram CTA ---------- */
.g-insta {
  position: relative;
  z-index: 2;
  padding: 100px 32px 120px;
  text-align: center;
  overflow: hidden;
}
.g-insta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(255, 5, 127, 0.06) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}
.g-insta-inner {
  max-width: 600px;
  margin: 0 auto;
}
.g-insta-eyebrow {
  justify-content: center;
}
.g-insta-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin: 16px 0 20px;
}
.g-insta-title em {
  font-family: var(--font-highlight);
  font-weight: 800;
  font-style: italic;
  color: var(--accent);
  font-size: 1.15em;
  vertical-align: -0.01em;
  letter-spacing: -0.01em;
}
.g-insta-text {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 32px;
}
.g-insta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  /* Echte Kontur statt (unzuverlässiger) synthetischer Bold */
  -webkit-text-stroke: 0.6px currentColor;
  text-stroke: 0.6px currentColor;
  font-weight: 700;
  font-synthesis: weight;
}
.g-insta-btn svg {
  flex-shrink: 0;
  stroke-width: 2;
}