/* ------------------------- RESET & BASE ------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  font-family: "Montserrat", Arial, sans-serif;
  background-color: #000;
  color: white;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body.lightbox-active {
  overflow-x: hidden !important;
}

main,
section {
  width: 100%;
  overflow-x: hidden;
}

/* ------------------------- Fade in Animation ------------------------- */
.fade-in-section {
  opacity: 0.3;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------- TYPOGRAPHY ------------------------- */
h1 {
  color: yellow;
  font-family: "novantique-script", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 100px;
  margin: 0 0 20px 0;
  padding-left: 20px;
  line-height: 1;
}

.interactive-section h1,
#design h1,
#paintings h1,
#photography h1,
#design3d h1 {
  margin-bottom: 80px;
}

/* ------------------------- NAVBAR ------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  background-color: #000000df;
  padding: 30px;
  z-index: 1000;
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  align-items: center;
}

.nav-link {
  color: white;
  text-decoration: none;
  margin: 5px 12px;
  padding: 8px 20px;
  font-size: 1.2rem;
  position: relative; /* needed for pseudo-element */
  border-radius: 0;
}

/* Create the underline using a ::after pseudo-element */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background-color: yellow;
  transform: scaleX(0); /* start hidden (scaled to 0 width) */
  transform-origin: left; /* origin for the scale animation */
  transition: transform 0.3s ease;
  border-radius: 0;
}

/* On hover and active, animate underline to full width */
.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1); /* scale to full width */
}

.nav-left {
  display: none;
  align-items: center;
  position: absolute;
  left: 20px;
  top: 20px;
  z-index: 1001;
}

.nav-logo {
  height: 45px;
  width: auto;
}

/* ------------------------- HOME / SLIDESHOW ------------------------- */

.home-section,
.slideshow-container {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden; /* already set */
  margin: 0;
  padding: 0;
}


.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  z-index: 0;
  overflow: hidden;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

/* .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
} */


.overlay-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  color: white;
  text-align: center;
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-style: normal;
  pointer-events: none;
  font-size: 5rem;
  line-height: 0.75;
  max-width: 90%;
}

.highlight-text {
  font-family: "novantique-script", sans-serif;
  color: yellow;
  font-size: 14rem;
  font-weight: 700;
}

.home-title {
  font-size: 4rem;
  text-align: center;
  padding: 0 20px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
  color: white;
}


/* =========================
   SLIDES (BASE LAYER)
========================= */
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  overflow: hidden;
}

/* ACTIVE SLIDE */
.slide.active {
  opacity: 1;
}

/* =========================
   IMAGES
========================= */
.slide[style*="background-image"] {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* =========================
   VIDEO SLIDE
========================= */
.slide video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* KEY FIX */
  display: block;
}


/* =========================
   OPTIONAL FADE SECTION
========================= */
.fade-in-section {
  opacity: 0;
  transition: opacity 1s ease;
}

.fade-in-section.visible {
  opacity: 1;
}

/* ------------------------- ABOUT SECTION ------------------------- */
.about-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 70px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-button-wrapper {
  position: absolute;
  top: 50px;
  left: 30px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.btn-download-cv {
  padding: 10px 20px;
  font-size: 1rem;
  background-color: rgb(255, 0, 136);
  color: white;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
  text-align: center;
}

.btn-download-cv:hover {
  background-color: #e6c800;
}

.about-overlay {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 40px;
  max-width: 900px;
  border-radius: 5px;
  backdrop-filter: blur(4px);
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: left;
}

.about-text h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-align: center;
}

/* ------------------------- ABOUT IMAGES ------------------------- */
.slideshow-permanent-overlay-aboutMe,
.slideshow-permanent-overlay {
  position: absolute;
  z-index: 3;
}

.slideshow-permanent-overlay-aboutMe {
  top: 50%;
  left: 50%;
  width: 65vw;
  padding: 20px;
  transform: translate(-50%, -50%) scale(1);
}

.slideshow-permanent-overlay {
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  pointer-events: none;
}

/* ------------------------- WORD CAROUSEL ------------------------- */
.word-carousel {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  padding: 30px 0;
  margin-top: 100px;
  background-color: #000;
  position: relative;
  z-index: 5;
  user-select: none;
}

.carousel-track {
  display: inline-block;
  white-space: nowrap;
  animation: slideWords 40s linear infinite;
}

.word-carousel a {
  text-decoration: none;
  outline: none;
  border: none;
}

