* {

  margin: 0;

  padding: 0;

  box-sizing: border-box;

}

img {

  display: block;

  max-width: 100%;

  height: auto;

}

body {

  font-family: 'Open Sans', sans-serif; 

  font-weight: 400; /* Regular */

	color: #1d1d1f;

}


header {
  /* background-color: white; Changed from #18272f to white */
  padding: 10px;
}

header a {
  color: #1d1d1f;
  text-decoration: none;
}


.main-content {
  padding-top: 100vh;
}



/* ----------------------------------------- TEXT SELECTION COLOR CHANGE ----------------------- */
::selection {
    background-color: #ff5053; /* Bright red background */
    color: white; /* White text color */
}

/* For browser compatibility, especially older versions */
::-moz-selection {
    background-color: #ff5053; /* Bright red background */
    color: white; /* White text color */
}




/* ----------------------------------------- NAV ----------------------------------------------- */

/* Outer Navigation Container Styles */
#nav-section::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  height: 60px;
  background: inherit;
  z-index: -1;
}

#nav-section {
  text-align: center;
  height: 60px;
  padding: 0 36px;
  margin-top: 20px;
  position: absolute; /* Changed from fixed to absolute */
  top: 0; /* Keep it at the top */
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  /* transition: background-color .5s, top 0.3s; */ /* Commented out since we're not animating */
}

/* Navigation Container Layout */
.nav-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  background-color: transparent;
  height: 60px;
}

/* Logo Styles */
.nav-logo {
  display: flex;
  width: 190px;
  align-items: flex-end;
  padding-left: 0;
}

.nav-svg-container {
  position: relative;
  width: 220px;
  height: auto;
}

.iframe-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 236px;
  height: 574px;
  z-index: 10;
  cursor: pointer;
}

/* Navigation Elements */
.nav-right {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

nav {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  margin-bottom: 4px;
}

nav a {
  color: #1d1d1f;
  text-decoration: none;
  margin-left: 40px;
  position: relative;
}

nav a:hover {
  text-decoration: none;
}

/* Navigation Icons and Hover Effects */
.nav-icon {
  transition: transform 0.3s ease;
}

.nav-icon:hover {
  opacity: 1;
}

.nav-arrow-right:hover {
  transform: translateX(3px);
}

.nav-arrow-left:hover {
  transform: translateX(-3px);
}

nav a[href*='#portfolio'] .nav-icon:hover {
  transform: scale(1.2) translateY(-3px);
}

/* Mobile-specific styles */
@media screen and (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: center;
    position: relative;
  }

  nav {
    position: static;
    width: 100%;
    justify-content: center;
  }

  nav a {
    margin: 0 20px;
  }
  
  .nav-logo {
    display: none;
  }
}





/* ----------------------------------------- HERO IMAGE----------------------------------------------- */

#hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  overflow: hidden;
}
#hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

#hero-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1; /* Lower z-index than navigation */
    overflow: hidden; /* Ensure no overflow outside this container */
    background-size: cover; /* Or use 'contain' based on your preference */
    background-position: center; /* Adjust as needed */
    background-repeat: no-repeat;
    will-change: transform; /* Optimizes for smoother animations */
}

.hero-image img {
    width: 100%; /* Fill the width of the container */
    height: 100%; /* Fill the height of the container */
    object-fit: cover; /* Cover the container while maintaining aspect ratio */
    object-position: center; /* Center the image if it's bigger than the container */
}






/* ----------------------------------------- INLINE HERO IMAGE ----------------------------------------------- */

/* Inline Hero Image */
.hero-image-inline {
  position: relative; /* Keeps it within the page flow */
  width: 100%; /* Occupies full width of the parent container */
  height: 100vh; /* Matches the height of the viewport */
  z-index: 1; /* Adjust if necessary based on surrounding content */
  overflow: hidden; /* Prevents overflow outside this container */
  background-size: cover; /* Ensures the image covers the container */
  background-position: center; /* Centers the image */
  background-repeat: no-repeat; /* Prevents repetition of the image */
  will-change: transform; /* Optimizes for smoother animations, such as parallax */
}

/* Inline Hero Image Styling for img */
.hero-image-inline img, 
.hero-image-inline video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Maintains aspect ratio and covers the container */
  object-position: center; /* Centers the image within the container */
}










body, html {
    margin: 0;
    padding: 0;
}




.main-content {
  padding-top: 98vh;
}


/* ----------- SPACERS --------------- */
.spacer-100px {
  height: 100px;
}

.spacer-50px {
  height: 50px;
}

.spacer-25px {
  height: 50px;
}

.spacer-72px-responsive {
  height: 72px;
}

.spacer-100px-responsive {
  height: 100px;
}

.spacer-50px-responsive {
  height: 50px;
}

/* Media query for mobile devices */
@media screen and (max-width: 767px) {
  .spacer-100px-responsive {
    height: 25px; /* Half the height on mobile */
  }

  .spacer-72px-responsive {
    height: 36px;
  }

  .spacer-50px-responsive {
    height: 25px; /* Half the height on mobile */
  }
}








