* {
  box-sizing: border-box
}

:root {
  --green: #16c259;
  --green-dark: #0e8c40;
  --ink: #171b18;
  --paper: #fbfcfa;
  --muted: #7d867e;
  --line: #e7ece6
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', 'Raleway', sans-serif;
  -webkit-font-smoothing: antialiased
}

button,
input {
  font: inherit
}

button {
  cursor: pointer
}

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

.explore-app {
  width: min(1600px, 100%);
  margin: auto;
  padding: 26px clamp(16px, 4vw, 62px) 22px
}

.explore-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 9px 0 23px;
  border-bottom: 1px solid var(--line)
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.075em
}

.wordmark-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px #16c25920
}

.wordmark-fr {
  color: var(--green-dark)
}

.header-center {
  text-align: center
}

.header-kicker {
  font-size: 8px;
  letter-spacing: .2em;
  font-weight: 800;
  color: #929b93
}

.header-center h1 {
  margin: 5px 0 0;
  font-size: 28px;
  letter-spacing: -.075em;
  font-weight: 800
}

.header-center h1 span {
  color: var(--green)
}

.share-cta {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--green);
  color: #082a15;
  font-size: 11px;
  transition: transform .2s, background .2s
}

.share-cta:hover {
  transform: translateY(-2px);
  background: #3cda76
}

.share-cta span {
  font-size: 17px
}

.explore-tools {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 16px 0 11px;
  background: #fbfcfaed;
  backdrop-filter: blur(16px)
}

.explore-search {
  display: flex;
  align-items: center;
  gap: 11px;
  width: min(560px, 100%);
  height: 45px;
  margin: 0 auto 15px;
  padding: 0 14px;
  border: 1px solid #e7ece6;
  border-radius: 12px;
  background: #f1f4f0;
  transition: .2s
}

.explore-search:focus-within {
  border-color: #9fe5b6;
  background: white
}

.explore-search svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #7e887f;
  stroke-width: 1.7;
  flex: none
}

.explore-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
  color: var(--ink)
}

.explore-search input::placeholder {
  color: #969e97
}

.explore-search kbd {
  font: 10px 'DM Sans', sans-serif;
  color: #929a93;
  border: 1px solid #dce3db;
  border-radius: 5px;
  padding: 4px 6px;
  white-space: nowrap
}

.category-strip {
  display: flex;
  justify-content: center;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 1px 3px
}

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

.category-pill {
  flex: none;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #788178;
  font-size: 10px;
  font-weight: 700;
  transition: .2s
}

.category-pill:hover {
  background: #eef5ee;
  color: #1b6f39
}

.category-pill.is-active {
  background: #171b18;
  color: white
}

.masonry-section {
  padding-top: 17px
}

.section-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 13px;
  color: #8a938b;
  font-size: 10px
}

.section-line span:first-child {
  font-weight: 700;
  color: #414a42
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(115px, 14vw, 195px);
  grid-auto-flow: dense;
  gap: 8px
}

.masonry-tile {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #e1e9df;
  text-align: left;
  isolation: isolate;
  animation: tile-in .35s both
}

.masonry-tile.tile-tall {
  grid-row: span 2
}

.masonry-tile.tile-wide {
  grid-column: span 2
}

.masonry-tile.tile-normal {
  grid-row: span 1
}

.masonry-tile img,
.masonry-tile video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.2, .7, .2, 1)
}

.masonry-tile:hover img,
.masonry-tile:hover video,
.masonry-tile:focus-visible img {
  transform: scale(1.045)
}

.masonry-tile:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px
}

/*

.tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0005, transparent 25%, transparent 48%, #0009);
  transition: background .2s
}*/

.masonry-tile:hover .tile-shade {
  background: linear-gradient(180deg, #0006, transparent 22%, #0001 45%, #000b)
}

.tile-top {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px
}

.tile-category,
.tile-video-badge {
  padding: 6px 8px;
  border-radius: 999px;
  background: #ffffffe6;
  color: #252e27;
  font-size: 8px;
  font-weight: 800;
  backdrop-filter: blur(10px)
}

.tile-video-badge {
  background: #171b18c9;
  color: white
}

.tile-media-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #ffffff90;
  border-radius: 50%;
  background: #171b1860;
  color: white;
  font-size: 13px;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(8px);
  pointer-events: none
}