.word-carousel a:focus,
.word-carousel a:active,
.word-carousel a:visited {
  outline: none;
  border: none;
  text-decoration: none;
  color: inherit;
}

.word-carousel a span {
  display: inline-block;
  font-size: 2rem;
  font-weight: bold;
  color: white;
  padding: 0 50px;
  font-family: "Montserrat", sans-serif;
  transition: color 0.3s ease;
}

.word-carousel a:hover span {
  color: yellow;
}

@keyframes slideWords {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ------------------------- CONTENT SECTIONS ------------------------- */
.content-section {
  padding: 80px 0px 30px;
  background-color: #000;
  text-align: center;
}



/* ------------------------- IMAGE ROWS ------------------------- */
.image-row,
.image-row-2wide,
.image-row-3wide {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 40px 20px;
}

.word-carousel a span {
  display: inline-block;
  font-size: 2rem;
  font-weight: bold;
  color: white;
  padding: 0 50px;
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  transition: transform 0.6s ease, filter 0.5s ease;
  will-change: transform;
}

.word-carousel a:hover span {
  transform: translateY(-8px);
  color: yellow; 
}

.image-row img,
.image-row-2wide img,
.image-row-3wide img,
.painting_images img,
.photography-grid img,
.design-grid img,
.image-scroll img,
.tv-blockdesign img {
  transition: transform 0.6s ease, filter 0.5s ease;
  will-change: transform;
  border-radius: 5px;
}

.image-row img:hover,
.image-row-2wide img:hover,
.image-row-3wide img:hover,
.painting_images img:hover,
.photography-grid img:hover,
.design-grid img:hover,
.image-scroll img:hover,
.tv-blockdesign img:hover,
.word-carousel {
  transform: translateY(-8px);
  filter: brightness(0.5);
}

.image-row {
  gap: 90px;
}

.image-row-2wide {
  justify-content: space-between;
  gap: 0;
  padding: 40px 0;
}

.image-row-3wide {
  gap: 30px;
}

.image-row img,
.image-row-2wide img,
.image-row-3wide img {
  object-fit: cover;
  border-radius: 5px;
  background-color: #222;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.image-row img {
  width: 450px;
  aspect-ratio: 4 / 3;
}

.image-row-3wide img {
  width: calc(33.333% - 20px);
  aspect-ratio: 4 / 3;
}

.image-row-2wide img {
  width: 90vw;
  max-width: 500px;
  aspect-ratio: 4 / 3;
}

/* ------------------------- TV DESIGN ------------------------- */
.tv-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 80px 70px;
  padding: 60px 20px;
  place-items: center;
  background-color: #000;
}

.tv-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  color: white;
  max-width: 600px;
}

.tv-blockdesign {
  flex: 1;
  max-width: 33.3333%;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  width: 100%;
}

.tv-blockdesign img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 5px;
  background-color: #222;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.tv-caption {
  font-size: 1.5rem;
  margin-top: 15px;
  font-weight: 500;
  color: #ddd;
  line-height: 1.4;
}

.tv-paragraph {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1rem;
  font-weight: 200;
  color: #9f9f9f;
  line-height: 1.2;
}

.tv-description {
  max-width: 60%;
  word-wrap: break-word;
  font-size: 0.75rem;
  font-weight: 200;
  color: #717171;
  line-height: 1.2;
}

.tv-wrapper,
.tv-wrapper2,
.tv-wrapper3,
.tv-wrapper4 {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 5px;
  overflow: hidden;
}

.tv-wrapper {
  width: 600px;
}
.tv-wrapper2,
.tv-wrapper3,
.tv-wrapper4 {
  width: 550px;
}

.tv1-frame,
.tv2-frame,
.tv3-frame,
.tv4-frame,
.tv1-video,
.tv2-video,
.tv3-video,
.tv4-video {
  position: absolute;
  object-fit: cover;
  border-radius: 5px;
  z-index: 1;
}

