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

body {
  font-family: 'Dosis', sans-serif;
  background: #f5f2f2;
  color: #333;
  font-size: 18px;
  line-height: 1.6rem;
}

ul {
  list-style: none;
}

a {
  color: #333;
  text-decoration: none;
}

h2 {
  font-weight: 300;
  line-height: 1.2;
}

p {
  margin: 10px 0;
}

img {
  width: 100%;
}

/* ========= Navbar ========= */
#navbar {
  z-index: 3;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(3, 127, 155, 0.9);
  font-size: 1rem;
  line-height: 1;
  color: #fff;
  width: 100%;
  height: 60px;
  position: fixed;
  top: 0px;
  padding: 20px 30px 20px;
  min-height: 60px;
  backdrop-filter: blur(6px); /* Blur effect */
  -webkit-backdrop-filter: blur(6px);
}

.navbar a {
  color: #fff;
  padding: 10px 20px;
  margin: 0 8px;
}

.navbar a:hover {
  border-bottom: #fff 2px solid;
}

.navbar ul {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
}

.navbar li {
  flex-shrink: 1;
}

.nav-logo {
  font-size: 1.7rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.navbar .nav-logo a {
  font-size: 1.7rem;
  font-weight: 300;
  white-space: nowrap;
}

.nav-logo a:hover {
  border-bottom: 2px solid #037f9b;
  color: #f4f4f4;
}

.hero {
  background: url('../img/creation.png') no-repeat center center/cover;
  min-height: 81vh;
  padding-bottom: 16px;
  position: relative;
  color: #fff;
}

.hero .content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  padding: 0 20px;
  z-index: 1;
}

.hero .content h1 {
  font-size: 3.5rem;
}

.hero .content p {
  font-size: 36px;
  margin: 1px;
}

/* LOGO GIF Animation */
.hero .content img,
.logo {
  max-width: 700px;
}
.hero .content .logo-name {
  max-width: 600px;
}

.logo.top {
  animation-play-state: running;
}

.logo-name {
  background: url('../img/ericlogo/logo-name.png')no-repeat center center/cover;
  max-width: 600px;
  margin: 1px;
  transition-duration: 2s;
  padding: 0px 4px;
}

.logo-name:hover {
  background: url('../img/ericlogo/logo-name-dark.png')no-repeat center center/cover;
  transition-delay: 2s ease-in-out;
}

.home-p {
  color: #037f9b;
  padding: 12px 0 20px;
  transition-duration: 2s;
}

/* Test */
.logo-name:hover, .home-p:hover {
  color: #004253;
  filter: drop-shadow(0 0 100px rgb(100, 100, 100));
  transition: color 2s ease-in-out, filter 2s ease-in-out;
}

/* Header */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.8)
  );
}

.hero * {
  z-index: 1;
}

/*========= Video Modal =========*/
.video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.85); /* overlay */
  align-items: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  justify-content: center;
}

.video.show {
  opacity: 1;     /* fade to visible */
  pointer-events: auto;
}

.video-box {
  width: 80vw;
  max-width: 900px;
  aspect-ratio: 1 / 1; /* keep square */
  background: #000;
  border: 4px solid #037f9b;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  position: relative;
}

.video-wrapper {
  width: 100%;
  height: 100%;
  position: relative; /* important for child absolute positioning */
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  border: none;
}

.motion-btn {
  background-color: #037f9b !important;
  color: #fff;
  font-family: 'Dosis', sans-serif;
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  padding: 5px 21px 8px 22px;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  display: inline-block;
  cursor: pointer;
  overflow: hidden;
  transform: skewX(-12deg);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  will-change: transform, box-shadow;
}

.motion-btn .text,
.motion-btn .icon {
  display: inline-block;
  transform: skewX(12deg);
  vertical-align: middle;
}

.motion-btn:hover {
  background-color: #0494b2;
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.35),
    0 0 10px rgba(3,127,155,0.4),
    inset 0 0 12px rgba(255, 255, 255, 0.1);
  transform: skewX(-12deg) scale(1.03);
}

.motion-btn .icon {
  margin-right: 8px;
  animation: whitePulse 2.5s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.8));
}

.motion-btn .text {
  animation: textGlowPulse 2.5s ease-in-out infinite;
}

@keyframes whitePulse {
  0%, 100% {
    opacity: 0.9;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.6));
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.95));
  }
}

