/*
Theme Name: Cambo Gallery
Theme URI: https://example.com/cambo-gallery
Author: Cambo Gallery
Description: A modern responsive WordPress stock photography theme for Cambodia culture, temples, landscapes, street life, countryside, festivals, people, nature, and everyday visual stories.
Version: 2.3.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: cambo-gallery
Tags: photography, portfolio, travel, responsive-layout, featured-images, custom-logo
*/

:root {
  --ink: #191919;
  --ink-soft: #5c6374;
  --paper: #f8fbff;
  --paper-deep: #f0f5ff;
  --line: rgba(25, 25, 25, 0.1);
  --white: #ffffff;
  --blue: #4f69f2;
  --green: #3cd3a0;
  --cyan: #00cdc6;
  --shadow: 0 12px 30px rgba(25, 25, 25, 0.07);
  --shadow-strong: 0 18px 42px rgba(79, 105, 242, 0.18);
  --width: 1180px;
  --font: "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--blue);
}

button,
input,
select,
textarea {
  font: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 80;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 6px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 58px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  width: min(var(--width), calc(100% - 32px));
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand__mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 34px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
}

.brand__text {
  display: block;
  line-height: 1.15;
}

.brand__name {
  display: block;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.brand__tagline {
  display: block;
  color: var(--ink-soft);
  font-size: 0.66rem;
}

.custom-logo {
  max-width: 210px;
  height: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.8rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(79, 105, 242, 0.09);
  color: var(--blue);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
}

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  content: "";
}

.menu-toggle__bars {
  position: relative;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
  position: absolute;
  left: 0;
}

.menu-toggle__bars::before {
  top: -6px;
}

.menu-toggle__bars::after {
  top: 6px;
}

.stock-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
  color: var(--white);
  isolation: isolate;
}

.stock-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: rgba(25, 25, 25, 0.52);
}

