:root {
  --bg: #fbfbfb;
  --text: #111;
  --muted: #666;
  --accent: #ff007f;
}

* {
  box-sizing: border-box
}
body {
  margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
  }
  
  header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 18px 0;
  }
  
  header nav {
    display: flex;
    justify-content: center;
    gap: 18px
}

header nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600
}

header nav a:hover {
  color: var(--accent)
  }
  
  /* Sidebar toolbar (left) */
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 220px;
    background: #0f0f12;
    color: #fff;
    padding: 28px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 40;
  }
  
  .sidebar .logo img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    display: block
  }
  
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 220px;
    background: #fff;
    color: var(--text);
    padding: 28px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 40;
    border-right: 1px solid #eee;
  }
  
  .sidebar .logo img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    display: block
  }
  
  .sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center
  }
  
  .sidebar nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 8px;
    display: block
  }
  
  .sidebar nav a:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--accent)
  }
  
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent)
  }
  
  /* Main content shifted to the right of the sidebar */
  .content {
    margin-left: 240px;
    padding: 24px 20px;
    min-height: 100vh
}
.content img {
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto 20px;
}
h1 {
  font-size: 28px;
    text-align: center;
    margin: 28px 0 12px
}

p {
  color: var(--muted);
  text-align: center;
  margin: 0 0 24px
}

/* Gallery: flexbox for better browser compatibility */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto 40px;
}
.gallery a.thumb-wrapper {
  flex: 0 1 calc(33.333% - 20px);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  background: #eee;
}
.gallery a.thumb-wrapper img {
  display: block;
  width: 100%;
    height: auto;
      transition: transform 0.45s cubic-bezier(.2, .8, .2, 1)
    }
    
    .gallery a.thumb-wrapper:hover img {
      transform: scale(1.03)
    }
    
    /* overlay with gradient and title */
    .thumb-overlay {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      padding: 12px 14px;
      color: #fff;
      background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 100%);
      font-weight: 600;
      font-size: 15px;
      transform: translateY(8px);
      opacity: 0;
      transition: all .28s ease
    }
.gallery a.thumb-wrapper:hover .thumb-overlay {
  opacity: 1;
  transform: none;
}
.gallery a.thumb-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
    background: linear-gradient(180deg, rgba(255, 0, 191, 0) 0%, rgba(255, 0, 191, 0.08) 60%, rgba(255, 0, 191, 0.12) 100%);
    opacity: 0;
  transform: scale(0.98);
    transition: opacity .28s ease, transform .28s ease;
    pointer-events: none;
    border-radius: 8px;
  }
  
  .gallery a.thumb-wrapper:hover::after {
    opacity: 1;
    transform: scale(1);
  }
  
    .gallery a.thumb-wrapper {
      transition: box-shadow .28s ease;
    }
  
    .gallery a.thumb-wrapper:hover {
      box-shadow: 0 18px 40px rgba(255, 0, 191, 0.12), 0 6px 18px rgba(0, 0, 0, 0.08);
    }
    .thumb-overlay {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      padding: 12px 14px;
      color: #fff;
      background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.45) 100%);
      font-weight: 600;
      font-size: 15px;
      transform: translateY(6px);
      opacity: 0;
      transition: opacity .28s ease, transform .28s ease;
      border-radius: 0 0 8px 8px;
    }
  
    .thumb-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
  opacity: 0;
  transition: opacity .28s ease, transform .28s ease;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    padding: 0 10px;
    white-space: nowrap;
}
.gallery a.thumb-wrapper:hover .thumb-text {
  opacity: 1;
  transform: translate(-50%, -50%);
  }
  
  footer {
    background: #fff;
    border-top: 1px solid #eee;
    padding: 20px;
    text-align: center;
    color: var(--muted)
  }
  
  /* Responsive design */
  @media (max-width: 1024px) {
    .sidebar {
      position: static;
      width: 100%;
      flex-direction: row;
      justify-content: center;
      padding: 18px 12px;
      border-right: none;
      border-bottom: 1px solid #eee;
    }
    
    .sidebar .logo {
      margin-right: 20px;
    }
    
    .sidebar nav {
      flex-direction: row;
      gap: 18px;
    }
    
    .content {
      margin-left: 0;
    }
  }
  
  @media (max-width: 768px) {
    .content {
      padding: 12px 10px;
    }
    
    .sidebar {
      padding: 12px;
    }
    
    .sidebar .logo img {
      width: 60px;
      height: 60px;
    }
    
    .sidebar nav a {
      font-size: 14px;
      padding: 6px 10px;
    }
  }
  
  @media (max-width:1000px) {
    .gallery a.thumb-wrapper {
      flex: 0 1 calc(50% - 10px);
    }
    }
    @media (max-width:640px) {
      .gallery a.thumb-wrapper {
        flex: 0 1 100%;
      }
      .gallery {
        padding: 16px;
      }

    h1 {
        font-size: 22px
      }
    }