/* 1. REGISTER YOUR CUSTOM FONT AT THE VERY TOP */
@font-face {
  font-family: "MyUniqueFont";
  src: url("myhand.ttf") format("truetype"),
       url("my-custom-font.otf") format("opentype");
}

/* 2. GLOBAL RESET & BASE STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
 body {
  font-size: 40px;        /* Increases standard base text layout sizing */
  /* keep your other body styles below this line */
}
    font-family: "MyUniqueFont", -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #ffffff;
  color: #111111;
  overflow-x: hidden; 
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 3. NAVIGATION BAR LAYOUT */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 50px;
  background-color: #ffffff;
}

.logo a {
  font-weight: 400;
  font-size: 40px;
  letter-spacing: 2px;
  text-decoration: none;
  color: #111111;
}

.nav-links a {
  text-decoration: none;
  color: #666666;
  margin-left: 45px;
  font-size: 32px;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #111111;
}

/* 4. THE ROLLING GALLERY LAYOUT (PERFORMANCE OPTIMIZED) */
.rolling-gallery-container {
  flex-grow: 1;
  display: flex;
  align-items: center; 
  width: 100%;
  overflow: hidden; 
  padding: 40px 0;
}

.track {
  display: flex;
  /* Crucial: You MUST match the gap value exactly in the math calculation below */
  gap: 20px; 
  width: max-content; 
  
  /* Forces your computer's graphics card (GPU) to handle the smooth movement */
  will-change: transform; 
  transform: translate3d(0, 0, 0); 
  backface-visibility: hidden;
  
  /* Running the updated animation */
  animation: scrollTrack 30s linear infinite; 
}

.track:hover {
  animation-play-state: paused; 
}

/* Forces images to render cleanly without sub-pixel lag */
.track img {
  height: 55vh !important; 
  width: auto !important;  
  object-fit: cover !important;
  border-radius: 0 !important;
  flex-shrink: 0;
  
  /* Removes browser-specific image scaling jitter */
  image-rendering: -webkit-optimize-contrast; 
  transform: translateZ(0); 
}

/* 5. PERFECT RE-CALCULATED INFINITE LOOP KEYFRAME */
@keyframes scrollTrack {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    /* calc(-50% - 10px) accounts for exactly half of your 20px gap, removing the jump */
    transform: translate3d(calc(-50% - 10px), 0, 0); 
  }
}

/* ABOUT PAGE STYLING */
.about-container {
  display: flex;
  gap: 80px;
  padding: 40px 50px;
  max-width: 1400px;
  margin: 0 auto;
}
.about-text {
  flex: 1;
  font-size: 24px;
  line-height: 1.6;
}
.about-text p {
  margin-bottom: 30px;
}
.about-image {
  flex: 1;
}
.about-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* STILLS PAGE GRID STYLING */
.stills-grid-container {
  padding: 20px 50px;
}
.stills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}
.stills-grid img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

//* MOVING IMAGE PAGE STYLING (SNIPPETS + YOUTUBE LINKS) */
.video-container {
  padding: 20px 50px;
  display: grid;
  /* Creates a clean 2-column grid layout for desktop */
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 50px;
}

.video-block {
  display: flex;
  flex-direction: column;
  gap: 15px; /* Space between the video preview and the text link below it */
}

.video-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9; /* Guarantees standard cinematic widescreen format */
  overflow: hidden;
  background-color: #f0f0f0; /* Soft loading placeholder color */
}

.preview-video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crops the snippet perfectly to fit the 16:9 canvas */
}

.youtube-link {
  font-size: 20px; /* Keeps consistent text sizes with your large menu links */
  color: #111111;
  text-decoration: none;
  font-weight: 400;
  display: inline-block;
  transition: opacity 0.2s ease;
}

.youtube-link:hover {
  opacity: 0.6; /* Softly dims the link when hovered over */
}

/* Make it drop into a single vertical column layout on mobile screens */
@media (max-width: 768px) {
  .video-container {
    grid-template-columns: 1fr;
    padding: 20px 20px;
  }
}
