:root {
  --gmrg-bg: #050b18;
  --gmrg-panel: #0d1223;
  --gmrg-panel-2: #121329;
  --gmrg-border: rgba(172, 104, 255, .22);
  --gmrg-accent: #9c54ec;
  --gmrg-accent-2: #c680ff;
  --gmrg-text: #f7f2ff;
  --gmrg-muted: #b7b0c7;
}

/* v1.3.0 — photo-first Gallery with compact category index */
.gmr-gallery-page .gmrg-shell { display: flex; flex-direction: column; }
.gmr-gallery-page .gmrg-hero { order: 1; }
.gmr-gallery-page .gmrg-featured { order: 2; }
.gmr-gallery-page .gmrg-archive { order: 3; }
.gmr-gallery-page .gmrg-locations { order: 4; }
.gmr-gallery-page .gmrg-expeditions { order: 5; }
.gmr-gallery-page .gmrg-cta { order: 6; }

.gmr-gallery-page .gmrg-archive-row {
  position: relative;
  color: inherit !important;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.gmr-gallery-page .gmrg-archive-row:hover,
.gmr-gallery-page .gmrg-archive-row:focus-visible {
  border-color: rgba(198, 128, 255, .7);
  background: linear-gradient(90deg, rgba(30, 27, 56, .99), rgba(15, 18, 37, .99));
  box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
  transform: translateY(-2px);
  outline: none;
}
.gmr-gallery-page .gmrg-row-image { display: block; }
.gmr-gallery-page .gmrg-row-button { pointer-events: none; }

.gmr-gallery-page .gmrg-expeditions {
  margin: 0 12px 24px;
  padding: 18px 20px !important;
  border: 1px solid rgba(178, 115, 235, .2);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(16, 19, 39, .96), rgba(10, 13, 28, .96));
}
.gmr-gallery-page .gmrg-expeditions .gmrg-section-title { margin-bottom: 12px; }
.gmr-gallery-page .gmrg-expeditions .gmrg-section-title p { display: none; }
.gmr-gallery-page .gmrg-expedition-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.gmr-gallery-page .gmrg-expedition-card,
.gmr-gallery-page .gmrg-expedition-card.is-placeholder {
  min-height: 0 !important;
  width: auto;
  overflow: visible;
  border: 1px solid rgba(179, 112, 236, .24);
  border-radius: 999px;
  background: rgba(19, 21, 43, .92) !important;
}
.gmr-gallery-page .gmrg-expedition-copy {
  position: static;
  min-height: 0;
  padding: 9px 13px !important;
  background: none !important;
}
.gmr-gallery-page .gmrg-expedition-copy h3 {
  display: inline-flex;
  margin: 0;
  font-size: 12px !important;
  white-space: nowrap;
}
.gmr-gallery-page .gmrg-expedition-copy h3 span { font-size: 14px !important; }
.gmr-gallery-page .gmrg-expedition-copy p { display: none; }
.gmr-gallery-page .gmrg-collection-count {
  margin: 0 0 0 7px;
  color: #aea5bb;
  font-size: 10px;
}

@media (max-width: 820px) {
  .gmr-gallery-page .gmrg-expedition-grid { display: flex; }
  .gmr-gallery-page .gmrg-archive-row { grid-template-columns: 105px 1fr; }
}