@keyframes textGlowPulse {
  0%, 100% {
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.3), 0 0 12px rgba(255, 255, 255, 0.2);
  }
  50% {
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.3);
  }
}

.close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1000;
  line-height: 1;
}

.close-btn:hover {
  color: #037f9b;
}

/* ========= Icons ========= */
.icons {
  background-color: #004253;
  color: #fff;
  padding: 30px 0;
  position: relative;
  z-index: 0;
}

.icons h3 {
  font-weight: 300;
  margin-bottom: 15px;
  letter-spacing: 0.04em;
}

.icons .flex-items {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: clamp(16px, 3vw, 40px);
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.icons .flex-items > div {
  padding: 0 8px;
  text-align: center;
}

.icons .flex-items img {
  width: clamp(60px, 9vw, 104px);
  height: auto;
  display: block;
  margin: 0 auto 6px;
}
.icons p { padding: 0; }

/* Contact Text */
#portfolio p {
  font-size: 1rem;
  margin: 0;
  padding: 0;
}

/* Callback form */
.contact-form {
  width: 100%;
  padding-bottom: 0px;
}

.contact-form label {
  display: block;
  margin-bottom: 5px;
}

.contact-form .form-control {
  margin-bottom: 15px;
}

.contact-form input {
  width: 100%;
  padding: 4px;
  height: 40px;
  border: #f4f4f4 1px solid;
}

.contact-form textarea {
  font-size: 12px;
  height: 200px;
  width: 100%;
  padding: 4px;
  border: #f4f4f4 1px solid;
}

.contact-form input,
textarea {
  font-family: 'Dosis', sans-serif;
  font-size: 12px;
}

.contact-form input:focus,
textarea:focus {
  outline-color: #004253;
}

.contact-form .btn {
  font-size: 15px;
  padding: 10px;
}

/* Resume Button */
.btn.resume {
  background: #333;
  color: #fff;
  border: none;
  font-size: 0.9rem;
  line-height: 1;
  padding: 2px 30px;
  display: inline-block;
  text-align: center;
  transition: background 0.2s ease;
}

.btn.resume:hover {
  background: #444;
  color: #fff;
}

/* Contact section — base layout for all sizes */
#contact-b {
  margin: 2rem 0;
}

#contact-b .contact-info {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;           /* allow wrapping instead of squishing */
  gap: 1px 18px;             /* space between bits of info */
  padding: 5px 20px;        /* give the band some height */
  font-size: 1rem;
  line-height: 1.4;          /* no more overlapping text */
  text-align: center;
}

/*========= Footer =========*/
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 60px;
}

.footer a {
  color: #fff;
}

.footer a:hover {
  color: #037f9b;
}

.footer .social {
  margin: 0 30px;
}

.footer .foot-l {
  font-weight: lighter;
  font-size: 1.5rem;
}

/*========= Submission Page =========*/
#navbar-2 {
  height: 50px;
  background-color: #004253;
}

.container-2 {
  width: 100%;
  padding: 30px;
  margin-top: 45px;
}

#success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

#success a {
  color: #00232c;
}

/* =========================================================
   RESPONSIVE MEDIA QUERIES — CLEAN, CONSOLIDATED STRUCTURE
   ========================================================= */
/* Larger Tablet Size */
@media (max-width: 1280px) {
  .hero { height: 82vh; }

  /* Keep ONLY the dotted divider behavior if you like it */
  .contact-info *:first-child p,
  .contact-info *:nth-child(2) p {
    border-bottom: 1px dotted rgb(128, 126, 126);
  }
}

/* Kindle Tablet */
@media (max-width: 834px) {
  body { font-size: 18.5px; line-height: 1.7rem; }
  .hero { height: 79vh; }

  #portfolio p {
    font-size: 1rem;
    margin: 0 1rem;
    padding: 0 1rem;
  }

  .hero .content img { max-width: 500px; }

  .logo-name { max-width: 450px; padding-bottom: 0; }

  #lightbox .lb-caption h2 { font-size: 1.4rem !important; }
  #lightbox .lb-caption p  { font-size: 1.05rem !important; }
}

