/* Wayback Machine Banner Replica */
#wm-ipp-base {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 65px;
  background: #fff;
  border: 1px solid #000;
  border-bottom: 2px solid #000;
  display: flex;
  font-family: Arial, sans-serif;
  font-size: 11px;
  padding: 4px 8px;
  box-sizing: border-box;
  z-index: 99999;
}
.wm-logo {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-right: 15px;
  cursor: pointer;
}
.wm-logo-top { font-size: 8px; letter-spacing: 2px; color: #333; }
.wm-logo-bottom { font-size: 22px; font-family: 'Times New Roman', Times, serif; font-weight: bold; letter-spacing: -1.5px; margin-top: -2px; }
.wm-logo-bottom span:first-child { color: #cc0000; }
.wm-logo-bottom span:last-child { color: #000; }
.wm-center { flex: 1; display: flex; flex-direction: column; }
.wm-search { display: flex; margin-bottom: 3px; }
.wm-search input { flex: 1; border: 1px solid #999; padding: 2px 4px; font-size: 11px; height: 18px; }
.wm-search button { border: 1px solid #999; background: #eee; margin-left: 2px; padding: 0 5px; font-size: 11px; cursor: pointer; height: 18px; }
.wm-nav { display: flex; align-items: center; font-size: 10px; }
.wm-nav-links { width: 140px; }
.wm-nav-links a { color: #00f; text-decoration: underline; }
.wm-nav-links span { color: #666; display: block; margin-top: 2px;}
.wm-timeline { flex: 1; height: 26px; border-bottom: 1px solid #ccc; position: relative; margin: 0 10px; }
.wm-timeline-bar { position: absolute; bottom: 0; background: #000; width: 1px; }
.wm-timeline-hl { position: absolute; bottom: 0; background: rgba(255, 255, 0, 0.4); height: 100%; width: 15px; border-left: 1px solid #f00; right: 10%; }
.wm-date { flex: 0 0 auto; display: flex; align-items: center; margin-left: 10px; }
.wm-date-box { display: flex; flex-direction: column; align-items: center; justify-content: center; background: #000; color: #ff0; padding: 1px 4px; font-weight: bold; margin: 0 5px; }
.wm-date-box .day { font-size: 20px; line-height: 1; }
.wm-date-nav { display: flex; flex-direction: column; align-items: center; justify-content: space-between; height: 35px; color: #00f; font-weight: bold; font-size: 9px; cursor: pointer; }
.wm-actions { display: flex; flex-direction: column; gap: 4px; margin-left: 10px; }
.wm-icon { width: 14px; height: 14px; background: #ccc; color: #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 9px; cursor: pointer; font-weight: bold; }
.wm-about { background: #666; color: #fff; font-size: 9px; padding: 1px 4px; border-radius: 2px; margin-top: auto; align-self: flex-end; cursor: pointer; }

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Open Sans", sans-serif;
  background: #fff;
  color: #444;
  font-size: 14px;
}

#head {
  width: 100%;
  border-bottom: 1px solid #e0e0e0;
  background: #fff;
  position: relative;
}

.head-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 78px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-wrap img.logo-img {
  height: 42px;
  display: block;
}

.logo-text-fallback {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1px;
  color: #222;
}
.logo-text-fallback span {
  color: #e74c3c;
}

.icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #d4d4d4;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  user-select: none;
}
.icon-btn:hover {
  background: #f5f5f5;
  border-color: #bbb;
}
.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: #555;
  display: block;
}

.dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  z-index: 200;
  animation: fadeIn 0.14s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.dropdown-panel.open {
  display: block;
}

#brands-dropdown {
  left: 0;
  top: calc(100% + 14px);
  width: 780px;
  padding: 20px;
}
#brands-dropdown .brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
#brands-dropdown .brands-grid a {
  font-size: 12.5px;
  color: #444;
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid #e4e4e4;
  border-radius: 3px;
  white-space: nowrap;
  transition:
    background 0.1s,
    border-color 0.1s;
}
#brands-dropdown .brands-grid a:hover {
  border-color: #aaa;
  background: #f5f5f5;
  color: #111;
}
#brands-dropdown .brands-grid a.all-brands {
  border-color: #ccc;
  background: #f0f0f0;
  font-weight: 600;
  color: #333;
}
#brands-dropdown .brands-grid a.all-brands:hover {
  border-color: #444;
  background: #444;
  color: #fff;
}

#lang-dropdown {
  right: 0;
  left: auto;
  top: calc(100% + 8px);
  width: 600px;
  padding: 15px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
#lang-dropdown .lang-title {
  display: none;
}
#lang-dropdown .brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
#lang-dropdown .brands-grid a,
#lang-dropdown .brands-grid span {
  font-size: 12.5px;
  color: #444;
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid #e4e4e4;
  border-radius: 3px;
  white-space: nowrap;
  transition:
    background 0.1s,
    border-color 0.1s;
  display: block;
}
#lang-dropdown .brands-grid a:hover {
  border-color: #aaa;
  background: #f5f5f5;
  color: #111;
}
#lang-dropdown .brands-grid span {
  background: #e6e6e6;
  border-color: #ccc;
  font-weight: bold;
}

.search-box {
  width: 280px;
  display: flex;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-box:focus-within {
  border-color: #bbb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.search-box input {
  flex: 1;
  border: none;
  outline: none;
  padding: 8px 12px;
  font-size: 13px;
  font-family: "Open Sans", sans-serif;
  color: #444;
  background: transparent;
}
.search-box input::placeholder {
  color: #ccc;
  font-weight: 300;
}
.search-box button {
  background: transparent;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-box button:hover {
  background: #fafafa;
}
.search-box button svg {
  width: 15px;
  height: 15px;
  fill: #888;
  display: block;
}

#main {
  max-width: 980px;
  margin: 0 auto;
  padding: 30px 12px 0;
}
#main h1 {
  font-size: 28px;
  font-weight: 400;
  color: #333;
  text-align: center;
  margin-bottom: 14px;
  letter-spacing: 0.2px;
}
#main > p {
  font-size: 15px;
  font-weight: 300;
  color: #666;
  text-align: center;
  border-bottom: 1px solid #e8e8e8;
  padding-bottom: 28px;
  margin-bottom: 0;
}
#main h2 {
  font-size: 20px;
  font-weight: 300;
  color: #777;
  text-align: center;
  margin: 28px 0 16px;
}
#galleries {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.gallery-list-item {
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 2px;
  padding: 10px;
  background: #fff;
}
.gallery-list-item .pic {
  flex-shrink: 0;
}
.gallery-list-item .pic img {
  width: 140px;
  height: 80px;
  object-fit: cover;
  display: block;
}
.gallery-list-item .block {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 5px;
}
.gallery-list-item .title {
  grid-column: 1 / -1;
  font-size: 18px;
  font-weight: 400;
  color: #333;
}
.gallery-list-item .title a {
  color: #333;
  text-decoration: none;
}
.gallery-list-item .title a:hover {
  text-decoration: underline;
}
.gallery-list-item .title span {
  color: #777;
}
.gallery-list-item .images-count {
  font-size: 11px;
  color: #777;
  text-transform: uppercase;
}
.gallery-list-item .date-text {
  font-size: 11px;
  color: #aaa;
  text-transform: uppercase;
  text-align: right;
}

