

/* ==============================
   GLOBAL STYLES
============================== */
/* ==============================
   GLOBAL STYLES
============================== */
@import url('https://fonts.googleapis.com/css2?family=Aboreto&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

.service-card {
  display: block;
  margin: 0 auto;           /* Center horizontally */
  max-width: 50vw;         /* Prevents overflow horizontally */
  max-height: 100vh;        /* Prevents overflow vertically */
  width: auto;
  height: auto;
  object-fit: contain;      /* Keeps proportions */
}

.storyboard-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.storyboard-gallery img {
  max-width: 100%;
  max-height: 95vh;  /* fit inside browser window height */
  object-fit: contain;
  display: block;
  margin: auto;
  border-radius: 10px;
  cursor: pointer;
}

/* ---- LIGHTBOX FIX ---- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 10px;
  z-index: 99999;
}

/* BUTTONS */
.lightbox .close,
.lightbox .prev,
.lightbox .next {
  position: absolute;
  color: #fff;
  font-size: 48px;
  font-weight: 600;
  cursor: pointer;
  z-index: 100000;
  text-shadow: 0 0 10px rgba(0,0,0,0.8);
  padding: 10px;
}

.close { top: 30px; right: 40px; }
.prev { left: 40px; top: 50%; transform: translateY(-50%); }
.next { right: 40px; top: 50%; transform: translateY(-50%); }

.prev:hover,
.next:hover,
.close:hover {
  color: #f4d06f;
}

.showreel-section {
  text-align: center;
  margin-top: -50px;
  margin-bottom: -40px;   /* <<< REDUCE GAP UNDER VIDEO */
}


.showreel-container {
  width: 800px;
  max-width: 100%;
  margin: 0 auto;
  background: #d6d2cd;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.showreel-video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;   /* keeps perfect video proportion */
  border-radius: 20px;
  display: block;
}


@media (max-width: 600px) {
  .showreel-video {
    max-height: 45vh;
  }
}


/* INTERACTIVE HOVER FOR SERVICE BLOCKS */
.service-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
}