/* ----------------------------------------- PROJECT SECTIONS ----------------------------------------------- */

/* DEFINES PADDING and MARGINS of ALL SECTIONS */
/* Existing styles for section-common and content-common */
.section-common {
  display: flex;
  text-align: center;
  align-items: center;  
  justify-content: center;
  padding: 0 36px;
  padding-bottom: 120px;
  display: flex;
  color:deeppink
}

.content-common {
  width: 100%;
  margin: 0 auto;
}

/* Global mobile adjustments */
@media screen and (max-width: 768px) {
  .section-common {
    padding-left: 20px;
    padding-right: 20px;
  }

  .content-common {
    padding-left: 0;
    padding-right: 0;
  }

  /* Special handling for nested content-common */
  .section-common .content-common .content-common {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Additional specific adjustments (if needed) */
@media screen and (max-width: 768px) {
  /* Example: Adjust padding for a specific section if needed */
  #special-section.section-common {
    padding-left: 0;
    padding-right: 0;
  }

  /* Example: Adjust margin for social grid if needed */
  .social-grid {
    margin-left: -20px;
    margin-right: -20px;
  }
}






/* -------------------------------------------PROJECT DESCRIPTION TEXT ----------------*/
.basic-section {
/* background-color: greenyellow; */
}

.basic-content {
 /* background-color: mediumpurple; */
  max-width: var(--basic-max-width);
  padding: 0; 
/* background-color: orange; */
}

.left-aligned-text-container {
  max-width: var(--project-description-max-width);
  padding: 0; 
  margin: 0;
 /*  background-color: yellow; */
}

.content-common.basic-content {
  display: flex;
  justify-content: flex-start;
}



/* - - - - - - - - - - - - - - - - - - PROJECT DESCRIPTION - - - - - -*/
.project-title-container {
	margin-bottom: 15px;
  text-align: left;
  margin-top: 0; /* Remove top margin */
}

.project-description-and-roles {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;

}

.project-description-text {
  flex: 1;
  text-align: left; /* Align text to the left */
  padding-right: 20px; /* Add right padding for spacing */
  padding-left: 0;
}

.project-description-text p {
  font-size: 14pt;
  line-height: 24pt;
  margin-bottom: 12pt;
	letter-spacing: .2px; 
  font-weight: 400;
	color: #313134; /* #1d1d1f; */
}


.project-description-text a {
    color: #313134; /* Matching the body text color */
    text-decoration: none;
    position: relative;
}

.project-description-text a::after {
    content: '';
    display: block;
    height: 1.5px; /* Initial height */
    background-color: #00b4ff; /* Underline color matching the text */
    width: 100%;
    position: absolute;
    bottom: -3.5px; /* Initial bottom position */
    left: 0;
    transition: height 0.15s ease-in-out, bottom 0.15s ease-in-out; /* Adding transitions */
}

.project-description-text a:hover::after {
    height: 3px; /* Final height on hover */
    bottom: -4.5px; /* Final bottom position on hover */
}

.project-title {
  font-weight: 700;
  font-size: 60pt;
  line-height: 93px;
  letter-spacing: -2px; 
  margin-top: 0;
  color: #1d1d1f;  
  /* Ensure the text stays within its container */
  max-width: 100%;
  margin-left: -0.05em;
}

/* New class for extra-long words */
.long-word-title {
  -webkit-hyphens: manual;
  -ms-hyphens: manual;
  hyphens: manual;
  overflow-wrap: break-word;
  word-wrap: break-word;

}

.roles {
  flex: 0 0 auto;
  margin-left: 1in; /* Add left margin for spacing */
}

.roles ul {
  list-style-type: none;
  font-weight: 400;
  font-size: 11pt;
	letter-spacing: .25px; 
  padding: 0;
  margin: 0;
  text-align: left; /* Align list items to the left */
	color: #313134;
}

.roles ul li {
 
  margin-bottom: 3px; /* Controls spacing between list items - adjust this value as needed */
}

/* Remove margin from last item to avoid extra space at bottom */
.roles ul li:last-child {
  margin-bottom: 0;
}


/* Mobile-specific Settings */
@media screen and (max-width: 768px) {
  /* Existing mobile styles */
  .basic-content {
    padding: 0;
  }
  .left-aligned-text-container {
    padding: 0;
  }
	
  .project-description-and-roles {
    flex-direction: column;
    padding: 0;
  }
  .project-description-text {
    max-width: 100%;
    margin: 0;
    padding: 0;
  }
	
	
	    .project-description-text a::after {
        content: '';
        display: block;
        height: 2.5px;
        background-color: #00b4ff; /* Blue underline for mobile */
        width: 100%;
        position: absolute;
        bottom: -4px;
        left: 0;
    }
	
  .roles {
    max-width: 100%;
    margin-top: 0;
    margin-left: 0;
    padding: 0;
  }
  
  /* New styles for project title on mobile */
  .project-title {
	
    font-size: 38pt;
    line-height: 55px;
  }
	
	.long-word-title {
    /* Ensure manual hyphenation works on mobile */
    -webkit-hyphens: manual !important;
    -ms-hyphens: manual !important;
    hyphens: manual !important;
    /* Remove any potential interference from word-break */
    word-break: normal;
  }
}



/*----------  end ---------------------------------------------------*/



/* - - - - - - - - - - - - - - - - - - SECTION TITLES (GLOBAL) - - - - - - */

.section-title-container {
  margin-bottom: 15px;
  text-align: left;
  margin-top: 0;
}

.section-title {
  font-weight: 700;
  font-size: 36pt;
  line-height: 1; /* key: use tighter line height */
  letter-spacing: -1px;
  margin-top: 0;
  margin-bottom: 0;
  color: #dcd8ce;
  display: flex;
  flex-wrap: nowrap; /* Prevent wrapping of the primary text */
  align-items: baseline; /* Forces both to sit on same line */
  gap: 10px;
  
}



.section-title .primary {
  font-weight: 700;
  white-space: nowrap; /* Prevent the primary text from wrapping */
}

.section-title .secondary {
  font-weight: 300;
  opacity: 0.8;
  text-transform: uppercase;
  font-size: 35%; /* Makes secondary smaller */
  letter-spacing: 1.25px; /* Stretch out the caps */
  margin-left: 0;
}

/* Override bottom padding specifically for sections that ONLY contain a title */
.title-only-section.section-common {
  padding-bottom: 5px  !important; /* Adjust this value as needed (e.g., 0, 20px, 40px) */
}


/* Mobile Adjustments */
@media screen and (max-width: 768px) {
  .section-title {
    font-size: 28pt;
    line-height: 38pt;
    gap: 6px;
    margin-left: 0;
    flex-direction: column; /* Stack vertically on mobile */
    align-items: flex-start; /* Left align on mobile */
  }
  
  .section-title .secondary {
    margin-top: 3px; /* Space between stacked elements */
    margin-left: 0;
    font-size: 50%; /* Larger on mobile for readability */
    line-height: 1.2;
    width: 100%;
  }

  /* You might also want a mobile override if 30px is too much */
  .title-only-section.section-common {
    padding-bottom: 0px; /* Smaller padding on mobile */
  }
}


/* - - - - - - - - - - - - - - - - - - SECTION TITLES (GLOBAL) - - - - - - */
/* Hero Image with Title Overlay */
.hero-image-inline-with-title {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-image-inline-with-title picture,
.hero-image-inline-with-title img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Title Overlay Styling */
.section-title-overlay {
  position: absolute;
  top: 72px; /* Position from top edge */
  left: 0;
  width: 100%;
  z-index: 2;
  padding: 0 36px; /* Match the standard section padding */
}

.section-title-overlay .content-common {
  max-width: var(--basic-max-width);
  margin: 0 auto;
  padding: 0; /* Remove padding from content-common */
}

.section-title-overlay .left-aligned-text-container {
  padding: 0;
  margin: 0;
}

/* Mobile Adjustments */
@media screen and (max-width: 768px) {
  .section-title-overlay {
    padding: 0 20px; /* Match mobile padding */
    top: 36px; /* Closer to top on mobile */
  
  }
}




/* Define default custom properties */
/* ----------------------------------------- PROJECT SECTIONS ----------------------------------------------- */

/* ... (Your existing .section-common, .content-common, and their media queries go here) ... */
/* MODIFIED: Combined old ID selector with new class selector for social grid content-common */
#social .content-common, /* Keep this for backward compatibility with older pages using ID */
.social-grid-section-common .content-common { /* Keep this for new pages using the class */
  max-width: var(--social-max-width); /* Uses the variable defined in :root */
  height: auto;
}

/* MODIFIED: social Grid - Reintroducing the variable for default, but can be overridden */
.social-grid {
  margin: 0 auto; /* Ensure it's centered within the container */
  column-gap: 10px; /* Maintain the existing column gap */
  max-width: 100%; /* Ensure it doesn't exceed the container's width */
  /* KEY CHANGE HERE: Use var() with a fallback.
     If --social-grid-columns is defined in :root (like project_07.php), use that value.
     Otherwise (like Belle Vitale default or if not explicitly set), use 3 columns as a general default. */
  column-count: var(--social-grid-columns, 3);
}

/* NEW: Specific column counts for social grids. These have higher specificity than just `.social-grid`
   They will override the `column-count` set by the `var()` if these classes are applied. */
.social-grid.grid-2-columns {
    column-count: 2;
}

.social-grid.grid-3-columns {
    column-count: 3;
}

.social-item {
  display: inline-block;
  break-inside: avoid; /* Prevents breaking items across columns */
  margin-bottom: 5px; /* Spacing between items */
  width: 100%;
}

.social-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* New class for double images */
.double-image-container {
  display: flex;
  align-items: flex-start; /* Align items to the start of the cross axis */
  width: 100%;
}

.double-image-container img {
  flex: 1; /* Allows the image to grow and shrink */
  max-width: calc(50% - 5px); /* Each image takes up to half the container width minus half the gap */
  height: auto; /* Maintain aspect ratio */
}

.double-image-container img:first-child {
  margin-right: 10px; /* Right margin for the gap */
  margin-bottom: 5px; /* Spacing between items */
}

/* Adjust the media queries as well */
@media screen and (max-width: 2732px) {
  .social-grid {
    max-width: 100%;
  }
}

/* Existing Mobile-specific Settings for .social-grid (This correctly overrides specific counts on mobile) */
@media screen and (max-width: 768px) {
  .social-grid {
    column-count: 1; /* Single column for smaller screens */
  }
  
  /* Retain other existing mobile-specific social grid styles if any */
  .full-width-image {
    background-image: url('Images/bio-mobile.jpg');
    height: 697px; /* Set the height for the mobile image */
  }
}

@media screen and (max-width: 480px) {
  .social-grid {
    column-count: 1;
  }
}







/* ------------------------------------------GRID STYLE FIXED ROW LAYOUTS */

/* New Grid Styles for fixed-row layouts (UPDATE THIS ENTIRE SECTION IN YOUR CSS) */

/* Base container for images arranged in rows/columns using CSS Grid */
.image-grid-row-container {
  display: grid;
  margin: 0 auto; /* Ensures it's centered within its parent (.content-common) */
  width: 100%; /* Ensure it takes full width of its parent for grid calculation */

  /* IMPORTANT: Explicitly neutralize any potential column-count inheritance/conflict. */
  column-count: auto; 
  column-gap: normal; /* Resetting CSS Columns' column-gap */
  break-inside: auto;
  page-break-inside: auto;
  -webkit-column-break-inside: auto;
  
  grid-auto-flow: row; /* Ensure items flow by row first */
}

/* Desktop 2-column layout: Explicitly define columns AND gap */
.image-grid-row-container.columns-2 {
  grid-template-columns: repeat(2, 1fr); 
  gap: 15px; /* Desktop gap for 2-column grid */
}

/* Desktop 3-column layout: Explicitly define columns AND gap (KEPT for other pages) */
.image-grid-row-container.columns-3 {
  grid-template-columns: repeat(3, 1fr); 
  gap: 15px; /* Desktop gap for 3-column grid */
}

/* NEW: Desktop 4-column layout: Explicitly define columns AND gap */
.image-grid-row-container.columns-4 { /* NEW RULE FOR 4 COLUMNS */
  grid-template-columns: repeat(4, 1fr); /* Four equal-width columns on desktop */
  gap: 15px; /* Desktop gap for 4-column grid */
}

/* Images directly inside these new grid containers */
.image-grid-row-container img {
  width: 100%;
  height: auto; 
  display: block; 
  
  margin: 0;
  padding: 0;

  /* Desktop border-radius (default) */
  border-radius: 14px; /* Default for desktop as desired */
}

/* Mobile Responsiveness for new image-grid-row-container */
@media screen and (max-width: 768px) {
  /* Specific rule for 2-column grid on mobile: reduce to 1 column */
  .image-grid-row-container.columns-2 {
    grid-template-columns: repeat(1, 1fr); 
    gap: 10px; /* Mobile gap */
  }

  /* Specific rule for 3-column grid on mobile: reduce to 2 columns (KEPT for other pages) */
  .image-grid-row-container.columns-3 {
    grid-template-columns: repeat(2, 1fr); 
    gap: 10px; /* Mobile gap */
  }

  /* NEW: Specific rule for 4-column grid on mobile: reduce to 2 columns */
  .image-grid-row-container.columns-4 { /* NEW RULE FOR 4 COLUMNS ON MOBILE */
    grid-template-columns: repeat(2, 1fr); /* Reduce to 2 columns on mobile */
    gap: 10px; /* Mobile gap */
  }

  /* Mobile border-radius for ALL images in these grids */
  .image-grid-row-container img {
    border-radius: 8px; /* Reduced to 8px for mobile as desired */
  }
}



/* ------------------------------------------BANNERS & WEBPAGE SECTIONS */
#banner-section .content-common {
  max-width: var(--banner-max-width);
  margin: 0 auto;
}

@media screen and (max-width: 768px) {
  #banner-section .content-common {
    padding: 0;
  }
}