.tv1-frame,
.tv2-frame,
.tv3-frame,
.tv4-frame {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.tv1-video {
  top: 10%;
  left: 12%;
  width: 75%;
  height: 65%;
}

.tv2-video {
  top: 12%;
  left: 6%;
  width: 70%;
  height: 75%;
}

.tv3-video {
  top: 4%;
  left: 6%;
  width: 65%;
  height: 65%;
}

.tv4-frame {
  width: 105%;
  height: 105%;
  object-fit: contain;
  transform: translate(-2.5%, -2.5%);
}

.tv4-video {
  top: 22%;
  left: 13%;
  width: 55%;
  height: 55%;
}

/* ------------------------- LIGHTBOX ------------------------- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow-y: auto;
  padding: 40px 20px;
  gap: 30px;
  scrollbar-width: thin;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 100%;
  max-height: 150vh;
  overflow-y: auto;
  padding: 10px 0;
}

.lightbox-content.horizontal {
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  overflow-x: auto;
  gap: 20px;
  padding: 0 10px;
}

.lightbox-content img,
.lightbox-content video {
  max-height: 150vh;
  max-width: 100%;
  border-radius: 5px;
  object-fit: contain;
  cursor: default;
  user-select: none;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.596);
  width: auto;
  height: auto;
  flex-shrink: 0;
}

.lightbox-content.horizontal img,
.lightbox-content.horizontal video {
  max-width: 50vw;
  max-height: 100vh;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 32px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  text-align: center;
  line-height: 48px;
  cursor: pointer;
  z-index: 1001;
  transition: background 0.3s;
}

.lightbox-close:hover {
  background-color: yellow;
}

/* ------------------------- INTERACTIVE VIDEO ------------------------- */
.interactive-row {
  display: flex;

  gap: 30px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 20px 0;
}

.interactive-video {
  position: relative;
  width: 25vw;
  aspect-ratio: 9/16;
  max-height: 93vh;
  background-color: #111;
  border-radius: 15px;
  overflow: hidden;
  flex-shrink: 0;
}

.interactive-video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #000;
}

/* ------------------------- 3D IMAGE FULLSCREEN ------------------------- */
.image-row3d {
  width: 100%;
  height: auto;
  overflow: hidden;
}

.image-row3d img {
  width: 100%;
  
  object-fit: cover;
  background-color: #222;
}
.image-row4d video {
  width: 100%;        /* full viewport width */
  height: auto;       /* full viewport height */
  object-fit: contain; /* show the entire video without cropping */
  display: block;
  margin-top: 30px;
  margin: 0 auto;
  background: black;   /* black bars if aspect ratio doesn’t match */
}


/* --- NEW: FINAL 3D ROW --- */
.image-row-3dextra {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 40px 20px;
  background-color: transparent; /* remove gray background */
}

.image-row-3dextra .tv-blockdesign {
  max-width: 100%;
  width: 100%;
  padding: 0;
}

.image-row-3dextra .tv-blockdesign img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background-color: transparent; /* remove gray */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  border-radius: 5px;
}

/* ------------------------- IMAGE SCROLL GALLERY ------------------------- */
.image-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 26px;
  padding: 20px;
  margin-top: 50px;
  margin-bottom: 50px;
  margin-left: 20px;
  margin-right: 20px;
  background-color: #000;
  scrollbar-width: thin;
  scrollbar-color: #444 #000;
}

.image-scroll img {
  flex: 0 0 auto;
  height: 250px;
  object-fit: contain;
  scroll-snap-align: start;
  border-radius: 5px;
  background-color: #222;
  cursor: pointer;
}

.image-scroll::-webkit-scrollbar {
  height: 8px;
  background-color: #000;
}

.image-scroll::-webkit-scrollbar-thumb {
  background-color: #444;
  border-radius: 5px;
}

/* ------------------------- PAINTINGS & PHOTOGRAPHY ------------------------- */
.painting_images,
.photography-grid,
.design-grid,
.image-row-2wide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 20px;
  background-color: #000;
}

.painting_images img,
.photography-grid img,
.design-grid img,
.image-row-2wide {
  width: 100%;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  background-color: #222;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.painting_images img {
  aspect-ratio: 1 / 1;
}

.photography-grid img,
.design-grid img {
  aspect-ratio: 4 / 3;
}

/* ------------------------- FOOTER ------------------------- */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  background-color: #111;
  padding: 50px 60px;
  color: white;
  font-family: "Montserrat", Arial, sans-serif;
  gap: 40px;
}

.footer-logo img {
  height: 100px;
  width: auto;
}

.footer-links {
  display: flex;
  gap: 100px;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-column a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: yellow;
}

.footer-social {
  display: flex;
  gap: 30px;
  align-items: center;
}

