:root {
  --cl-ink: #17202a;
  --cl-muted: #6b7280;
  --cl-line: #e7e9ee;
  --cl-paper: #ffffff;
  --cl-canvas: #f6f7f9;
  --cl-accent: #ff6b35;
  --cl-accent-dark: #e85320;
  --cl-night: #111318;
  --cl-radius: 16px;
  --cl-shadow: 0 16px 45px rgba(20, 26, 36, .10);
  color-scheme: light;
}

html,
body {
  min-height: 100%;
  background: var(--cl-canvas);
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--cl-ink);
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  transition: color .2s ease, background-color .2s ease, opacity .2s ease, transform .2s ease;
}

/* Top navigation */
#menubar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  min-height: 68px;
  padding: 0 clamp(18px, 4vw, 64px);
  gap: 6px;
  color: var(--cl-ink);
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(225, 228, 234, .9);
  box-shadow: 0 8px 26px rgba(24, 31, 42, .05);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}

.cl-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: clamp(16px, 3vw, 42px);
  color: var(--cl-ink) !important;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: .03em;
  text-decoration: none !important;
  white-space: nowrap;
}

.cl-brand__mark,
.cl-picture-brand > span {
  position: relative;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 9px 9px 9px 3px;
  background: linear-gradient(140deg, #ff9c54, var(--cl-accent) 60%, #e3472b);
  box-shadow: 0 7px 16px rgba(255, 107, 53, .28);
  transform: rotate(-5deg);
}

.cl-brand__mark::after,
.cl-picture-brand > span::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  right: 4px;
  top: 4px;
  border-radius: 50%;
  background: #fff;
  opacity: .9;
}

#menubar dl {
  position: relative;
  float: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

#menubar dt,
#menubar dt a {
  display: flex;
  align-items: center;
  min-height: 68px;
  padding: 0 12px;
  color: #424a57;
  background: transparent;
  border: 0;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

#menubar dt a:hover,
#menubar dt:hover,
#menubar dl:hover > dt a {
  color: var(--cl-accent);
  background: transparent;
}

#menubar dd {
  top: 58px;
  min-width: 210px;
  padding: 10px;
  color: var(--cl-ink);
  background: rgba(255, 255, 255, .98);
  border: 1px solid var(--cl-line);
  border-radius: 14px;
  box-shadow: var(--cl-shadow);
}

#menubar dd li a {
  display: block;
  padding: 9px 11px;
  border-radius: 9px;
  color: #424a57;
  text-decoration: none;
}

#menubar dd li a:hover {
  color: var(--cl-accent-dark);
  background: #fff4ee;
}

#mbRelatedCategories,
#mbMostVisited {
  display: none !important;
}

#menubar dl:has(#qsearchInput) {
  margin-left: auto;
}

#qsearchInput {
  width: clamp(130px, 15vw, 210px) !important;
  height: 38px;
  padding: 0 15px !important;
  color: var(--cl-ink);
  background: #f2f3f5;
  border: 1px solid transparent !important;
  border-radius: 999px;
  outline: none;
}

#qsearchInput:focus {
  background: #fff;
  border-color: #ffc7b2 !important;
  box-shadow: 0 0 0 4px rgba(255, 107, 53, .10);
}

#menuSwitcher {
  top: 17px;
  left: 18px;
  z-index: 1100;
  color: var(--cl-ink);
  background: #fff;
  border-radius: 10px;
}

/* Main gallery */
#theCategoryPage #content {
  width: min(1480px, calc(100% - clamp(28px, 6vw, 88px)));
  min-height: calc(100vh - 148px);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 52px) 0 72px;
  background: transparent;
  box-sizing: border-box;
  overflow: hidden;
}

.cl-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 220px;
  margin-bottom: 34px;
  padding: clamp(28px, 5vw, 62px);
  overflow: hidden;
  color: #fff;
  border-radius: 26px;
  background:
    radial-gradient(circle at 84% 18%, rgba(56, 189, 248, .54), transparent 25%),
    radial-gradient(circle at 68% 108%, rgba(168, 85, 247, .42), transparent 36%),
    radial-gradient(circle at 5% 8%, rgba(45, 212, 191, .2), transparent 25%),
    linear-gradient(126deg, #061126 0%, #12365e 52%, #203b67 100%);
  box-shadow: 0 28px 72px rgba(8, 28, 59, .24);
  box-sizing: border-box;
}

