/* ==========================================================================
   Front-end only: header, menu, footer, page furniture, and the behaviour
   that would get in the way inside the editor (stretched card links,
   the hero slideshow).
   ========================================================================== */

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-150%);
}

.skip-link:focus { transform: none; }

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Header: the main site's yellow bar ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--yellow);
  color: var(--black);
}

.admin-bar .site-header { top: 32px; }

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

@media (max-width: 600px) {
  .admin-bar .site-header { top: 0; }
}

/* optional utility links above the bar (Appearance > Menus > Utility) */
.utility-bar {
  border-bottom: 1px solid rgb(0 0 0 / .85);
}

.utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 22px;
  width: min(100% - 2 * var(--gutter), var(--col) + 100px);
  min-height: 46px;
  margin-inline: auto;
  padding-right: clamp(0px, 1vw, 12px);
}

.utility-bar ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.utility-bar a {
  font: 500 14px/1.2 var(--font-ui);
  text-decoration: none;
}

.utility-bar a:hover { text-decoration: underline; text-underline-offset: 4px; }

.search-form {
  display: flex;
  align-items: center;
}

.search-form .search-submit {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.search-form input[type="search"] {
  width: 180px;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: 400 14px/1 var(--font-ui);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  width: min(100% - 2 * var(--gutter), var(--col) + 100px);
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: clamp(0px, 1vw, 12px);
}

.brand {
  display: block;
  flex: none;
  border-radius: 4px;
  line-height: 0;
}

.brand img,
.brand .custom-logo {
  display: block;
  width: 137px;
  height: auto;
}

.site-title {
  font: 900 24px/1 var(--font-ui);
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  padding-left: 20px;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.15vw, 22px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__list li { position: relative; margin: 0; }

.site-nav__list a {
  display: block;
  padding-block: 8px;
  color: var(--black);
  font: 600 14px/1 var(--font-display);
  letter-spacing: -.01em;
  white-space: nowrap;
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
  transition: text-decoration-color .2s;
}

.site-nav__list a:hover,
.site-nav__list .current-menu-item > a,
.site-nav__list .current-menu-ancestor > a,
.site-nav__list .current_page_item > a { text-decoration-color: var(--black); }

/* a menu item given the CSS class "menu-button" becomes a button (as on the main site) */
.site-nav__list .menu-button > a {
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--black);
  color: var(--white);
  text-decoration: none;
  transition: background-color .2s, color .2s;
}

.site-nav__list .menu-button > a:hover {
  background: var(--white);
  color: var(--black);
}

/* dropdowns */
.site-nav__list .sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: -16px;
  z-index: 10;
  display: none;
  min-width: 220px;
  margin: 0;
  padding: 8px 0;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 32px -12px rgb(0 0 0 / .35);
  list-style: none;
}

.site-nav__list .sub-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.site-nav__list li:hover > .sub-menu,
.site-nav__list li:focus-within > .sub-menu { display: block; }

.site-nav__list .sub-menu a {
  padding: 10px 16px;
  font-weight: 500;
  white-space: normal;
}

.site-nav__list .sub-menu a:hover { background: var(--grey); text-decoration-color: transparent; }

.site-nav__list .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 0 3px 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.site-nav .site-nav__utility { display: none; }

/* the header button (Customizer > Wander Niagara > Header) */
.site-nav__cta,
.header-cta {
  min-width: 0;
  min-height: 43px;
  padding-inline: 14px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 14px;
}

.site-nav__cta { margin-left: clamp(14px, 1.4vw, 24px); }

.site-nav__cta:hover,
.header-cta:hover {
  background: var(--white);
  color: var(--black);
}

.header-cta,
.menu-toggle { display: none; }

@media (max-width: 899px) {
  .brand img,
  .brand .custom-logo { width: 110px; }
}

/* Compact header: the theme script adds .is-compact whenever the menu no longer fits
   beside the logo, however many links it holds. Without the script, phones get it. */
.site-header.is-compact .utility-bar { display: none; }
.site-header.is-compact .brand { margin-right: 12px; }