.tile-caption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: white
}

.tile-location {
  font-size: 9px;
  color: #ffffffd1;
  font-weight: 600
}

.tile-caption strong {
  font-size: clamp(12px, 1.25vw, 17px);
  line-height: 1.15;
  letter-spacing: -.035em;
  font-weight: 800;
  text-shadow: 0 1px 8px #0003
}

.tile-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 3px;
  color: #ffffffd6;
  font-size: 9px
}

.grid-loading {
  grid-column: 1/-1;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #788178;
  font-size: 12px
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #dfe7df;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin .7s linear infinite
}

.empty-state {
  padding: 80px 15px;
  text-align: center
}

.empty-state[hidden],
.load-more-wrap[hidden] {
  display: none
}

.empty-state>span {
  font-size: 35px;
  color: var(--green)
}

.empty-state h2 {
  margin: 10px 0;
  font-size: 22px;
  letter-spacing: -.05em
}

.empty-state p {
  font-size: 12px;
  color: var(--muted)
}

.empty-state button {
  border: 0;
  background: none;
  color: var(--green-dark);
  font-weight: 800;
  font-size: 11px
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 28px 0
}

.load-more-wrap button {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 12px 17px;
  border: 1px solid #dfe6de;
  border-radius: 999px;
  background: white;
  color: #333b34;
  font-size: 10px;
  font-weight: 800
}

.load-more-wrap button span {
  color: var(--green-dark)
}

.load-more-wrap button:disabled {
  opacity: .5
}

.explore-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: #929a93;
  font-size: 10px
}

.explore-footer>span {
  font-size: 20px;
  letter-spacing: -.1em;
  font-weight: 800;
  color: var(--green-dark)
}

.explore-footer>span span {
  color: #171b18
}

.explore-footer p {
  margin: 0
}

.explore-footer a {
  margin-left: auto;
  font-weight: 800;
  color: #3c453e
}

/* Immersive fullscreen feed */
body.viewer-open {
  overflow: hidden
}

.immersive-viewer {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #0b0d0b;
  color: white;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity .28s, transform .35s, visibility .28s
}

.immersive-viewer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1)
}

.viewer-topbar {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  padding: 0 clamp(14px, 3vw, 42px);
  background: linear-gradient(180deg, #0008, transparent)
}

.viewer-back,
.viewer-icon-button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  padding: 9px 12px;
  border: 1px solid #ffffff30;
  border-radius: 999px;
  background: #0b0d0b45;
  color: white;
  backdrop-filter: blur(12px)
}

.viewer-back span {
  font-size: 17px
}

.viewer-back b {
  font-size: 10px
}

.viewer-logo {
  justify-self: center;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.08em
}

.viewer-logo span {
  color: var(--green)
}

.viewer-logo i {
  font-style: normal;
  color: #ffffff9c
}

.viewer-icon-button {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 17px
}

.viewer-icon-button.is-on {
  background: var(--green);
  border-color: var(--green);
  color: #072b15
}

.viewer-feed {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  outline: 0
}

.viewer-feed::-webkit-scrollbar {
  display: none
}

.viewer-slide {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #151a15
}

.viewer-media-bg {
  position: absolute;
  inset: -30px;
  background-position: center;
  background-size: cover;
  filter: blur(30px) brightness(.4);
  transform: scale(1.08);
  opacity: .5
}

.viewer-media-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.immersive-media {
  display: block;
  height: 100%;
  width: 300%;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.viewer-slide:has(.immersive-media[src$=".mp4"]) .immersive-media {
  object-fit: contain;
}

.viewer-vignette {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #0007 0%, transparent 19%, transparent 46%, #0002 59%, #000c 100%), linear-gradient(90deg, #0004, transparent 35%, transparent 75%, #0003)
}

.viewer-content {
  position: absolute;
  z-index: 3;
  left: clamp(18px, 5vw, 72px);
  bottom: max(38px, env(safe-area-inset-bottom));
  width: min(590px, calc(100% - 145px));
  pointer-events: none;
  text-shadow: 0 1px 15px #0005
}

.viewer-location-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  max-width: 100%;
  padding: 8px 11px;
  border: 1px solid #ffffff55;
  border-radius: 999px;
  background: #151a1555;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  backdrop-filter: blur(12px)
}