.cl-hero::before,
.cl-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
}

.cl-hero::before {
  width: 430px;
  height: 430px;
  right: -105px;
  top: -238px;
  border-color: rgba(142, 232, 255, .18);
  box-shadow: 0 0 80px rgba(56, 189, 248, .08) inset;
}

.cl-hero::after {
  width: 230px;
  height: 230px;
  right: 180px;
  bottom: -158px;
  border-color: rgba(216, 180, 254, .18);
}

.cl-hero__copy,
.cl-hero__meta {
  position: relative;
  z-index: 1;
}

.cl-hero__eyebrow {
  margin-bottom: 14px;
  color: #8ee8ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .22em;
}

.cl-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.cl-hero p {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .68);
  font-size: 15px;
  line-height: 1.8;
}

.cl-hero__meta {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 9px;
  min-width: 126px;
  padding: 15px 18px;
  background: rgba(8, 23, 47, .3);
  border: 1px solid rgba(174, 230, 255, .2);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.cl-hero__meta strong {
  font-size: 20px;
}

.cl-hero__meta > span:last-child {
  grid-column: 2;
  color: rgba(255, 255, 255, .56);
  font-size: 12px;
}

.cl-live-dot {
  grid-row: 1 / 3;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5eead4;
  box-shadow: 0 0 0 6px rgba(94, 234, 212, .12);
}

.cl-hero.cl-hero--image {
  align-items: flex-end;
  justify-content: flex-start;
  min-height: 0;
  aspect-ratio: 16 / 5.7;
  margin-bottom: 0;
  padding: clamp(28px, 4vw, 58px);
  isolation: isolate;
  background-color: #071326;
  background-position: center;
  background-size: cover;
  border-radius: 26px 26px 0 0;
}

.cl-hero__image-copy {
  position: relative;
  z-index: 2;
  max-width: min(620px, 68%);
  padding: 0;
  color: #fff;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .22);
}

.cl-hero__image-copy > span {
  display: block;
  margin-bottom: 12px;
  color: #a8efff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .22em;
}

.cl-hero__image-copy h1 {
  font-size: clamp(30px, 4vw, 56px);
}

.cl-hero__image-note {
  max-width: 520px;
  margin: 14px 0 0 !important;
  color: rgba(255, 255, 255, .72) !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
}

.cl-hero.cl-hero--image::before {
  display: block;
  inset: 0;
  width: auto;
  height: auto;
  z-index: 0;
  background: linear-gradient(90deg, rgba(4, 12, 25, .82) 0%, rgba(4, 12, 25, .58) 34%, rgba(4, 12, 25, .22) 62%, transparent 82%);
  border: 0;
  border-radius: inherit;
  box-shadow: none;
}

.cl-hero.cl-hero--image::after {
  display: block;
  inset: 0;
  width: auto;
  height: auto;
  z-index: 0;
  background: linear-gradient(180deg, rgba(4, 12, 25, .1), rgba(4, 12, 25, .2));
  border: 0;
  border-radius: inherit;
}

.cl-event-details {
  position: relative;
  z-index: 1;
  color: var(--cl-ink);
  background: #fff;
}

.cl-event-details--with-cover {
  margin-bottom: 30px;
  padding: clamp(24px, 3vw, 38px) clamp(24px, 4vw, 48px);
  border: 1px solid var(--cl-line);
  border-top: 0;
  border-radius: 0 0 26px 26px;
  box-shadow: 0 24px 60px rgba(18, 25, 34, .11);
}

.cl-event-details--with-cover::after {
  content: "";
  position: absolute;
  right: 5%;
  bottom: 0;
  width: 260px;
  height: 100%;
  background:
    linear-gradient(135deg, transparent 35%, rgba(82, 99, 122, .035) 35% 62%, transparent 62%),
    linear-gradient(45deg, transparent 48%, rgba(82, 99, 122, .025) 48% 72%, transparent 72%);
  pointer-events: none;
}

.cl-event-details--compact {
  display: flex;
  align-items: center;
  min-height: 58px;
  margin: -16px 0 26px;
  padding: 12px 18px;
  border: 1px solid var(--cl-line);
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(18, 25, 34, .07);
}

.cl-event-details__header,
.cl-event-details__meta {
  position: relative;
  z-index: 1;
}

.cl-event-details__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.cl-event-details__header h1 {
  width: 100%;
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.cl-event-details__views {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: #4e73ff;
  background: #f0f3ff;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
}

.cl-event-details__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: 24px;
  color: #59616d;
  font-size: 16px;
}

.cl-event-details--compact .cl-event-details__meta {
  margin-top: 0;
}

.cl-event-details__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
}

