/*
Theme Name: VTLR Moderne
Theme URI: https://www.vttlr77.fr/
Author: VTLR77
Description: Theme WordPress one-page pour le Club VTT La Rochette, proche de la maquette VTLR avec hero, GPX, sorties, commentaires, galerie, vie du club et partenaires.
Version: 5.0.0
Requires at least: 5.8
Requires PHP: 7.4
Text Domain: vtlr-moderne
*/

:root {
  --vtlr-green: #8dcc00;
  --vtlr-green-dark: #5d9400;
  --vtlr-blue: #007dc3;
  --vtlr-blue-dark: #06456d;
  --vtlr-navy: #071e31;
  --vtlr-ink: #0d314f;
  --vtlr-muted: #64798a;
  --vtlr-bg: #eef4f8;
  --vtlr-card: #ffffff;
  --vtlr-border: #dbe7ef;
  --vtlr-shadow: 0 16px 36px rgba(8, 44, 72, 0.09);
  --vtlr-radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.vtlr-body {
  margin: 0;
  color: var(--vtlr-ink);
  background: #dfeaf1;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

a {
  color: inherit;
}

img,
iframe,
svg {
  display: block;
  max-width: 100%;
}

.vtlr-site {
  min-height: 100vh;
  background: var(--vtlr-bg);
}

.vtlr-wrap {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.vtlr-hero {
  min-height: 390px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(3, 22, 35, 0.94), rgba(3, 22, 35, 0.56) 48%, rgba(3, 22, 35, 0.2)),
    var(--vtlr-hero-photo, linear-gradient(135deg, transparent, transparent)) center / cover no-repeat,
    radial-gradient(circle at 83% 28%, rgba(141, 204, 0, 0.34), transparent 22%),
    linear-gradient(135deg, #071e31, #0f5f7e 47%, #23462d);
  overflow: hidden;
}

.vtlr-hero .vtlr-wrap {
  position: relative;
  min-height: 390px;
}

.vtlr-hero .vtlr-wrap:after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(54vw, 660px);
  height: 330px;
  background:
    radial-gradient(circle at 54% 20%, rgba(255,255,255,.32) 0 2px, transparent 3px),
    linear-gradient(145deg, transparent 0 24%, rgba(255,255,255,.16) 25% 26%, transparent 27% 100%),
    linear-gradient(28deg, transparent 0 38%, rgba(141,204,0,.9) 39% 40%, transparent 41% 100%),
    linear-gradient(162deg, transparent 0 52%, rgba(255,255,255,.26) 53% 54%, transparent 55% 100%);
  opacity: .65;
  clip-path: polygon(18% 22%, 100% 0, 100% 100%, 0 100%);
}

.vtlr-hero-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 82px;
}

.vtlr-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 235px;
  color: #fff;
  text-decoration: none;
}

.vtlr-brand img,
.custom-logo-link img {
  max-width: 150px;
  height: auto;
}

.vtlr-logo-text > span {
  display: block;
  color: var(--vtlr-green);
  font-size: 54px;
  font-weight: 950;
  font-style: italic;
  letter-spacing: -0.14em;
  line-height: .8;
  text-shadow: 2px 0 0 #00a9e8;
}

.vtlr-logo-text small {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.vtlr-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 20px;
  font-size: 13px;
  font-weight: 800;
}

.vtlr-nav a {
  color: #fff;
  opacity: .92;
  text-decoration: none;
}

.vtlr-nav a:first-child {
  color: var(--vtlr-green);
}

.vtlr-socials {
  display: flex;
  gap: 10px;
}

.vtlr-advantage-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  color: #102c43;
  background: var(--vtlr-green);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.vtlr-socials span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: var(--vtlr-navy);
  background: rgba(255, 255, 255, .88);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.vtlr-hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 30px;
  padding: 28px 0 48px;
}

.vtlr-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 13px;
  color: #fff;
  background: var(--vtlr-green);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.vtlr-hero h1 {
  margin: 12px 0 10px;
  font-size: clamp(38px, 5.8vw, 61px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.vtlr-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 800;
}

.vtlr-level i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 2px;
  background: #e92d35;
  border-radius: 999px;
}