.viewer-location-pill span {
  color: var(--green);
  font-size: 14px
}

.viewer-location-pill i {
  font-style: normal;
  color: #ffffff90
}

.viewer-content h2 {
  margin: 15px 0 9px;
  font-size: clamp(30px, 5.3vw, 68px);
  line-height: .99;
  letter-spacing: -.07em;
  font-weight: 800
}

.viewer-description {
  display: -webkit-box;
  max-width: 530px;
  overflow: hidden;
  margin: 0;
  color: #ffffffdd;
  font-size: clamp(12px, 1.2vw, 14px);
  line-height: 1.7;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical
}

.viewer-author {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  color: #ffffffd1;
  font-size: 10px
}

.viewer-author strong {
  color: white
}

.viewer-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #ffffff7a;
  border-radius: 50%;
  background: #ffffff27;
  color: white;
  font-size: 11px;
  font-weight: 800
}

.viewer-actions {
  position: absolute;
  z-index: 4;
  right: clamp(14px, 4vw, 54px);
  bottom: max(45px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px
}

.viewer-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: none;
  color: white;
  text-shadow: 0 1px 10px #0007
}

.viewer-action>span {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border: 1px solid #ffffff6e;
  border-radius: 50%;
  background: #0c100c4d;
  backdrop-filter: blur(12px);
  font-size: 23px;
  transition: transform .2s, background .2s
}

.viewer-action:hover>span {
  transform: scale(1.08)
}

.viewer-action small {
  font-size: 9px;
  font-weight: 700
}

.viewer-action.is-liked>span,
.viewer-action.like-action.is-liked>span {
  color: #ff6b78;
  border-color: #ff6b78;
  background: #351318a8
}

.viewer-action.map-action>span {
  background: var(--green);
  border-color: var(--green);
  color: #082b16;
  text-shadow: none
}

.viewer-slide-index {
  position: absolute;
  z-index: 4;
  top: 85px;
  right: clamp(16px, 4vw, 55px);
  color: #ffffffce;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em
}

.viewer-slide-index span {
  padding: 0 5px;
  color: #ffffff77
}

.viewer-hint {
  position: absolute;
  z-index: 5;
  top: 76px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #ffffff22;
  border-radius: 999px;
  background: #0003;
  color: #ffffffad;
  font-size: 9px;
  pointer-events: none;
  transform: translateX(-50%);
  animation: hint-fade 5s forwards
}