.cl-event-details__item svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.titrePage {
  display: flex;
  align-items: center;
  min-height: 48px;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  background: transparent;
}

.titrePage #breadcrumb {
  order: 1;
  margin-right: auto;
}

.titrePage .categoryActions {
  order: 2;
  float: none;
  margin-left: auto;
}

.titrePage #albumActionsSwitcher {
  position: static;
  order: 3;
  float: none;
  margin-left: 8px;
}

#breadcrumb h2 {
  margin: 0;
  color: var(--cl-ink);
  font-size: 20px;
  font-weight: 720;
  letter-spacing: -.02em;
}

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

.badge,
.nb_items {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 25px;
  height: 25px;
  margin-left: 8px;
  padding: 0 7px;
  color: #8b4a2d;
  background: #fff0e8;
  border: 0;
  border-radius: 999px;
  font-size: 12px;
}

.categoryActions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.categoryActions .pwg-button,
#albumActionsSwitcher,
.action-buttons .pwg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: #4d5561;
  background: var(--cl-paper);
  border: 1px solid var(--cl-line);
  border-radius: 11px;
  box-shadow: 0 4px 14px rgba(26, 32, 42, .05);
}

.categoryActions .pwg-button:hover,
#albumActionsSwitcher:hover,
.action-buttons .pwg-button:hover {
  color: var(--cl-accent);
  border-color: #ffd1c0;
  transform: translateY(-1px);
}

.switchBox {
  padding: 14px;
  color: var(--cl-ink);
  background: rgba(255, 255, 255, .98);
  border: 1px solid var(--cl-line);
  border-radius: 14px;
  box-shadow: var(--cl-shadow);
}

/* Album cards */
.albThumbs {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin: 0 !important;
  padding: 0 !important;
}

.albThumbs > li {
  float: none !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--cl-line);
  border-radius: var(--cl-radius);
  box-shadow: 0 10px 28px rgba(24, 31, 42, .07);
  transition: transform .25s ease, box-shadow .25s ease;
}

.albThumbs > li:hover {
  transform: translateY(-5px);
  box-shadow: var(--cl-shadow);
}

.albThumbs > li > a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.albThumbs .albImg {
  display: block;
  width: 100% !important;
  height: clamp(210px, 24vw, 310px) !important;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.75,.25,1);
}

.albThumbs > li:hover .albImg {
  transform: scale(1.035);
}

.albLegend {
  position: relative !important;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 74px;
  width: 100% !important;
  height: auto !important;
  padding: 15px 18px !important;
  color: var(--cl-muted) !important;
  background: #fff !important;
  box-sizing: border-box;
}

.albLegend h4 {
  margin: 0 0 5px !important;
  color: var(--cl-ink) !important;
  font-size: 17px;
  font-weight: 720;
}

/* Photo stream */
#thumbnails {
  margin: -6px !important;
  padding: 0 !important;
  max-width: calc(100% + 12px);
  box-sizing: border-box;
}

#thumbnails > li {
  margin: 6px !important;
  overflow: hidden !important;
  background: #e9ebef;
  border-radius: 13px;
  box-shadow: 0 5px 16px rgba(17, 24, 39, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}