.vtlr-hero p {
  max-width: 610px;
  margin: 0 0 20px;
  color: rgba(255,255,255,.92);
  font-size: 17px;
}

.vtlr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 19px;
  color: #fff;
  background: var(--vtlr-green);
  border: 0;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.vtlr-btn-blue {
  background: var(--vtlr-blue-dark);
}

.vtlr-btn-ghost {
  color: var(--vtlr-blue-dark);
  background: #f3f8fb;
  border: 1px solid var(--vtlr-border);
}

.vtlr-dashboard {
  padding: 22px 0 0;
}

.vtlr-card,
.vtlr-join-card {
  background: var(--vtlr-card);
  border: 1px solid var(--vtlr-border);
  border-radius: var(--vtlr-radius);
  box-shadow: var(--vtlr-shadow);
}

.vtlr-main-grid,
.vtlr-lower-grid,
.vtlr-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(310px, .72fr);
  gap: 16px;
  margin-bottom: 16px;
}

.vtlr-card {
  padding: 18px;
}

.vtlr-card-title {
  margin-bottom: 14px;
}

.vtlr-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vtlr-card-title h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
}

.vtlr-card-title a {
  color: var(--vtlr-blue);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

.vtlr-route-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 245px;
  gap: 16px;
}

.vtlr-map {
  overflow: hidden;
  min-height: 320px;
  background: #b8d7b2;
  border-radius: 5px;
}

.vtlr-map iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
}

.vtlr-fake-map {
  position: relative;
  min-height: 320px;
  background:
    linear-gradient(35deg, rgba(13, 80, 42, .28) 0 18%, transparent 18% 100%),
    linear-gradient(125deg, transparent 0 44%, rgba(59, 129, 53, .3) 45% 58%, transparent 59% 100%),
    repeating-linear-gradient(33deg, rgba(255,255,255,.17) 0 2px, transparent 2px 28px),
    linear-gradient(135deg, #8fbe75, #315f3d);
}

.vtlr-fake-map svg {
  position: absolute;
  inset: 24px 22px;
  width: calc(100% - 44px);
  height: calc(100% - 48px);
}

.vtlr-fake-map path {
  fill: none;
  stroke: #00a8ff;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 0 #004a77);
}

.zoom {
  position: absolute;
  left: 11px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  background: #fff;
  border: 1px solid #b5c7d2;
  font-size: 20px;
  font-weight: 900;
}

.zoom-plus {
  top: 12px;
}

.zoom-minus {
  top: 42px;
}

.map-pin {
  position: absolute;
  z-index: 3;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 999px;
}

.map-pin.start {
  left: 73px;
  bottom: 56px;
  background: #0eae55;
}

.map-pin.finish {
  right: 82px;
  bottom: 52px;
  background: #f23737;
}

.vtlr-route-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 11px;
}

.vtlr-route-stats div {
  min-height: 82px;
  padding: 15px;
  background: #f4f8fb;
  border: 1px solid var(--vtlr-border);
  border-radius: 6px;
}

.vtlr-route-stats small {
  display: block;
  color: var(--vtlr-muted);
  font-size: 12px;
  font-weight: 800;
}

.vtlr-route-stats strong {
  display: block;
  margin-top: 5px;
  color: var(--vtlr-ink);
  font-size: 18px;
}

.vtlr-article-ride-stats {
  margin-bottom: 14px;
}

.vtlr-elevation {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 6px;
  margin: 12px 0 0;
  color: var(--vtlr-muted);
  font-size: 11px;
}

.vtlr-elevation svg {
  grid-column: 1 / -1;
  width: 100%;
  height: 66px;
  background: #f8fbfd;
  border-radius: 5px;
}

.vtlr-elevation path {
  fill: var(--vtlr-green);
  opacity: .8;
}

.vtlr-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 12px;
}

