* {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: Arial, sans-serif;
      background: #f4f1ec;
      color: #222;
      line-height: 1.5;
    }

    header {
      background: #1f1f1f;
      color: #fff;
      padding: 40px 20px;
      text-align: center;
    }

    header h1 {
      font-size: 38px;
      margin-bottom: 10px;
      letter-spacing: 1px;
    }

    header p {
      max-width: 680px;
      margin: 0 auto;
      color: #d6d6d6;
      font-size: 16px;
    }

    nav {
      position: sticky;
      top: 0;
      z-index: 10;
      background: #fff;
      border-bottom: 1px solid #ddd;
      padding: 12px 20px;
      display: flex;
      justify-content: center;
      gap: 12px;
      flex-wrap: wrap;
    }

    nav a {
      color: #222;
      text-decoration: none;
      font-size: 14px;
      padding: 8px 14px;
      border-radius: 999px;
      background: #eee;
      transition: 0.2s;
    }

    nav a:hover {
      background: #1f1f1f;
      color: #fff;
    }

    main {
      width: min(1180px, 100%);
      margin: 0 auto;
      padding: 34px 20px 60px;
    }

    section {
      margin-bottom: 48px;
    }

    .section-title {
      display: flex;
      justify-content: space-between;
      align-items: end;
      gap: 20px;
      margin-bottom: 20px;
      border-bottom: 2px solid #222;
      padding-bottom: 10px;
    }

    .section-title h2 {
      font-size: 28px;
    }

    .section-title span {
      color: #666;
      font-size: 14px;
    }

    .grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 18px;
    }

    .card {
      background: #fff;
      border-radius: 18px;
      overflow: hidden;
      box-shadow: 0 10px 28px rgba(0,0,0,0.08);
      border: 1px solid #e4e0d8;
    }

    .photo {
      height: 190px;
      background: linear-gradient(135deg, #d9d3c8, #f8f5ef);
      display: flex;
      align-items: center;
      justify-content: center;
      color: #777;
      font-size: 14px;
      text-align: center;
      padding: 16px;
    }

    .card-content {
      padding: 18px;
    }

    .card h3 {
      font-size: 19px;
      margin-bottom: 6px;
    }

    .meta {
      color: #777;
      font-size: 13px;
      margin-bottom: 12px;
    }

    .card p {
      font-size: 14px;
      color: #444;
      margin-bottom: 14px;
    }

    .tags {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-bottom: 14px;
    }

    .details-btn {
      display: inline-block;
      margin-top: 2px;
      padding: 9px 14px;
      border-radius: 999px;
      background: #1f1f1f;
      color: #fff;
      text-decoration: none;
      font-size: 13px;
      transition: 0.2s;
    }

    .details-btn:hover {
      background: #4b4034;
    }

    .detail-template {
      background: #fff;
      border-radius: 22px;
      border: 1px dashed #b8aa98;
      padding: 24px;
      box-shadow: 0 10px 28px rgba(0,0,0,0.06);
    }

    .detail-layout {
      display: grid;
      grid-template-columns: minmax(240px, 420px) 1fr;
      gap: 24px;
      align-items: start;
    }

    .detail-photo {
      position: relative;
      border-radius: 18px;
      overflow: hidden;
      background: #000;
    }

    .carousel {
      position: relative;
      width: 100%;
      height: 320px;
    }

    .carousel img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: none;
    }

    .carousel img.active {
      display: block;
    }

    .carousel-controls {
      position: absolute;
      top: 50%;
      width: 100%;
      display: flex;
      justify-content: space-between;
      transform: translateY(-50%);
    }

    .carousel-btn {
      background: rgba(0,0,0,0.5);
      border: none;
      color: #fff;
      padding: 10px 14px;
      cursor: pointer;
      font-size: 16px;
    }

    .carousel-dots {
      position: absolute;
      bottom: 10px;
      width: 100%;
      display: flex;
      justify-content: center;
      gap: 6px;
    }

    .dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: rgba(255,255,255,0.5);
    }

    .dot.active {
      background: #fff;
    }

    .detail-content h3 {
      font-size: 26px;
      margin-bottom: 8px;
    }

    .detail-content p {
      margin-bottom: 14px;
      color: #444;
    }

    .specs {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 10px;
      margin: 18px 0;
    }

    .spec {
      background: #f7f3ed;
      border: 1px solid #e4d9cb;
      border-radius: 14px;
      padding: 12px;
      font-size: 14px;
    }

    .spec b {
      display: block;
      margin-bottom: 4px;
      color: #222;
    }

    .notes {
      background: #f7f3ed;
      border-left: 4px solid #1f1f1f;
      padding: 14px 16px;
      border-radius: 12px;
      margin-top: 16px;
    }

    .gallery-filter {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-bottom: 18px;
    }

    .filter-btn {
      display: inline-block;
      padding: 8px 14px;
      border-radius: 999px;
      background: #eee;
      color: #222;
      text-decoration: none;
      font-size: 14px;
    }

    .filter-btn.active,
    .filter-btn:hover {
      background: #1f1f1f;
      color: #fff;
    }

    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 14px;
    }

    .gallery-item {
      background: #fff;
      border-radius: 16px;
      overflow: hidden;
      border: 1px solid #e4e0d8;
      box-shadow: 0 8px 22px rgba(0,0,0,0.07);
    }

    .gallery-item img {
      width: 100%;
      height: 180px;
      object-fit: cover;
      display: block;
    }

    .gallery-caption {
      padding: 10px 12px;
      font-size: 13px;
      color: #444;
    }

    .pagination {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      margin-top: 22px;
    }

    .page-btn {
      border: none;
      background: #eee;
      color: #222;
      padding: 8px 12px;
      border-radius: 999px;
      cursor: pointer;
      font-size: 14px;
    }

    .page-btn.active,
    .page-btn:hover {
      background: #1f1f1f;
      color: #fff;
    }

    .page-btn:disabled {
      opacity: 0.4;
      cursor: default;
    }

    .lightbox {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.9);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 999;
    }

    .lightbox.active {
      display: flex;
    }

    .lightbox-content {
      display: grid;
      grid-template-columns: minmax(260px, 1fr) 320px;
      gap: 22px;
      width: min(1200px, 94%);
      max-height: 90%;
      align-items: center;
    }

    .lightbox img {
      max-width: 100%;
      max-height: 90vh;
      border-radius: 12px;
      justify-self: center;
    }

    .lightbox-info {
      background: #fff;
      color: #222;
      border-radius: 18px;
      padding: 20px;
      align-self: stretch;
      overflow-y: auto;
    }

    .lightbox-info h3 {
      font-size: 22px;
      margin-bottom: 10px;
    }

    .shot-data {
      display: grid;
      gap: 8px;
      margin-top: 14px;
    }

    .shot-data div {
      background: #f4f1ec;
      border-radius: 12px;
      padding: 10px;
      font-size: 14px;
    }

    .shot-data b {
      display: block;
      font-size: 12px;
      color: #666;
      margin-bottom: 3px;
    }

    @media (max-width: 800px) {
      .lightbox-content {
        grid-template-columns: 1fr;
        overflow-y: auto;
      }

      .lightbox-info {
        align-self: auto;
      }
    }

    .lightbox-close {
      position: absolute;
      top: 20px;
      right: 20px;
      font-size: 28px;
      color: #fff;
      cursor: pointer;
    }

    .lightbox-nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(0,0,0,0.5);
      color: #fff;
      border: none;
      padding: 12px 16px;
      font-size: 20px;
      cursor: pointer;
      z-index: 1000;
    }

    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }

    @media (max-width: 760px) {
      .detail-layout {
        grid-template-columns: 1fr;
      }
    }

    .tag {
      font-size: 12px;
      background: #f0ebe3;
      border: 1px solid #e0d7ca;
      padding: 5px 9px;
      border-radius: 999px;
      color: #4b4034;
    }

    footer {
      background: #1f1f1f;
      color: #cfcfcf;
      text-align: center;
      padding: 24px 20px;
      font-size: 14px;
    }

    @media (max-width: 560px) {
      header h1 {
        font-size: 30px;
      }

      .section-title {
        display: block;
      }

      .section-title span {
        display: block;
        margin-top: 4px;
      }
    }