/* ======= ≤768px — iPad / small tablet ======= */
@media (max-width: 768px) {
  .navbar { flex-direction: column; padding: 20px; }

  .navbar a { padding: 10px; margin: 0 3px; }

  .hero { min-height: 66vh; }

  .hero .content img { max-width: 450px; }

  .hero .content .logo-name { max-width: 350px; }

  .hero .content .home-p { font-size: 28px; padding: 1px 0 10px; }

  .flex-columns .column,
  .flex-grid .column { flex: 100%; max-width: 100%; }

  .py-3 { margin: 35px}
  
  .icons .flex-items { gap: 12px; }
  .icons .flex-items img { width: clamp(68px, 10vw, 110px); }

  /* For Download button */
  #contact-b { margin-top: 1rem; margin-bottom: 1rem; }

  #lightbox .lb-caption h2 { font-size: 1.48rem !important; }
  #lightbox .lb-caption p  { font-size: 1.08rem !important; }
}

@media (max-width: 736px) {
  .hero {
    min-height: 100dvh;
  }
}

@media (max-width: 600px) {
  .navbar {
    flex-wrap: wrap;
    justify-content: center;
    padding: 8px 4px;
    height: auto;
  }

  .navbar ul {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 1px;
  }

  .navbar a {
    font-size: 0.9rem;
    padding: 3px 1px;        
  }

  .nav-logo {
    font-size: 0.9rem;
    padding: 1px 4px;
  }
}

/* ======= Mobile ≤430px — hero, portfolio, contact ======= */
@media (max-width: 430px) {
  .hero .content p {
    font-size: 26px;
    padding-top: 1px;
  }

  .flex-items {
    flex-direction: row;
  }

  .footer .foot-l {
    font-weight: lighter;
    font-size: 1.1rem;
  }

  .footer .social {
    margin: 0 20px;
  }

  .motion-btn {
    font-size: 1rem;
    padding: 4px 14px 6px 14px;
    transform: skewX(-10deg);
  }

  .motion-btn .icon {
    margin-right: 6px;
  }

  .items { 
    grid-template-columns: 1fr; 
    gap: 12px; 
    width: 100%; 
  }

  #portfolio .item-text-title    { font-size: clamp(1.25rem, 4.8vw, 1.55rem) !important; }
  #portfolio .item-text-category { font-size: clamp(0.95rem, 3.9vw, 1.1rem)  !important; }

  #contact-b {
    margin: 1.75rem 0;
  }

  #contact-b .contact-info {
    flex-direction: column;      /* force a vertical stack */
    flex-wrap: nowrap;           /* now we don't need wrapping here */
    gap: 4px;                    /* spacing between lines */
    padding: 16px 10%;           /* nice padding on small screens */
    font-size: 0.95rem;          /* slightly smaller, but not cramped */
    line-height: 1.4;
  }

  #contact-b .contact-info > * {
    margin: 4px 0;
  }
}

@media (max-width: 414px) {

.navbar a {
    font-size: 0.8rem;      /* Slightly smaller text */
    padding: 3px 1px;        
  }

  .nav-logo {
    font-size: 0.9rem;       /* Slightly smaller logo */
    padding: 1px 1px;        /* Slightly tighter logo padding */
  }
  
  .hero {
    min-height: 100dvh;
  }

  .close-btn {
    width: 26px;
    height: 26px;
    font-size: 1.2rem;
  }
  .icons h3 {
    font-size: 1rem;
    margin-bottom: 4px;
    letter-spacing: 0.04em; /* keeps uppercase readable at small sizes */
  }
  .icons p {
    font-size: 0.9rem;
    line-height: 1.3;
    max-width: 16ch;
    margin: 0 auto;
  }

  #about .column-2.bg-light,
  #contact .column-2.bg-light {
    padding: 16px 14px;   /* much lighter horizontal padding */
  }

  #about .column-2.bg-light p,
  #contact .column-2.bg-light p {
    margin: 6px 0;
  }
}

/* @media (max-width: 375px) {
  #contact h2 {
    font-size: 1.6rem;
    text-align: center;
  }
} */