.vtlr-side {
  display: grid;
  gap: 16px;
}

.vtlr-events {
  display: grid;
  gap: 0;
}

.vtlr-events article {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--vtlr-border);
}

.vtlr-events article:first-child {
  border-top: 0;
  padding-top: 0;
}

.vtlr-events time {
  display: grid;
  place-items: center;
  align-content: center;
  height: 62px;
  color: var(--vtlr-blue);
  background: #e9f5fd;
  border-radius: 6px;
  font-weight: 900;
}

.vtlr-events time strong {
  font-size: 25px;
  line-height: 1;
}

.vtlr-events time span {
  font-size: 11px;
}

.vtlr-events h3 {
  margin: 0 0 3px;
  font-size: 15px;
}

.vtlr-events p {
  margin: 0 0 3px;
  color: var(--vtlr-muted);
  font-size: 12px;
}

.vtlr-events small {
  font-size: 12px;
  font-weight: 900;
}

.vtlr-event-slots {
  display: grid;
  gap: 11px;
}

.vtlr-event-slot + .vtlr-event-slot {
  padding-top: 11px;
  border-top: 1px dashed var(--vtlr-border);
}

.vtlr-full-calendar {
  margin-bottom: 16px;
}

.vtlr-full-calendar .vtlr-card-title span {
  color: var(--vtlr-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.vtlr-calendar-month {
  min-width: 0;
}

.vtlr-calendar-month h3 {
  margin: 0 0 10px;
  color: var(--vtlr-blue-dark);
  font-size: 16px;
  text-transform: capitalize;
}

.vtlr-calendar-weekdays,
.vtlr-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.vtlr-calendar-weekdays {
  margin-bottom: 6px;
  color: var(--vtlr-muted);
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.vtlr-calendar-empty,
.vtlr-calendar-day {
  min-height: 35px;
}

.vtlr-calendar-day {
  position: relative;
  display: grid;
  place-items: center;
  color: var(--vtlr-muted);
  background: #f5f9fc;
  border: 1px solid var(--vtlr-border);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
}

.vtlr-calendar-day.is-today {
  color: var(--vtlr-blue-dark);
  border-color: var(--vtlr-blue);
}

.vtlr-calendar-day.is-sunday {
  color: #153d20;
  background: #eaf7df;
  border-color: #b8dfa1;
}

.vtlr-calendar-day.has-slots {
  color: #fff;
  background: var(--vtlr-blue);
  border-color: var(--vtlr-blue);
  cursor: help;
}

.vtlr-calendar-day.has-slots i {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 5px;
  height: 5px;
  background: var(--vtlr-green);
  border-radius: 999px;
}

.vtlr-calendar-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 10;
  width: max-content;
  max-width: 230px;
  padding: 10px 12px;
  color: #fff;
  background: var(--vtlr-navy);
  border-radius: 6px;
  box-shadow: var(--vtlr-shadow);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity .16s ease, transform .16s ease;
}

.vtlr-calendar-tooltip:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  border: 6px solid transparent;
  border-top-color: var(--vtlr-navy);
  transform: translateX(-50%);
}

.vtlr-calendar-tooltip strong {
  color: var(--vtlr-green);
}

.vtlr-calendar-tooltip em {
  color: rgba(255,255,255,.78);
  font-style: normal;
}

.vtlr-calendar-day.has-slots:hover .vtlr-calendar-tooltip,
.vtlr-calendar-day.has-slots:focus-within .vtlr-calendar-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.ok { color: #16a35b; }
.warn { color: #f09b18; }
.danger { color: #df3030; }

.vtlr-join-card {
  min-height: 158px;
  padding: 20px;
  background:
    linear-gradient(90deg, rgba(235, 249, 229, .98), rgba(218, 244, 210, .92)),
    linear-gradient(135deg, transparent 0 56%, rgba(141,204,0,.22) 57% 58%, transparent 59%);
}

.vtlr-join-card h2 {
  margin: 0 0 8px;
  color: #198147;
  font-size: 20px;
}

.vtlr-join-card p {
  margin: 0 0 12px;
  color: #36634b;
  font-size: 13px;
}

.vtlr-comments {
  display: grid;
  gap: 12px;
}

.vtlr-comments article {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--vtlr-border);
}

.vtlr-comments article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.avatar {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  color: #fff;
  background: linear-gradient(135deg, #75b65f, #0f77b5);
  border-radius: 999px;
  font-weight: 900;
}

.vtlr-comments strong {
  display: block;
  font-size: 13px;
}

.vtlr-comments p {
  margin: 4px 0 0;
  color: var(--vtlr-muted);
  font-size: 13px;
}

.stars {
  color: #ffc400;
  font-size: 13px;
  letter-spacing: 1px;
}

.vtlr-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.vtlr-gallery figure {
  min-height: 122px;
  margin: 0;
  border-radius: 5px;
  background-size: cover;
  background-position: center;
  background:
    linear-gradient(135deg, rgba(7, 30, 49, .12), rgba(141, 204, 0, .18)),
    linear-gradient(135deg, #9bbf76, #315d3d);
}

.vtlr-gallery .photo-2,
.vtlr-gallery .photo-5 {
  background:
    linear-gradient(135deg, rgba(0,125,195,.2), rgba(255,255,255,.3)),
    linear-gradient(145deg, #315d3d, #b4d1e6);
}

.vtlr-gallery .photo-3,
.vtlr-gallery .photo-6 {
  background:
    radial-gradient(circle at 52% 38%, #0d314f 0 10%, transparent 11%),
    linear-gradient(135deg, #b2c788, #204f35);
}

.vtlr-gallery figure[style] {
  background-size: cover;
  background-position: center;
}

.vtlr-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}

.vtlr-news article {
  overflow: hidden;
  background: #f7fbfd;
  border: 1px solid var(--vtlr-border);
  border-radius: 6px;
}

.vtlr-news time {
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  margin: 12px 0 0 12px;
  padding: 5px;
  color: var(--vtlr-blue);
  background: #fff;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.vtlr-news div div {
  padding: 10px 12px 14px;
}

.vtlr-news h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.vtlr-news p {
  margin: 0 0 8px;
  color: var(--vtlr-muted);
  font-size: 12px;
}

.vtlr-news a {
  color: var(--vtlr-blue);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.vtlr-partners {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vtlr-partner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.vtlr-partner-grid span {
  display: grid;
  place-items: center;
  min-height: 62px;
  padding: 10px;
  color: var(--vtlr-blue-dark);
  background: #fff;
  border: 1px solid var(--vtlr-border);
  border-radius: 6px;
  font-size: 18px;
  font-weight: 950;
  text-align: center;
}

.vtlr-partner-grid span.has-logo {
  background: #fff;
}

.vtlr-partner-grid img {
  max-width: 120px;
  max-height: 46px;
  object-fit: contain;
}

.vtlr-footer {
  margin-top: 0;
  color: #d8e7f0;
  background: #061c2d;
}

.vtlr-footer-main {
  display: grid;
  grid-template-columns: 1.4fr .8fr 1fr 1.1fr;
  gap: 42px;
  padding: 34px 0 28px;
}

.vtlr-footer a {
  display: block;
  color: #d8e7f0;
  text-decoration: none;
}

.vtlr-footer strong {
  display: block;
  margin-bottom: 9px;
  color: #fff;
}

.vtlr-footer p {
  margin: 0 0 7px;
  color: #adc3d0;
  font-size: 13px;
}

.vtlr-brand--footer {
  min-width: 0;
}

.vtlr-footer-tagline {
  align-self: center;
  color: #fff;
  font-family: "Segoe Script", "Comic Sans MS", cursive;
  font-size: 21px;
  line-height: 1.3;
  text-align: center;
  transform: rotate(-7deg);
}

.vtlr-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #8ba5b4;
  font-size: 12px;
}

.vtlr-page-hero {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(3, 22, 35, 0.95), rgba(3, 22, 35, 0.68)),
    var(--vtlr-hero-photo, linear-gradient(135deg, transparent, transparent)) center / cover no-repeat,
    linear-gradient(135deg, #071e31, #0f5f7e 47%, #23462d);
}

.vtlr-page-title {
  max-width: 820px;
  padding: 44px 0 58px;
}

.vtlr-page-title h1 {
  margin: 13px 0 10px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.vtlr-page-title p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, .86);
  font-size: 17px;
}

.vtlr-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
  align-items: start;
  padding-bottom: 32px;
}

.vtlr-page-content {
  padding: 28px;
  color: #17344d;
  font-size: 16px;
}

.vtlr-page-content h2,
.vtlr-page-content h3 {
  color: var(--vtlr-ink);
  line-height: 1.15;
}

.vtlr-page-content a {
  color: var(--vtlr-blue);
  font-weight: 800;
}

.vtlr-page-content img {
  height: auto;
  border-radius: 6px;
}

.vtlr-page-featured {
  width: 100%;
  margin-bottom: 20px;
}

.vtlr-page-sidebar {
  display: grid;
  gap: 16px;
}

.vtlr-side-links {
  display: grid;
  gap: 9px;
}

.vtlr-side-links a {
  display: block;
  padding: 12px 13px;
  color: var(--vtlr-ink);
  background: #f4f8fb;
  border: 1px solid var(--vtlr-border);
  border-radius: 5px;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.vtlr-side-links a:hover {
  color: #fff;
  background: var(--vtlr-blue-dark);
}

.vtlr-article-hero {
  min-height: 520px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(3, 22, 35, 0.94), rgba(3, 22, 35, 0.58) 54%, rgba(3, 22, 35, .2)),
    var(--vtlr-hero-photo, linear-gradient(135deg, transparent, transparent)) center / cover no-repeat,
    linear-gradient(135deg, #071e31, #0f5f7e 47%, #23462d);
}

.vtlr-article-title {
  max-width: 760px;
  padding: 74px 0 82px;
}

.vtlr-article-title h1 {
  margin: 14px 0 12px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .98;
  letter-spacing: -0.05em;
}

.vtlr-article-title p {
  max-width: 650px;
  color: rgba(255,255,255,.88);
  font-size: 18px;
}

.vtlr-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255,255,255,.82);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.vtlr-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
  align-items: start;
  padding-bottom: 36px;
}

.vtlr-article-content {
  padding: 34px;
  font-size: 18px;
  line-height: 1.75;
}

.vtlr-article-content h2,
.vtlr-article-content h3 {
  line-height: 1.15;
}

.vtlr-article-content img {
  height: auto;
  border-radius: 6px;
}

.vtlr-side-note {
  margin: 0 0 14px;
  color: var(--vtlr-muted);
  font-size: 14px;
}

@media (max-width: 980px) {
  .vtlr-hero-nav,
  .vtlr-hero-content,
  .vtlr-main-grid,
  .vtlr-lower-grid,
  .vtlr-bottom-grid,
  .vtlr-route-layout,
  .vtlr-page-layout,
  .vtlr-article-layout,
  .vtlr-footer-main {
    grid-template-columns: 1fr;
  }

  .vtlr-hero-nav {
    display: grid;
    gap: 14px;
    padding: 18px 0;
  }

  .vtlr-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .vtlr-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 640px) {
  .vtlr-wrap {
    width: min(100% - 22px, 1180px);
  }

  .vtlr-hero h1 {
    font-size: 38px;
  }

  .vtlr-hero-meta,
  .vtlr-nav {
    gap: 10px 14px;
  }

  .vtlr-route-stats,
  .vtlr-gallery,
  .vtlr-news-grid,
  .vtlr-calendar-months,
  .vtlr-partner-grid {
    grid-template-columns: 1fr;
  }

  .vtlr-comments article {
    grid-template-columns: 42px 1fr;
  }

  .stars {
    grid-column: 2;
  }

  .vtlr-footer-bottom {
    flex-direction: column;
  }
}