/* FOR SINGLE COLUMN BANNERS */
.image-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Target only the images inside .image-column */
.image-column > img {
  max-width: var(--banner-max-width);
  margin-bottom: 40px;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); /* Desktop opacity */
}

.image-column > img:last-child {
  margin-bottom: 0;
}

/* Initially hide mobile images on all devices */
.image-column > .mobile-image {
  display: none;
  width: 100%;
  margin-bottom: 20px;
  border-radius: 10px;
}

.image-column > .mobile-image:last-child {
  margin-bottom: 0;
}

/* Hide desktop images and show mobile images on devices with max-width of 768px */
@media screen and (max-width: 768px) {
  .image-column > .desktop-image {
    display: none;
  }
  .image-column > .mobile-image {
    display: block;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); /* Mobile opacity 100% */
  }
  /* Override the desktop opacity for image-column img on mobile */
  .image-column > img {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); /* Mobile opacity 100% */
  }
}

/* Ensure no box-shadow on parallax images */
#full-width-image img,
#full-width-image .top-image {
  box-shadow: none !important;
}
/* end for single column banners */




/* - - - - - - - - - - - - - - - - - -   F U L L - W I D T H   I M A G E    - - - - - - - - - - - - - - - - - -  */

.full-width-image {
  background-size: cover;
  background-position: center;
  width: 100%;
  min-height: 500px; /* For desktop */
  background-repeat: no-repeat;
  margin-bottom: 0; /* Remove any default bottom margin */
  display: block; /* Show this on desktop */
}