.site-header.is-compact .header-cta {
  display: inline-flex;
  flex: none;
  min-width: 0;
  min-height: 40px;
  margin-left: auto;
}

.site-header.is-compact .menu-toggle {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 -8px 0 8px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--black);
  cursor: pointer;
  transition: background-color .2s;
}

.site-header.is-compact .menu-toggle:hover { background: rgb(0 0 0 / .08); }
.site-header.is-compact .menu-toggle .icon { font-size: 28px; }
.site-header.is-compact .menu-toggle .icon--close { display: none; }
.site-header.is-compact .menu-toggle[aria-expanded="true"] .icon--menu { display: none; }
.site-header.is-compact .menu-toggle[aria-expanded="true"] .icon--close { display: block; }

.site-header.is-compact .site-nav {
  position: absolute;
  padding-left: 0;
  top: 100%;
  left: calc(-1 * var(--gutter));
  right: calc(-1 * var(--gutter));
  display: none;
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: 4px var(--gutter) 24px;
  border-top: 1px solid rgb(0 0 0 / .12);
  background: var(--yellow);
  box-shadow: 0 16px 24px -12px rgb(0 0 0 / .35);
}

.site-header.is-compact .site-nav[data-open] { display: block; }

.site-header.is-compact .site-nav__list {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.site-header.is-compact .site-nav__list a {
  padding: 16px 0;
  border-bottom: 1px solid rgb(0 0 0 / .12);
  font-size: 17px;
  white-space: normal;
}

.site-header.is-compact .site-nav__list .menu-button > a {
  display: inline-block;
  margin: 12px 0 4px;
  padding: 12px 16px;
  border-bottom: 0;
}

.site-header.is-compact .site-nav__list .sub-menu {
  position: static;
  display: block;
  min-width: 0;
  padding: 0 0 0 16px;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.site-header.is-compact .site-nav__list .sub-menu a { padding: 12px 0; font-size: 15px; }
.site-header.is-compact .site-nav__list .sub-menu a:hover { background: none; }
.site-header.is-compact .site-nav__list .menu-item-has-children > a::after { display: none; }
.site-header.is-compact .site-nav__cta { display: none; }

.site-header.is-compact .site-nav .site-nav__utility {
  display: block;
  margin-top: 16px;
}

.site-header.is-compact .site-nav__utility ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header.is-compact .site-nav__utility a { font: 500 14px/1.4 var(--font-ui); }
.site-header.is-compact .site-nav__utility .search-form { margin-top: 16px; }
.site-header.is-compact .site-nav__utility input[type="search"] { width: 100%; min-height: 44px; }

/* without JavaScript the menu stays open under the logo on phones */
@media (max-width: 899px) {
  html:not(.js) .site-header__inner { flex-wrap: wrap; height: auto; padding-block: 12px; }
  html:not(.js) .site-header { position: static; }
  html:not(.js) .site-nav { flex-basis: 100%; margin: 8px 0 0; }
  html:not(.js) .site-nav__list { flex-wrap: wrap; gap: 4px 18px; }
  html:not(.js) .utility-bar { display: none; }
}

@media (max-width: 359px) {
  .brand img,
  .brand .custom-logo { width: 92px; }

  .site-header.is-compact .header-cta { padding-inline: 10px; font-size: 13px; }
}

/* ---------- Main ---------- */

/* short pages still put the footer at the bottom of the window */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.site-main {
  display: block;
  flex: 1 0 auto;
}

.site-footer { flex: none; }

/* a page that doesn't open with a hero or a title still gets room under the header */
.entry-content--landing > :first-child:not(.hero),
.site-main > .entry-content:first-child > :first-child:not(.hero) { margin-top: var(--section-gap); }

/* every card whose title is a link is clickable all over */
.trip h3 a::after,
.trip .wp-block-post-title a::after,
.plan-card a::after,
.tile .wp-block-button__link::after,
.miss-card h4 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.trip h3 a:focus-visible,
.plan-card a:focus-visible,
.tile .wp-block-button__link:focus-visible,
.miss-card h4 a:focus-visible { outline: none; }

.trip:has(h3 a:focus-visible),
.trip:has(.wp-block-post-title a:focus-visible),
.plan-card:has(a:focus-visible),
.tile:has(.wp-block-button__link:focus-visible),
.miss-card:has(h4 a:focus-visible) {
  outline: 3px solid var(--focus, var(--black));
  outline-offset: 3px;
}

.miss-card:has(h4 a:focus-visible) { --focus: var(--black); }

/* the read-more link under a card title is decoration once the card is a link */
.trip .wp-block-read-more { position: relative; z-index: 0; }

/* ---------- Hero slideshow ---------- */

/* the slideshow's extra photos: a Gallery block inside the hero. The theme script fades
   through them behind the headline; in the editor they show as labelled thumbnails. */
.wp-block-cover .wp-block-gallery.hero__slides { display: none !important; }

.hero__slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero__slide.is-active { opacity: 1; }

.hero__controls {
  position: absolute;
  left: 50%;
  bottom: clamp(12px, 2vh, 22px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  translate: -50% 0;
}

.hero__dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}

.hero__dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgb(0 0 0 / .35);
  transition: background-color .2s, transform .2s var(--ease-out);
}

.hero__dot:hover::before { transform: scale(1.2); }
.hero__dot[aria-current="true"]::before { background: var(--yellow); border-color: var(--yellow); }
.hero__dot:focus-visible { outline-offset: 0; }

/* ---------- Page header: pages and archives without a hero ---------- */

.page-header {
  width: min(100% - 2 * var(--gutter), 760px);
  margin: clamp(40px, 4vw + 20px, 72px) auto 0;
  text-align: center;
}

.page-header h1 {
  font: 700 var(--display-size)/1.21 var(--font-display);
  letter-spacing: -.04em;
  text-wrap: balance;
}

.page-header__intro {
  margin-top: 16px;
  font-size: 17px;
  line-height: 27px;
  text-wrap: balance;
}

.page-header + .entry-content,
.page-header + .posts,
.page-header + .wrap { margin-top: clamp(28px, 2vw + 16px, 40px); }

.hero + .entry-content,
.hero + .story { margin-top: var(--section-gap); }

/* ---------- Blog, archives and search: story cards ---------- */

.posts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.posts > li { margin: 0; }

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  min-height: clamp(360px, 16vw + 230px, 480px);
  padding: 60px 32px 24px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--white);
  text-align: center;
  isolation: isolate;
  --focus: var(--yellow);
}