.service-card:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* HERO SECTION */
.hero {
    position: relative;
    width: 100%;
    height: 300px;  /* slightly reduced */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.logo-text {
    position: absolute;
    top: 40px;   /* moved higher */
    text-align: center;
    z-index: 10;
}

.signature {
    font-family: "Brittany Signature", cursive;
    font-size: 64px;
    margin: 0;
    font-weight: normal;
}

.tagline {
    font-size: 13px;
    letter-spacing: 4px;
    margin-top: 6px;
}

.pencil-gif {
    width: 520px;
    margin-top: 10px;  /* NEW spacing between text and pencil */
    z-index: 1;
}

/* PROJECTS ALTERNATING LAYOUT */
.project-row {
  width: 80%;
  margin: 60px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.project-row.left {
  flex-direction: row;
}

.project-row.right {
  flex-direction: row-reverse;
}

.project-img {
  width: 280px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.project-text {
  max-width: 400px;
  text-align: left;
}

.project-text h3 {
  margin-top: 0;        /* optional: remove extra space above */
  margin-bottom: 15px;  /* more space below */
  letter-spacing: 2px;
  font-size: 1.5rem;    /* bigger title if needed */
}


.project-text p {
  line-height: 1.6;
  margin-bottom: 12px;
  color: #444;
}

@media (max-width: 768px) {
  .project-row {
    flex-direction: column !important;
    text-align: center;
  }
  .project-text { text-align: center; }
}


.hero {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;
}

.hero-content {
  position: absolute;
  top: 30%;
  transform: translateY(-50%);
  z-index: 5;
}

.logo {
  font-family: "Brittany Signature", cursive;
  font-size: 4rem;
  letter-spacing: 2px;
  margin: 0;
}

.tagline {
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  letter-spacing: 4px;
  margin-top: 10px;
}

/* pencil gif */
.pencil-gif {
  width: 50%;
  max-width: 900px;
  margin-top: 10px;   /* changed this from 20px */
}

/* fade animation */
.fade-in {
  opacity: 0;
  animation: fadeIn 2s ease-in forwards;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(10px);}
  100% { opacity: 1; transform: translateY(0);}
}


body {
  margin: 0;
  font-family: 'Outfit', cursive;
  background: #f7f1e8;
  color: #222;
  text-align: center;
}

/* nav */
.top-nav {
  text-align: right;
  padding: 12px 40px;
}

.top-nav nav a {
  margin-left: 18px;
  text-decoration: none;
  color: #000;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

/* header art */
.top-container {
  margin-top: 10px;
}

.top-pencil {
  width: 70%;
  max-width: 750px;
}

.main-title {
  font-size: 2rem;
  margin-top: 10px;
}

.subtitle {
  font-size: 0.9rem;
  margin-top: -5px;
}

/* SHOWREEL */
.showreel-box {
  padding: 20px 0;
}

.reel-placeholder {
  width: 65%;
  height: 160px;
  margin: auto;
  border-radius: 12px;
  background: #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* PROJECTS */
.section-head {
  letter-spacing: 3px;
  margin-top: 0px;
}

.project-item {
  width: 70%;
  margin: 40px auto;
}

.project-item img {
  width: 160px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.see-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 20px;
  border: 1px solid #000;
  text-decoration: none;
  color: #000;
  font-size: .8rem;
}

/* boards */
.boards-section {
  margin-top: 40px; 
}

.board {
  display: block;
  width: 100%;
  max-width: 800px;
  margin: 25px auto;
}

@media (max-width: 600px) {
  .board {
    width: 100%;
    margin: 20px auto;
    padding: 0 10px; 
  }

  .board img {
    width: 100%;
  }
}


.board-title {
  margin-top: 10px;
  font-size: 1.2rem;
}

/* footer */
.footer {
  margin: 40px 0;
  font-size: 0.9rem;
  letter-spacing: 3px;
  cursor: pointer;
}

body {
  margin: 0;
  font-family: 'Outfit', cursive;
  background: linear-gradient(180deg, #faf8f5 0%, #f3f1ec 100%);
  color: #222;
  overflow-x: hidden;
}

/* Fonts */
.hand {
  font-family: 'Outfit', cursive;
}
.hand2 {
  font-family: 'Outfit', cursive;
}

/* Container padding */
section {
  padding: 60px 10%;   
  text-align: center;
}

/* ==============================
   NAVBAR
============================== */
header {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 999;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 10%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #222;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #000;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #000;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active::after {
  width: 100%;
}

/* ==============================
   HERO SECTION
============================== */

.reel-container {
  width: 100%;
  max-width: 900px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.reel-container video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

.hero-text h2 {
  font-size: 2rem;
  margin: 10px 0;
}

.hero-text p {
  font-size: 1rem;
  color: #444;
}

/* ==============================
   WORKS SECTION
============================== */
.works-section {
  background: #fff;
  border-radius: 25px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  padding: 60px 10%;
  margin: 40px auto;
  width: 80%;
}

.index-gallery {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 30px;
  padding: 0 15px;
}


.index-gallery {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 30px;
}

.index-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1; /* ensures square images */
  object-fit: cover; /* fills area without distortion */
  border-radius: 18px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.index-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
/* ==============================
   ABOUT SECTION
============================== */
.about-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.about-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.about-text {
  max-width: 500px;
  text-align: left;
}

.about-text p {
  color: #444;
  line-height: 1.6;
}

/* ==============================
   CONTACT SECTION
============================== */
.contact-section {
  background: #fff;
  border-radius: 25px;
  padding: 60px 10%;
  margin: 40px auto;
  width: 80%;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.contact-btn {
  text-decoration: none;
  background: #f4f2ef;
  color: #222;
  padding: 10px 20px;
  border-radius: 12px;
  border: 2px solid #ddd;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  background: #000;
  color: #fff;
  transform: translateY(-2px);
}

/* ==============================
   FOOTER
============================== */
footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: #666;
}

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
  }

  .about-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .works-section,
  .contact-section {
    width: 90%;
  }
}

/* ==============================
   LIGHTBOX POPUP
============================== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 80%;
  max-height: 80%;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  animation: fadeIn 0.3s ease;
}

.lightbox .close,
.lightbox .prev,
.lightbox .next {
  position: absolute;
  color: #fff;
  font-size: 2rem;
  background: rgba(0,0,0,0.4);
  border: none;
  border-radius: 50%;
  width: 45px; height: 45px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.lightbox .close:hover,
.lightbox .prev:hover,
.lightbox .next:hover {
  background: rgba(0,0,0,0.7);
}

.lightbox .close { top: 30px; right: 40px; }
.lightbox .prev { left: 40px; }
.lightbox .next { right: 40px; }

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}


/* ==============================
   ILLUSTRATIONS - Natural Flow
============================== */
.illustrations {
  column-count: 3; /* adjusts number of columns */
  column-gap: 1.5rem;
  padding-top: 40px;
}

.illustrations img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  margin-bottom: 1.5rem;
  display: inline-block;
  break-inside: avoid;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.illustrations img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Responsive columns */
@media (max-width: 1024px) {
  .illustrations {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .illustrations {
    column-count: 1;
  }
}


/* ======== LIGHTBOX (Improved Scaling Version) ======== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  overflow: hidden;
  animation: fadeIn 0.3s ease;
}

.lightbox.active { display: flex; }

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-content img {
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.lightbox-content img:active {
  transform: scale(0.98);
}

.lightbox button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  width: 45px; height: 45px;
  cursor: pointer;
  font-size: 2rem;
  color: #222;
  transition: background 0.2s ease;
}

.lightbox button:hover {
  background: rgba(255, 255, 255, 1);
}

.lightbox .close {
  top: -60px;
  right: 0;
  transform: none;
  font-size: 2rem;
}

.lightbox .prev { left: -60px; }
.lightbox .next { right: -60px; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 600px) {
  .lightbox button {
    width: 35px; height: 35px;
    font-size: 1.5rem;
  }
  .lightbox .close {
    top: -50px;
    right: -10px;
  }
  .lightbox .prev { left: -45px; }
  .lightbox .next { right: -45px; }
}


/* Masonry layout for illustrations */
.illustrations-masonry {
  column-count: 3;
  column-gap: 1.5rem;
}

.illustrations-masonry img {
  width: 100%;
  margin-bottom: 1.5rem;
  break-inside: avoid;
  border-radius: 18px;
}


.illustrations-masonry img:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

/* Responsive breakpoints */
@media (max-width: 1000px) {
  .illustrations-masonry {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .illustrations-masonry {
    column-count: 1;
  }
}


.character-main {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* allow stacking */
}

.char-box {
  flex: 1 1 100%; /* take full width on mobile */
  max-width: 400px; /* optional: limits size on tablet */
}

.char-box:hover {
  transform: scale(1.05);
}

.char-preview {
  width: 100%;
  max-width: 400px; /* scales with screen */
}

.gallery-container {
  width: 90%;
  margin: 30px auto;
}

.char-gallery {
  columns: 3 1fr; /* allows columns to adjust automatically */
  column-gap: 15px;
}

@media (max-width: 768px) {
  .char-gallery {
    columns: 2;
  }
}

@media (max-width: 600px) {
  .char-gallery {
    columns: 1;
  }
}

.char-gallery img {
  width: 100%;
  margin: 0 0 15px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .3s;
}

.char-gallery img:hover {
  transform: scale(1.03);
}

/* Hide div */
.hidden { display: none; }


.character-main {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: nowrap;
}

.char-box {
  text-align: center;
  cursor: pointer;
  transition: transform .3s;
}

.char-box:hover { transform: scale(1.05); }

.char-preview {
  width: 100%;
  max-width: 600px; /* scales down on small screens */
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,.15);
}


.gallery-container {
  width: 90%;
  margin: 30px auto;
}

.char-gallery {
  columns: 3 250px;
  column-gap: 15px;
}

.char-gallery img {
  width: 100%;
  margin-bottom: 15px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .3s;
}

.char-gallery img:hover { transform: scale(1.03); }

.hidden { display: none; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.92);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 85%;
  max-height: 85vh;
  border-radius: 12px;
}

/* LIGHTBOX BUTTONS FIX FOR CHARACTER PAGE */
#lightbox .close,
#lightbox .prev,
#lightbox .next {
  position: absolute;
  color: #fff;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  z-index: 1001; /* ensure above image */
  background: rgba(0,0,0,0.5);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s;
}

#lightbox .close:hover,
#lightbox .prev:hover,
#lightbox .next:hover {
  background: rgba(0,0,0,0.8);
}

#lightbox .close {
  top: 20px;
  right: 20px;
}

#lightbox .prev {
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
}