/* Galaxy Fold */
@media (max-width: 360px) {
  .column-2 h2 {
    font-size: 2rem;
  }
  
  #contact-b .contact-info p {
    font-size: 0.9rem;
    text-align: center;
    padding: 2px 0;
    margin: 2px 0;
  }

  .hero .content img {
    max-width: 90%;
    margin: 4px 0 -2px;
  }
  

  .hero .content p {
    font-size: 20px;
    padding-top: 6px;
    line-height: 1.25;
  }

  .motion-btn {
    font-size: 0.85rem;
    padding: 3px 10px 5px;
    letter-spacing: 0.8px;
    transform: skewX(-8deg);
  }
  
  .navbar a {
    font-size: 0.7rem;      /* Slightly smaller text */
    padding: 2px 1px;        
  }

  .nav-logo {
    font-size: 0.75rem;       /* Slightly smaller logo */
    padding: 0;
  }

  .icons h3 { font-size: 0.9rem; margin-bottom: 2px; }
  .icons p {
    font-size: 0.8rem;
    line-height: 1.25;
    max-width: 14ch;
    margin: 0 auto;
  }
  .icons .flex-items img { width: clamp(48px, 14vw, 64px); margin-bottom: 3px; }
  #portfolio .item-text-title    { font-size: clamp(1.1rem, 4.2vw, 1.3rem) !important; }
  #portfolio .item-text-category { font-size: clamp(0.85rem, 3.5vw, 1rem) !important; }  
}

/* Horizontal Tablet */
@media (max-height: 1024px) {
  .hero .content img {
    max-width: 500px;
  }
}

@media (max-height: 950px) {
  .hero {
    min-height: 100dvh;
  }

  .hero .content img {
    max-width: 500px;
  }

  .hero .content .logo-name {
    max-width: 400px;
  }
}

/* Horizontal Phone */
@media (max-height: 520px) {

  .content .logo {
    max-width: 100px;
  }

  .hero .content img {
    max-width: 350px;
  }

  .hero .content p {
    font-size: 26px;
    padding-top: 1px;
  }
}

@media (max-height: 428px) {
  .hero .content img {
    max-width: 300px;
  }

  #about .column-1 img {
    display: grid;
    grid-template-columns: 1fr;
    grid-column: 1;
  }

  #contact .column-1 img {
    display: grid;
    grid-template-columns: 1fr;
    grid-column: 1;
  }
}

/* Mobile Galaxy Wide */
@media (max-height: 360px) {
  .hero {
    min-height: 100dvh;
  }

  .hero .content img {
    max-width: 250px;
  }

  .hero .content .home-p {
    font-size: 18px;
    padding-top: 1px;
  }

  .contact .column-1 img {
    display: none;
  }
}

@media screen and (max-width: 400px) and (orientation: portrait) {
  .hero {
    min-height: 100dvh;
    padding-top: 50px;
  }

  .hero .content img {
    max-width: min(68vw, 300px);
    margin-bottom: 4px;
  }

  .hero .content p.home-p {
    font-size: clamp(18px, 5vw, 24px);
    margin: 0 0 5px 0;
    padding: 0;
    line-height: 1.2;
  }

  .motion-btn {
    font-size: clamp(0.9rem, 3.8vw, 1rem);
    padding: 4px 12px;
    margin-top: 2px;
    position: relative;
    z-index: 1002;
  }
}

@media (max-width: 640px) {
  #lightbox .lb-caption h2 {
    font-size: 1.2rem !important;
    line-height: 1.35 !important;
  }

  #lightbox .lb-caption p {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
  }

  #lightbox .lb-data {
    padding: 1rem 1rem !important;  /* slightly tighter bar on mobile */
  }

  #lightbox .lb-caption {
    max-height: 200px !important;   /* more scroll room if text runs long */
  }
}

@media (orientation: landscape) and (pointer: coarse) and (max-width: 915px) {
  #lightbox .lb-caption h2 { font-size: 1.05rem !important; line-height: 1.3 !important; }
  #lightbox .lb-caption p  { font-size: 0.9rem  !important; line-height: 1.45 !important; }
  #lightbox .lb-data       { padding: 0.8rem 1rem !important; }
  #lightbox .lb-caption    { max-height: 120px !important; }
  #lightbox .lb-outerContainer { max-height: calc(100dvh - 160px) !important; }
}

/* === LIGHTBOX BREAKPOINTS — single source of truth === */

/* PORTRAIT: stacked (image on top, caption below) */
@media (orientation: portrait) {
  #lightbox { text-align: center !important; }
  #lightbox .lb-outerContainer { display: inline-block !important; margin: 0 auto !important; }
  #lightbox .lb-dataContainer {
    display: block !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: min(90vw, 1200px) !important;
    margin: 12px auto 0 !important;
    box-sizing: border-box !important;
  }
  #lightbox .lb-data { position: static !important; }
  #lightbox .lb-data .lb-caption {
    max-height: 200px !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
  }
}