.viewer-hint span {
  font-size: 15px;
  color: var(--green)
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

@keyframes tile-in {
  from {
    opacity: 0;
    transform: translateY(7px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes hint-fade {

  0%,
  65% {
    opacity: 1
  }

  100% {
    opacity: 0
  }
}

@media(min-width:1300px) {
  .masonry-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-rows: clamp(145px, 13vw, 205px);
    gap: 9px
  }

  .masonry-tile.tile-wide {
    grid-column: span 2
  }
}

@media(max-width:800px) {
  .explore-app {
    padding: 16px 12px 18px
  }

  .explore-header {
    grid-template-columns: 1fr auto;
    padding-bottom: 16px
  }

  .header-center {
    grid-column: 1/-1;
    grid-row: 2;
    text-align: left;
    justify-self: start
  }

  .header-center h1 {
    font-size: 30px
  }

  .wordmark {
    font-size: 16px
  }

  .share-cta {
    grid-column: 2;
    grid-row: 1;
    padding: 9px 12px
  }

  .header-kicker {
    font-size: 7px
  }

  .explore-tools {
    padding-top: 12px
  }

  .explore-search {
    height: 43px;
    margin-bottom: 10px
  }

  .category-strip {
    justify-content: flex-start;
    gap: 3px
  }

  .category-pill {
    padding: 8px 11px
  }

  .masonry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: clamp(120px, 25vw, 210px);
    gap: 5px
  }

  .masonry-tile.tile-wide {
    grid-column: span 2
  }

  .tile-top {
    top: 7px;
    left: 7px;
    right: 7px
  }

  .tile-category,
  .tile-video-badge {
    padding: 5px 6px;
    font-size: 7px
  }

  .tile-caption {
    right: 8px;
    bottom: 8px;
    left: 8px;
    gap: 4px
  }

  .tile-caption strong {
    font-size: 12px
  }

  .tile-location {
    font-size: 8px
  }

  .tile-bottom {
    font-size: 8px
  }

  .viewer-content {
    left: 18px;
    bottom: max(28px, env(safe-area-inset-bottom));
    width: calc(100% - 96px)
  }

  .viewer-content h2 {
    font-size: clamp(32px, 8vw, 54px)
  }

  .viewer-description {
    font-size: 12px;
    -webkit-line-clamp: 4
  }

  .viewer-actions {
    right: 12px;
    bottom: max(32px, env(safe-area-inset-bottom));
    gap: 15px
  }

  .viewer-action>span {
    width: 39px;
    height: 39px;
    font-size: 20px
  }

  .viewer-action small {
    font-size: 8px
  }

  .viewer-topbar {
    height: 60px;
    padding: 0 12px
  }

  .viewer-logo {
    font-size: 15px
  }

  .viewer-back {
    padding: 8px 10px
  }

  .viewer-back b {
    font-size: 9px
  }

  .viewer-icon-button {
    width: 33px;
    height: 33px
  }

  .viewer-slide-index {
    top: 70px
  }

  .viewer-hint {
    top: 67px
  }
}

@media(max-width:480px) {
  .masonry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: clamp(155px, 47vw, 230px);
    gap: 5px
  }

  .masonry-tile.tile-wide {
    grid-column: span 2
  }

  .masonry-tile.tile-tall {
    grid-row: span 2
  }

  .masonry-tile.tile-normal {
    grid-row: span 1
  }

  .tile-caption strong {
    font-size: 13px
  }

  .explore-footer {
    flex-wrap: wrap
  }

  .explore-footer a {
    width: 100%;
    margin-left: 0
  }

  .viewer-logo {
    font-size: 14px
  }

  .viewer-back {
    gap: 5px
  }

  .viewer-back b {
    display: none
  }

  .viewer-content {
    bottom: max(24px, env(safe-area-inset-bottom));
    width: calc(100% - 88px)
  }

  .viewer-content h2 {
    font-size: 34px
  }

  .viewer-description {
    font-size: 11px;
    line-height: 1.55;
    -webkit-line-clamp: 4
  }

  .viewer-location-pill {
    font-size: 9px;
    padding: 7px 9px
  }

  .viewer-author {
    margin-top: 11px
  }

  .viewer-actions {
    right: 9px;
    bottom: max(27px, env(safe-area-inset-bottom));
    gap: 13px
  }

  .viewer-action>span {
    width: 36px;
    height: 36px;
    font-size: 18px
  }

  .viewer-action small {
    font-size: 7px
  }

  .viewer-slide-index {
    right: 12px;
    font-size: 9px
  }
}

@media(prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important
  }
}

/* HELLOCARTO — grille masonry bord à bord, occupant le viewport */
html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  overflow-x: hidden;
}