#lightbox .next {
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

/* mobile adjustments */
@media (max-width: 600px) {
  #lightbox .close,
  #lightbox .prev,
  #lightbox .next {
    width: 40px;
    height: 40px;
    font-size: 1.8rem;
  }
  #lightbox .close { top: 10px; right: 10px; }
  #lightbox .prev { left: 10px; }
  #lightbox .next { right: 10px; }
}

/* ====== Fix lightbox buttons outside image ====== */
#lightbox .close,
#lightbox .prev,
#lightbox .next {
  position: absolute;
  z-index: 1001;
  color: #fff;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  background: rgba(0,0,0,0.5);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s;
}

#lightbox .close { top: 20px; right: 20px; }
#lightbox .prev { top: 50%; left: 20px; transform: translateY(-50%); }
#lightbox .next { top: 50%; right: 20px; transform: translateY(-50%); }

#lightbox .close:hover,
#lightbox .prev:hover,
#lightbox .next:hover {
  background: rgba(0,0,0,0.8);
}

/* Mobile adjustments */
@media (max-width: 600px) {
  #lightbox .close,
  #lightbox .prev,
  #lightbox .next {
    width: 40px;
    height: 40px;
    font-size: 1.8rem;
  }
  #lightbox .close { top: 10px; right: 10px; }
  #lightbox .prev { left: 10px; }
  #lightbox .next { right: 10px; }
}