.mobile-full-width-image {
  display: none; /* Hidden on desktop, shown on mobile */
  width: 100%; /* Full width on mobile */
  height: auto; /* Maintain aspect ratio */
  margin-bottom: 0; /* Remove bottom margin */
}


/* Mobile-specific styles */
@media screen and (max-width: 768px) {
  #bio-photo .full-width-image {
    display: none; /* Hide the desktop background image for the bio photo section */
  }

  #bio-photo .mobile-full-width-image {
    display: block; /* Display the image inline on mobile for the bio photo section */
    margin: 0; /* Remove margin */
    padding: 0; /* Remove padding */
  }
  
  #full-width-slider .content-common {
    padding: 0;
  }
}





/* -------------------------------- CDF FULL-WIDTH PARALLAXING IMAGE ---------------------------- */
.cdf-layered-image-wrapper {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: visible;
  --scroll-progress: 0;
}
.cdf-layered-image-container {
  width: 100%;
  height: 100%;
  background-color: #181914;
  overflow: hidden;
}
.cdf-background {
  width: 100%;
  height: 100%;
  background-image: url('images/projects/CDF/wide-photo/bkg.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto 100%;
}
.cdf-frame {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background-repeat: no-repeat;
  background-position: center;
  max-width: 100vw;
  overflow: hidden;
  will-change: transform;
}
.cdf-frame-top {
  bottom: 200px;
  width: 2560px;
  height: 350px;
  background-image: url('images/projects/CDF/wide-photo/frame-top-x1.png');
  background-position: center;
  transform: translateX(-50%) translateY(calc(var(--scroll-progress) * 250px));
}
.cdf-frame-bottom {
  bottom: 0px;
  width: 2560px;
  height: 350px;
  background-image: url('images/projects/CDF/wide-photo/frame-bottom-x1.png');
  background-position: center;
  transform: translateX(-50%) translateY(calc(var(--scroll-progress) * -200px));
}
.cdf-flipper {
  position: absolute;
  top: calc(50% + 62px);
  left: calc(50% + 270px);
  transform: translate(-50%, -50%) scale(0.75);
  width: auto;
  height: auto;
  z-index: 10;
  will-change: transform, top;
}
.cdf-joel-jericho {
  position: absolute;
  bottom: calc(0% - 18px);
  left: calc(50% - 530px);
  transform-origin: bottom left;
  transform: scale(0.75);
  z-index: 20;
  will-change: transform;
}
@media screen and (max-width: 768px) {
  .cdf-layered-image-wrapper {
    height: 300px;
  }
  .cdf-layered-image-container .cdf-background {
    background-image: url('images/projects/CDF/wide-photo/bkg-mbl.jpg');
    background-size: 100% 300px;
    height: 300px;
  }
  .cdf-background {
    background-image: url('images/projects/CDF/wide-photo/bkg-mbl.jpg');
    background-size: 100% auto;
  }
  .cdf-frame {
    width: 100%;
    height: 0;
    padding-bottom: 13.67%;
    background-size: 100% 100%;
    position: absolute;
    left: 0;
    right: 0;
    transform: none;
  }
  .cdf-frame-top {
    top: 70px; /* Start 80px lower than the final position */
    bottom: auto;
    width: 100%;
    height: 0;
    padding-bottom: 13.67%; /* Adjust if needed to match the aspect ratio of frame-top-mbl.png */
    background-size: 100% 100%;
    background-image: url('images/projects/CDF/wide-photo/frame-top-mbl.png');
    background-repeat: no-repeat;
    background-position: center top;
    left: 50%;
    transform: translateX(-50%);
    transition: top 0.3s ease-out;
  }
  .cdf-frame-bottom {
    bottom: -5%; /* Adjust this value if the frame is cut off at the bottom */
    width: 100%;
    height: 0;
    padding-bottom: 35%; /* Increased further to test */
    background-size: 100% 100%;
    background-image: url('images/projects/CDF/wide-photo/frame-bottom-mbl.png');
    background-repeat: no-repeat;
    background-position: center bottom;
    left: 50%;
    transform: translateX(-50%);
  }
  .cdf-flipper {
    left: auto;
    right: 55px;
    top: 50%;
    transform: translate(50%, -50%) scale(0.4);
    width: auto;
    height: auto;
  }
  .cdf-joel-jericho {
    left: -50px;
    bottom: calc(0% - 18px + 50px); /* Moved up by 50px */
    transform: scale(0.8);
  }

}




/* -------------------------------- SHAKEOLOGY FULL-WIDTH PARALLAXING IMAGE   ---------------------------- */
#full-width-image {
  text-align: center;
  overflow: hidden;
  position: relative;
}