.stock-hero-inner {
  width: min(var(--width), calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0 66px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.stock-hero h1,
.section-head h2,
.license-band h2,
.archive-head h1,
.detail-copy h1,
.entry-title {
  margin: 0;
  font-family: var(--font);
  font-weight: 600;
  line-height: 1.08;
}

.stock-hero h1 {
  max-width: none;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(1.8rem, 4vw, 3.35rem);
  letter-spacing: 0;
  white-space: nowrap;
}

.hero-copy {
  max-width: 650px;
  margin: 20px auto 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
}

.search-panel {
  position: relative;
  width: min(100%, 560px);
  margin: 24px auto 0;
}

.search-shell {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 52px;
  padding: 5px 7px 5px 17px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(20px);
  transition: box-shadow 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.search-panel:focus-within .search-shell {
  border-color: rgba(60, 211, 160, 0.9);
  box-shadow: 0 18px 42px rgba(79, 105, 242, 0.2);
  transform: translateY(-1px);
}

.search-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
}

.search-photo-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: rgba(79, 105, 242, 0.1);
  color: var(--blue);
  font-size: 0.62rem;
  font-weight: 800;
}

.search-photo-icon svg,
.search-button svg,
.view-toggle svg,
.download-button svg,
.coffee-button svg,
.photo-stats svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.search-photo-icon svg {
  width: 15px;
  height: 15px;
}

.search-main input {
  width: 100%;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: none;
  font-size: 0.92rem;
  font-weight: 400;
}

.search-main input::placeholder {
  color: #78918c;
  font-weight: 400;
}

.search-button {
  display: grid;
  min-width: 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
}

.search-button:hover,
.search-button:focus-visible {
  background: var(--cyan);
}

.search-dropdown {
  position: absolute;
  left: 18px;
  right: 18px;
  top: calc(100% + 12px);
  z-index: 4;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(16, 32, 29, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 46px rgba(25, 25, 25, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top center;
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(18px);
}

.search-panel:focus-within .search-dropdown,
.search-panel.is-open .search-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.suggest-block {
  display: grid;
  gap: 8px;
  align-content: start;
}

.suggest-title {
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.suggest-block button,
.suggest-block a {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7fcfa;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  text-align: left;
}

.suggest-block button:hover,
.suggest-block button:focus-visible,
.suggest-block a:hover,
.suggest-block a:focus-visible {
  border-color: rgba(79, 105, 242, 0.28);
  background: #eef2ff;
}

.suggest-categories {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.suggest-categories .suggest-title {
  grid-column: 1 / -1;
}

.stock-section,
.archive-head,
.detail-view,
.content-wrap {
  width: min(var(--width), calc(100% - 32px));
  margin: 0 auto;
}

.stock-section {
  padding: 62px 0;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2,
.license-band h2 {
  font-size: 1.9rem;
  font-weight: 600;
}

.section-head-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-head-row p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 600;
}

.gallery-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.gallery-actions p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 600;
}

.view-controls {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.view-toggle {
  display: inline-flex;
  min-width: 38px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}

.view-toggle svg {
  width: 14px;
  height: 14px;
}

.view-toggle.is-active {
  background: var(--blue);
  color: var(--white);
}

.categories-section {
  padding-bottom: 30px;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.category-chip {
  min-height: 78px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 8px 20px rgba(25, 25, 25, 0.045);
}

.category-chip strong,
.category-chip span {
  display: block;
}

.category-chip strong {
  font-size: 0.94rem;
  font-weight: 600;
}

.category-chip span {
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.category-chip:hover,
.category-chip:focus-visible {
  border-color: rgba(79, 105, 242, 0.34);
  background: #eef2ff;
  color: var(--ink);
}

.gallery-section {
  padding-top: 42px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.photo-grid.is-list {
  grid-template-columns: 1fr;
}

.photo-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(25, 25, 25, 0.065);
}

.photo-card a {
  display: block;
  color: inherit;
}

.photo-grid.is-list .photo-card a {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: stretch;
}

.photo-thumb {
  overflow: hidden;
  background: #ddd5c8;
}

.photo-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 180ms ease;
}

.photo-grid.is-list .photo-thumb img {
  height: 100%;
  min-height: 150px;
  aspect-ratio: auto;
}

.photo-card:hover img,
.photo-card:focus-within img {
  transform: scale(1.03);
}

.photo-body {
  padding: 12px 14px 14px;
}

.photo-grid.is-list .photo-body {
  display: grid;
  align-content: center;
  padding: 18px;
}

.photo-body h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.2;
}

.photo-body p {
  min-height: 1.2em;
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.pagination .page-numbers,
.nav-links .page-numbers {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
}

.pagination .current,
.nav-links .current {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.license-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.6fr) minmax(320px, 1fr);
  gap: 34px;
  align-items: center;
  padding: 56px max(20px, calc((100vw - var(--width)) / 2));
  background: #191919;
  color: var(--white);
}

.license-band p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
}

.archive-head {
  padding: 46px 0 8px;
}

.archive-head h1 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
}

.archive-head p,
.archive-description {
  max-width: 720px;
  color: var(--ink-soft);
}

.detail-view {
  padding: 44px 0 86px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  align-items: start;
}

.detail-main,
.detail-sidebar-card,
.page,
.content-wrap article {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.detail-main {
  overflow: hidden;
}

.detail-action-bar {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.detail-image-wrap {
  position: relative;
  overflow: hidden;
  background: #ddd5c8;
}

.detail-image-wrap img {
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  background: #201d19;
}

.preview-watermark {
  position: absolute;
  inset: -34%;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, max-content);
  gap: 42px 54px;
  place-content: center;
  pointer-events: none;
  transform: rotate(-45deg);
  transform-origin: center;
}

.preview-watermark span {
  display: block;
  color: rgba(255, 255, 255, 0.26);
  font-size: clamp(0.82rem, 1.4vw, 1.22rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(25, 25, 25, 0.22);
  white-space: nowrap;
}

.detail-copy,
.content-wrap article {
  padding: 24px;
}

.detail-copy h1,
.entry-title {
  margin: 0 0 10px;
  font-size: 2rem;
  font-weight: 600;
}

.detail-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 18px;
}

.detail-labels ul,
.detail-labels li {
  display: contents;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-labels a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 600;
}

.entry-content,
.detail-copy p {
  color: var(--ink-soft);
}

.entry-content a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.entry-content img {
  border-radius: 12px;
}

.rights-note {
  margin-top: 20px;
  padding: 18px;
  border-left: 4px solid var(--blue);
  border-radius: 6px;
  background: #eef2ff;
}

.rights-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.detail-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
  align-self: start;
}

.detail-sidebar-card {
  padding: 18px;
}

.detail-sidebar-card h2 {
  margin: 0 0 12px;
  font-size: 1.12rem;
  font-weight: 600;
}

.download-button,
.telegram-button,
.coffee-button {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  cursor: pointer;
  font-weight: 700;
  text-align: center;
}

.download-button {
  margin-top: 0;
  background: var(--blue);
}

.detail-action-bar .download-button,
.detail-action-bar .coffee-button {
  margin-top: 0;
}

.coffee-button {
  background: var(--green);
}

.download-button svg,
.coffee-button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.sidebar-coffee-button {
  width: 100%;
  margin-top: 14px;
}

.telegram-button {
  background: var(--green);
}

.download-button:hover,
.download-button:focus-visible,
.coffee-button:hover,
.coffee-button:focus-visible,
.telegram-button:hover,
.telegram-button:focus-visible {
  background: var(--cyan);
  color: var(--white);
}

.photo-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.photo-stats li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 8px;
  align-items: center;
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcff;
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.photo-stats svg {
  width: 17px;
  height: 17px;
  grid-row: span 2;
  color: var(--blue);
}

.photo-stats span {
  line-height: 1.15;
}

.photo-stats strong {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.15;
}

.khqr-card {
  overflow: hidden;
  background: var(--white);
}

.qr-frame {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcff;
}

.khqr-card img {
  width: 100%;
  border-radius: 12px;
  background: var(--white);
}

.khqr-card p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.qr-modal[hidden] {
  display: none;
}

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
}

.qr-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 25, 25, 0.56);
  backdrop-filter: blur(10px);
}