.explore-app {
  width: 100%;
  max-width: none;
  height: 100dvh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.explore-header {
  flex: 0 0 auto;
  grid-template-columns: 1fr auto 1fr;
  padding: 12px clamp(14px, 2.2vw, 32px) 10px;
  gap: 12px;
  border-bottom: 1px solid #e7ece699;
}

.header-center h1 {
  font-size: clamp(20px, 2vw, 28px);
}

.explore-tools {
  position: relative;
  top: auto;
  flex: 0 0 auto;
  padding: 9px clamp(12px, 2vw, 28px) 8px;
  background: var(--paper);
  backdrop-filter: none;
}

.explore-search {
  height: 37px;
  margin: 0 auto 7px;
}

.explore-search kbd {
  display: none;
}

.category-strip {
  gap: 5px;
  padding-bottom: 0;
}

.category-pill {
  padding: 7px 12px;
}

.masonry-section {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.section-line {
  flex: 0 0 auto;
  margin: 0;
  padding: 5px clamp(14px, 2vw, 28px) 7px;
  font-size: 9px;
}

.masonry-grid {
  flex: 1 0 auto;
  min-height: 0;
  align-content: stretch;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: clamp(105px, calc((100dvh - 205px)/4), 230px);
  gap: 4px;
  padding: 0 4px 4px;
}

.masonry-tile {
  border-radius: 3px;
  animation: tile-in .25s both;
}

.masonry-tile.tile-wide {
  grid-column: span 2;
}

.masonry-tile.tile-tall {
  grid-row: span 2;
}

.tile-top {
  top: 8px;
  left: 8px;
  right: 8px;
}

.tile-caption {
  left: 10px;
  right: 10px;
  bottom: 10px;
}

.tile-bottom {
  display: none;
}

.explore-footer {
  display: none;
}

.load-more-wrap {
  padding: 12px 0;
}

.grid-loading {
  min-height: 0;
  height: 100%;
}

.empty-state {
  flex: 1;
  padding: 35px 15px;
}

/* Le flux est une vraie couche viewport indépendante de la grille. */
.immersive-viewer {
  width: 100vw;
  height: 100dvh;
  min-height: 100dvh;
}

.viewer-feed {
  height: 100%;
  min-height: 0;
}

.viewer-slide {
  height: 100%;
  min-height: 100%;
}

@media (max-width:900px) {
  .explore-header {
    grid-template-columns: 1fr auto;
    padding: 10px 12px 8px;
  }

  .header-center {
    display: none;
  }

  .share-cta {
    grid-column: 2;
    grid-row: 1;
  }

  .explore-tools {
    padding: 7px 9px 7px;
  }

  .explore-search {
    height: 36px;
    margin-bottom: 6px;
  }

  .category-strip {
    justify-content: flex-start;
  }

  .masonry-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: clamp(105px, calc((100dvh - 175px)/4), 210px);
    gap: 3px;
    padding: 0 3px 3px;
  }

  .tile-caption strong {
    font-size: clamp(10px, 1.7vw, 14px);
  }

  .tile-location {
    font-size: 8px;
  }
}

@media (max-width:560px) {
  .explore-app {
    height: 100dvh;
  }

  .explore-header {
    min-height: 48px;
  }

  .wordmark {
    font-size: 16px;
  }

  .share-cta {
    padding: 8px 11px;
  }

  .share-cta b {
    font-size: 10px;
  }

  .explore-tools {
    padding: 6px 7px;
  }

  .explore-search {
    width: 100%;
  }

  .category-pill {
    padding: 7px 10px;
    font-size: 9px;
  }

  .section-line {
    padding: 4px 9px 6px;
  }

  .masonry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: clamp(100px, calc((100dvh - 155px)/4), 190px);
    gap: 3px;
    padding: 0 3px 3px;
  }

  .masonry-tile.tile-wide {
    grid-column: span 2;
  }

  .masonry-tile.tile-tall {
    grid-row: span 2;
  }

  .tile-top {
    top: 5px;
    left: 5px;
    right: 5px;
  }

  .tile-category,
  .tile-video-badge {
    padding: 4px 5px;
    font-size: 6px;
  }

  .tile-caption {
    left: 6px;
    right: 6px;
    bottom: 7px;
    gap: 3px;
  }

  .tile-caption strong {
    font-size: 11px;
  }

  .tile-location {
    font-size: 7px;
  }

  .tile-media-icon {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }
}

@media (max-height:620px) {
  .explore-header {
    padding-top: 6px;
    padding-bottom: 5px;
  }

  .explore-tools {
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .explore-search {
    height: 31px;
  }

  .category-pill {
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .section-line {
    padding-top: 2px;
    padding-bottom: 3px;
  }
}




.discover-viewer-close {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;
    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;

    background: rgba(20, 20, 20, 0.55);
    color: #fff;

    font-family: Arial, sans-serif;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

#immersive-viewer.is-open .discover-viewer-close {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.discover-viewer-close:hover {
    background: rgba(20, 20, 20, 0.85);
    transform: scale(1.06);
}