/* -------------------------
   BASE / RESET
-------------------------- */

* {
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    color: #959595;
    margin: 0;
    padding: 0;
    text-align: left;
  }
  
  /* -------------------------
     HEADER
  -------------------------- */
  
  header {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  h1 {
    font-size: 12pt;
    font-weight: 100;
    color: #ff0404;
    margin: 0;
  }
  
  .home-link {
    text-decoration: none;
  }
  
  .home-link h1 {
    color: inherit;
  }
  
  nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
    padding: 0;
    margin: 0;
  }
  
  nav a {
    text-decoration: none;
    color: #ff0000;
    font-weight: 100;
    font-size: 12pt;
  }
  
  nav a.active {
    text-decoration: underline;
  }
  
  /* -------------------------
     OBJECT BAR
  -------------------------- */
  
  .object-bar {
    text-align: center;
    margin-top: 20px;
  }
  
  .object-bar a {
    color: #333;
    font-weight: 500;
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
  }
  
  .object-bar a.active {
    text-decoration: underline;
  }
  
  /* -------------------------
     GALLERY GRID (MOBILE FIRST)
  -------------------------- */
  
  .gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;           /* ⬅️ more space */
    padding: 30px;
    max-width: 1600px;
    margin: 40px auto;
  }
  
  /* -------------------------
     GALLERY ITEM
  -------------------------- */
  
  .gallery-item {
    position: relative;
    cursor: pointer;
  }
  
  .gallery-item img {
    width: 85%;          /* ⬅️ smaller than container */
    height: auto;
    display: block;
    margin: 0 auto;      /* centers image */
    object-fit: contain;
    transition: opacity 0.3s ease;
  }
  
  .gallery-item {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  /* -------------------------
     IMAGE INFO
  -------------------------- */
  
  .image-info {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: black;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 10px;
  }
  
  .title {
    font-size: 12pt;
    font-weight: 500;
  }
  
  .details {
    font-size: 10pt;
  }
  
  /* -------------------------
     HOVER EFFECTS (DESKTOP ONLY)
  -------------------------- */
  
  @media (hover: hover) and (pointer: fine) {
    .gallery-item:hover img {
      opacity: 0;
    }
  
    .gallery-item:hover .image-info {
      opacity: 1;
    }
  }
  
  /* -------------------------
     LIGHTBOX
  -------------------------- */
  
  .lightbox {
    position: fixed;
    inset: 0;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1000;
  }
  
  .lightbox.open {
    opacity: 1;
    pointer-events: auto;
  }
  
  .lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
  }
  
  /* Exit button */
  .exit {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 30px;
    font-weight: 300;
    color: #000;
    cursor: pointer;
  }
  
  /* -------------------------
     RESPONSIVE BREAKPOINTS
  -------------------------- */
  
  /* Tablets */
  @media (min-width: 600px) {
    header {
      flex-direction: row;
      justify-content: space-between;
    }
  
    .gallery-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (min-width: 900px) {
    .gallery-grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 60px;
    }
  }
  
  @media (min-width: 1200px) {
    .gallery-grid {
      grid-template-columns: repeat(4, 1fr);
      gap: 70px;
    }
  }
  @media (hover: none) and (pointer: coarse) {
    .lightbox img {
      max-height: 75vh;
    }
  
    .lightbox-info {
      opacity: 1;
      pointer-events: auto;
    }
  
    .lightbox-info .title {
      font-size: 12pt;
      font-weight: 500;
      margin-bottom: 4px;
    }
  
    .lightbox-info .details {
      font-size: 10pt;
      font-weight: 300;
      line-height: 1.4;
    }
  }