#thumbnails > li:hover {
  z-index: 4;
  transform: translateY(-4px);
  box-shadow: 0 18px 35px rgba(17, 24, 39, .17);
}

#thumbnails > li img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.2,.75,.25,1), filter .3s ease;
}

#thumbnails > li:hover img {
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.02);
}

#thumbnails .overDesc {
  display: flex;
  align-items: flex-end;
  min-height: 54px;
  padding: 26px 13px 10px !important;
  color: #fff;
  background: linear-gradient(transparent, rgba(9, 12, 17, .72));
  font-size: 13px;
  font-weight: 650;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
}

#thumbnails > li:hover .overDesc,
#thumbnails > li:focus-within .overDesc {
  opacity: 1;
  transform: translateY(0);
}

/* Immersive single-photo view */
#thePicturePage {
  color: rgba(255, 255, 255, .82);
  background: var(--cl-night);
}

#thePicturePage #content {
  min-height: calc(100vh - 72px);
  background: var(--cl-night);
}

#imageHeaderBar {
  display: flex;
  align-items: center;
  min-height: 68px;
  padding: 0 clamp(18px, 4vw, 56px);
  color: rgba(255, 255, 255, .72);
  background: rgba(17, 19, 24, .95);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

#imageHeaderBar .cl-picture-brand {
  order: 1;
}

#imageHeaderBar .browsePath {
  order: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

#imageHeaderBar .imageNumber {
  order: 3;
  margin-left: auto;
  padding-left: 18px;
  color: rgba(255, 255, 255, .55);
  white-space: nowrap;
}

.cl-picture-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-right: clamp(18px, 3vw, 42px);
  color: #fff !important;
  font-weight: 720;
  text-decoration: none !important;
}

.cl-picture-brand > span {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
  border-radius: 7px 7px 7px 2px;
}

#thePicturePage #breadcrumb,
#thePicturePage #breadcrumb h2,
#thePicturePage #breadcrumb a {
  color: rgba(255, 255, 255, .74);
}

#thePicturePage #imageToolBar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: auto !important;
  min-height: 54px;
  padding: 0 clamp(16px, 3vw, 42px);
  color: #fff;
  background: rgba(17, 19, 24, .88);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  backdrop-filter: blur(14px);
}

#imageToolBar .pwg-button {
  color: rgba(255, 255, 255, .74) !important;
  background: transparent !important;
  border-color: transparent !important;
}

#imageToolBar .pwg-icon,
#imageToolBar .pwg-state-disabled {
  color: rgba(255, 255, 255, .68) !important;
}

#imageToolBar .pwg-button:hover,
#imageToolBar .pwg-button:hover .pwg-icon {
  color: #fff !important;
}

#theImageAndInfos {
  background: var(--cl-night);
}

#theImage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 150px);
  padding: 28px clamp(18px, 4vw, 54px);
  box-sizing: border-box;
}

#theImageAndInfos #theMainImage {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: calc(100vh - 190px) !important;
  object-fit: contain !important;
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .48);
}

#theImage.cl-photo-viewer-ready {
  position: relative;
}

#theImage.cl-photo-viewer-ready #theMainImage {
  cursor: zoom-in;
}

#theImage.cl-photo-viewer-ready::after {
  content: "点击放大";
  position: absolute;
  right: clamp(28px, 5vw, 72px);
  bottom: 42px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, .92);
  background: rgba(8, 10, 14, .68);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .04em;
  pointer-events: none;
  backdrop-filter: blur(10px);
}

/* Unified photo page and full-screen preview */
.cl-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  grid-template-rows: 64px minmax(0, 1fr) auto;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  color: #fff;
  background: #090a0c;
}

html.cl-lightbox-open,
html.cl-lightbox-open body {
  overflow: hidden !important;
}

.cl-lightbox__bar {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 0 clamp(14px, 2.4vw, 32px);
  background: rgba(10, 11, 13, .96);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.cl-lightbox__info-icon {
  display: inline-flex;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, .92);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 19px;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
}

.cl-lightbox__title {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, .9);
  font-size: 15px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cl-lightbox__count {
  color: rgba(255, 255, 255, .42);
  font-size: 13px;
  white-space: nowrap;
}