.post-card__img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .43;
  transition: transform .7s var(--ease-out), opacity .3s;
}

.post-card:hover .post-card__img { transform: scale(1.04); opacity: .5; }

.post-card__meta {
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  font: 500 13px/1 var(--font-ui);
  letter-spacing: .03em;
}

.post-card__title {
  max-width: 17em;
  margin-block: auto 0;
  font: 500 21px/1.2 var(--font-ui);
}

.post-card__title a { text-decoration: none; }

.post-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.post-card__title a:focus-visible { outline: none; }
.post-card:has(.post-card__title a:focus-visible) { outline: 3px solid var(--black); outline-offset: 3px; }

.post-card__excerpt {
  max-width: 28em;
  margin: 12px 0 auto;
  font-size: 15px;
  line-height: 23px;
}

.post-card .btn { margin-top: 24px; }
.post-card:hover .btn { background: var(--white); color: var(--black); }

.post-card--no-image { background: var(--ink); }

@media (max-width: 759px) {
  .posts { grid-template-columns: minmax(0, 1fr); }
}

.pagination {
  margin-top: 40px;
  text-align: center;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius);
  background: var(--grey);
  font: 600 15px/1 var(--font-ui);
  text-decoration: none;
}

.pagination a.page-numbers:hover,
.pagination .current { background: var(--yellow); color: var(--black); }

