.cb-gallery {
  --cb-bg: #0d303d;
  --cb-surface: #164453;
  --cb-accent: #9ad8cf;
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  padding: clamp(30px, 5vw, 70px) clamp(12px, 2vw, 36px) 72px;
  background: var(--cb-bg);
  color: #fff;
  font-family: inherit;
}
.cb-gallery *, .cb-gallery *::before, .cb-gallery *::after { box-sizing: border-box; }
.cb-gallery [hidden] { display: none !important; }
.cb-gallery .cb-card__copy,
.cb-gallery .cb-card__copy strong,
.cb-gallery .cb-card__copy span,
.cb-gallery .cb-card__copy small {
  min-width: 0; max-width: 100%;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  text-overflow: clip !important;
  hyphens: auto;
}
.cb-gallery .cb-card__copy { overflow: visible !important; }
.cb-gallery .cb-card--long-name .cb-card__copy strong { font-size: clamp(15px, 1.24vw, 18px); }
.cb-gallery .cb-card__missing {
  position: absolute; z-index: 2; top: 13px; left: 13px;
  padding: 5px 9px; border: 1px solid #9bd4cf77;
  border-radius: 5px; background: #082b39c9;
  color: #e9f7f5; font-size: 12px; font-weight: 700;
  white-space: normal !important;
}
@media (max-width: 480px) {
  .cb-gallery .cb-card--long-name .cb-card__copy strong { font-size: 12px; }
  .cb-gallery .cb-card__missing { top: 6px; left: 6px; font-size: 10px; padding: 3px 6px; }
}
.cb-gallery .cb-intro { max-width: 1460px; margin: 0 auto 30px; }
.cb-gallery .cb-eyebrow {
  color: var(--cb-accent); font-size: 12px; font-weight: 800;
  letter-spacing: .22em; line-height: 1.4; margin: 0 0 14px;
}
.cb-gallery .cb-intro h1 {
  color: #fff; font-size: clamp(38px, 5vw, 72px);
  font-weight: 800; letter-spacing: -.045em; line-height: 1.06;
  margin: 0 0 15px;
}
.cb-gallery .cb-intro h1 em { color: var(--cb-accent); font-style: normal; }
.cb-gallery .cb-lead {
  max-width: 670px; color: #c7d9dc; font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.55; margin: 0 0 28px;
}
.cb-gallery .cb-controls {
  display: flex; gap: 18px; align-items: center;
  justify-content: space-between; padding: 15px 18px;
  border: 1px solid #436775; border-radius: 12px;
  background: #123b49;
}
.cb-gallery .cb-search-label { position: relative; display: block; width: min(100%, 560px); margin: 0; }
.cb-gallery .cb-search-label::before {
  content: "⌕"; position: absolute; left: 17px; top: 50%; transform: translateY(-54%);
  color: #95bdc4; font-size: 29px; line-height: 1; pointer-events: none;
}
.cb-gallery .cb-search {
  display: block; width: 100% !important; height: 48px !important;
  margin: 0 !important; padding: 10px 16px 10px 49px !important;
  border: 1px solid #668792 !important; border-radius: 8px !important;
  background: #0a2a37 !important; color: #fff !important;
  font: inherit !important; font-size: 16px !important; box-shadow: none !important;
}
.cb-gallery .cb-search::placeholder { color: #b5cdd1; opacity: 1; }
.cb-gallery .cb-count { flex: none; color: #c6d9dc; font-size: 14px; font-weight: 600; }
.cb-gallery .cb-grid {
  display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(12px, 1.5vw, 22px) !important;
  width: 100%; max-width: 1460px; margin: 0 auto;
  align-items: stretch;
}
.cb-gallery .cb-card {
  position: relative !important; isolation: isolate; display: block !important;
  width: 100% !important; min-width: 0; aspect-ratio: .88;
  height: auto !important; min-height: 0 !important;
  overflow: hidden !important; margin: 0 !important; padding: 0 !important;
  border: 0 !important; border-radius: 4px !important;
  background: var(--cb-surface) !important; color: #fff !important;
  text-align: center !important; cursor: pointer;
  box-shadow: none !important; font-family: inherit !important;
  appearance: none; -webkit-appearance: none;
}
.cb-gallery .cb-card img {
  display: block !important; width: 100% !important; height: 100% !important;
  min-width: 100%; max-width: none !important; max-height: none !important;
  margin: 0 !important; border: 0 !important; border-radius: 0 !important;
  object-fit: cover !important; object-position: center !important;
  transition: transform .45s ease;
}
.cb-gallery .cb-card:hover img { transform: scale(1.045); }
.cb-gallery .cb-card::after {
  content: ""; position: absolute; z-index: 1; inset: 0;
  background: linear-gradient(180deg, transparent 36%, #09293694 64%, #082b39f5 100%);
  pointer-events: none;
}
.cb-gallery .cb-card--no-photo::before {
  content: "ROTA BIKER"; position: absolute; top: 35%; left: 0; right: 0;
  color: #a6d8d663; font-size: clamp(14px, 2vw, 24px);
  font-weight: 800; letter-spacing: .2em; transform: rotate(-8deg);
}
.cb-gallery .cb-card__copy {
  position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 19px;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  color: #fff; line-height: 1.25; text-shadow: 0 2px 10px #001923b0;
}
.cb-gallery .cb-card__copy strong {
  display: block; color: #fff; font-size: clamp(16px, 1.5vw, 23px);
  line-height: 1.16; font-weight: 700; overflow-wrap: anywhere;
}
.cb-gallery .cb-card__copy span { display: block; color: #b7d6d9; font-size: clamp(13px, 1.12vw, 17px); }
.cb-gallery .cb-card__copy small { display: block; color: #fff; font-size: clamp(13px, 1.1vw, 16px); }
.cb-gallery .cb-card__photos {
  position: absolute; z-index: 2; top: 12px; right: 12px;
  padding: 5px 10px; border: 1px solid #ffffff7a; border-radius: 40px;
  background: #082a39ca; color: #fff; font-size: 12px; font-weight: 700;
}
.cb-gallery .cb-more {
  display: block; width: auto; margin: 36px auto 0 !important;
  padding: 13px 26px !important; border: 1px solid #92d4cc !important;
  border-radius: 8px !important; background: #154653 !important;
  color: #fff !important; font: inherit !important; font-weight: 700 !important;
  cursor: pointer;
}
.cb-gallery .cb-more:hover { background: #9ad8cf !important; color: #0a2a37 !important; }
.cb-gallery .cb-empty { text-align: center; color: #e4eff0; padding: 44px 0; }
.cb-gallery :is(button, input):focus-visible { outline: 3px solid var(--cb-accent) !important; outline-offset: 3px; }
.cb-gallery .cb-modal {
  position: fixed; z-index: 999999; inset: 0; display: grid;
  place-items: center; padding: 16px;
}
.cb-gallery .cb-modal__backdrop { position: absolute; inset: 0; background: #031922ed; }
.cb-gallery .cb-modal__panel {
  position: relative; width: min(100%, 980px); max-height: 96vh;
  background: #102e3b; color: #fff; box-shadow: 0 25px 80px #0008;
}
.cb-gallery .cb-modal__close {
  position: absolute; z-index: 5; top: 8px; right: 8px;
  width: 42px; height: 42px; padding: 0 !important;
  border: 0 !important; border-radius: 4px !important;
  background: #082936e8 !important; color: #fff !important;
  font-size: 34px !important; line-height: 1 !important; cursor: pointer;
}
.cb-gallery .cb-modal__image-wrap {
  position: relative; display: flex; justify-content: center; align-items: center;
  height: min(74vh, 690px); background: #061e29;
}
.cb-gallery .cb-modal__image { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.cb-gallery .cb-prev, .cb-gallery .cb-next {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  width: 42px; height: 42px; padding: 0 !important;
  border: 0 !important; border-radius: 50% !important;
  background: #082936db !important; color: #fff !important;
  font-size: 34px !important; line-height: 1 !important; cursor: pointer;
}
.cb-gallery .cb-prev { left: 12px; } .cb-gallery .cb-next { right: 12px; }
.cb-gallery .cb-modal__detail {
  display: flex; justify-content: space-between; align-items: center;
  gap: 18px; padding: 17px 22px;
}
.cb-gallery .cb-modal__detail h2 { color: #fff; font-size: 20px; margin: 0 0 4px; }
.cb-gallery .cb-modal__detail p { color: #b4d0d4; font-size: 14px; margin: 0; }
.cb-gallery .cb-modal__position { color: #c5dde0; white-space: nowrap; }
@media (max-width: 1080px) {
  .cb-gallery .cb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 760px) {
  .cb-gallery .cb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .cb-gallery .cb-controls { flex-direction: column; align-items: stretch; }
  .cb-gallery .cb-search-label { width: 100%; }
  .cb-gallery .cb-count { align-self: flex-end; }
}
@media (max-width: 480px) {
  .cb-gallery { padding: 28px 10px 52px; }
  .cb-gallery .cb-grid { gap: 8px !important; }
  .cb-gallery .cb-card { aspect-ratio: .76; }
  .cb-gallery .cb-card__copy { left: 6px; right: 6px; bottom: 12px; gap: 3px; }
  .cb-gallery .cb-card__copy strong { font-size: 14px; }
  .cb-gallery .cb-card__copy span, .cb-gallery .cb-card__copy small { font-size: 11px; }
  .cb-gallery .cb-card__photos { top: 6px; right: 6px; padding: 3px 6px; font-size: 10px; }
  .cb-gallery .cb-modal { padding: 6px; }
}
.cb-gallery [hidden] { display: none !important; }
