
html, body {
      font-family: sans-serif;
      background: url('https://ainamachi.neocities.org/Assets/20250725-bg-1.jpg') no-repeat center top;
      background-repeat: no-repeat;
      background-size: 100vw;
      background-position: center;
      background-attachment: fixed;
  }
  
 .background-blur {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url('https://ainamachi.neocities.org/Assets/20250725-bg-1.jpg') no-repeat center top;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  filter: blur(8px);
  -webkit-filter: blur(8px);
  z-index: -1;
}

h1 {
  font-size: 6rem;
  line-height: 1.1;
}
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 99;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    padding: 20px 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.0));
    backdrop-filter: blur(12px);
}
.header-left h1 {
    font-size: 2rem;
    margin: 0;
    color: #ffffff;
    filter: drop-shadow(12px 12px 12px #808080);
    position: sticky;
  }
  
/* Main content */
    .content {
      margin-left: 75px;
      padding: 20px;
      width: 100%;
      position: relative;
      z-index: 1;
    }
    
    .filter-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.6);
  border: none;
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 1rem;
  cursor: pointer;
  margin-bottom: 10px;
}

@media screen and (max-width: 828px), screen and (max-device-width: 828px), screen and (orientation: portrait) {
  .filter-toggle {
    display: block;
  }
  .sticky-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-content {
    display: none;
    flex-direction: column;
    position: sticky;
    gap: 18px;
    margin-top: 10px;
  }

  .filter-buttons.open .filter-content {
    display: flex;
  }
}
    

.filter-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
body {
  overflow-x: hidden;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}


.filter-label {
  font-size: 1.2rem;
  font-weight: 500;
  min-width: 60px;
  color: #ffffff;
}

.filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-buttons button {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 6px 14px;
  font-size: 0.9rem;
  font-family: inherit;
  background-color: rgba(200, 200, 200, 0.8);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-buttons button:hover {
  background-color: rgba(160, 160, 255, 0.6);
  transform: translateY(-1px);
}


    /* Gallery styles */
    .gallery {
      display: block;
      top: 350px;
    }

    .card {
      background: white;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .card img {
      width: 100%;
      aspect-ratio: 4/3;
      object-fit: cover;
    }

    .card h3 {
      margin: 12px 16px 4px;
    }

    .tags {
      margin: 0 16px 12px;
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .tags span {
      background: #eee;
      border-radius: 12px;
      padding: 4px 10px;
      font-size: 0.8rem;
    }
    
    .year-heading {
      margin-top: 40px;
      margin-bottom: 10px;
      font-size: 2.5rem;
      color: #444;
    }

    .year-gallery-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
      gap: 16px;
      position: relative;
      overflow: hidden;
      max-height: 1200px; /* 👈 adjusted dynamically in JS */
      transition: max-height 0.4s ease;
    }

    .year-section.collapsed .year-gallery-grid {
      max-height: 550px;
      mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
      -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
      padding-bottom: 3em;
      overflow: hidden;
}

    .year-section:not(.collapsed) .year-gallery-grid {
      max-height: none;
      mask-image: none;
      -webkit-mask-image: none;
      padding-bottom: 0;
}

    .show-more-button {
      display: block;
      margin-top: 1em auto;
      background: #eee;
      padding: 8px 16px;
      border-radius: 8px;
      cursor: pointer;
      font-weight: bold;
      transition: background 0.3s;
      text-align: center;
}

  .show-more-button:hover {
       background: #FFFFFF;
}
    
    .modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      color: #858585;
      background: rgba(0,0,0,0.85);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 999;
    }
    
    .modal-content {
      display: flex;
      flex-direction: column;
      align-items: center;
      max-width: 90%;
      max-height: 90%;
      background: white;
      padding: 20px;
      border-radius: 12px;
      overflow-y: auto;
      position: relative;
    }

    .modal-content img {
      max-width: 100%;
      max-height: 75vh;
      object-fit: contain;
      border-radius: 8px;
      margin-bottom: 16px;
    }
    
    #modal-title {
      font-size: 1.4rem;
      margin: 10px 0 5px;
      text-align: center;
    }

    #modal-description {
      max-width: 600px;
      font-size: 1rem;
      text-align: center;
      margin: 0 auto;
    }
  

    .close-btn {
      position: absolute;
      top: 20px;
      right: 30px;
      font-size: 32px;
      color: white;
      cursor: pointer;
    }

    .wrapper {
      display: flex;
    }
    