.qr-modal__panel {
  position: relative;
  z-index: 1;
  width: min(390px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  padding: 22px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(25, 25, 25, 0.28);
}

.qr-modal__panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 600;
}

.qr-modal__panel p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.qr-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

body.qr-modal-open {
  overflow: hidden;
}

.empty-state {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  color: var(--ink-soft);
}

.site-footer {
  padding: 34px max(20px, calc((100vw - var(--width)) / 2));
  background: #191919;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer__inner {
  width: min(var(--width), 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
}

.site-footer strong {
  color: var(--white);
}

.site-footer p {
  margin: 3px 0;
}

.footer-links {
  display: flex;
  gap: 12px;
  font-size: 0.86rem;
  font-weight: 700;
}

@media (max-width: 1080px) {
  .stock-hero h1 {
    font-size: clamp(1.65rem, 4.6vw, 3.05rem);
  }

  .license-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    position: static;
  }

  .detail-action-bar {
    display: grid;
  }

  .sidebar-download,
  .sidebar-khqr-card {
    display: none;
  }

  .photo-stats {
    margin-top: 0;
  }
}

@media (max-width: 820px) {
  .site-header__inner {
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand {
    max-width: 100%;
  }

  .stock-hero {
    min-height: 620px;
  }

  .stock-hero h1 {
    font-size: clamp(1.45rem, 4.4vw, 2.15rem);
  }

  .search-panel {
    width: 100%;
  }

  .stock-hero .search-dropdown {
    position: static;
    display: flex;
    grid-template-columns: none;
    gap: 8px;
    align-items: center;
    max-width: 100%;
    margin: 10px auto 0;
    padding: 2px 0 6px;
    overflow-x: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    backdrop-filter: none;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .stock-hero .search-dropdown::-webkit-scrollbar {
    display: none;
  }

  .stock-hero .suggest-block,
  .stock-hero .suggest-categories {
    display: contents;
  }

  .stock-hero .suggest-title {
    display: none;
  }

  .stock-hero .suggest-block button,
  .stock-hero .suggest-block a {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 7px 12px;
    border-color: rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 18px rgba(25, 25, 25, 0.12);
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-strip {
    display: grid;
    grid-auto-columns: calc((100% - 28px) / 3);
    grid-auto-flow: column;
    grid-template-columns: none;
    gap: 14px;
    max-width: 100%;
    padding: 2px 0 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-left: 0;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .category-strip::-webkit-scrollbar {
    display: none;
  }

  .category-chip {
    min-height: 68px;
    scroll-snap-align: start;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .brand__tagline {
    display: none;
  }

  .stock-hero h1 {
    font-size: clamp(1.05rem, 5.2vw, 1.45rem);
    white-space: normal;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .category-strip {
    grid-auto-columns: calc((100% - 20px) / 3);
    gap: 10px;
  }

  .category-chip {
    min-height: 58px;
    padding: 11px;
    border-radius: 12px;
  }

  .category-chip strong {
    font-size: 0.78rem;
    line-height: 1.2;
  }

  .category-chip span {
    display: none;
  }

  .photo-grid.is-list .photo-card a {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .photo-grid.is-list .photo-thumb img {
    min-height: 104px;
  }

  .photo-stats {
    grid-template-columns: 1fr;
  }

  .detail-action-bar {
    gap: 8px;
    padding: 10px;
  }

  .detail-action-bar .download-button,
  .detail-action-bar .coffee-button {
    min-height: 46px;
    padding: 0 10px;
    font-size: 0.84rem;
  }

  .search-shell {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 48px;
    padding: 5px 6px 5px 13px;
  }

  .search-button {
    min-width: 38px;
    width: 38px;
    height: 38px;
  }

  .suggest-categories {
    grid-template-columns: 1fr;
  }

  .section-head-row,
  .footer-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-actions {
    justify-content: flex-start;
  }
}