.cl-lightbox__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.cl-lightbox__button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 58px;
  height: 48px;
  padding: 4px 10px;
  color: rgba(255, 255, 255, .86);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.cl-lightbox__button > span {
  display: block;
  min-height: 22px;
  font-size: 21px;
  line-height: 22px;
}

.cl-lightbox__button small {
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.cl-lightbox__button:hover,
.cl-lightbox__button:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .12);
  outline: none;
}

.cl-lightbox__button:disabled {
  opacity: .38;
  cursor: default;
}

.cl-lightbox__play.is-playing,
.cl-lightbox__original.is-loaded {
  color: #ff936f;
  background: rgba(255, 147, 111, .12);
}

.cl-lightbox__close {
  flex: 0 0 42px;
  width: 42px;
  min-width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 0;
  border-color: rgba(255, 255, 255, .18);
  border-radius: 50%;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
}

.cl-lightbox__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  padding: clamp(8px, 1.5vw, 20px);
  overflow: hidden;
  overscroll-behavior: contain;
  touch-action: none;
  cursor: grab;
}

.cl-lightbox__stage:active {
  cursor: grabbing;
}

.cl-lightbox__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}

.cl-lightbox__loader {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: none;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 3px solid rgba(255, 255, 255, .2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cl-viewer-spin .75s linear infinite;
}

.cl-lightbox.is-loading .cl-lightbox__loader {
  display: block;
}

.cl-lightbox.is-loading .cl-lightbox__image {
  opacity: .4;
}

@keyframes cl-viewer-spin {
  to { transform: rotate(360deg); }
}

.cl-lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 58px;
  padding: 0 0 4px;
  color: rgba(255, 255, 255, .88);
  background: rgba(0, 0, 0, .34);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  font-size: 38px;
  line-height: 1;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.cl-lightbox__nav:hover,
.cl-lightbox__nav:focus-visible {
  background: rgba(255, 255, 255, .14);
  outline: none;
}

.cl-lightbox__nav:disabled {
  display: none;
}

.cl-lightbox__nav--previous {
  left: clamp(10px, 2vw, 28px);
}

.cl-lightbox__nav--next {
  right: clamp(10px, 2vw, 28px);
}

.cl-lightbox__bottom {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 10px clamp(14px, 2.4vw, 32px) max(10px, env(safe-area-inset-bottom));
  background: rgba(10, 11, 13, .97);
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.cl-lightbox__rail {
  display: flex;
  gap: 7px;
  min-width: 0;
  min-height: 58px;
  padding: 2px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-color: rgba(255, 255, 255, .34) transparent;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
}

.cl-lightbox__rail.is-unavailable {
  display: none;
}

.cl-lightbox__thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 54px;
  padding: 2px;
  overflow: hidden;
  background: #181a1f;
  border: 2px solid transparent;
  border-radius: 8px;
  opacity: .64;
  scroll-snap-align: center;
  cursor: pointer;
}

.cl-lightbox__thumb:hover,
.cl-lightbox__thumb:focus-visible,
.cl-lightbox__thumb.is-selected {
  border-color: #ff936f;
  opacity: 1;
  outline: none;
}

.cl-lightbox__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.cl-lightbox__controls {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 48px;
}

.cl-lightbox__progress {
  min-width: 74px;
  color: rgba(255, 255, 255, .9);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.cl-lightbox__scale {
  margin-left: 14px;
  padding: 5px 9px;
  color: rgba(255, 255, 255, .62);
  background: rgba(255, 255, 255, .08);
  border-radius: 999px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

/* Slideshow: always preserve the source aspect ratio and fit the viewport. */
#slideshow {
  display: grid;
  grid-template-rows: 68px 56px minmax(0, 1fr);
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--cl-night);
}

#slideshow #imageHeaderBar {
  min-height: 0;
  height: 68px;
}

#thePicturePage #slideshow #imageToolBar {
  position: relative;
  top: auto;
  min-height: 0;
  height: 56px !important;
  margin: 0;
  padding: 0 clamp(16px, 3vw, 42px);
}

