/* Updated CSS to fix text-image alignment during scroll */

.gallery-container {
  display: flex;
  justify-content: space-between;
}

.text-column {
  position: relative;
  width: 30%;
  flex-shrink: 0;
  padding: 0px 70px 0px 150px;
}

.image-column {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* KEY FIX: Use natural spacing with strategic positioning */
.desktopContentSection {
  position: relative;
  padding: 40vh 0; /* Large padding creates scroll space */
  display: block; /* Simple block layout */
}

/* Position content to align with viewport center */
.campus-section-title {
  position: relative;
  z-index: 1;
  transform: translateZ(0);
  width: 100%;
  /* Add margin to push content towards center alignment */
  margin: 0;
  display: block;
}

.desktopPhotos {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  will-change: transform;
}

.desktopPhoto {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  will-change: transform;
  backface-visibility: hidden;
}

.desktopPhoto img {
  width: 100%;
  height: 83vh;
  object-fit: cover;
}

.campus-section-title label {
  text-align: end;
  display: flex;
  justify-content: center;
}

.visit-link {
  text-decoration: none;
  color: #000;
  font-weight: 600;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.visit-link:hover {
  color: #e40571;
}

.visit-link svg {
  transition: transform 0.3s ease;
}

.visit-link:hover svg {
  transform: translateX(5px);
}

/* Mobile styles */
.mobileContent {
  display: none;
  overflow-x: hidden;
  width: 100%;
}

.mobile-section {
  margin-bottom: 40px;
}

.mobilePhoto {
  width: 100%;
  height: 250px;
  margin-bottom: 20px;
  border-radius: 15px;
  overflow: hidden;
}

.mobilePhoto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-section h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: bold;
}

.mobile-section p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #666;
}

/* Mobile responsive breakpoints */
@media (max-width: 912px) {
  .desktop-layout {
    display: none !important;
  }
  .mobileContent {
    display: block;
  }
 
  .mobileContent .campus-section-title {
    text-align: center !important;
  }
 
  .mobileContent .campus-section-title span,
  .mobileContent .campus-section-title label,
  .mobileContent .campus-section-title p {
    text-align: center !important;
    display: block;
    width: 100%;
  }
 
  .mobileContent .campus-section-title label {
    display: flex !important;
    justify-content: center !important;
  }
 
  .mobileContent .campus-section-title > div {
    justify-content: center !important;
  }
 
  .mobileContent .campus-section-title a {
    justify-content: center !important;
  }
 
  .custom-sec-img img {
    height: 500px;
    width: 100%;
    object-fit: cover;
  }
}

/* Desktop styles - keep existing behavior */
@media (min-width: 913px) {
  .mobileContent {
    display: none;
  }
 
  .campus-section-title label {
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 1100px){
  .text-column {
    padding: 0px 35px;
  }
  
}

@media (max-width: 912px) and (min-width: 769px) {
  .text-column {
    width: 40%;
    padding-right: 20px;
  }
  .image-column {
    width: 55%;
  }
}