.popular-section {
  margin-top: 40px;
  text-align: center;
}
.popular-section h2 {
  font-size: 22px;
  font-weight: 300;
  color: #777;
  margin-bottom: 20px;
}
.popular-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pop-card {
  border: 1px dashed #ccc;
  padding: 10px;
  background: #fff;
}
.pop-card img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 10px;
}
.pop-card .res-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  font-size: 16px;
  font-weight: bold;
}
.pop-card .res-links a {
  color: #333;
  text-decoration: none;
}

#images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 4px;
}
#images > div {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 12px;
  transition: box-shadow 0.15s;
}
#images > div:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
#images .pic img {
  width: 100%;
  height: 162px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
  background: #eee;
}
#images .links {
  margin-top: 9px;
  text-align: center;
}
#images .links > div {
  display: flex;
  justify-content: center;
  gap: 6px;
}
#images .links a {
  font-size: 13px;
  color: #555;
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 4px 12px;
}
#images .links a:hover {
  border-color: #aaa;
  background: #f5f5f5;
  color: #222;
}
#images .link {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid #eee;
  text-align: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 300;
}
#images .link a {
  color: #888;
  text-decoration: none;
}
#images .link a:hover {
  color: #333;
  text-decoration: underline;
}

#foot {
  border-top: 1px solid #e0e0e0;
  margin-top: 48px;
}
#foot > div {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 12px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
#foot .foot-links {
  font-size: 12px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: flex;
  gap: 0;
}
#foot .foot-links span::before {
  content: " • ";
  color: #ccc;
}
#foot .foot-links span:first-child::before {
  content: "";
}
#foot .foot-links a {
  color: #888;
  text-decoration: none;
}
#foot .foot-links a:hover {
  color: #333;
  text-decoration: underline;
}
#foot .foot-copy {
  font-size: 12px;
  color: #aaa;
  text-transform: uppercase;
}
#foot .foot-copy a {
  color: #aaa;
  text-decoration: none;
}
#foot .foot-copy a:hover {
  color: #777;
}

#overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
}
#overlay.active {
  display: block;
}/* Brand Page Models Layout */
.models-wrapper {
  column-count: 4;
  column-gap: 12px;
  margin-bottom: 50px;
  margin-top: 20px;
}
.model-item {
  display: block;
  break-inside: avoid;
  border: 1px solid #d4d4d4;
  background-color: #ffffff;
  padding: 11px 14px;
  margin-bottom: 11px;
  border-radius: 4px;
  font-size: 14.5px;
  color: #444444;
  font-weight: 300;
  text-align: left;
  text-decoration: none;
  transition: background-color 0.1s, border-color 0.1s, box-shadow 0.1s;
}
.model-item:hover {
  background-color: #ffffff;
  border-color: #bbb;
  color: #000000;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* Model Detail Page Styles */
.breadcrumbs {
  font-size: 11px;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 15px;
  text-align: left;
}
.breadcrumbs a {
  color: #888;
  text-decoration: none;
  font-weight: 600;
}
.breadcrumbs a:hover {
  color: #333;
  text-decoration: underline;
}
.gallery-desc {
  font-size: 14px;
  font-weight: 300;
  color: #666;
  text-align: left;
  margin: 15px 0 25px;
  border-bottom: 1px dashed #ddd;
  padding-bottom: 20px;
}
#model-root h1 {
  text-align: left;
  font-size: 28px;
  font-weight: 400;
  color: #333;
  margin-bottom: 14px;
}
#model-root #images {
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
#model-root h2 {
  text-align: left;
  font-size: 20px;
  font-weight: 300;
  color: #777;
  margin: 28px 0 16px;
}
#model-root #models {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.related-galleries-wrapper {
  margin-top: 60px;
  margin-bottom: 40px;
}
.related-galleries-title {
  font-size: 24px;
  font-weight: 300;
  color: #999;
  margin-bottom: 20px;
  text-align: center;
}
.related-galleries-list {
  border: 1px solid #eaeaea;
  border-bottom: none;
  border-radius: 2px;
}
.related-galleries-item {
  display: block;
  padding: 12px 15px;
  border-bottom: 1px solid #eaeaea;
  text-align: left;
  text-decoration: none;
  color: #444;
  font-size: 16px;
  background: #fff;
  transition: background 0.1s;
}
.related-galleries-item span {
  color: #999;
}
.related-galleries-item:hover {
  background: #fcfcfc;
  color: #222;
}

@media (max-width: 700px) {
  #images {
    grid-template-columns: repeat(2, 1fr);
  }
  #brands-dropdown {
    width: 320px;
  }
  .search-box {
    max-width: 200px;
  }
}
@media (max-width: 480px) {
  #images {
    grid-template-columns: 1fr;
  }
  .search-box {
    display: none;
  }
  #brands-dropdown {
    width: calc(100vw - 24px);
  }
}