[hidden] { display: none !important; }
.hidden-during-prewarmup { visibility: visible !important; }
.zoe-navigation { display: flex; justify-content: space-between; gap: 0; width: 100%; margin: 0; position: relative; z-index: 3; color: #fff; font: 16px "Times New Roman", serif; }
.zoe-navigation a, .zoe-navigation summary { display: flex; min-height: 32px; align-items: center; padding: 0 10px; white-space: nowrap; color: inherit; text-decoration: none; cursor: pointer; }
.zoe-navigation a:hover, .zoe-navigation summary:hover, .zoe-navigation a[aria-current=page] { color: #f5ed91; }
.zoe-navigation summary { list-style: none; }
.zoe-navigation summary::-webkit-details-marker { display: none; }
.zoe-navigation details { position: relative; }
.zoe-nav-extra { position: absolute; top: 100%; right: 0; min-width: 126px; background: #287c80; box-shadow: 0 4px 16px #211a1226; padding: 4px; z-index: 4; }
wix-dropdown-menu:has(.zoe-navigation), nav:has(.zoe-navigation) { overflow: visible !important; }
.zoe-home-video { display: block; width: 100%; height: 100%; background: #b6990b; object-fit: contain; }
body[data-theme-mode=mobile] #masterPage { margin-inline: auto; }
body[data-theme-mode=mobile] #masterPage:not(.landingPage) { --header-height: 60px; }
.reference-mobile-header { background: #05696e; }
.reference-mobile-header-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px 44px;
  min-height: var(--header-height, 60px);
  align-items: center;
  padding-inline: 14px 8px;
}
.reference-mobile-brand { justify-self: start; display: flex; align-items: center; min-height: 44px; }
.reference-mobile-brand img { display: block; width: 82px; height: 46px; object-fit: contain; }
.zoe-menu-toggle,
.reference-mobile-search summary {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.reference-mobile-search summary { position: relative; list-style: none; }
.reference-mobile-search summary::-webkit-details-marker { display: none; }
.reference-mobile-search summary::before {
  content: '';
  box-sizing: border-box;
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: translate(-2px, -2px);
}
.reference-mobile-search summary::after {
  content: '';
  position: absolute;
  top: 27px;
  left: 25px;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
}
.zoe-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 -6px currentColor, 0 6px currentColor;
}
.zoe-menu-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(100%, 340px);
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #151b1b;
  color: #f5f1e9;
  font: 16px/1.4 Arial, Helvetica, sans-serif;
}
.zoe-menu-dialog::backdrop { background: #0d1717a8; }
html:has(.zoe-menu-dialog[open]) { overflow: hidden; }
.zoe-menu-panel { display: flex; flex-direction: column; height: 100%; }
.zoe-menu-bar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 4px 18px 4px 22px;
  border-bottom: 1px solid #3f4d49;
}
.zoe-menu-bar h2 { margin: 0; color: inherit; font: 600 18px/1.2 Arial, Helvetica, sans-serif; }
.zoe-menu-close {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #5b6965;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font: 29px/1 Arial, sans-serif;
  cursor: pointer;
}
#zoe-mobile-menu {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding: 8px 22px max(20px, env(safe-area-inset-bottom));
}
#zoe-mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 8px 10px;
  border-left: 2px solid transparent;
  border-bottom: 1px solid #3f4d49;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}
#zoe-mobile-menu a[aria-current=page] {
  border-left-color: #65c7bc;
  color: #a3ede4;
  background: #203d3a;
}
.reference-mobile-header :focus-visible, .zoe-menu-dialog :focus-visible {
  outline: 2px solid #a3ede4;
  outline-offset: 2px;
}

[data-theme-visible=no] { visibility: hidden !important; pointer-events: none !important; }
.reference-sr-only { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.reference-gallery-more {
  display: block;
  min-height: 38px;
  margin: 12px auto 0;
  padding: 5px 19px;
  border: 1px solid #646464;
  background: #fff;
  color: #161616;
  font: 13px Arial, sans-serif;
  cursor: pointer;
}
.reference-gallery-more:hover { background: #f2f2f2; }
.reference-empty, .reference-enquiry {
  margin: 12px auto;
  text-align: center;
  color: #222;
  font: 14px/1.45 Arial, sans-serif;
}
.reference-enquiry a { color: inherit; text-decoration: underline; }
.reference-contact-copy { display: grid; row-gap: 36px; overflow-wrap: anywhere; }
.reference-contact-copy p { margin: 0; }
.reference-contact-copy a { color: inherit; text-decoration: none; }
.reference-contact-copy a:is(:hover, :focus-visible) { text-decoration: underline; }
.reference-contact-english { color: #000; font: 16px/normal "Times New Roman", Times, serif; }
.reference-contact-english :is(.reference-contact-intro, .reference-location) {
  font-size: 18px;
  font-weight: 700;
  font-style: italic;
}
.reference-contact-english .reference-contact-intro,
.reference-contact-english .reference-contact-hongkong .reference-location { margin-block-end: 21px; }
.reference-contact-english .reference-contact-hongkong .reference-branch + .reference-branch { line-height: 1.4; }
.reference-contact-english .reference-contact-region + .reference-contact-region,
.reference-contact-english .reference-branch + .reference-branch { margin-block-start: 18px; }
.reference-contact-english .reference-contact-kowloon { color: #424242; }
.reference-contact-english .reference-contact-hours { color: #000; }
.reference-contact-chinese {
  color: #424242;
  font: 14px/1.4 helvetica-w01-roman, Arial, sans-serif;
}
.reference-contact-chinese .reference-location { font-size: 18px; font-weight: 700; }
.reference-contact-chinese .reference-contact-region + .reference-contact-region,
.reference-contact-chinese .reference-branch + .reference-branch { margin-block-start: 1.4em; }
body[data-theme-mode=mobile] .reference-contact-chinese { font-size: 15px; }
body[data-theme-mode=mobile] [data-mesh-id="comp-l9ia8i28inlineContent-gridContainer"] > #comp-j4jq1hqd {
  margin-block-end: 20px;
}
.reference-about-copy p { margin: 0 0 15px; }
.reference-media {
  width: min(900px, calc(100% - 36px));
  margin: 22px auto 44px;
  color: #253436;
}
.reference-media-card {
  display: grid;
  grid-template-columns: minmax(0, 37%) minmax(0, 1fr);
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid #dce5e4;
  border-radius: 6px;
  background: #fff;
}
.reference-media-card-text { grid-template-columns: minmax(0, 1fr); }
.reference-media-cover { display: block; align-self: start; aspect-ratio: 330 / 227; overflow: hidden; }
.reference-media-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.reference-media-copy { padding: 22px 24px; min-width: 0; overflow-wrap: anywhere; }
.reference-media-copy h2 { color: #05696e; font-size: 21px; font-weight: 700; margin: 0 0 10px; line-height: 1.35; }
.reference-media-copy p, .reference-media-intro p { font-size: 15px; line-height: 1.55; margin: 0 0 12px; }
.reference-media-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  min-height: 40px;
  border-radius: 4px;
  background: #05696e;
  color: white;
  font-size: 14px;
  text-decoration: none;
}
.reference-media-link:hover { background: #084b4f; }
.reference-media a:focus-visible { outline: 2px solid #05696e; outline-offset: 2px; }
.reference-media-cover:focus-visible { outline-offset: -3px; }
body[data-theme-mode=mobile] .reference-media { margin-top: 16px; }
body[data-theme-mode=mobile] .reference-media-card { grid-template-columns: minmax(0, 1fr); }
body[data-theme-mode=mobile] .reference-media-copy { padding: 15px; }
body[data-theme-mode=mobile] .reference-media-copy h2 { font-size: 18px; }
body[data-theme-mode=mobile] .reference-media-link { min-height: 44px; }
.reference-about-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffcf05;
  border-radius: 6px;
}
.reference-mobile-chat {
  display: block;
  position: fixed;
  z-index: 600;
  right: max(8px, env(safe-area-inset-right));
  bottom: max(13px, env(safe-area-inset-bottom));
  width: 58px;
  height: 58px;
}
.reference-mobile-chat img { display: block; width: 100%; height: 100%; object-fit: contain; }
#SITE_FOOTER [id=comp-if83mouu] a { color: inherit; }

.reference-blog, .reference-search, .reference-default, .reference-extra {
  width: min(930px, calc(100% - 36px));
  margin-inline: auto;
  padding: 28px 0 54px;
  color: #000;
  font: 16px/1.5 Arial, Helvetica, sans-serif;
  overflow-wrap: anywhere;
}
.reference-blog-tab { color: #696660; text-decoration: none; font-size: 14px; }
.reference-blog h1 { margin: 62px 0 68px 20px; font-size: 36px; line-height: 1.15; }
.reference-post-row {
  display: grid;
  grid-template-columns: 48.2% minmax(0,1fr);
  min-height: 338px;
  margin-bottom: 31px;
  border: 1px solid #e8e8e8;
}
.reference-post-row > a { background: #faf8f6; }
.reference-post-row > div { padding: 38px 34px; }
.reference-post-cover { display: block; width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; }
.reference-post-row h2 { margin: 23px 0 10px; font-size: 27px; font-weight: 400; }
.reference-post-row h2 a { color: inherit; text-decoration: none; }
.reference-post-row h2 a:hover { text-decoration: underline; }
.reference-post-excerpt { margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.reference-post-date { display: block; font-size: 14px; color: #4f6464; }
.reference-post-row .reference-post-date + h2 { margin-top: 8px; }
.reference-post-summary > :first-child { margin-top: 0; }
.reference-post-summary > :last-child { margin-bottom: 0; }
.reference-blog blockquote { border-inline-start: 3px solid #bdd2d1; padding-inline-start: 14px; margin-inline: 0; }
.reference-blog ul { list-style: disc; padding-inline-start: 1.4em; }
.reference-blog ol { list-style: decimal; padding-inline-start: 1.4em; }
.reference-blog a:not(.reference-button) { overflow-wrap: anywhere; }
.reference-blog .rich-align-center { text-align: center; }
.reference-blog .rich-align-right { text-align: right; }
.reference-blog .rich-align-justify { text-align: justify; }
.reference-blog .rich-text-small { font-size: .75em; }
.reference-blog .rich-text-large { font-size: 1.5em; }
.reference-blog :is(sub, sup) { font-size: .75em; line-height: 0; }
.reference-blog sub { vertical-align: sub; }
.reference-blog sup { vertical-align: super; }
.reference-article-cover, .reference-block-picture { display: block; height: auto; max-width: 100%; margin: 18px 0; }
.reference-blog.reference-post-page {
  --post-border: 1px solid rgba(229, 229, 229, .75);
  width: min(940px, calc(100% - 36px));
}
.reference-post {
  margin-block-start: 18px;
  border: var(--post-border);
  padding: 40px 18px;
}
.reference-post-inner {
  max-width: 740px;
  margin-inline: auto;
}
.reference-post h1 {
  margin: 0 0 20px;
  font-size: 40px;
  line-height: 1.4;
}
.reference-post-content {
  --post-paragraph-spacing: 27px;
  --post-h2-size: 28px;
  --post-h3-size: 22px;
  --post-h4-size: 20px;
  --post-quote-size: 24px;
  display: flow-root;
  margin-block: 22px;
  font-size: 18px;
  line-height: 1.5;
  overflow-wrap: break-word;
}
.reference-post-content > * { margin-block: 0; }
.reference-post-content > * + * { margin-block-start: var(--post-paragraph-spacing); }
.reference-post-content :is(h2, h3, h4, blockquote) { line-height: 1.4; }
.reference-post-content h2 { font-size: var(--post-h2-size); font-weight: 400; }
.reference-post-content h3 { font-size: var(--post-h3-size); font-weight: 700; }
.reference-post-content h4 { font-size: var(--post-h4-size); font-weight: 700; }
.reference-post-content blockquote { font-size: var(--post-quote-size); }
.reference-post-footer {
  border-block-start: var(--post-border);
  margin-block-start: 24px;
  padding-block-start: 16px;
  color: #4f6464;
  font-size: 14px;
}
.reference-post-sharing {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-inline-start: -12px;
}
.reference-post-sharing :is(a, button):not([hidden]) {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #000;
  text-decoration: none;
  cursor: pointer;
}
.reference-post-sharing svg { display: block; fill: currentColor; }
.reference-post-sharing :is(a, button):hover { opacity: .7; }
.reference-post-sharing :is(a, button):focus-visible { outline: 2px solid #355f62; outline-offset: -2px; }
.reference-copy-field {
  box-sizing: border-box;
  width: 100%;
  margin-block-start: 8px;
  padding: 7px;
  border: var(--post-border);
  color: inherit;
  font: inherit;
}
.reference-copy-status:not(:empty) { margin-block-start: 8px; }
.reference-post-views { margin-block-start: 12px; }
.reference-recent-posts { margin-block-start: 30px; }
.reference-recent-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-block-end: 18px;
}
.reference-recent-heading h2 { margin: 0; font-size: 18px; font-weight: 400; }
.reference-blog ul.reference-recent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.reference-recent-card {
  box-sizing: border-box;
  display: block;
  height: 100%;
  border: var(--post-border);
  color: inherit;
  text-decoration: none;
}
.reference-recent-card:is(:hover, :focus-visible) h3 { text-decoration: underline; }
.reference-recent-card:focus-visible { outline-offset: -3px; }
.reference-recent-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.reference-recent-card h3 {
  margin: 0;
  padding: 16px;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.4;
}
.reference-search, .reference-default { min-height: 360px; }
.reference-search h1, .reference-default h1 { font-size: 31px; margin-bottom: 20px; }
.reference-search form { margin-bottom: 24px; }
.reference-search label { display: block; margin-bottom: 5px; }
.reference-search form div { display: flex; }
.reference-search input { flex: 1; min-width: 0; padding: 9px; border: 1px solid #a1a1a1; font: 16px Arial, sans-serif; }
.reference-button { display: inline-block; padding: 8px 15px; color: #fff; background: #2e2e2e; border: 1px solid #2e2e2e; font: 15px Arial, sans-serif; cursor: pointer; text-decoration: none; }
.reference-button:hover { background: #494949; }
.reference-results { display: grid; }
.reference-results a { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid #e8e8e8; color: inherit; text-decoration: none; }
.reference-results a:hover { text-decoration: underline; }
.reference-result-photo { display: block; width: 110px; height: 80px; object-fit: cover; }
.reference-default article { padding: 16px 0; border-bottom: 1px solid #e8e8e8; }
.reference-extra { padding-block: 12px; }

.reference-xmas-cookies {
  width: min(980px, 100%);
  margin-inline: auto;
  padding-block: 13px 47px;
  color: #424242;
  font: 14px/1.4 helvetica-w01-roman, Helvetica, Arial, sans-serif;
  text-align: center;
}
.reference-cookie-gift img {
  display: block;
  width: min(770px, 100%);
  height: auto;
  aspect-ratio: 770 / 493;
  object-fit: cover;
  margin-inline: auto;
}
.reference-cookie-details {
  width: min(682px, calc(100% - 32px));
  margin: 6px auto 0;
}
.reference-cookie-details h2 {
  color: #000;
  font: 37px/1.4 belinda-w00-regular, "Segoe Script", cursive;
}
.reference-cookie-details h2 span { white-space: nowrap; }
.reference-cookie-details ul { margin: 0; padding: 0; list-style: disc inside; }
.reference-cookie-offer {
  width: min(676px, calc(100% - 20px));
  margin: 108px auto 0;
  font-size: 15px;
  font-weight: 700;
  font-style: italic;
}
.reference-cookie-offer h2 { font: inherit; font-size: 20px; }
body[data-theme-mode=mobile] .reference-xmas-cookies { padding-block: 69px 34px; font-size: 12px; }
body[data-theme-mode=mobile] .reference-cookie-gift img { width: 100%; aspect-ratio: 320 / 207; }
body[data-theme-mode=mobile] .reference-cookie-details { width: min(256px, calc(100% - 32px)); margin-block-start: 10px; }
body[data-theme-mode=mobile] .reference-cookie-details h2 { font-size: 23px; }
body[data-theme-mode=mobile] .reference-cookie-offer { margin-block-start: 25px; font-size: 14px; }
body[data-theme-mode=mobile] .reference-cookie-offer h2 { font-size: 19px; }
body[data-theme-mode=mobile] .reference-cookie-offer p { max-inline-size: 13em; margin-inline: auto; }

body[data-theme-mode=mobile] .reference-blog h1 { margin: 27px 0 27px; font-size: 28px; }
body[data-theme-mode=mobile] .reference-post { border: 0; padding: 0; }
body[data-theme-mode=mobile] .reference-post h1 { font-size: 26px; }
body[data-theme-mode=mobile] .reference-post-content {
  --post-paragraph-spacing: 24px;
  --post-h2-size: 24px;
  --post-h3-size: 20px;
  --post-h4-size: 18px;
  --post-quote-size: 20px;
  font-size: 16px;
}
body[data-theme-mode=mobile] .reference-blog ul.reference-recent-grid {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: min(248px, 87%);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-block-end: 8px;
}
body[data-theme-mode=mobile] .reference-recent-grid > li { scroll-snap-align: start; }
body[data-theme-mode=mobile] .reference-post-row { grid-template-columns: 1fr; min-height: 0; margin-bottom: 20px; }
body[data-theme-mode=mobile] .reference-post-row > div { padding: 15px; }
body[data-theme-mode=mobile] .reference-post-row h2 { font-size: 21px; margin-top: 0; }

/* The catalogue keeps the reference spacing and caption fonts while taking
   the photo and layout dimensions directly from the local rendered grid. */
#comp-mughivhs .Zr1u5q:has(> .reference-gallery),
#comp-mul6f36i .iczLxk:has(> .reference-gallery) { height: auto; pointer-events: auto; }
.reference-gallery .FZZf7m { visibility: visible; }
.reference-gallery .joCvQH { width: min(245px, 100%); aspect-ratio: 1; }
.reference-gallery .WBWqWQ,
.reference-gallery .e_pKV_ { display: block; width: 100%; height: 100%; }
.reference-gallery .WBWqWQ img,
.reference-gallery .e_pKV_ img { display: block; width: 100%; height: 100%; }

/* Desktop keeps its inline form; mobile opens the form below the header. */
#comp-mukrxlus[inert] { visibility: hidden; pointer-events: none; }
.reference-header-search {
  display: flex;
  align-items: stretch;
  gap: 4px;
  z-index: 2;
}
body[data-theme-mode=desktop] .reference-header-search {
  position: absolute;
  right: max(16px, calc(50% - 430px));
  bottom: 10px;
  width: 272px;
}
.reference-mobile-header .reference-header-search {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  padding: 8px 14px 12px;
  background: #05696e;
  box-shadow: 0 4px 8px #172f3040;
}
.reference-mobile-header .reference-header-search input,
.reference-mobile-header .reference-header-search button { min-height: 44px; font-size: 16px; }
.reference-header-search input,
.reference-header-search button {
  box-sizing: border-box;
  min-height: 34px;
  border: 1px solid #e5efef;
  border-radius: 3px;
  font: 14px Arial, Helvetica, sans-serif;
}
.reference-header-search input { flex: 1; min-width: 0; padding: 5px 8px; color: #262626; background: #fff; }
.reference-header-search input::placeholder { color: #626262; }
.reference-header-search button { padding: 5px 10px; background: #15595c; color: #fff; cursor: pointer; }
.reference-header-search button:hover { background: #0d4548; }
.reference-header-search :focus-visible { outline: 2px solid #f5ed91; outline-offset: 2px; }
@media (max-width: 980px) {
  body[data-theme-mode=desktop] .reference-header-search {
    right: max(16px, calc(100% - 100vw + 16px));
  }
}

/* Default columns keep the existing reference sizing. Alternate layouts
   let captions grow with their narrower or wider photo columns. */
#comp-mughivhs [data-custom-cake-layout] {
  display: grid;
  grid-template-columns: repeat(var(--cake-columns), minmax(0, 1fr));
  gap: 32px 10px;
  margin-bottom: 0;
}
#comp-mughivhs [data-custom-cake-layout] > ._3MZxtZ {
  width: auto;
  height: auto;
  min-width: 0;
  margin: 0;
}
#comp-mughivhs [data-custom-cake-layout] .fIEY1I { position: relative; height: 100%; }
#comp-mughivhs [data-custom-cake-layout] .ibmfup {
  width: min(245px, 100%);
  height: auto;
  aspect-ratio: 1;
  flex: none;
  margin-inline: auto;
}
#comp-mughivhs [data-custom-cake-layout] .joCvQH { width: 100%; }
#comp-mughivhs [data-custom-cake-layout] .usn3C_ { height: auto; min-height: 52px; }
#comp-mughivhs [data-custom-cake-layout] ._njBKA { position: static; }
#comp-mughivhs [data-custom-cake-layout] .fecL9L { white-space: normal; overflow-wrap: anywhere; }
#comp-mughivhs [data-custom-cake-layout] .XhjKQr { overflow-wrap: anywhere; }

/* Let the mobile captions establish the height of each catalogue row. */
body[data-theme-mode=mobile] .reference-gallery [data-catalog-grid] {
  display: grid;
  grid-template-columns: repeat(var(--cake-columns, 2), minmax(0, 1fr));
  gap: 20px 10px;
  margin: 0;
}
body[data-theme-mode=mobile] .reference-gallery [data-catalog-grid] > [data-testid=gallery-item-item] {
  position: relative;
  inset: auto;
  width: auto;
  height: auto;
  min-width: 0;
  margin: 0;
}
body[data-theme-mode=mobile] .reference-gallery [data-testid=gallery-item-click-action-link] {
  display: flex;
  flex-direction: column;
  position: relative;
  inset: auto;
  height: auto;
}
body[data-theme-mode=mobile] .reference-gallery gallery-image-sizer {
  display: block;
  flex: none;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  box-sizing: border-box;
}
body[data-theme-mode=mobile] .reference-gallery :is(.joCvQH, .xiud8z) { width: 100%; height: 100%; }
body[data-theme-mode=mobile] .reference-gallery [data-testid=gallery-item-panel] {
  height: auto;
  min-height: 0;
  padding-top: 4px;
}
body[data-theme-mode=mobile] .reference-gallery [data-testid=gallery-item-panel] > div { position: static; }
body[data-theme-mode=mobile] .reference-gallery [data-testid=gallery-item-title] { white-space: normal; overflow-wrap: anywhere; }
body[data-theme-mode=mobile] .reference-gallery [data-testid=gallery-item-description] { white-space: pre-line; overflow-wrap: anywhere; }

.reference-search-tools { flex-wrap: wrap; gap: 6px; }
.reference-search-tools select {
  max-width: 100%;
  border: 1px solid #a1a1a1;
  padding: 7px 8px;
  color: #262626;
  background: #fff;
  font: 14px Arial, sans-serif;
}
body[data-theme-mode=mobile] .reference-search-tools input { flex: 1 0 100%; }
body[data-theme-mode=mobile] .reference-search-tools select { flex: 1 1 auto; }
