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

:root {
  --yellow: #ffe066;
  --pink:   #ff6b9d;
  --brown:  #3d2410;
  --cream:  #fffdf5;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--brown);
}

/* Age banner */
.age-banner {
  background: var(--pink);
  color: #fff;
  text-align: center;
  padding: 6px 16px;
  font-family: 'Fredoka One', cursive;
  font-size: 1.25rem;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.banner-home-link {
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  opacity: 0.85;
  margin-right: auto;
  white-space: nowrap;
}

.banner-home-link:hover {
  opacity: 1;
}

.banner-other-dogs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding-right: 4px;
}

.banner-other-label {
  font-size: 0.7rem;
  opacity: 0.85;
  white-space: nowrap;
}

.banner-dog-link {
  display: flex;
  align-items: center;
}

.banner-dog-link img {
  height: 2em;
  max-height: 2em;
  width: auto;
  display: block;
  border-radius: 50%;
  transition: transform 0.15s ease;
}

.banner-dog-link:hover img {
  transform: scale(1.15);
}

/* Hero */
.hero {
  background: var(--yellow);
  padding: 52px 20px 44px;
  text-align: center;
}

.hero-intro {
  font-size: 1rem;
  color: var(--brown);
  opacity: 0.6;
  margin-bottom: 6px;
}

.hero h1 {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(2.2rem, 7vw, 4rem);
  color: var(--brown);
  line-height: 1.1;
}

.aka {
  margin-top: 8px;
  font-size: 1.2rem;
  color: var(--brown);
  opacity: 0.75;
}

/* Hero heart portrait */
.hero-heart-frame {
  width: 312px;
  height: 292px;
  margin: 32px auto 0;
  background: var(--pink);
  clip-path: path("M156 271 C62 209 0 162 0 99 C0 47 42 10 88 10 C112 10 133 23 156 42 C179 23 200 10 224 10 C270 10 312 47 312 99 C312 162 250 209 156 271Z");
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 6px 18px rgba(255,107,157,0.35));
}

.hero-heart {
  width: 300px;
  height: 280px;
  clip-path: path("M150 260 C60 200 0 155 0 95 C0 45 40 10 85 10 C108 10 128 22 150 40 C172 22 192 10 215 10 C260 10 300 45 300 95 C300 155 240 200 150 260Z");
  overflow: hidden;
}

.hero-heart img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: center top;
}

/* Photos */
.photos-section {
  padding: 48px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.photo-card {
  border-radius: 8px;
  overflow: hidden;
  background: #e8e0d5;
}

.photo-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.photo-card.placeholder img {
  display: none;
}

.photo-card.placeholder::before {
  content: "";
  display: block;
  height: 280px;
  background: #e8e0d5;
}

/* Videos */
.videos-section {
  padding: 0 20px 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.videos-section h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--brown);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

/* 9:16 aspect ratio for Shorts */
.video-wrap {
  aspect-ratio: 9 / 16;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* Facts */
.facts-section {
  background: white;
  padding: 48px 20px;
}

.facts-section h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--brown);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.facts-list {
  list-style: none;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.facts-list li {
  padding: 14px 18px;
  border-left: 4px solid var(--yellow);
  font-size: 1rem;
  line-height: 1.6;
}

.facts-list a {
  color: var(--pink);
  font-weight: 700;
  text-decoration: none;
}

.facts-list a:hover {
  text-decoration: underline;
}

/* Fact with photo */
.fact-with-photo {
  display: flex !important;
  gap: 16px;
  align-items: flex-start;
  padding: 0 !important;
  border-left: none !important;
}

.fact-photo {
  flex: 0 0 130px;
  border-radius: 8px;
  overflow: hidden;
  border-left: 4px solid var(--yellow);
}

.fact-photo img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}

.fact-with-photo p {
  flex: 1;
  padding: 14px 18px;
  border-left: 4px solid var(--yellow);
  font-size: 1rem;
  line-height: 1.6;
  align-self: center;
}

/* Weight chart */
.weight-chart-wrap {
  max-width: 760px;
  margin: 32px auto 0;
  padding: 0 18px;
}

.chart-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  color: var(--brown);
  opacity: 0.7;
  margin-bottom: 10px;
}

#weight-chart {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

#lightbox.active {
  display: flex;
}

#lightbox-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

#lb-prev, #lb-next {
  background: none;
  border: none;
  color: white;
  font-size: 4rem;
  line-height: 1;
  padding: 0 16px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.15s;
  user-select: none;
  flex-shrink: 0;
}

#lb-prev:hover, #lb-next:hover {
  opacity: 1;
}

#lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 6px;
}

#lightbox-caption {
  color: rgba(255,255,255,0.8);
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  min-height: 1.2em;
}

/* Gallery list */
.gallery-list-section {
  padding: 48px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-list-section h1 {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--brown);
  margin-bottom: 32px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.gallery-card {
  border-radius: 12px;
  overflow: hidden;
  background: #e8e0d5;
  text-decoration: none;
  color: var(--brown);
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(61,36,16,0.15);
}

.gallery-card-cover {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.gallery-card-cover-placeholder {
  width: 100%;
  height: 220px;
  background: #d8d0c5;
}

.gallery-card-body {
  padding: 14px 16px 16px;
}

.gallery-card-name {
  font-family: 'Fredoka One', cursive;
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.gallery-card-desc {
  font-size: 0.88rem;
  opacity: 0.7;
  line-height: 1.5;
}

.gallery-card-count {
  margin-top: 8px;
  font-size: 0.8rem;
  opacity: 0.5;
}

/* Gallery detail */
.gallery-detail-header {
  background: var(--yellow);
  padding: 40px 20px 36px;
  text-align: center;
}

.gallery-detail-header h1 {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--brown);
  line-height: 1.1;
}

.gallery-detail-header p {
  margin-top: 10px;
  font-size: 1rem;
  color: var(--brown);
  opacity: 0.7;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-detail-back {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--brown);
  opacity: 0.6;
  text-decoration: none;
}

.gallery-detail-back:hover {
  opacity: 1;
}

.gallery-detail-section {
  padding: 48px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-photo-card {
  border-radius: 8px;
  overflow: hidden;
  background: #e8e0d5;
}

.gallery-photo-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.gallery-photo-caption {
  padding: 8px 12px 10px;
  font-size: 0.85rem;
  color: var(--brown);
  opacity: 0.75;
  line-height: 1.4;
}

/* View all link */
.view-all-link {
  display: block;
  text-align: center;
  margin-top: 28px;
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  color: var(--pink);
  text-decoration: none;
}

.view-all-link:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  text-align: center;
  padding: 28px 20px;
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  color: var(--brown);
  opacity: 0.5;
}

@media (max-width: 600px) {
  .video-grid {
    justify-content: center;
  }
}
