/* style.css – SHARED STYLES */
*{margin:0;padding:0;box-sizing:border-box;}
html,body{min-height:100vh;}

body{
  font-family:"Helvetica Neue",Arial,sans-serif;
  font-weight:300;color:#000;
  padding:40px;background:#fff;
}
.container{max-width:1200px;margin:0 auto;}

header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  margin-bottom:60px;
  flex-wrap:wrap;
  gap:1.5rem;
}

.logo{
  font-size:1.8rem;
  font-weight:300;
  text-decoration:none;
  color:#000;
  transition:font-style .2s;
  white-space:nowrap;
}
.logo:hover{font-style:italic;}

nav{
  display:flex;
  gap:2rem;
}
nav a{
  text-decoration:none;
  color:#000;
  font-size:1.8rem;
  font-weight:300;
  transition:font-style .2s;
}
nav a:hover{font-style:italic;}
nav a.active{font-style:italic;}

.subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: #333;
    margin-bottom: 8px;
  }
  .smaller-text {
    font-size: 1.2rem;
    font-weight: 300;
    color: #333;
    margin-bottom: 12px;
  }
.page-title{font-size:1.5rem;font-weight:300;margin-bottom:40px;}
.page-title-photo{font-size:1.5rem;font-weight:300;margin-bottom:8px;}

/* ==== ARCHITECTURE ==== */
.year{margin-bottom:40px;}
.year h2{font-size:1.5rem;font-weight:300;margin-bottom:20px;}
.semester h3{font-style:italic;font-size:1.3rem;font-weight:300;margin-bottom:1px;color:#222;}
.semester h4{font-style:italic;font-size:1.3rem;font-weight:300;margin-bottom:1px;color:#666;}

/* ==== PRODUCT ==== */
.product{margin-bottom:80px;}
.product-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 15px;
  }
  
  .product-header h2 {
    font-size: 1.5rem;
    font-weight: 300;
    margin: 0;
  }
  
  .product-year {
    color: #555;
    font-size: 1.2rem;
    font-weight: 300;
    font-style: italic;
    margin: 0;
  }
.product-desc{
  margin-top:5px;max-width:700px;
  font-size:1rem;color:#444;line-height:1.6;
}
.coming-soon{
  height:200px;background:#f5f5f5;border-radius:4px;
  display:flex;align-items:center;justify-content:center;
  color:#aaa;font-style:italic;font-size:1.1rem;
}

/* ==== CAROUSEL (shared) ==== */
.carousel{
  position:relative;overflow:hidden;
  max-width:100%;margin:0 auto;
}
.carousel-track{
  display:flex;gap:12px;
  transition:transform .4s ease;
  padding:12px 0;
}
.carousel-item {
    min-width: 500px;
    width: 500px;
    flex: 0 0 auto;
    overflow: hidden;
  }
  
  .carousel-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
  }
  
/* ==== CAROUSEL BUTTONS ==== */
.carousel-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  font-size: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  user-select: none;
  transition: all 0.3s ease;
}
.carousel-btn:hover{
  background: rgba(0,0,0,0.8);
}
.carousel-btn.prev{left: 16px;}
.carousel-btn.next{right: 16px;}
.carousel-btn[disabled]{
  opacity: 0.3;
  cursor: not-allowed;
}

/* Carousel buttons on mobile */
@media (max-width: 640px) {
  .carousel-btn{
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
  .carousel-btn.prev{left: 10px;}
  .carousel-btn.next{right: 10px;}
}

/* ==== PHOTO GRID ==== */
.photo-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
  gap:24px;margin-top:40px;
}
.photo-item img{
  width:100%;height:auto;
}
.caption{margin-top:8px;font-size:.95rem;color:#444;}
.cameras{
    font-size:1.2rem;
    font-weight:300;
    color:#555;
    font-style:italic;
    margin-bottom:32px;
  }

/* ==== LIGHTBOX ==== */
.lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
  }
  
  .lightbox.active {
    opacity: 1;
    visibility: visible;
  }
  
  .lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    transform: scale(0.8);
    transition: transform .3s ease;
  }
  
  .lightbox.active img {
    transform: scale(1);
  }
  
  .lightbox-close {
    position: absolute;
    top: 20px; right: 20px;
    color: #fff;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 300;
  }

/* Hero section – side-by-side on desktop, stacked on mobile */
.hero-section {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  align-items: flex-start;
  margin: 3rem 0;
}

.hero-image {
  flex: 1 1 400px;
  max-width: 100%;
}

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

.hero-text {
  flex: 1 1 350px;
}

.info-block + .info-block {
  margin-top: 3.5rem;
}

.link-item a {
  color: #2d3e98; 
  text-decoration: none;  
  font-style: italic;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.5px;
  transition: all 0.22s ease;
}
  
.link-item a:hover {
  opacity: 0.7;
}

/* RESPONSIVE – MOBILE: everything left-aligned, links stacked with smaller gap */
@media (max-width: 868px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.4rem;
    margin-bottom: 50px;
  }

  .year{margin-bottom:20px;}
  .year h2{font-size:1.5rem;font-weight:300;margin-bottom:5px;}
  .semester h3{font-style:italic;font-size:1.3rem;font-weight:300;margin-bottom:0.5px;color:#222;}
  .semester h4{font-style:italic;font-size:1.3rem;font-weight:300;margin-bottom:0.5px;color:#666;}

  .product{margin-bottom:40px;}
.product-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 5px;
  }


  nav {
    flex-direction: column;
    gap: 0.4rem;                /* ← smaller vertical gap between the 3 links */
  }

  .logo {
    font-size: 1.65rem;
  }

  nav a {
    font-size: 1.65rem;
  }

  .hero-section {
    flex-direction: column;
    gap: 2rem;
  }


}

@media (max-width: 480px) {
  body {
    padding: 24px;
  }

  .logo {
    font-size: 1.5rem;
  }

  nav a {
    font-size: 1.5rem;
  }

  .carousel-item {
    min-width: 220px;
    width: 220px;
  }
}

/* --- UPDATED RESPONSIVE IMAGE PAIR (Year 2 Semester 1) --- */

.image-pair {
  display: flex; /* Keeps them side-by-side on desktop */
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1.5rem;
  justify-content: flex-start;
}

.image-pair .responsive-img {
  /* Desktop Styles: Flexible, max width 500px */
  flex: 1 1 400px;
  max-width: 500px;
  width: 100%;
  height: auto; /* CRITICAL: Ensures natural aspect ratio */
  display: block;
}

/* Mobile Styles: Stacked, Fixed 220px Width */
@media (max-width: 868px) {
  .image-pair {
    flex-direction: column; /* Forces stacking */
    gap: 1rem;
    align-items: flex-start;
  }

  .image-pair .responsive-img {
    /* Mobile Dimensions: Fixed width, maintains aspect ratio */
    width: 220px !important; /* Force width */
    max-width: 220px !important; /* Limit max width */
    height: auto !important; /* Force natural height / aspect ratio */
    
    /* Reset all potentially conflicting properties */
    flex: none !important; 
    object-fit: initial !important; 
  }
}
/* --- END UPDATED RESPONSIVE IMAGE PAIR --- */