/* =========================
   RESET
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Lato", sans-serif;
  padding-top: 60px;
  background: #ffffff;
  color: #333;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

/* =========================
   HEADER
========================= */

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #607d8b;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
}

.nav-links a:hover {
  opacity: 0.8;
}

/* Mobile nav */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: #fff;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    color: #333;
    padding: 12px 20px;
    border-top: 1px solid #eee;
  }
}

/* =========================
   PAGE LAYOUT
========================= */

.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

.photo-layout {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.photo-left {
  flex: 2;
  min-width: 300px;
}

.photo-right {
  flex: 1;
  min-width: 250px;
  background: #f5f5f5;
  padding: 20px;
  border-radius: 6px;
}

/* =========================
   MAIN IMAGE
========================= */

.main-photo {
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  margin-bottom: 20px;
}

/* =========================
   DOWNLOAD BUTTON
========================= */

.download-btn {
  display: inline-block;
  background: #607d8b;
  color: #fff;
  padding: 12px 22px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: 0.2s ease;
}

.download-btn:hover {
  background: #455a64;
}

/* =========================
   CATEGORY LIST
========================= */

.category-grid a {
  display: block;
  padding: 6px 0;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #ddd;
}

.category-grid a:hover {
  color: #607d8b;
}

/* =========================
   RELATED PHOTOS
========================= */

.related-photos {
  margin-top: 50px;
}

.thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.thumbnail-img {
  border-radius: 4px;
  transition: transform 0.25s ease;
}

.thumbnail-img:hover {
  transform: scale(1.05);
}

/* =========================
   FOOTER
========================= */

.site-footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 40px 20px;
  margin-top: 60px;
}

.site-footer .socials a {
  color: #fff;
  font-size: 22px;
  margin: 0 8px;
}

.site-footer .socials a:hover {
  color: #607d8b;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  margin: 0 8px;
}

.footer-links a:hover {
  text-decoration: underline;
}

