* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: #333;
  background: #fff;
}

/* Main page layout: sidebar + content */
.page-wrapper {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  padding: 40px 30px;
  background: #fff;
  border-right: 1px solid #eee;
}

.logo h1 {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -2px;
  margin-bottom: 40px;
}

.logo h1 span {
  color: #b5a37a;
}

.main-nav {
  display: grid;
  gap: 15px;
  margin-bottom: 40px;
}

.main-nav a {
  text-decoration: none;
  color: #666;
  font-size: 14px;
}

.main-nav a.active,
.main-nav a:hover {
  color: #000;
  font-weight: bold;
}

.social {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
  color: #ccc;
}

.social a {
  text-decoration: none;
  color: #ccc;
  font-size: 18px;
}

.widget {
  margin-bottom: 35px;
}

.widget h3 {
  font-size: 12px;
  color: #999;
  margin-bottom: 15px;
  font-weight: normal;
}

.widget p {
  font-size: 12px;
  color: #999;
  line-height: 1.6;
}

.flickr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.flickr-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

/* Main Content */
.main-content {
  background: #fff;
}

/* Filter bar */
.filter-bar {
  display: flex;
  gap: 25px;
  padding: 20px 30px;
  background: #b5a37a;
}

.filter-bar a {
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  opacity: 0.8;
}

.filter-bar a.active,
.filter-bar a:hover {
  opacity: 1;
  font-weight: bold;
}

.filter-bar a.active {
  background: rgba(0,0,0,0.1);
  padding: 5px 12px;
  border-radius: 3px;
}

/* Gallery Grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 0;
}

.gallery .item {
  overflow: hidden;
}

.gallery .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery .item:hover img {
  transform: scale(1.05);
}

/* Make some items span multiple cells for masonry feel */
.gallery .item:nth-child(2) {
  grid-column: span 2;
}

.gallery .item:nth-child(5) {
  grid-row: span 2;
}

.gallery .item:nth-child(9) {
  grid-column: span 2;
}

/* Responsive */
@media (max-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .page-wrapper {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    border-right: none;
    border-bottom: 1px solid #eee;
  }
  
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}