/* ====== FORCE lightbox buttons to sit on the overlay edges (override) ====== */
/* Targets only buttons that are direct children of #lightbox so it won't affect other markup */
#lightbox > .close,
#lightbox > .prev,
#lightbox > .next {
  position: absolute;         /* absolute relative to #lightbox (which is position:fixed) */
  z-index: 11000;             /* above the image */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 1.6rem;
  border: none;
  cursor: pointer;
  user-select: none;
  transition: background 0.18s ease, transform 0.12s ease;
}

/* hover */
#lightbox > .close:hover,
#lightbox > .prev:hover,
#lightbox > .next:hover {
  background: rgba(0,0,0,0.85);
  transform: translateY(-1px);
}

/* positions relative to the overlay (not the image) */
#lightbox > .close { top: 18px; right: 18px; }
#lightbox > .prev  { left: 18px; top: 50%; transform: translateY(-50%); }
#lightbox > .next  { right: 18px; top: 50%; transform: translateY(-50%); }

/* mobile tweak */
@media (max-width: 600px) {
  #lightbox > .close,
  #lightbox > .prev,
  #lightbox > .next {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  #lightbox > .close { top: 12px; right: 12px; }
  #lightbox > .prev  { left: 8px; }
  #lightbox > .next  { right: 8px; }
}

body {
  background-image: url("paper.jpg");  /* your texture file */
  background-size: cover;               /* fill the viewport */
  background-repeat: no-repeat;
  background-attachment: fixed;         /* THIS makes it stay still */
  background-position: center;
}

h2.section-head.works-title {
  margin-top: -30px;   /* space above */
  margin-bottom: -60px; /* space below */
}

/* ============================
   GLOBAL MOBILE FIXES
============================ */

@media (max-width: 768px) {

  .showreel-container {
  width: 100%;
}

.showreel-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

/* phone fix */
@media (max-width: 768px) {
  .showreel-video {
    border-radius: 12px;
  }
}


  /* Fix character design panel */
  .project-row {
    flex-direction: column !important;
    width: 100% !important;
    gap: 20px !important;
    padding: 0 10px;
  }

  .project-img {
    width: 100% !important;
    max-width: 300px;
  }

  .project-text {
    text-align: center !important;
    max-width: 100% !important;
  }

  /* Fix hero image + pencil */
  .pencil-gif {
    width: 90% !important;
    max-width: 400px !important;
  }

  .hero {
    height: auto !important;
    padding-top: 20px;
  }

  /* Fix any side overflow */
  body {
    overflow-x: hidden !important;
  }
}

character design lan

/* FORCE SIDE-BY-SIDE ELEMENTS TO STACK ON PHONE */
@media (max-width: 600px) {
  .project-row {
    flex-direction: column !important;
    width: 100%;
    gap: 20px;
  }

  .project-img {
    width: 100% !important;
    max-width: 350px;
    margin: 0 auto;
  }

  .project-text {
    text-align: center !important;
    max-width: 90%;
  }
}
}
.hero-title {
  font-size: clamp(28px, 6vw, 60px); /* scales beautifully */
  text-align: center;
}

.hero-gif {
  width: 100%;
  max-width: 450px;
  display: block;
  margin: 0 auto;
}

/* phone fix */
@media (max-width: 768px) {
  .hero-gif {
    max-width: 90%;
  }
}
  

/* PHONES (very small screens under 480px) */
@media (max-width: 480px) {
  .char-preview {
    width: 100%;
    max-width: 350px; /* scale properly for phones */
  }

  
/* FINAL FIX — FORCE CHARACTER + STORYBOARD IMAGES TO BE RESPONSIVE */

/* Make the character container take full width */
.character-main,
.char-box {
  width: 100% !important;
  max-width: 100% !important;
}

/* Reduce outer padding on small screens */
@media (max-width: 768px) {
 
  .character-main,
  .char-gallery {
    padding: 0 !important;
    margin: 0 auto !important;
  }
}


/* ==============================
   STORYBOARD CLEAN RESPONSIVE GRID
============================== */
.storyboard-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 2%;
  box-sizing: border-box;
}
.storyboard-gallery img,
.storyboard img {
  width: 100%;
  height: auto;        /* ensures proper scaling */
  object-fit: contain; /* prevents cropping */
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.storyboard-gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .storyboard-gallery {
    grid-template-columns: 1fr; /* Stack images on phone */
    gap: 12px;
    padding: 5px 2%;
  }
}
* {
  box-sizing: border-box;
}

body {
  overflow-x: hidden !important;
}
/* ------------------------------
   FIX STORYBOARD RESPONSIVENESS
------------------------------- */
.storyboard-container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 0 10px;
}

.storyboard img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* mobile fix */
@media (max-width: 600px) {
  .storyboard img {
    width: 100%;
    height: auto;
  }
}