.footer-social a img {
  height: 35px;
  width: 35px;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.footer-social a:hover img {
  filter: brightness(0) invert(0.6);
}

.footer-bottom {
  text-align: center;
  padding: 10px 0 30px;
  font-size: 0.8rem;
  color: #aaa;
  border-top: 1px solid #292929;
  background-color: #111;
}

/* ------------------------- SHARED EFFECTS ------------------------- */
.image-row img:hover,
.image-row-2wide img:hover,
.image-row-3wide img:hover,
.painting_images img:hover,
.photography-grid img:hover,
.design-grid img:hover,
.image-scroll img:hover,
.interactive-video:hover,
.tv-wrapper:hover,
.tv-wrapper2:hover,
.tv-wrapper3:hover,
.tv-wrapper4:hover,
.footer-column a:hover {
  filter: brightness(0.5);
  transition: filter 0.3s ease;
}

.image-row img,
.image-row-2wide img,
.image-row-3wide img,
.painting_images img,
.photography-grid img,
.design-grid img,
.image-scroll img,
.interactive-video,
.tv-wrapper,
.tv-wrapper2,
.tv-wrapper3,
.tv-wrapper4 {
  cursor: pointer;
}

/* ------------------------- SCROLLBAR STYLING ------------------------- */
::-webkit-scrollbar {
  width: 10px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  background-color: #444;
  border-radius: 5px;
  border: 2px solid #000;
  transition: background-color 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #666;
}

html {
  scrollbar-width: thin;
  scrollbar-color: #444 #000;
}


/* ------------------------- MOBILE: max-width 768px ------------------------- */
@media (max-width: 768px) {
  .slideshow-permanent-overlay-aboutMe {
    padding: 0px;
  }

  
  
  
  /* Headings */
  h1,
  .about-text h1,
  .interactive-section h1,
  #photography h1,
  #design3d h1,
  #design h1 {
    font-size: 2rem;
    text-align: center;
    padding-left: 10px;
    margin-bottom: 15px;
    line-height: 1.2;
  }

  h1 {
    font-size: 3.2rem !important;
  }

  /* TV Section */
  .tv-container {
    grid-template-columns: 1fr !important;
    gap: 60px 0;
    padding: 40px 0px;
  }

  .tv-block,
  .tv-blockdesign {
    width: 100%;
    text-align: center;
  }

  .tv-wrapper,
  .tv-wrapper2,
  .tv-wrapper3,
  .tv-wrapper4 {
    width: 90vw;
    max-width: 500px;
  }

  .tv-caption {
    font-size: 1.2rem;
  }

  .tv-paragraph {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .tv-description {
    font-size: 0.75rem;
    max-width: 90%;
  }

  /* Interactive Section */
  .interactive-row {
    flex-direction: column;
    align-items: center;
    overflow-x: unset;
  }

  .interactive-video {
    width: 75vw !important;
    height: auto !important;
    aspect-ratio: 9 / 16;
  }

  /* About Section */
  .about-section {
    min-height: 55vh;
    padding: 0px;
    align-items: flex-start;
  }

  .slideshow-permanent-overlay-aboutMe {
    width: 95vw !important;
    max-width: none !important;
    height: auto !important;
    top: 55%;
    transform: translate(-50%, -55%) scale(1) !important;
  }

  .about-button-wrapper {
    top: 20px;
    left: 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .btn-download-cv {
    width: 70%;
    max-width: 250px;
  }

  /* Image Rows */
  .image-row-3wide img,
  .image-row-3dextra {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .painting_images,
  .photography-grid,
  .design-grid {
    grid-template-columns: 1fr;
  }

  /* Overlay Titles */
  .overlay-title {
    font-size: 2.2rem;
    line-height: 1.1;
  }

  .highlight-text {
    font-size: 6rem;
    white-space: nowrap;
  }

  .overlay-title .highlight-text {
    font-size: 3em;
  }

  /* Footer */
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 40px;
    max-width: 400px;
  }

  .footer-links a:nth-child(-n + 5) {
    grid-column: 1;
  }

  .footer-links a:nth-child(n + 6) {
    grid-column: 2;
  }

  /* Home Button */
  .nav-link.home {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 12px 24px;
  }

  /* Image Scroll */
  .image-scroll {
    padding-top: 10px;
    padding-bottom: 10px;
    margin: 30px;
  }

  /* Section Padding */
  section {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  #about-section {
    margin-top: 0px;
    padding: 0px 10px;
  }

  #design.content-section,
  #design3d.content-section,
  #interactive.content-section,
  #photography.content-section,
  #animation.content-section,
  #paintings.content-section {
    margin-top: 0px;
    padding: 20px 10px;
  }

  #paintings.content-section {
    padding-bottom: 60px;
  }

  #design.content-section h1,
  #design3d.content-section h1,
  #photography.content-section h1,
  #animation.content-section h1,
  #paintings.content-section h1 {
    margin: 0px;
    padding: 20px;
  }

  /* Word Carousel */
  .word-carousel {
    margin-top: 5px;
    padding: 5px;
  }

  /* Lightbox */
  .lightbox {
    overflow-x: hidden !important;
    margin: 0;
  }

  .lightbox-content.horizontal {
    overflow-x: auto;
    padding-left: 0;
    padding-right: 0;
  }

  .lightbox-content.horizontal img,
  .lightbox-content.horizontal video {
    max-width: 100vw;
  }

  .lightbox-content {
    gap: 15px;
    padding-top: 35px;
      padding-bottom: 35px;
    overflow-x: hidden;
  }
}

