/* 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;
}
.logo{
  font-size:1.8rem;font-weight:300;text-decoration:none;color:#000;
  transition:font-style .2s;
}
.logo:hover{font-style:italic;}

nav a{
  margin-left:2rem;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:# ;}



/* ==== 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:px;margin:0 auto;
}
.carousel-track{
  display:flex;gap:12px;
  transition:transform .4s ease;
  padding:12px 0;
}
.carousel-item {
    min-width: 500px;           /* Smaller than before */
    width: 500px;               /* Fixed width */
    flex: 0 0 auto;
    overflow: hidden;
  }
  
  .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }
  
/* ==== CAROUSEL BUTTONS – FIXED (minimal change) ==== */
.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;               /* This was the main fix */
  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;
}

/* Make sure buttons are smaller & not cut off 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;
  }

/* ==== RESPONSIVE ==== */
@media (max-width:768px){
  header{flex-direction:column;gap:20px;}
  nav{display:flex;flex-wrap:wrap;}
  nav a{margin-left:0;margin-right:1rem;}
  .page-title,.year h2,.product h2{font-size:1.6rem;}
  @media (max-width: 768px) {
    .carousel-item {
      min-width: 220px;
    }
  }
}

.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-image {
    max-width: 800px;
    max-height: 70vh;
    overflow: hidden;
  }
  
  .hero-image img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: cover;
    object-position: center;
    display: block;
  }
  
  
  /* Mobile: smaller height */
  @media (max-width: 768px) {
    .hero-image {
      max-height: 50vh;
      margin-bottom: 32px;
    }
    .hero-image img {
      max-height: 50vh;
    }
  }