.parallax-container {
  position: relative;
  height: 1000px; /* Adjust the height as needed */
  width: 100vw; /* Use viewport width units */
	background-color: #a78fa8;
  overflow: hidden;
}

.back-image {
  width: 100%;
  height: 100%;
  height: calc(100% + 200px); /* Increase the height to ensure the bottom is visible */
  object-fit: cover;
  object-position: center bottom; /* Align the image to the bottom center */
}

.top-image {
  position: absolute;
  top: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
	height: calc(100% + 200px); /* Increase the height to ensure the bottom is visible */
  background-image: url('images/projects/SHK/wide-4-glasses.png');
  background-size: cover;
  background-position: center;
}


/* Mobile-specific styles */

/* Hide mobile images on desktop */
.mobile-image {
  display: none;
}

/* Show mobile images and hide desktop images on mobile */
@media screen and (max-width: 768px) {
  .desktop-image {
    display: none;
  }

  .mobile-image {
    display: block;
    width: 100%;
    height: auto;
  }

  .parallax-container {
    height: 58vh; /* Adjust the height to about 50% of the viewport height */
    overflow: hidden; /* Prevent content from overflowing */
    position: relative; /* Add this to establish a positioning context */
  }

  .back-image.mobile-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .top-image.mobile-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/projects/SHK/wide-4-glasses-mbl.png');
    background-size: 100% auto; /* Adjust the background size to fit the width */
    background-repeat: no-repeat;
    background-position: center top; /* Position the background image at the top center */
  }
}