#slideshow #imageToolBar .navigationButtons {
  display: flex;
  align-items: center;
  justify-content: center;
  float: none;
  height: 100%;
}

#thePicturePage #slideshow #content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0 !important;
  height: auto !important;
  overflow: hidden;
}

#slideshow #theImage {
  width: 100% !important;
  height: 100% !important;
  min-height: 0;
  margin: 0 !important;
  padding: 18px clamp(12px, 3vw, 40px);
  box-sizing: border-box;
}

#slideshow #theMainImage {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  border-radius: 6px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .42);
}

#slideshow + #copyright {
  display: none;
}

#imageInfos {
  max-width: 1120px;
  margin: 0 auto 34px;
  padding: 20px 24px;
  color: rgba(255, 255, 255, .68);
  background: #1b1e25;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
}

#imageInfos dt {
  color: rgba(255, 255, 255, .42);
}

#imageInfos a {
  color: #fff;
}

#thePicturePage #copyright {
  color: rgba(255, 255, 255, .35);
  background: var(--cl-night);
  border-top: 1px solid rgba(255, 255, 255, .06);
}

/* Forms and footer */
input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
  color: var(--cl-ink);
  background: #fff;
  border: 1px solid #dfe2e8;
  border-radius: 10px;
}

input[type="submit"],
button,
.submit {
  color: #fff;
  background: var(--cl-accent);
  border: 0;
  border-radius: 10px;
}

#copyright {
  padding: 28px 20px;
  color: #9298a3;
  background: #fff;
  border-top: 1px solid var(--cl-line);
  text-align: center;
}

#copyright a {
  color: #707783;
}

@media (max-width: 900px) {
  #menubar {
    position: relative;
    min-height: 60px;
    padding: 0 16px;
    overflow-x: auto;
  }

  .cl-brand {
    margin-right: 8px;
  }

  .cl-brand__name {
    display: none;
  }

  #menubar dt,
  #menubar dt a {
    min-height: 60px;
    padding: 0 9px;
  }

  #menubar dl:has(#qsearchInput) {
    display: none;
  }

  #theCategoryPage #content {
    width: min(100% - 24px, 1480px);
    padding-top: 18px;
  }

  .cl-hero {
    min-height: 190px;
    padding: 28px;
    border-radius: 20px;
  }

  .cl-hero__meta {
    display: none;
  }

  .cl-hero h1 {
    font-size: clamp(30px, 9vw, 46px);
  }

  .cl-hero p {
    font-size: 14px;
  }

  #thumbnails > li {
    margin: 4px !important;
    border-radius: 10px;
  }

  #imageHeaderBar {
    padding: 0 14px;
  }

  .cl-picture-brand {
    display: none;
  }

  #theImage {
    padding: 16px 8px;
  }

  #theImageAndInfos #theMainImage {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    border-radius: 4px;
  }

  #theImage.cl-photo-viewer-ready::after {
    right: 18px;
    bottom: 26px;
  }

  .cl-lightbox {
    grid-template-rows: 56px minmax(0, 1fr) auto;
  }

  .cl-lightbox__bar {
    gap: 9px;
    padding: 0 12px;
  }

  .cl-lightbox__info-icon {
    flex-basis: 25px;
    width: 25px;
    height: 25px;
    font-size: 16px;
  }

  .cl-lightbox__title {
    font-size: 13px;
  }

  .cl-lightbox__count {
    display: none;
  }

  .cl-lightbox__button.cl-lightbox__close {
    flex-basis: 38px;
    width: 38px;
    min-width: 38px;
    height: 38px;
    font-size: 27px;
  }

  .cl-lightbox__stage {
    padding: 4px;
  }

  .cl-lightbox__nav {
    display: none;
  }

  .cl-lightbox__bottom {
    gap: 7px;
    padding: 7px 8px max(7px, env(safe-area-inset-bottom));
  }

  .cl-lightbox__rail {
    gap: 5px;
    min-height: 49px;
  }

  .cl-lightbox__thumb {
    flex-basis: 60px;
    width: 60px;
    height: 46px;
    border-radius: 7px;
  }

  .cl-lightbox__controls {
    min-height: 44px;
  }

  .cl-lightbox__progress {
    min-width: 52px;
    font-size: 12px;
  }

  .cl-lightbox__scale {
    margin-left: 6px;
    padding: 4px 7px;
    font-size: 10px;
  }

  .cl-lightbox__actions {
    gap: 1px;
  }

  .cl-lightbox__button {
    min-width: 47px;
    height: 42px;
    padding: 3px 6px;
    border-radius: 10px;
  }

  .cl-lightbox__button > span {
    min-height: 19px;
    font-size: 18px;
    line-height: 19px;
  }

  .cl-lightbox__button small {
    font-size: 10px;
  }

  #slideshow {
    grid-template-rows: 58px 50px minmax(0, 1fr);
  }

  #slideshow #imageHeaderBar {
    height: 58px;
  }

  #thePicturePage #slideshow #imageToolBar {
    height: 50px !important;
  }

  #slideshow #theImage {
    padding: 8px;
  }
}