.gmrg-shell {
  width: min(1320px, calc(100% - 48px));
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 0 42px;
  transform: none;
  color: var(--gmrg-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.gmrg-shell *, .gmrg-shell *::before, .gmrg-shell *::after { box-sizing: border-box; }
.gmrg-shell h1, .gmrg-shell h2, .gmrg-shell h3, .gmrg-shell p { margin-top: 0; }
.gmrg-shell a { color: inherit; text-decoration: none; }

.gmrg-hero {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: clamp(36px, 5vw, 82px);
  border: 1px solid var(--gmrg-border);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(7, 10, 24, .98) 0%, rgba(9, 10, 25, .91) 42%, rgba(8, 10, 22, .34) 72%, rgba(8, 10, 22, .14) 100%),
    var(--gmrg-hero-image, radial-gradient(circle at 76% 45%, #4b176a 0%, #111124 42%, #080b17 72%));
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 90px rgba(0, 0, 0, .36);
}

.gmrg-hero-copy { position: relative; z-index: 1; width: min(610px, 58%); }
.gmrg-kicker { color: var(--gmrg-accent-2); font-size: 13px; font-weight: 800; letter-spacing: .09em; }
.gmrg-hero h1 {
  margin: 12px 0 15px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 4.2vw, 72px);
  line-height: .98;
  letter-spacing: -.035em;
}
.gmrg-hero h1 em { color: var(--gmrg-accent); font-style: normal; }
.gmrg-hero p { max-width: 580px; color: #ddd6e8; font-size: 17px; line-height: 1.65; }
.gmrg-hero-stats { display: flex; gap: 12px; margin-top: 23px; }
.gmrg-hero-stats span {
  min-width: 145px;
  padding: 13px 18px;
  border: 1px solid var(--gmrg-border);
  border-radius: 10px;
  background: rgba(25, 20, 48, .78);
  color: var(--gmrg-muted);
}
.gmrg-hero-stats b { display: block; color: #fff; font-size: 22px; }

.gmrg-featured {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 18px;
  margin: 16px 0 34px;
  padding: 16px;
  border: 1px solid var(--gmrg-border);
  border-radius: 14px;
  background: linear-gradient(135deg, #0b1020, #111126);
}
.gmrg-section-copy { padding: 9px 10px; }
.gmrg-section-copy p { margin: 12px 0 0; color: var(--gmrg-muted); line-height: 1.55; }
.gmrg-featured-strip { display: grid; grid-template-columns: repeat(8, minmax(90px, 1fr)); gap: 12px; }
.gmrg-featured-strip figure { min-height: 142px; margin: 0; overflow: hidden; border-radius: 10px; background: #16172b; }
.gmrg-featured-strip img { width: 100%; height: 100%; display: block; object-fit: cover; }

.gmrg-archive { padding: 8px 20px 28px; }
.gmrg-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  margin-bottom: 18px;
}
.gmrg-section-heading h2 {
  margin: 6px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
}
.gmrg-admin-link {
  padding: 10px 16px;
  border: 1px solid var(--gmrg-border);
  border-radius: 9px;
  color: #ded2eb !important;
  background: #14142a;
}

.gmrg-collection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.gmrg-collection-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(170px, 42%) minmax(0, 1fr);
  min-height: 255px;
  border: 1px solid var(--gmrg-border);
  border-radius: 14px;
  background: linear-gradient(145deg, #101424, #0a0e1b);
  box-shadow: 0 14px 35px rgba(0, 0, 0, .18);
}
.gmrg-collection-image {
  min-height: 100%;
  background: radial-gradient(circle at 50% 40%, #6a2f92, #17152b 55%, #0b0e19);
  background-position: center;
  background-size: cover;
}
.gmrg-collection-copy { display: flex; flex-direction: column; padding: 20px; }
.gmrg-collection-copy h3 { margin-bottom: 4px; font-family: Georgia, "Times New Roman", serif; font-size: 22px; }
.gmrg-collection-copy p { color: var(--gmrg-muted); line-height: 1.5; }
.gmrg-location { margin-bottom: 10px; color: var(--gmrg-accent-2) !important; font-weight: 700; }
.gmrg-collection-stats { display: flex; flex-wrap: wrap; gap: 8px 13px; margin-top: auto; color: #c8bdd4; font-size: 13px; }
.gmrg-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding: 10px 14px;
  border: 1px solid rgba(158, 80, 235, .34);
  border-radius: 8px;
  color: #fff !important;
  background: linear-gradient(90deg, #2f145b, #19113b);
  font-weight: 750;
}
.gmrg-button:hover, .gmrg-admin-link:hover, .gmrg-cta-actions a:hover { border-color: var(--gmrg-accent); background: #321561; }

.gmrg-empty {
  max-width: 850px;
  margin: 36px auto;
  padding: 55px 35px;
  text-align: center;
  border: 1px dashed rgba(180, 112, 244, .4);
  border-radius: 16px;
  background: linear-gradient(145deg, #101327, #0a0e1b);
}
.gmrg-empty > span { color: var(--gmrg-accent-2); font-size: 44px; }
.gmrg-empty h2 { margin: 10px 0; font-family: Georgia, "Times New Roman", serif; font-size: 31px; }
.gmrg-empty p { max-width: 630px; margin: 0 auto 15px; color: var(--gmrg-muted); line-height: 1.65; }
.gmrg-empty .gmrg-button { width: fit-content; min-width: 240px; margin: 22px auto 0; gap: 28px; }

.gmrg-cta {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  margin: 4px 20px 0;
  padding: 25px 34px;
  border: 1px solid var(--gmrg-border);
  border-radius: 14px;
  background: radial-gradient(circle at 8% 50%, rgba(106, 36, 150, .35), transparent 30%), #0d1020;
}
.gmrg-cta h2 { margin: 4px 0; font-family: Georgia, "Times New Roman", serif; font-size: 28px; }
.gmrg-cta p { margin: 0; color: var(--gmrg-muted); }
.gmrg-cta-actions { display: flex; gap: 12px; }
.gmrg-cta-actions a { min-width: 175px; padding: 12px 18px; text-align: center; border: 1px solid rgba(158, 80, 235, .45); border-radius: 9px; background: #141329; }

.gmrg-collection-head {
  padding: 35px;
  border: 1px solid var(--gmrg-border);
  border-radius: 16px;
  background: linear-gradient(135deg, #101326, #0b0e1d);
}
.gmrg-collection-head > a { color: var(--gmrg-accent-2); font-weight: 750; }
.gmrg-collection-head h1 { margin: 14px 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 5vw, 64px); }
.gmrg-collection-head p { max-width: 800px; margin: 0; color: var(--gmrg-muted); font-size: 17px; }
.gmrg-open-gallery { margin-top: 18px; padding: 24px; border: 1px solid var(--gmrg-border); border-radius: 15px; background: #090d19; }

.gmrg-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 360px));
  justify-content: center;
  gap: 18px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}
.gmrg-photo-tile {
  overflow: hidden;
  width: 100%;
  margin: 0;
  border: 1px solid rgba(182, 128, 235, .35);
  border-radius: 14px;
  background: #111326;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .24);
}
.gmrg-photo-tile a {
  display: block;
  aspect-ratio: 4 / 3;
}
.gmrg-photo-tile img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  object-fit: cover;
  object-position: center;
  transition: transform .25s ease;
}
.gmrg-photo-tile:hover img { transform: scale(1.025); }

@media (max-width: 1320px) {
  .gmrg-collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gmrg-featured-strip { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 820px) {
  .gmrg-shell { width: calc(100vw - 16px); }
  .gmrg-hero { min-height: 340px; padding: 30px 24px; }
  .gmrg-hero-copy { width: 100%; }
  .gmrg-featured { grid-template-columns: 1fr; }
  .gmrg-featured-strip { grid-template-columns: repeat(2, 1fr); }
  .gmrg-collection-grid { grid-template-columns: 1fr; }
  .gmrg-collection-card { grid-template-columns: 1fr; }
  .gmrg-collection-image { min-height: 230px; }
  .gmrg-section-heading, .gmrg-cta { align-items: stretch; flex-direction: column; }
  .gmrg-cta-actions { flex-direction: column; }
  .gmrg-photo-grid { grid-template-columns: 1fr; }
}

/* v1.0.1 — Gallery-only navy/amethyst polish */
.gmr-gallery-page,
.gmr-gallery-page #page,
.gmr-gallery-page .site,
.gmr-gallery-page .site-content,
.gmr-gallery-page .content-area,
.gmr-gallery-page .site-main,
.gmr-gallery-page article.page,
.gmr-gallery-page .entry-content {
  background:
    radial-gradient(circle at 8% 8%, rgba(113, 48, 165, .18), transparent 27%),
    radial-gradient(circle at 92% 34%, rgba(70, 35, 129, .14), transparent 30%),
    #071020 !important;
}

.gmr-gallery-page .site-content,
.gmr-gallery-page .content-area,
.gmr-gallery-page .site-main,
.gmr-gallery-page article.page,
.gmr-gallery-page .entry-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.gmr-gallery-page .entry-header,
.gmr-gallery-page .entry-title,
.gmr-gallery-page article.page > header {
  display: none !important;
}

.gmr-gallery-page .gmrg-shell {
  width: min(1640px, calc(100vw - 34px));
  padding: 24px 0 52px;
  --gmrg-bg: #071020;
  --gmrg-panel: #11172c;
  --gmrg-panel-2: #171935;
  --gmrg-border: rgba(185, 124, 255, .34);
  --gmrg-accent: #ad67f2;
  --gmrg-accent-2: #d29aff;
  --gmrg-muted: #cec5dc;
}

.gmr-gallery-page .gmrg-shell h1,
.gmr-gallery-page .gmrg-shell h2,
.gmr-gallery-page .gmrg-shell h3 {
  color: #f8f3ff !important;
  text-shadow: none !important;
}

.gmr-gallery-page .gmrg-shell p {
  color: #cec5dc !important;
}

.gmr-gallery-page .gmrg-hero {
  min-height: 360px;
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(7, 12, 28, .97) 0%, rgba(13, 14, 35, .88) 43%, rgba(11, 13, 31, .28) 76%, rgba(8, 10, 22, .08) 100%),
    var(--gmrg-hero-image, radial-gradient(circle at 76% 45%, #4b176a 0%, #111124 42%, #080b17 72%));
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 90px rgba(0, 0, 0, .26), 0 24px 58px rgba(1, 4, 14, .34);
}

.gmr-gallery-page .gmrg-hero p {
  max-width: 610px;
  color: #ece5f4 !important;
  font-size: 18px;
}

.gmr-gallery-page .gmrg-hero-stats span {
  background: linear-gradient(145deg, rgba(43, 31, 72, .9), rgba(18, 22, 44, .86));
  box-shadow: inset 0 1px rgba(255, 255, 255, .08);
}

.gmr-gallery-page .gmrg-featured {
  grid-template-columns: 270px minmax(0, 1fr);
  padding: 18px;
  background: linear-gradient(135deg, rgba(28, 34, 65, .97), rgba(15, 19, 41, .98));
  box-shadow: 0 18px 44px rgba(1, 4, 14, .24), inset 0 1px rgba(255, 255, 255, .04);
}

.gmr-gallery-page .gmrg-featured-strip figure {
  min-height: 158px;
  border: 1px solid rgba(199, 150, 255, .28);
  border-radius: 12px;
  box-shadow: 0 9px 24px rgba(0, 0, 0, .3);
}

.gmr-gallery-page .gmrg-archive {
  margin-top: 12px;
  padding: 28px;
  border: 1px solid var(--gmrg-border);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(21, 27, 54, .94), rgba(10, 15, 33, .96));
  box-shadow: 0 20px 52px rgba(1, 4, 14, .28);
}

.gmr-gallery-page .gmrg-admin-link {
  padding: 12px 19px;
  border-color: rgba(199, 145, 255, .52);
  border-radius: 11px;
  color: #fff !important;
  background: linear-gradient(145deg, rgba(103, 49, 159, .72), rgba(46, 28, 88, .84));
  box-shadow: inset 0 1px rgba(255, 255, 255, .1), 0 9px 24px rgba(0, 0, 0, .2);
  font-weight: 750;
}

.gmr-gallery-page .gmrg-empty {
  max-width: 980px;
  margin: 22px auto 8px;
  padding: 50px 40px;
  border: 1px solid rgba(190, 126, 255, .42);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(132, 63, 189, .24), transparent 43%),
    linear-gradient(145deg, #171a35, #0c1225);
  box-shadow: inset 0 1px rgba(255, 255, 255, .06), 0 18px 42px rgba(0, 0, 0, .24);
}

.gmr-gallery-page .gmrg-empty > span {
  display: grid;
  width: 68px;
  height: 68px;
  margin: 0 auto 12px;
  place-items: center;
  border: 1px solid rgba(210, 154, 255, .42);
  border-radius: 50%;
  color: var(--gmrg-accent-2);
  background: rgba(123, 55, 172, .22);
  font-size: 40px;
}

.gmr-gallery-page .gmrg-empty p {
  max-width: 680px;
  font-size: 16px;
  line-height: 1.7;
}

.gmr-gallery-page .gmrg-cta {
  margin: 20px 0 0;
  padding: 31px 38px;
  background:
    radial-gradient(circle at 8% 50%, rgba(138, 58, 194, .42), transparent 32%),
    linear-gradient(135deg, #181b39, #0d1228);
  box-shadow: inset 0 1px rgba(255, 255, 255, .06), 0 18px 42px rgba(0, 0, 0, .25);
}

.gmr-gallery-page .gmrg-cta-actions a {
  padding: 13px 20px;
  border-color: rgba(199, 145, 255, .5);
  border-radius: 10px;
  color: #fff !important;
  background: linear-gradient(145deg, #65339a, #321b67);
  box-shadow: inset 0 1px rgba(255, 255, 255, .1), 0 8px 20px rgba(0, 0, 0, .22);
  font-weight: 750;
}

@media (max-width: 820px) {
  .gmr-gallery-page .gmrg-featured {
    grid-template-columns: 1fr;
  }

  .gmr-gallery-page .gmrg-archive {
    padding: 20px 14px;
  }
}

/* v1.1.0 — approved full photography archive */
.gmr-gallery-page .gmrg-shell {
  width: min(1540px, calc(100vw - 36px));
}

.gmr-gallery-page .gmrg-hero {
  min-height: 455px;
  align-items: stretch;
  padding: 30px;
  background:
    linear-gradient(90deg, rgba(5, 9, 23, .98) 0%, rgba(8, 10, 26, .88) 43%, rgba(8, 10, 25, .12) 78%),
    var(--gmrg-hero-image, radial-gradient(circle at 76% 45%, #4b176a 0%, #111124 42%, #080b17 72%));
  background-position: center;
  background-size: cover;
}

.gmr-gallery-page .gmrg-hero-copy {
  width: min(600px, 54%);
  align-self: center;
  padding: 42px 38px;
  border: 1px solid rgba(187, 127, 247, .22);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(13, 16, 35, .94), rgba(12, 12, 31, .88));
  box-shadow: 0 25px 65px rgba(0, 0, 0, .35), inset 0 1px rgba(255, 255, 255, .04);
  backdrop-filter: blur(8px);
}

.gmr-gallery-page .gmrg-hero h1 {
  font-size: clamp(46px, 4.4vw, 72px);
  line-height: 1.03;
}

.gmr-gallery-page .gmrg-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.gmr-gallery-page .gmrg-hero-stats span {
  display: grid;
  grid-template-columns: 34px 1fr;
  min-width: 0;
  padding: 13px 14px;
}

.gmr-gallery-page .gmrg-hero-stats i {
  grid-row: 1 / 3;
  align-self: center;
  color: #ce83ff;
  font-style: normal;
  font-size: 22px;
}

.gmr-gallery-page .gmrg-hero-stats b { font-size: 20px; line-height: 1.15; }
.gmr-gallery-page .gmrg-hero-stats small { color: #bdb4cb; font-size: 11px; }

.gmr-gallery-page .gmrg-featured {
  grid-template-columns: 260px minmax(0, 1fr);
  margin: 16px 0 28px;
}

.gmr-gallery-page .gmrg-featured-strip {
  grid-template-columns: repeat(8, minmax(78px, 1fr));
}

.gmr-gallery-page .gmrg-featured-strip figure > a {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.gmr-gallery-page .gmrg-featured-strip figure > a:focus-visible {
  outline: 3px solid #d38cff;
  outline-offset: -3px;
}

.gmr-gallery-page .gmrg-mini-label {
  display: inline-block;
  margin-top: 12px;
  color: #cbbdd8;
  font-size: 12px;
  font-weight: 700;
}

.gmr-gallery-page .gmrg-collection-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d9cce6;
  font-size: 12px;
  font-weight: 750;
}

.gmr-gallery-page .gmrg-mini-button {
  display: flex;
  justify-content: space-between;
  width: 170px;
  margin-top: 20px;
  padding: 10px 14px;
  border: 1px solid rgba(194, 132, 255, .45);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #53258d, #27134e);
  font-size: 13px;
  font-weight: 750;
}

.gmr-gallery-page .gmrg-expeditions,
.gmr-gallery-page .gmrg-locations {
  padding: 4px 20px 28px;
}

.gmr-gallery-page .gmrg-section-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
}

.gmr-gallery-page .gmrg-section-title > span {
  color: #d287ff;
  font-size: 25px;
  line-height: 1;
}

.gmr-gallery-page .gmrg-section-title h2 {
  margin: 0 0 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
}

.gmr-gallery-page .gmrg-section-title p {
  margin: 0;
  font-size: 14px;
}

.gmr-gallery-page .gmrg-expedition-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 13px;
}

.gmr-gallery-page .gmrg-expedition-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(186, 120, 240, .3);
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(9, 13, 29, .96) 0%, rgba(9, 13, 29, .68) 44%, rgba(7, 10, 22, .1) 65%),
    var(--gmrg-card-image, radial-gradient(circle at 60% 70%, #5a2b78, #11162b 50%, #080d1b));
  background-position: center;
  background-size: cover;
  box-shadow: 0 16px 32px rgba(0, 0, 0, .25);
}

.gmr-gallery-page .gmrg-expedition-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 18px 16px 14px;
  background: linear-gradient(180deg, rgba(8, 12, 27, .88), transparent 48%, rgba(8, 10, 22, .82));
}

.gmr-gallery-page .gmrg-expedition-copy h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-family: inherit;
  font-size: 16px;
}

.gmr-gallery-page .gmrg-expedition-copy h3 span { color: #d683ff; font-size: 21px; }
.gmr-gallery-page .gmrg-expedition-copy p { font-size: 13px; line-height: 1.55; }

.gmr-gallery-page .gmrg-expedition-copy a {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding: 9px 11px;
  border: 1px solid rgba(197, 137, 255, .35);
  border-radius: 8px;
  color: #fff;
  background: rgba(18, 15, 41, .88);
  font-size: 12px;
}

.gmr-gallery-page .gmrg-location-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 13px;
}

.gmr-gallery-page .gmrg-location-card {
  overflow: hidden;
  border: 1px solid rgba(185, 124, 255, .28);
  border-radius: 13px;
  background: linear-gradient(145deg, #11162b, #090e1d);
}

.gmr-gallery-page .gmrg-location-photo {
  display: block;
  min-height: 145px;
  background: radial-gradient(circle, #542a75, #0f1427);
  background-position: center;
  background-size: cover;
}

.gmr-gallery-page .gmrg-location-copy { padding: 13px; }
.gmr-gallery-page .gmrg-location-copy h3 { min-height: 44px; margin-bottom: 9px; font-family: Georgia, serif; font-size: 17px; line-height: 1.25; }
.gmr-gallery-page .gmrg-location-facts { display: grid; gap: 5px; color: #c7bdd3; font-size: 11px; }

.gmr-gallery-page .gmrg-explore {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 12px;
  padding: 8px;
  border: 1px solid rgba(190, 128, 255, .35);
  border-radius: 7px;
  background: linear-gradient(135deg, #482076, #211341);
  font-size: 12px;
}

.gmr-gallery-page .gmrg-archive {
  margin: 0 20px 28px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.gmr-gallery-page .gmrg-archive-list { display: grid; gap: 2px; }

.gmr-gallery-page .gmrg-archive-row {
  display: grid;
  grid-template-columns: 180px minmax(260px, 1fr) 100px 100px 90px 190px;
  align-items: center;
  min-height: 86px;
  overflow: hidden;
  border: 1px solid rgba(178, 115, 235, .2);
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(19, 24, 45, .97), rgba(12, 15, 32, .97));
}

.gmr-gallery-page .gmrg-row-image {
  align-self: stretch;
  min-height: 86px;
  background: radial-gradient(circle, #542a75, #0f1427);
  background-position: center;
  background-size: cover;
}

.gmr-gallery-page .gmrg-row-copy { padding: 12px 18px; }
.gmr-gallery-page .gmrg-row-copy h3 { margin-bottom: 3px; font-family: inherit; font-size: 17px; }
.gmr-gallery-page .gmrg-row-copy p { margin: 0; font-size: 12px; }
.gmr-gallery-page .gmrg-row-stat { padding: 8px 12px; border-left: 1px solid rgba(170, 111, 225, .14); }
.gmr-gallery-page .gmrg-row-stat b { display: block; color: #fff; font-size: 14px; }
.gmr-gallery-page .gmrg-row-stat span { color: #aaa1b9; font-size: 10px; }

.gmr-gallery-page .gmrg-row-button {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 0 15px;
  padding: 11px;
  border: 1px solid rgba(190, 128, 255, .32);
  border-radius: 8px;
  background: linear-gradient(135deg, #32165d, #1b1038);
  font-size: 12px;
  font-weight: 700;
}

.gmr-gallery-page .gmrg-cta {
  margin: 0 20px;
  padding-left: 270px;
  background:
    radial-gradient(circle at 9% 62%, rgba(152, 59, 217, .62), transparent 17%),
    linear-gradient(135deg, #171832, #0c1125);
}

@media (max-width: 1250px) {
  .gmr-gallery-page .gmrg-expedition-grid,
  .gmr-gallery-page .gmrg-location-grid { grid-template-columns: repeat(3, 1fr); }
  .gmr-gallery-page .gmrg-archive-row { grid-template-columns: 150px minmax(230px, 1fr) 80px 80px 160px; }
  .gmr-gallery-page .gmrg-row-stat:nth-of-type(3) { display: none; }
}

@media (max-width: 820px) {
  .gmr-gallery-page .gmrg-hero-copy { width: 100%; padding: 30px 22px; }
  .gmr-gallery-page .gmrg-hero-stats { grid-template-columns: 1fr; }
  .gmr-gallery-page .gmrg-featured-strip,
  .gmr-gallery-page .gmrg-expedition-grid,
  .gmr-gallery-page .gmrg-location-grid { grid-template-columns: repeat(2, 1fr); }
  .gmr-gallery-page .gmrg-archive-row { grid-template-columns: 110px 1fr; }
  .gmr-gallery-page .gmrg-row-stat { display: none; }
  .gmr-gallery-page .gmrg-row-button { grid-column: 1 / -1; margin: 0 10px 10px; }
  .gmr-gallery-page .gmrg-cta { padding-left: 28px; }
}

/* v1.1.1 — compact Gallery hero */
@media (min-width: 821px) {
  .gmr-gallery-page .gmrg-hero {
    height: clamp(350px, 25vw, 410px);
    min-height: 0;
    padding: 20px 28px;
  }

  .gmr-gallery-page .gmrg-hero-copy {
    width: min(570px, 48%);
    max-height: calc(100% - 8px);
    padding: 24px 30px;
    border-radius: 16px;
  }

  .gmr-gallery-page .gmrg-hero .gmrg-kicker {
    font-size: 12px;
  }

  .gmr-gallery-page .gmrg-hero h1 {
    margin: 9px 0 11px;
    font-size: clamp(37px, 3.1vw, 54px);
    line-height: 1;
  }

  .gmr-gallery-page .gmrg-hero p {
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.5;
  }

  .gmr-gallery-page .gmrg-hero-stats {
    gap: 9px;
    margin-top: 16px;
  }

  .gmr-gallery-page .gmrg-hero-stats span {
    grid-template-columns: 25px 1fr;
    padding: 9px 11px;
  }

  .gmr-gallery-page .gmrg-hero-stats i {
    font-size: 17px;
  }

  .gmr-gallery-page .gmrg-hero-stats b {
    font-size: 17px;
  }

  .gmr-gallery-page .gmrg-hero-stats small {
    font-size: 10px;
  }
}

/* v1.1.2 — centered site width and tighter desktop scale */
@media (min-width: 821px) {
  .gmr-gallery-page .gmrg-shell {
    width: min(1320px, calc(100vw - 64px));
    max-width: 1320px;
    padding-top: 14px;
  }

  .gmr-gallery-page .gmrg-hero {
    height: clamp(300px, 20vw, 340px);
    padding: 17px 22px;
    border-radius: 16px;
  }

  .gmr-gallery-page .gmrg-hero-copy {
    width: min(535px, 47%);
    padding: 20px 25px;
    border-radius: 14px;
  }

  .gmr-gallery-page .gmrg-hero h1 {
    font-size: clamp(34px, 2.75vw, 47px);
  }

  .gmr-gallery-page .gmrg-hero p {
    font-size: 14px;
    line-height: 1.45;
  }

  .gmr-gallery-page .gmrg-hero-stats {
    margin-top: 13px;
  }

  .gmr-gallery-page .gmrg-hero-stats span {
    padding: 7px 9px;
  }

  .gmr-gallery-page .gmrg-featured {
    grid-template-columns: 205px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 0;
    margin: 12px 0 20px;
    padding: 11px 12px;
  }

  .gmr-gallery-page .gmrg-featured.is-single {
    grid-template-columns: 190px 150px;
    width: min(100%, 370px);
    margin-right: auto;
    margin-left: auto;
  }

  .gmr-gallery-page .gmrg-featured.is-single .gmrg-featured-strip {
    grid-template-columns: 138px;
  }

  .gmr-gallery-page .gmrg-featured.is-single .gmrg-featured-strip figure {
    height: 110px;
  }

  .gmr-gallery-page .gmrg-featured-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(92px, 128px));
    align-items: center;
    justify-content: start;
    gap: 9px;
  }

  .gmr-gallery-page .gmrg-featured-strip figure {
    width: 100%;
    min-height: 0;
    height: 102px;
  }

  .gmr-gallery-page .gmrg-expeditions,
  .gmr-gallery-page .gmrg-locations {
    padding-right: 12px;
    padding-bottom: 23px;
    padding-left: 12px;
  }

  .gmr-gallery-page .gmrg-expedition-grid,
  .gmr-gallery-page .gmrg-location-grid {
    gap: 11px;
  }

  .gmr-gallery-page .gmrg-expedition-card {
    min-height: 220px;
  }

  .gmr-gallery-page .gmrg-expedition-card.is-placeholder {
    background:
      radial-gradient(circle at 72% 78%, rgba(126, 63, 157, .2), transparent 32%),
      linear-gradient(145deg, #11152b, #0a0e1e);
  }

  .gmr-gallery-page .gmrg-expedition-copy {
    padding: 15px 13px 12px;
  }

  .gmr-gallery-page .gmrg-expedition-copy h3 {
    gap: 6px;
    font-size: 14px;
  }

  .gmr-gallery-page .gmrg-expedition-copy h3 span {
    font-size: 18px;
  }

  .gmr-gallery-page .gmrg-expedition-copy p {
    font-size: 12px;
    line-height: 1.4;
  }

  .gmr-gallery-page .gmrg-archive {
    margin-right: 12px;
    margin-left: 12px;
  }

  .gmr-gallery-page .gmrg-cta {
    margin-right: 12px;
    margin-left: 12px;
  }
}

/* v1.3.0 final cascade */
.gmr-gallery-page .gmrg-shell { display: flex; flex-direction: column; }
.gmr-gallery-page .gmrg-hero { order: 1; }
.gmr-gallery-page .gmrg-featured { order: 2; }
.gmr-gallery-page .gmrg-archive { order: 3; }
.gmr-gallery-page .gmrg-locations { order: 4; }
.gmr-gallery-page .gmrg-expeditions { order: 5; }
.gmr-gallery-page .gmrg-cta { order: 6; }

.gmr-gallery-page .gmrg-archive-row {
  color: inherit !important;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.gmr-gallery-page .gmrg-archive-row:hover,
.gmr-gallery-page .gmrg-archive-row:focus-visible {
  border-color: rgba(198, 128, 255, .7);
  background: linear-gradient(90deg, rgba(30, 27, 56, .99), rgba(15, 18, 37, .99));
  box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
  transform: translateY(-2px);
  outline: none;
}
.gmr-gallery-page .gmrg-row-image { display: block; }
.gmr-gallery-page .gmrg-row-button { pointer-events: none; }

.gmr-gallery-page .gmrg-expeditions {
  margin: 0 12px 24px;
  padding: 18px 20px !important;
  border: 1px solid rgba(178, 115, 235, .2);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(16, 19, 39, .96), rgba(10, 13, 28, .96));
}
.gmr-gallery-page .gmrg-expeditions .gmrg-section-title { margin-bottom: 12px; }
.gmr-gallery-page .gmrg-expeditions .gmrg-section-title p { display: none; }
.gmr-gallery-page .gmrg-expedition-grid {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
}
.gmr-gallery-page .gmrg-expedition-card,
.gmr-gallery-page .gmrg-expedition-card.is-placeholder {
  min-height: 0 !important;
  width: auto;
  overflow: visible;
  border: 1px solid rgba(179, 112, 236, .24);
  border-radius: 999px;
  background: rgba(19, 21, 43, .92) !important;
}
.gmr-gallery-page .gmrg-expedition-copy {
  position: static;
  min-height: 0;
  padding: 9px 13px !important;
  background: none !important;
}
.gmr-gallery-page .gmrg-expedition-copy h3 {
  display: inline-flex;
  margin: 0;
  font-size: 12px !important;
  white-space: nowrap;
}
.gmr-gallery-page .gmrg-expedition-copy h3 span { font-size: 14px !important; }
.gmr-gallery-page .gmrg-expedition-copy p { display: none; }
.gmr-gallery-page .gmrg-collection-count {
  display: inline;
  margin: 0 0 0 7px;
  color: #aea5bb;
  font-size: 10px;
}

/* v1.4.5 — final template-level centering correction.
 * The original percentage-offset breakout centered from the theme's former
 * content column and clipped the left side. The dedicated Gallery template
 * must use ordinary auto margins instead.
 */
html body.gmr-gallery-page .gmrg-template-main {
  display: block !important;
  position: relative !important;
  left: auto !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  grid-column: 1 / -1 !important;
  float: none !important;
}

html body.gmr-gallery-page .gmrg-template-main > .gmrg-shell,
html body.gmr-gallery-page .gmrg-shell {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  width: min(1320px, calc(100% - 48px)) !important;
  max-width: 1320px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  transform: none !important;
  float: none !important;
}

@media (max-width: 820px) {
  html body.gmr-gallery-page .gmrg-template-main > .gmrg-shell,
  html body.gmr-gallery-page .gmrg-shell {
    width: calc(100% - 20px) !important;
  }
}