/* - - - - - - - - - - - - - - - - - -   L O N G    S C R O L L    P A I R S   mobile / Desktop side by side   - - - - - - - - - - - - - - - - - -*/
.long-pair-container {
  display: flex;

  justify-content: space-between;
  max-width: var(--long-images-max-width);
	height: 100%;  /* Add full height */
  margin: 0 auto;
  overflow: visible;
}


.long-pair-item {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-right: 25px;
  filter: drop-shadow(5px 5px 15px rgba(0, 0, 0, 0.25)); /* Move shadow to container */
  overflow: visible; /* Ensure shadow is visible */
}

.long-pair-item img {
  will-change: transform;
  max-width: 100%;
  height: auto;
  filter: none; /* Remove shadow from image */
}



.long-pair-item:last-child {
  margin-right: 0;
}

.desktop-long-pair,
.mobile-long-pair {
  height: auto;
  max-width: 100%;
}

@media screen and (min-width: 1024px) {
  .long-pair-container {
    display: flex;
    justify-content: space-between;
  }

  .long-pair-item {
    flex-grow: 0; /* Disable flex-grow */
  }

    .long-pair-item:nth-child(1) {
      width: var(--long-pair-left-width);
    }
    .long-pair-item:nth-child(2) {
      width: var(--long-pair-right-width);
    }
}

@media screen and (max-width: 767px) {
  #long-pair-section {
    padding-left: 9px !important;
    padding-right: 9px !important;
  }
  
  #long-pair-section .content-common {
    padding: 0 !important; /* Remove any padding from the content itself */
  }
  .long-pair-container {
    flex-direction: column;
  }
  .long-pair-item:first-child {
    display: none;
  }
  .mobile-long-pair {
    width: 100%;
    margin: 0;
  }
}

.long-pair-item.mobile-image-container {
  overflow: hidden; /* This will clip the long mobile image as it scrolls up */
}







/* ... (existing CSS unchanged above) ... */

/* - - - - - - - - - - - - - - - - - -   L O N G    S C R O L L    S E L L P A G E   - - - - - - - - - - - - - - - - - -*/
/* Base styles for the long images section */
#long-images-section {
  padding: 0 36px;
}
#long-images-section .content-common {
  max-width: var(--long-images-max-width);
  margin: 0 auto;
  padding: 0 0px 28px; /* Padding for shadow */
}
#long-images-section .browser-bar-container {
  width: 100%;
  margin-bottom: -1px; /* Overlap with image container */
}
#long-images-section .browser-bar-wrapper {
  display: flex;
  width: 100%;
  height: 36px;
}
#long-images-section .browser-bar-left,
#long-images-section .browser-bar-right {
  flex: 0 0 auto;
  height: 100%;
  object-fit: contain;
}
#long-images-section .browser-bar-middle {
  flex: 1;
  height: 100%;
  object-fit: fill;
}
.long-images-container {
	position: relative; 
    z-index: 1;   
  width: 100%;
  box-shadow: 3px 12px 16px rgba(0, 0, 0, 0.25); /* Keep original desktop shadow */
  overflow: hidden;
  border-bottom-left-radius: 12px;  /* Keep original desktop border-radius */
  border-bottom-right-radius: 12px; /* Keep original desktop border-radius */
}
.long-images-item {
  width: 100%;
  display: flex;
  flex-direction: column; /* Ensure items stack vertically on desktop too */
  justify-content: center;
  align-items: center; /* Centers images horizontally */
  overflow: hidden;
}
.long-images-item img.desktop-image {
  max-width: calc(1920px * 0.7); /* Adjust to the natural width of your image */
  height: auto;
  display: block;
  /* MODIFIED: Removed margin-bottom to make images flush */
  margin-bottom: 0; 
}
/* MODIFIED: Removed this rule as margin-bottom: 0 is now applied to all desktop images */
/* .long-images-item img.desktop-image:last-of-type {
  margin-bottom: 0;
} */