/* ------------------------- TABLET: 768px to 1023px ------------------------- */
@media (min-width: 768px) and (max-width: 1023px) {
  .nav-link {
    font-size: 1.5rem;
  }

.content-section,
.interactive-section {
  min-height: 100vh;
  padding: 0px 20px 0px;
  background-color: #000;
  text-align: center;
}

  .slideshow-permanent-overlay-aboutMe {
    padding-left: 10px;
    padding-right: 10px;
  }

  .lightbox-content {
    gap: 20px;
    padding-top: 45px;
    overflow-x: hidden;
  }

  #design3d.content-section,
  #interactive.content-section,
  #photography.content-section,
  #animation.content-section,
  #paintings.content-section {
    margin-top: 0px;
    padding: 20px 10px;
  }

  #paintings.content-section {
    padding-bottom: 60px;
  }

  #design.content-section h1,
  #design3d.content-section h1,
  #photography.content-section h1,
  #interactive.content-section h1,
  #animation.content-section h1,
  #paintings.content-section h1 {
    font-size: 6rem;
    margin: 0px;
    padding: 40px;
  }

  .overlay-title {
    font-size: 5rem;
    line-height: 0.75;
  }

  .highlight-text {
    font-size: 8rem;
    white-space: nowrap;
  }

  .image-row-3dextra {
    grid-template-columns: repeat(2, 1fr);
  }

  .image-row-3wide {
    justify-content: center;
    gap: 40px;
  }

  .image-row-3wide img {
    width: calc(50% - 20px);
  }

  .painting_images,
  .photography-grid,
  .design-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tv-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 40px;
  }

  .tv-wrapper,
  .tv-wrapper2,
  .tv-wrapper3,
  .tv-wrapper4 {
    width: 80vw;
    max-width: 400px;
  }

  .tv-blockdesign {
    max-width: 100%;
    width: 100%;
  }

  .interactive-row {
    flex-direction: column;
    align-items: center;
    overflow-x: unset;
  }

  .interactive-video {
    width: 80vw;
    max-width: 400px;
    aspect-ratio: 9 / 16;
  }

  .image-row3d img {
    width: 100%;
    display: block;
    margin-bottom: 40px;
  }

.image-row4d video {
  width: 100%;       /* fit viewport width */
  height: auto;      /* fit viewport height */
  object-fit: contain; /* show the whole video, no cropping */
  display: block;
  margin-top: 50px;
  margin: 0;
  background: black;  /* adds black bars if aspect ratio doesn’t match */
}



  h1 {
    font-size: 3.5rem;
  }

  .about-section {
    min-height: 80vh;
    padding: 0px;
    align-items: flex-start;
  }

  .slideshow-permanent-overlay-aboutMe {
    width: 100vw;
    top: 65%;
    transform: translate(-50%, -50%) scale(1);
    z-index: 2;
  }

  .about-button-wrapper {
    top: 20px;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 3;
  }

  .btn-download-cv {
    width: 80%;
    max-width: 320px;
    text-align: center;
  }

  .image-scroll {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

/* ------------------------- FONT SIZING: welcome text ------------------------- */
@media (max-width: 1024px) {
  .overlay-title {
    font-size: 3rem;
    line-height: 1.1;
  }
}

@media (max-width: 480px) {
  .overlay-title {
    font-size: 1.8rem;
    line-height: 1.15;
  }
}

/* ------------------------- BURGER MENU ------------------------- */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
  position: absolute;
  right: 20px;
  top: 30px;
}

.burger .bar {
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 2px;
  transition: 0.3s;
}

@media (max-width: 1365px) {
  .navbar {
    justify-content: space-between;
    padding: 40px 20px;
  }

  .nav-left {
    display: flex;
  }

  .burger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: #000000e8;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100vw;
    z-index: 1000;
    padding: 20px 0;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links .nav-link {
    margin: 10px 0;
    padding: 10px 20px;
  }
}