/* Phone gallery: compact information hierarchy and true two-column masonry. */
@media (max-width: 760px) {
  body[data-classroom-restricted="true"] #menubar,
  body[data-classroom-restricted="true"] #menuSwitcher {
    display: none !important;
  }

  #theCategoryPage #content {
    width: 100%;
    padding: 12px 0 44px;
    overflow: visible;
  }

  .cl-hero {
    min-height: 178px;
    margin: 0 12px 22px;
    padding: 24px 22px;
    border-radius: 20px;
    box-shadow: 0 16px 38px rgba(18, 25, 34, .16);
  }

  .cl-hero__eyebrow {
    margin-bottom: 10px;
    font-size: 10px;
    letter-spacing: .2em;
  }

  .cl-hero h1 {
    font-size: clamp(30px, 10vw, 40px);
    line-height: 1.06;
  }

  .cl-hero p {
    display: -webkit-box;
    max-width: 100%;
    margin-top: 13px;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .cl-hero.cl-hero--image {
    min-height: 0;
    aspect-ratio: 16 / 7.2;
    margin: 0 12px;
    padding: 22px;
    border-radius: 20px 20px 0 0;
  }

  .cl-hero__image-copy {
    max-width: 84%;
  }

  .cl-hero__image-copy > span {
    margin-bottom: 8px;
    font-size: 9px;
  }

  .cl-hero__image-copy h1 {
    font-size: clamp(25px, 8vw, 36px);
  }

  .cl-hero__image-note {
    margin-top: 8px !important;
    font-size: 11px !important;
  }

  .cl-hero.cl-hero--image::before {
    background: linear-gradient(90deg, rgba(4, 12, 25, .86) 0%, rgba(4, 12, 25, .62) 46%, rgba(4, 12, 25, .16) 86%);
  }

  .cl-event-details--with-cover {
    margin: 0 12px 20px;
    padding: 20px 18px 22px;
    border-radius: 0 0 20px 20px;
  }

  .cl-event-details--with-cover::after {
    width: 44%;
  }

  .cl-event-details__header h1 {
    font-size: 24px;
  }

  .cl-event-details__views {
    min-height: 29px;
    padding: 0 10px;
    font-size: 12px;
  }

  .cl-event-details__meta {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    font-size: 14px;
  }

  .cl-event-details--compact {
    min-height: 0;
    margin: -8px 12px 20px;
    padding: 12px 14px;
  }

  .cl-event-details--compact .cl-event-details__meta {
    display: flex;
    gap: 9px 16px;
  }

  .cl-event-details__item {
    gap: 8px;
  }

  .cl-event-details__item svg {
    width: 20px;
    height: 20px;
  }

  .titrePage {
    position: relative;
    min-height: 46px;
    margin: 0 12px 14px;
  }

  .titrePage #breadcrumb {
    min-width: 0;
    margin: 0 auto 0 0;
  }

  #breadcrumb h2 {
    display: flex;
    align-items: center;
    min-width: 0;
    margin: 0;
    font-size: 21px;
    line-height: 1.2;
  }

  #breadcrumb h2 > a {
    max-width: calc(100vw - 120px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #breadcrumb .badge,
  #breadcrumb .nb_items {
    flex: 0 0 auto;
    min-width: 27px;
    height: 27px;
    margin: 0 0 0 8px;
    padding: 0 8px;
    color: #68707c !important;
    background: #eef0f4 !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    font-size: 12px;
    font-weight: 650;
    line-height: 27px;
  }

  .titrePage #albumActionsSwitcher {
    position: relative;
    z-index: 122;
    display: inline-flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 0 0 8px;
    padding: 0;
    text-align: center;
  }

  .titrePage #albumActionsSwitcher + .categoryActions {
    position: absolute;
    top: calc(100% + 7px) !important;
    right: 0 !important;
    left: auto !important;
    z-index: 121;
    display: none;
    grid-template-columns: repeat(3, 76px);
    gap: 8px;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 10px;
    color: var(--cl-ink);
    background: rgba(255, 255, 255, .98);
    border: 1px solid var(--cl-line);
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(17, 24, 39, .18);
    opacity: 1;
    backdrop-filter: blur(14px);
  }

  .titrePage #albumActionsSwitcher + .categoryActions[style*="display: block"] {
    display: grid !important;
  }

  .titrePage .categoryActions > li {
    position: relative;
    display: block !important;
    width: 76px;
    height: 66px;
    margin: 0 !important;
    padding: 0;
  }

  .titrePage .categoryActions .pwg-button {
    display: inline-flex !important;
    flex-direction: column;
    gap: 5px;
    width: 76px;
    height: 66px;
    margin: 0;
    padding: 0;
    color: #505866;
    background: #f8f9fb;
    border-color: #e4e7ec;
    border-radius: 12px;
    box-shadow: none;
  }

  .titrePage .categoryActions .cl-album-action::after {
    display: none !important;
    content: none !important;
  }

  .titrePage .categoryActions .cl-album-action > .pwg-icon,
  .titrePage .categoryActions .cl-album-action > .gallery-icon-search-folder {
    display: none !important;
  }

  .titrePage .categoryActions .cl-album-action__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
  }

  .titrePage .categoryActions .cl-album-action__icon svg {
    display: block;
    width: 25px;
    height: 25px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .titrePage .categoryActions .cl-album-action__icon svg path[d*="m10 8"] {
    fill: currentColor;
    stroke: none;
  }

  .titrePage .categoryActions .pwg-button-text {
    display: block !important;
    max-width: 66px;
    overflow: hidden;
    color: #626a76 !important;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .titrePage .categoryActions .switchBox {
    top: calc(100% + 8px) !important;
    right: 0;
    left: auto !important;
    min-width: min(270px, calc(100vw - 32px));
    max-height: min(420px, 70vh);
    overflow: auto;
  }

  #thumbnails.cl-mobile-masonry {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row dense;
    grid-auto-rows: 1px;
    gap: 4px;
    width: 100%;
    max-width: none;
    height: auto !important;
    margin: 0 !important;
    padding: 0 4px !important;
    overflow: visible;
    box-sizing: border-box;
  }

  #thumbnails.cl-mobile-masonry > li {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    float: none !important;
    width: auto !important;
    height: var(--cl-masonry-height) !important;
    margin: 0 !important;
    overflow: hidden !important;
    background: #e8eaee;
    border-radius: 6px;
    box-shadow: none;
    transform: none;
  }

  #thumbnails.cl-mobile-masonry > li:hover {
    transform: none;
    box-shadow: none;
  }

  #thumbnails.cl-mobile-masonry > li > a {
    position: relative !important;
    inset: auto !important;
    display: block;
    width: 100%;
    height: 100%;
  }

  #thumbnails.cl-mobile-masonry > li img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: inherit;
    transform: none;
  }

  #thumbnails.cl-mobile-masonry .overDesc {
    display: none !important;
  }

  #copyright {
    width: 100%;
    padding: 22px 14px;
    box-sizing: border-box;
    font-size: 12px;
    overflow-wrap: anywhere;
  }

  #copyright a {
    display: inline;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