/* Initially hide mobile image on desktop */
.long-images-item .mobile-image {
  display: none;
}

/* Mobile-specific styles for long-images-section */
@media screen and (max-width: 768px) {
  #long-images-section {
    padding: 0 9px; /* Adjust section padding for mobile */
  }
  
  #long-images-section .content-common {
    padding: 0; /* Remove padding from content-common */
    max-width: 100%;
    /* Ensure no residual desktop box-shadow/radius if it was moved to content-common previously */
    box-shadow: none;
    border-radius: 0; 
  }
  
  /* Hide the browser bar on mobile */
  #long-images-section .browser-bar-container {
    display: none;
  }
  
  .long-images-container {
    border: 1px solid #cccccc; /* Add border for the mobile frame */
    box-shadow: 3px 12px 16px rgba(0, 0, 0, 0.4); /* Add shadow for the mobile frame */
    border-radius: var(--border-radius, 94px); /* Apply the dynamically calculated radius from JS */
    overflow: hidden;
  }
  
  .long-images-item {
    overflow: hidden;
  }
  
  .long-images-item .desktop-image {
    display: none !important;
    /* Ensure desktop image margin is zero when hidden on mobile */
    margin-bottom: 0; 
  }
  
  .long-images-item .mobile-image {
    display: block !important;
    width: 100%;
    height: auto;
    /* MODIFIED: Removed margin-bottom to make images flush */
    margin-bottom: 0; 
  }

}


@media screen and (max-width: 480px) { /* This rule was empty, leaving it as is */
  .social-grid {
    column-count: 1;
  }
}






/* - - - - - - - - - - - - - - - - - -   CLASSIC WEB PAGES  - - - - - - - - - - - - - - - - - -*/
/* Base styles for the classic webpage section */
#classic-webpage-section {
  padding: 0 36px;
  position: relative;
}

#classic-webpage-section .content-common {
  max-width: var(--classic-webpage-max-width);
  margin: 0 auto;
  padding: 0 0px 28px; /* Padding for shadow */
  position: relative;
}

#classic-webpage-section .browser-bar-container {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

#classic-webpage-section .browser-bar-wrapper {
  display: flex;
  width: 100%;
  height: 36px;
  filter: drop-shadow(0px -4px 6px rgba(0, 0, 0, 0.025)) 
          drop-shadow(3px 0px 6px rgba(0, 0, 0, 0.025)) 
          drop-shadow(-3px 0px 6px rgba(0, 0, 0, 0.025));
}

#classic-webpage-section .browser-bar-left,
#classic-webpage-section .browser-bar-right {
  flex: 0 0 auto;
  height: 100%;
  object-fit: contain;
}

#classic-webpage-section .browser-bar-middle {
  flex: 1;
  height: 100%;
  object-fit: fill;
}

.classic-webpage-container {
  width: 100%;
  box-shadow: 3px 6px 8px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  position: relative;
  z-index: 2;
}

.classic-webpage-container::after {
  content: '';
  position: absolute;
  top: 36px; /* Start below the browser bar */
  left: 0;
  right: 0;
  bottom: 0;
  border-left: 1px solid rgba(128, 128, 128, 0.025);
  border-right: 1px solid rgba(128, 128, 128, 0.025);
  border-bottom: 1px solid rgba(128, 128, 128, 0.025);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  pointer-events: none; /* Allows clicks to pass through */
  z-index: 3; /* Ensure it's above the image */
}

.classic-webpage-item {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
  padding-top: 36px; /* Add space for the browser bar */
  position: relative; /* Establish a stacking context */
}

.classic-webpage-item img.desktop-image {
  width: 100%; /* Make the image width 100% of its container */
  height: auto; /* Maintain aspect ratio */
  display: block;
  position: relative;
  z-index: 2;
}

/* the SimCity Awards Exception */
.section-common .content-common.image-column.enhanced-image {
  position: relative;
  width: 100%;
  max-width: var(--classic-webpage-max-width);
  margin: 0 auto;
}

.section-common .content-common.image-column.enhanced-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 3px 6px 8px rgba(0, 0, 0, 0.2);
}

.section-common .content-common.image-column.enhanced-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid rgba(128, 128, 128, 0.025);
  border-radius: 12px;
  pointer-events: none;
  z-index: 1;
}

