* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  max-width: 100vw; /* Prevent children from exceeding viewport width */
}

body, html {
  height: auto;
  min-height: 100%;
  width: 100%;
  max-width: 100vw; /* This line prevents horizontal scrolling */
  overflow-x: hidden; /* Critical to block side-scroll */
  background: #000;
  font-family: 'Heebo', sans-serif;
  font-style: italic;
}

.hamburger-menu {
  display: none;
}

.video-grid {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: auto;
}

.nav-buttons {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 20px;
  z-index: 2;
  flex-wrap: wrap; /* Add this */
  max-width: 100vw; /* Ensure it doesn't overflow */
  padding: 0 10px; /* Give a little breathing room */
  box-sizing: border-box;
}

.nav-buttons button {
  font-family: 'Heebo', sans-serif;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: bold;
  opacity: 70%;
  border: none;
  background: none;
  color: white;
  cursor: pointer;
  transition: color 0.3s, opacity 0.3s;
}

.nav-buttons button:hover {
  opacity: 100%;
  font-weight: bolder;
}

.brand-name {
  position: fixed;
  top: 10px;
  left: 20px;
  opacity: 75%;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  font-style: normal;
  z-index: 1000;
  font-family: 'Heebo', sans-serif;
}

.brand-name:hover {
  opacity: 100%;
}

.door-icon {
  position: fixed;
  top: 1px;
  right: 20px;
  height: 60px;
  width: auto;
  z-index: 100;
  cursor: pointer;
}

.first-large-video {
  height: 80vh;
  position: relative;
  overflow: hidden;
}

.first-large-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.large-video {
  position: relative;
  overflow: hidden;
}

.large-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.large-video:hover video {
  transform: scale(1.00);
  opacity: 1;
}

.first-large-video .overlay {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
  text-align: center;
}

.first-large-video:hover .overlay {
  opacity: 1;
}

.small-videos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
}

.grid-video {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  height: 40vh;
}

.grid-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.grid-video:hover video {
  transform: scale(1.05);
  opacity: 1;
}

.overlay {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
  text-align: center;
}

.grid-video:hover .overlay,
.large-video:hover .overlay {
  opacity: 1;
}

a {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
  width: 100%;
}

/* Scrolling container */
.scrolling-text {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: black;
  height: 30px;
  display: flex;
  align-items: center;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
  z-index: 1;
}

/* Inner content wrapper */
.scrolling-content {
  display: flex;
  width: fit-content;
  animation: scroll-left 20s linear infinite;
}

/* Reverse direction for bottom scrolling text */
.scrolling-text.bottom .scrolling-content {
  animation: scroll-right 20s linear infinite;
}

/* Scrolling animation keyframes */
@keyframes scroll-left {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes scroll-right {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Scrolling text style */
.scrolling-text span {
  display: inline-block;
  color: white;
  font-size: 1rem;
  white-space: nowrap;
  padding-right: 50px; /* space between loops */
}

.scroll-gif {
  height: 16px;
  vertical-align: middle;
  margin-right: 0px;
}

@media (max-width: 768px) {
  .video-grid {
    display: flex;
    flex-direction: column;
    gap: 0px;
    padding: 0px;
  }

  .first-large-video,
  .small-videos .grid-video,
  .large-video {
    width: 100%;
    aspect-ratio: 10 / 9;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    height: auto; /* 👈 IMPORTANT: overrides the 40vh from desktop */
  }

  .small-videos {
    display: flex;
    flex-direction: column;
    gap: 0px;
  }

  .grid-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    height: auto !important; /* 👈 Forces removal of fixed height */
  }

  .grid-video video,
  .first-large-video video,
  .large-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .overlay {
    position: absolute;
    bottom: 55%;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-weight: bold;
    font-size: 1rem;
    text-shadow: 1px 1px 2px black;
  }

  .nav-buttons {
    display: none;
  }

  .hamburger-menu {
    display: block;
    position: fixed;
    top: 50px; /* Below the brand name */
    left: 20px;
    z-index: 999;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
	opacity: 100%;
  }

  .hamburger-icon {
    user-select: none;
    font-weight: bold;

  }

  .mobile-nav {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.85);
    padding: 30px;
    border-radius: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 1000;
    opacity: 100%;
  }

  .mobile-nav button {
    font-size: 1rem;
    color: black;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Heebo', sans-serif;
    font-style: normal;
    font-weight: bold;
    opacity: 100%;
    transition: opacity 0.3s;
  }

  .mobile-nav button:hover {
    opacity: 0.8;
  }

  .mobile-nav.hidden {
    display: none;
  }
.brand-name {
  opacity: 100%;
}
}