/* TABLET LANDSCAPE (768–1024px): balanced two columns (55/43) */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  #lightbox { text-align: center !important; }

  #lightbox .lb-outerContainer,
  #lightbox .lb-dataContainer {
    display: inline-block !important;
    vertical-align: top !important;
    float: none !important;
    margin: 0 !important;
    text-align: left !important;
  }

  #lightbox .lb-outerContainer,
  #lightbox .lb-container {
    width: auto !important;
    max-width: 55vw !important;                 /* image */
    box-sizing: content-box !important;
    overflow: hidden !important;
    background: transparent !important;
  }
  #lightbox .lb-outerContainer img,
  #lightbox .lb-image {
    width: auto !important;
    max-width: 55vw !important;
    height: auto !important;
    max-height: calc(100dvh - 170px) !important;
    object-fit: contain !important;
  }

  #lightbox .lb-dataContainer {
    width: 43vw !important;                     /* caption */
    margin-left: 12px !important;
  }

  #lightbox .lb-data { padding: 1.1rem 1.35rem !important; }
  #lightbox .lb-caption h2 { font-size: 1.55rem !important; line-height: 1.3 !important; }
  #lightbox .lb-caption p  { font-size: 1.10rem !important; line-height: 1.65 !important; }
}

/* LIGHTBOX ≥1025px, LANDSCAPE — side-by-side layout + desktop type */
@media (min-width: 1025px) and (orientation: landscape) {
  #lightbox { 
    text-align: center !important; 
  }

  /* image + caption side-by-side */
  #lightbox .lb-outerContainer,
  #lightbox .lb-dataContainer {
    display: inline-block !important;
    vertical-align: top !important;
    float: none !important;
    margin: 0 !important;
    text-align: left !important;
  }

  /* image column */
  #lightbox .lb-outerContainer,
  #lightbox .lb-container {
    width: auto !important;
    max-width: 60vw !important;   /* was 58vw */
    box-sizing: content-box !important;
    overflow: hidden !important;
    background: transparent !important;
  }

  #lightbox .lb-outerContainer img,
  #lightbox .lb-image {
    width: auto !important;
    max-width: 60vw !important;   /* was 58vw */
    height: auto !important;
    max-height: calc(100vh - 200px) !important;  /* keep this safe */
    object-fit: contain !important;
  }

  /* caption column — just a hair narrower */
  #lightbox .lb-dataContainer {
    width: 38vw !important;       /* was 40vw */
    margin-left: 12px !important;
  }

  #lightbox .lb-data {
    padding: 1.1rem 1.35rem !important;
    max-height: none !important;
    overflow: visible !important;       /* no internal scroll */
  }

  /* desktop / large-tablet type */
  #lightbox .lb-caption h2 {
    font-size: 1.6rem !important;
    line-height: 1.3 !important;
  }

  #lightbox .lb-caption p {
    font-size: 1.15rem !important;
    line-height: 1.65 !important;
  }
}

/* LARGE LANDSCAPE SCREENS (1025–1400px): side-by-side Lightbox */
@media (min-width: 1025px) and (max-width: 1400px) and (orientation: landscape) {
  #lightbox { text-align: center !important; }

  /* image + caption side-by-side */
  #lightbox .lb-outerContainer,
  #lightbox .lb-dataContainer {
    display: inline-block !important;
    vertical-align: top !important;
    float: none !important;
    margin: 0 !important;
    text-align: left !important;
  }

  /* image column */
  #lightbox .lb-outerContainer,
  #lightbox .lb-container {
    width: auto !important;
    max-width: 58vw !important;              /* a bit wider image on big tablets */
    box-sizing: content-box !important;
    overflow: hidden !important;
    background: transparent !important;
  }
  #lightbox .lb-outerContainer img,
  #lightbox .lb-image {
    width: auto !important;
    max-width: 58vw !important;
    height: auto !important;
    max-height: calc(100dvh - 170px) !important;
    object-fit: contain !important;
  }

  /* caption column */
  #lightbox .lb-dataContainer {
    width: 40vw !important;
    margin-left: 12px !important;
  }

  #lightbox .lb-data {
    padding: 1.1rem 1.35rem !important;
  }

  /* comfortable type on large tablets / small laptops */
  #lightbox .lb-caption h2 {
    font-size: 1.6rem !important;
    line-height: 1.3 !important;
  }
  #lightbox .lb-caption p {
    font-size: 1.15rem !important;
    line-height: 1.65 !important;
  }
}


