/* Custom code that lived in Webflow page settings + small fixes for the static version. */

/* Buttons used instead of Webflow divs: drop browser defaults, keep Webflow class styles. */
:where(button.scroll-arrow-left, button.scroll-arrow-right, button.w-nav-button, button.w-dropdown-toggle) {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: inherit;
  cursor: pointer;
}
button.w-dropdown-toggle { display: flex; align-items: center; }
button.w-dropdown-toggle.w--nav-dropdown-toggle-open { display: flex; width: 100%; justify-content: center; }

/* Hidden scrollbar for horizontal carousels */
.scroll-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scroll-container::-webkit-scrollbar { display: none; }

/* Tag lists on artist pages: "Odessa, Leningrad, Paris" */
.connections-item,
.connections-item * {
  display: inline !important;
  white-space: normal !important;
}
.connections-item::after {
  content: ",";
  display: inline-block;
}
.connections-item:last-child::after { content: ""; }

/* Fix: in Webflow `.h1:lang(ru) { font-size: 80px }` overrides the mobile sizes, so Russian
   headings did not fit the phone screen and pushed the menu button off screen.
   Use the same sizes as EN/RO on tablets and phones. */
@media screen and (max-width: 767px) {
  .h1:lang(ru) { font-size: 70px; }
}
@media screen and (max-width: 479px) {
  .h1:lang(ru) { font-size: 52px; }
  /* Long Russian heading on the home page ("Художники—выходцы из Молдовы") */
  .h1-block.moldova .h1:lang(ru) { font-size: 40px; }
  /* First screen grows with its content instead of a fixed 65vh, so text never runs out of it */
  .hero.moldova-project { height: auto; min-height: 65vh; padding-top: 2rem; padding-bottom: 2rem; align-items: center; }
  /* Manifesto: short heading, so no tall first screen (it left a big empty gap before the text) */
  .hero.moldova-project.is-manifesto { min-height: 0; padding-top: 3rem; padding-bottom: 1rem; }
}

/* Language list inside the open mobile menu: centred like the other menu items */
.w--nav-dropdown-list-open .menu-link.dropdown { align-items: center; }

/* Fix: on tablets (768–920px) the footer links row was wider than the screen */
@media screen and (max-width: 991px) {
  .footer-links { flex-wrap: wrap; }
}

/* Visible keyboard focus (Webflow removed outlines) */
a:focus-visible, button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Mobile menu (replaces webflow.js behaviour) */
@media screen and (max-width: 991px) {
  .w-nav[data-collapse="medium"] .w-nav-menu[data-nav-menu-open] {
    display: block !important;
  }
}

/* Breadcrumbs on artist pages (new: cards now open in the same tab) */
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;
  color: var(--_colors---primary--500);
}
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { color: var(--_colors---secondary--green); text-decoration: underline; }

/* Share buttons (look of the AddToAny block, without its script) */
.share-kit { display: flex; flex-wrap: wrap; line-height: 32px; }
.share-button {
  display: inline-flex;
  padding: 0 2px;
  border: 0;
  background: none;
  cursor: pointer;
  text-decoration: none;
}
.share-icon { display: block; width: 32px; height: 32px; border-radius: 4px; }
.share-icon svg { display: block; width: 32px; height: 32px; }
.share-button:hover .share-icon { opacity: .7; }
.share-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: #1a1a1a; color: #fff; padding: 8px 16px; border-radius: 4px; font-size: 14px; z-index: 3000;
}

/* Lightbox: Webflow classes are reused; controls become buttons */
:where(button.w-lightbox-control, button.w-lightbox-item) { appearance: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; }
button.w-lightbox-control { background-color: transparent; }
button.w-lightbox-item { background: none; }

/* "Cookie settings" link in the footer (lets visitors change their choice) */
.cookie-settings-link {
  appearance: none; border: 0; background: none; padding: 0; margin: 0;
  font: inherit; color: inherit; text-decoration: underline; cursor: pointer;
}