.empty-state {
  width: min(100% - 2 * var(--gutter), 760px);
  margin: 0 auto;
  text-align: center;
}

.empty-state .search-form { justify-content: center; margin-top: 20px; }
.empty-state .search-form input[type="search"] { width: min(100%, 320px); min-height: 44px; border: 2px solid var(--ink); }

/* ---------- Single story ---------- */

.story {
  width: min(100% - 2 * var(--gutter), var(--content));
  margin-inline: auto;
}

.story > .entry-content > * { width: 100%; }
.story > .entry-content > .alignwide { width: min(100vw - 2 * var(--gutter), var(--col)); margin-left: 50%; translate: -50% 0; }
.story > .entry-content > .alignfull { width: 100vw; margin-left: 50%; translate: -50% 0; }

.story__footer { margin-top: 48px; }
.story__tags { margin-top: 24px; font-size: 14px; }
.story__tags a { text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }

.post-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.post-navigation .nav-next { text-align: right; }
.post-navigation a { display: block; padding: 18px 20px; border-radius: var(--radius); background: var(--grey); text-decoration: none; }
.post-navigation a:hover { background: var(--yellow); }
.post-navigation .meta-nav { display: block; font: italic 400 14px/1.3 var(--font-ui); }
.post-navigation .post-title { display: block; margin-top: 4px; font-weight: 700; }

/* ---------- Comments ---------- */

.comments-area {
  width: min(100% - 2 * var(--gutter), var(--content));
  margin: var(--section-gap) auto 0;
}

.comments-title { font: 700 22px/1.3 var(--font-display); }
.comment-list { margin: 20px 0 0; padding: 0; list-style: none; }
.comment-list .children { margin-left: 24px; padding: 0; list-style: none; }
.comment-body { padding: 18px 0; border-top: 1px solid var(--line); }
.comment-meta { font-size: 14px; }
.comment-content { margin-top: 8px; line-height: 1.6; }
.comment-respond { margin-top: 32px; }
.comment-form label { display: block; margin-bottom: 4px; font-weight: 600; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea { width: 100%; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 8px; font: inherit; }
.comment-form p { margin-top: 14px; }
.comment-form .submit { border: 0; }
.comment-form .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 10px; }
.comment-form .comment-form-cookies-consent input { margin-top: 4px; }
.comment-form .comment-form-cookies-consent label { margin: 0; font-weight: 400; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: var(--section-gap);
  padding: 48px 0 32px;
  background: var(--black);
  color: var(--white);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 32px 48px;
}

.site-footer .brand img,
.site-footer .brand .custom-logo {
  /* the wordmark ships black; the footer sets it in white */
  filter: brightness(0) invert(1);
}

.site-footer .brand.has-footer-logo img { filter: none; }

.site-footer__cols {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 32px clamp(28px, 3vw, 48px);
}

.site-footer__label {
  font: 700 14px/1.2 var(--font-display);
  letter-spacing: .04em;
}

.footer-plan ul {
  columns: 2;
  column-gap: 28px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.footer-plan li {
  margin-bottom: 8px;
  font-size: 14px;
  break-inside: avoid;
}

.footer-plan .sub-menu { display: none; }

.social {
  display: flex;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgb(255 255 255 / .1);
  color: var(--white);
  transition: background-color .2s, color .2s;
}

.social a:hover { background: var(--yellow); color: var(--black); }

.social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.site-footer__tiao {
  align-self: start;
  border-radius: 4px;
}

.site-footer__tiao img {
  display: block;
  width: auto;
  height: 64px;
}

.site-footer__links {
  display: grid;
  gap: 14px;
  align-content: start;
  margin: 0;
  padding: 2px 0 0;
  list-style: none;
}

.site-footer__links a { font-weight: 500; }

.footer-plan a,
.site-footer__links a,
.site-footer__legal a {
  text-decoration: underline;
  text-decoration-color: rgb(255 255 255 / .35);
  text-underline-offset: 4px;
  transition: text-decoration-color .2s, color .2s;
}

.footer-plan a:hover,
.site-footer__links a:hover,
.site-footer__legal a:hover {
  color: var(--yellow);
  text-decoration-color: var(--yellow);
}

.site-footer__legal {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / .14);
  font-size: 13px;
}