/* LANDSCAPE PHONES & SMALL TABLETS — ≤932px */
@media screen and (max-width: 932px) and (max-height: 560px) and (orientation: landscape) {


  /* HERO */
  .hero {
    min-height: 100dvh;
    height: auto;
    padding-top: 5px;
  }
  .hero .content { gap: 4px; }
  .hero .content img { max-width: 250px; }
  .hero .content p {
    font-size: 25px;
    margin: 0 0 6px;
    line-height: 1.2;
  }
  .hero .content p.home-p {
    padding: 0;
    margin: 0 0 4px 0;
    line-height: 1;
  }

  /* NAV */
  .navbar {
    height: auto;
    padding: 6px 10px;
  }
  .navbar a {
    font-size: 0.9rem;
    padding: 4px 6px;
  }

  /* SHOWCASE / MOTION BUTTON */
  .motion-btn {
    font-size: 0.9rem;
    padding: 4px 12px;
    margin: 0 0 5px;
    position: relative;
    z-index: 1002;
  }

  /* VIDEO POPUP */
  .video-box {
    width: 90vh;            /* use height to size square box */
    height: 90vh;
    max-width: 90vw;
    aspect-ratio: 1 / 1;
  }
  .video-wrapper video {
    object-fit: cover;
  }

  /* ICONS BAR STACKING */
  .icons {
    position: relative;
    z-index: 0;
  }

  /* ABOUT — side-by-side */
  .flex-columns .row {
    flex-wrap: nowrap;
  }
  .flex-columns .column {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    align-items: stretch;
  }
  .flex-columns .column-2 {
    padding: 30px;
    display: flex;
    align-items: center;
  }
  #about .column-1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* PORTFOLIO — easier scrolling */
  .py-3 {
    margin: 0 36px 20px;
  }
  .items {
    gap: 12px;
  }

  /* LIGHTBOX — base phone landscape layout */
  #lightbox {
    text-align: center !important;
  }

  /* lay out image + caption side-by-side */
  #lightbox .lb-outerContainer,
  #lightbox .lb-dataContainer {
    display: inline-block !important;
    vertical-align: top !important;
    float: none !important;
    margin: 0 !important;
    text-align: left !important;
  }

  /* image column — base 66% width */
  #lightbox .lb-outerContainer,
  #lightbox .lb-container {
    width: auto !important;
    max-width: 63vw !important;           /* base split */
    box-sizing: content-box !important;
    overflow: hidden !important;
    background: transparent !important;
  }
  #lightbox .lb-outerContainer img,
  #lightbox .lb-image {
    width: auto !important;
    max-width: 63vw !important;
    height: auto !important;
    max-height: calc(100dvh - 100px) !important;
    object-fit: contain !important;
  }

  #lightbox .lb-dataContainer {
    width: 35vw !important;
    margin-left: 8px !important;
  }
  #lightbox .lb-data {
    position: static !important;
    height: auto !important;
    max-height: calc(100dvh - 100px) !important;
    overflow: auto !important;
    padding: 1.1rem 1.25rem !important;
  }

  /* === LIGHTBOX — anti-clip shim & final tweaks (overrides base above) === */

  /* Prefer the 'small viewport' unit when supported (iOS landscape safe) */
  #lightbox .lb-outerContainer,
  #lightbox .lb-container,
  #lightbox .lb-image {
    max-height: calc(100svh - 100px) !important;
  }

  /* Fallback for browsers without svh support to keep behavior reasonable */
  @supports not (height: 100svh) {
    #lightbox .lb-outerContainer,
    #lightbox .lb-container,
    #lightbox .lb-image {
      max-height: calc(100vh - 110px) !important;
    }
  }

  /* Slightly tighter caption padding to buy a few extra pixels */
  #lightbox .lb-data {
    padding: 0.75rem 0.9rem !important;
  }

  /* FINAL WIDTH SPLIT: 70 / 28 (overrides 66 / 32 above) */
  #lightbox .lb-outerContainer,
  #lightbox .lb-container {
    max-width: 70vw !important;  /* was 66vw */
  }
  #lightbox .lb-dataContainer {
    width: 28vw !important;      /* was 32vw */
  }
}