/* Mobile styles */
@media screen and (max-width: 767px) {
  /* Border radius adjustments */
  .classic-webpage-container,
  .classic-webpage-container::after,
  .section-common .content-common.image-column.enhanced-image img,
  .section-common .content-common.image-column.enhanced-image::after {
    border-radius: 6px;
  }

  /* Browser bar mobile adjustments */
  #classic-webpage-section .browser-bar-wrapper {
    height: 28px;
  }

  #classic-webpage-section .browser-bar-left,
  #classic-webpage-section .browser-bar-right,
  #classic-webpage-section .browser-bar-middle {
    height: 28px;
  }

  /* Container and spacing adjustments */
  .classic-webpage-item {
    padding-top: 28px;
  }

  .classic-webpage-container::after {
    top: 28px;
  }

  /* Image sizing adjustments */
  .classic-webpage-item img.desktop-image,
  .section-common .content-common.image-column.enhanced-image img {
    width: 100%;
    height: auto;
    max-height: 50vh;
    object-fit: contain;
  }

  /* Mobile padding fixes */
  #classic-webpage-section.section-common {
    padding-left: 20px;
    padding-right: 20px;
  }

  #classic-webpage-section {
    padding: 0 20px;
  }

  #classic-webpage-section .content-common {
    padding-left: 0;
    padding-right: 0;
  }

  .classic-webpage-container {
    margin-left: 0;
    margin-right: 0;
  }
}








/* - - - - - - - - - - - - - - - - - -   E M B E D D E D    W E B P A G E   - - - - - - - - - - - - - - - - - -*/

#website-section {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: calc(100vh  - 96px - 36px);
  padding: 0 36px;
  margin-top: 20px;
  /* background-color: chartreuse; */
  margin-bottom: 1in; /* Corrected syntax */
}

.website-container {
  box-shadow: 3 12px 16px rgba(0, 0, 0, 0.4); /* Horizontal offset, vertical offset, blur radius, color */
	  border-bottom-left-radius: 12px;  /* Rounded bottom left corner */
  border-bottom-right-radius: 12px; /* Rounded bottom right corner */
}

.website-container {
	box-shadow: 3px 12px 16px rgba(0, 0, 0, 0.4); /* Correct the box-shadow syntax */
  flex-grow: 1;
  background-color: whitesmoke;
  overflow: hidden;
}

.website-frame {
  width: 100%;
  height: 100%;
  border: none;

}

.browser-bar-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 36px;
}

.browser-bar-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    filter: drop-shadow(5px 5px 15px rgba(0,0,0,0.25));
}

.browser-bar-left-container {
    position: relative;
    height: 100%;
}

.browser-bar-left, .browser-bar-middle, .browser-bar-right {
    height: 100%;
    object-fit: contain;
}

.browser-bar-left-container.clickable {
  cursor: pointer;
}

.browser-bar-middle {
    flex-grow: 1;
    object-fit: fill;
}

/* Hover effect for the left image when hovering over the entire bar */
.browser-bar-container:hover .browser-bar-left-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/projects/DON/browser-bar/don-browser-bar-hover.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
    opacity: 1;
    z-index: 2;
}

/* Close button effect when hovering specifically over the left container */
.browser-bar-left-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/projects/DON/browser-bar/don-browser-bar-close.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.browser-bar-left-container:hover::after {
    opacity: 1;
}

.browser-bar-left {
    display: block;
    height: 100%;
    width: auto;
    z-index: 1;
}


@media screen and (max-width: 768px) {
  .website-frame {
    height: 300px;
  }
}







/* - - - - - - - - - - - - - - - - - -   S C R O L L    A N I M A T I O N S   - - - - - - - - - - - - - - - - - -*/
body .scroll-animate {
		/*border: 2px solid red; */
    opacity: 0.25 !important;  /* Using !important temporarily for testing */
    transform: translateY(16px) !important;
    transition: opacity .75s cubic-bezier(0.1, 0, 0.8, 1), 
                transform 1s cubic-bezier(0.3, 0, .95, 1) !important;
    will-change: opacity, transform;
}

body .scroll-animate.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

 
body .scroll-animate-delayed {
    opacity: 0 !important; /* Starts fully transparent */
    transform: translateY(32px) !important; /* Starts further down */
    transition: opacity 1.5s cubic-bezier(0.1, 0, 0.8, 1), /* Opacity transition (unchanged) */
                transform 2s cubic-bezier(0.215, 0.61, 0.355, 1) !important; /* Slower movement (2s) and stronger ease-out */
    will-change: opacity, transform;
}

body .scroll-animate-delayed.visible {
    opacity: 1 !important; /* Ends fully opaque */
    transform: translateY(0) !important; /* Ends at its natural position */
}


 /* --- New Scroll Animation: scroll-animate-super-delayed --- */
body .scroll-animate-super-delayed {
    opacity: 0 !important; /* Starts fully transparent */
    transform: translateY(96px) !important; /* MUCH greater distance (e.g., 96px, significantly more than 32px) */
    transition: opacity 3s cubic-bezier(0.1, 0, 0.8, 1), /* MUCH slower opacity fade (3s) */
                transform 2.5s cubic-bezier(0.215, 0.61, 0.355, 1) !important; /* Slightly slower movement (2.5s) and same strong ease-out */
    will-change: opacity, transform;
}

body .scroll-animate-super-delayed.visible {
    opacity: 1 !important; /* Ends fully opaque */
    transform: translateY(0) !important; /* Ends at its natural position */
}