.site-footer__legal span { margin-inline: 8px; }

@media (max-width: 759px) {
  .site-footer__inner { grid-template-columns: minmax(0, 1fr); }
  .site-footer__cols { justify-content: flex-start; }
}

/* ---------- Content from the previous theme: front-end behaviour ---------- */

/* the home page's slideshow photos, without a headline over them */
.wp-block-cover.hero--bare {
  min-height: 0;
  aspect-ratio: 1800 / 650;
  max-height: 75vh;
}

.wp-block-cover.hero--bare > .wp-block-cover__background { opacity: 0 !important; }

@media (max-width: 599px) {
  .wp-block-cover.hero--bare { aspect-ratio: 4 / 3; }
}

/* main-menu items that repeat a utility link: shown once on wide screens, once in the phone menu */
.site-header:not(.is-compact) .site-nav__list > .is-utility-dup { display: none; }
.site-header.is-compact .site-nav:has(.is-utility-dup) .site-nav__utility ul { display: none; }
.site-header.is-compact .site-nav:has(.is-utility-dup) .site-nav__utility .search-form { margin-top: 16px; }

/* the event pages' logo */
.brand--event svg { display: block; width: 150px; height: auto; max-height: 70px; }

@media (max-width: 899px) {
  .brand--event svg { width: 120px; }
}

/* partner and photo cards are clickable all over */
.lg-listing__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.lg-listing__title a:focus-visible { outline: none; }
.lg-listing:has(.lg-listing__title a:focus-visible) { outline: 3px solid var(--black); outline-offset: 3px; }

/* cards in a row line up at the bottom */
.lg-carousel__track > .lg-listing { height: auto; }

/* carousel arrows, added by the theme script when a row overflows */
.lg-carousel__btn {
  position: absolute;
  top: calc(50% - 26px);
  z-index: 2;
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  font: 600 20px/1 var(--font-ui);
  box-shadow: 0 4px 14px rgb(0 0 0 / .25);
  cursor: pointer;
  transition: background-color .2s, opacity .2s;
}

.lg-carousel.is-scrollable > .lg-carousel__btn { display: grid; }
.lg-carousel__btn:hover { background: var(--yellow); }
.lg-carousel__btn:disabled { opacity: 0; pointer-events: none; }
.lg-carousel__btn--prev { left: -12px; }
.lg-carousel__btn--next { right: -12px; }
.lg-carousel--cards .lg-carousel__btn { top: 25%; }
.lg-taste__media .lg-carousel__btn { width: 36px; height: 36px; font-size: 16px; }
.lg-taste__media .lg-carousel__btn--prev { left: 8px; }
.lg-taste__media .lg-carousel__btn--next { right: 8px; }

@media (max-width: 599px) {
  .lg-carousel__btn { display: none !important; }
}

/* lightbox */
.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(0 0 0 / .92);
  color: var(--white);
}

.lightbox::backdrop { background: rgb(0 0 0 / .6); }

.lightbox__figure {
  display: grid;
  place-items: center;
  height: 100%;
  margin: 0;
  padding: 56px 64px 40px;
}

.lightbox__figure img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: 8px;
}

.lightbox__figure figcaption { margin-top: 10px; font: 500 14px/1.4 var(--font-ui); text-align: center; }

.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / .12);
  color: var(--white);
  font: 400 26px/1 var(--font-ui);
  cursor: pointer;
}

.lightbox__btn:hover { background: var(--yellow); color: var(--black); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { top: 50%; left: 12px; translate: 0 -50%; }
.lightbox__next { top: 50%; right: 12px; translate: 0 -50%; }
.lightbox.is-single .lightbox__prev,
.lightbox.is-single .lightbox__next { display: none; }

html:has(.lightbox[open]) { overflow: hidden; }
