:root {
  --bg: #f3f8ee;
  --surface: #ffffff;
  --text: #183625;
  --muted: #5d7f67;
  --accent: #79c586;
  --border: #dff4e8;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(180deg, #f7fff2 0%, #eaf6e7 100%);
  color: var(--text);
}

a {
  text-decoration: none;
  color: inherit;
}

.gallery-header {
  padding: 32px 24px 0;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(120, 184, 126, 0.35);
  color: var(--accent);
  font-weight: 600;
  width: fit-content;
  box-shadow: 0 14px 30px rgba(102, 143, 107, 0.12);
}

.gallery-title {
  max-width: 700px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.gallery-title h1 {
  font-size: clamp(2.2rem, 3vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 16px;
}

.gallery-title p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 650px;
  line-height: 1.8;
}

.gallery-main {
  max-width: 1100px;
  margin: 0 auto 40px;
  padding: 24px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.tiktok-section {
  margin-top: 40px;
  padding: 26px 0 12px;
}

.tiktok-header {
  margin-bottom: 18px;
}

.tiktok-header h2 {
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  margin: 10px 0 0;
  line-height: 1.15;
}

.tiktok-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tiktok-card {
  background: var(--surface);
  border: 1px solid rgba(143, 191, 146, 0.22);
  border-radius: 24px;
  box-shadow: 0 14px 32px rgba(94, 142, 98, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tiktok-card a {
  display: grid;
  gap: 8px;
  padding: 20px;
  color: inherit;
}

.tiktok-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(94, 142, 98, 0.16);
  border-color: rgba(123, 207, 143, 0.35);
}

.tiktok-name {
  font-weight: 700;
}

.tiktok-username {
  color: var(--muted);
  font-size: 0.95rem;
}

.photo-card {
  background: var(--surface);
  border: 1px solid rgba(143, 191, 146, 0.22);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(94, 142, 98, 0.12);
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.7s ease, opacity 0.7s ease;
}

.photo-card.visible {
  transform: translateY(0);
  opacity: 1;
}

.photo-card img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-info {
  padding: 20px 22px 24px;
}

.photo-info h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.photo-info p {
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .gallery-header,
  .gallery-main {
    padding: 18px;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }
}
