/* ============================================================
   Van Gogh Museum — 1:1 recreation
   Base: the museum's own stylesheet (css/vgm-app.css) loaded
   first in index.html. This file only adds what their JS-driven
   Vue components normally toggle, so the static markup behaves
   exactly like the original.
   ============================================================ */

/* ---------- Fonts (original: Gotham Rounded SSm, inline @font-face) ---------- */
@font-face {
  font-family: Gotham Rounded SSm;
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/GothamRndSSm-Light_Web.woff2") format("woff2");
}
@font-face {
  font-family: Gotham Rounded SSm;
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/GothamRndSSm-Book_Web.woff2") format("woff2");
}
@font-face {
  font-family: Gotham Rounded SSm;
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/GothamRndSSm-Medium_Web.woff2") format("woff2");
}
@font-face {
  font-family: Gotham Rounded SSm;
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/GothamRndSSm-Bold_Web.woff2") format("woff2");
}

/* ---------- Mirrors of Vue runtime removals ---------- */
/* The original removes the mobile bar/logo/menu via v-if on desktop;
   vgm-app.css hides .main-navigation-mobile (the wrapper) at >=64em via
   @supports (display:grid) — every mobile element lives inside that wrapper. */
[hidden] {
  display: none !important;
}

/* ---------- Icons ---------- */
.icon-search, .icon-menu, .icon-close, .icon-arrow-right-medium,
.icon-arrow-up-big, .icon-arrow-down-dotted {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
}
.icon-arrow-up-big { width: 1.75rem; height: 1.75rem; }

/* ---------- Nav overlay screens ----------
   All animation mechanics are the original ones from vgm-app.css:
   the overlay element toggles Vue's nav-overlay transition classes
   (enter: GrowBox .5s cubic-bezier(.22,1,.36,1) forwards → rest state
   inset(0 0 2.125rem 2.125rem); leave: ShrinkBox .5s same easing).
   Screens cross-fade via the Vue "fade" classes (opacity .2s linear).
   Logo swaps with the close X via logo-slide (GrowLogo/ShrinkLogo). */
.nav-overlay { display: none; pointer-events: auto; }
/* the desktop overlay is shown by dropping its `hidden` attribute */
.nav-overlay#nav-overlay:not([hidden]) { display: block; }

/* nav turns white when a screen is open (original behavior) */
.main-navigation.has-open-screen,
.main-navigation.is-open {
  color: #fff;
}
.main-navigation.has-open-screen .main-navigation-desktop-item,
.main-navigation.is-open .main-navigation-desktop-item { color: #fff; }
.main-navigation.has-open-screen .main-navigation-desktop-item.is-active,
.main-navigation.has-open-screen .main-navigation-desktop-item:hover,
.main-navigation.is-open .main-navigation-desktop-item.is-active,
.main-navigation.is-open .main-navigation-desktop-item:hover { background-color: rgba(255, 255, 255, 0.2); }

/* screen items get light text on the black overlay */
.nav-overlay .main-navigation-desktop-screen-item,
.nav-overlay .main-navigation-desktop-footer-item { color: #fff; }
.nav-overlay .main-navigation-desktop-screen-heading { color: #fff; }

/* Vue transition classes driven manually by js/main.js (the same rules
   the original template compiles for <transition name="nav-overlay">,
   <transition name="fade"> and <transition name="logo-slide">) */
.nav-overlay-enter-active { animation: GrowBox 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.nav-overlay-leave-active { animation: ShrinkBox 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

.fade-enter-active, .fade-leave-active { transition: opacity 0.2s linear; }
.fade-enter, .fade-leave-to { opacity: 0; }

.logo-slide-enter-active { animation: GrowLogo 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: 0.5s; }
.logo-slide-leave-active { animation: ShrinkLogo 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
.logo-slide-enter, .logo-slide-leave-to { clip-path: inset(0 0 100% 100%); }

/* only the active panel is shown (original: v-if); JS toggles [hidden] */
.nav-overlay .main-navigation-desktop-screen { display: none; }
.nav-overlay .main-navigation-desktop-screen:not([hidden]) { display: flex; }

/* panels not shown are removed from flow (original: v-if) */
.main-navigation-desktop-screen[hidden],
.main-navigation-mobile-screen[hidden],
.main-navigation-mobile-menu[hidden],
.main-navigation-search[hidden] { display: none !important; }

/* the generated mobile overlay lives inside the nav, not in vgm-app.css
   scope, so the whole sheet is hidden until the builder opens it */
.nav-overlay#mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: var(--background-color, #F8F2D8);
  color: var(--navigation-text-color, #000);
}
.nav-overlay#mobile-overlay[hidden] { display: none !important; }
.nav-overlay#mobile-overlay.is-open { display: flex; }
.nav-overlay#mobile-overlay .main-navigation-mobile-menu:not(.is-hidden),
.nav-overlay#mobile-overlay .main-navigation-mobile-screen.is-visible {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1rem 28px 3rem;
}
.nav-overlay#mobile-overlay .main-navigation-mobile-screen { display: none; }
.nav-overlay#mobile-overlay .main-navigation-mobile-menu { display: none; }
.nav-overlay#mobile-overlay .main-navigation-mobile-menu:not(.is-hidden) { display: flex; }
.nav-overlay#mobile-overlay .main-navigation-mobile-menu-item,
.nav-overlay#mobile-overlay .main-navigation-mobile-screen-item,
.nav-overlay#mobile-overlay .main-navigation-mobile-footer-item { color: #000; }
.nav-overlay#mobile-overlay .main-navigation-mobile-header,
.nav-overlay#mobile-overlay .main-navigation-mobile-menu-header,
.nav-overlay#mobile-overlay .main-navigation-mobile-header,
.nav-overlay#mobile-overlay .main-navigation-mobile-menu-header,
.nav-overlay#mobile-overlay .main-navigation-mobile-screen-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 28px;
}
.nav-overlay#mobile-overlay .main-navigation-mobile-header { justify-content: space-between; }
.nav-overlay#mobile-overlay .main-navigation-mobile-buttons,
.nav-overlay#mobile-overlay .main-navigation-mobile-menu-items,
.nav-overlay#mobile-overlay .main-navigation-mobile-screen-items,
.nav-overlay#mobile-overlay .main-navigation-mobile-footer-items { display: flex; flex-direction: column; }
.nav-overlay#mobile-overlay .main-navigation-mobile-items { display: flex; }
.nav-overlay#mobile-overlay .main-navigation-mobile-buttons { flex-direction: row; align-items: center; }
.nav-overlay#mobile-overlay .main-navigation-mobile-menu-item,
.nav-overlay#mobile-overlay .main-navigation-mobile-screen-item { padding: 0.5rem 0; display: block; }

/* the top bar with hamburger/search */
.main-navigation .main-navigation-mobile-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}
.main-navigation .main-navigation-mobile-logo { position: absolute; right: 1rem; }
@media (min-width: 64em) {
  .main-navigation .main-navigation-mobile { display: none; }
}

/* close X replaces the logo (original: v-if="shouldShowCloseButton") */
.main-navigation .nav-close-btn { color: #fff; }

/* ---------- Mobile nav ----------
   ALL mobile styling comes from vgm-app.css (byte-identical original):
   - .main-navigation-mobile wrapper (bar/header flex, overlay clip-path
     inset(0 0 14px 14px) scoped under .main-navigation .main-navigation-mobile)
   - nav-overlay-mobile enter/leave -> GrowBoxMobile/ShrinkBoxMobile keyframes
   - logo-slide-mobile clip-path wipe on .main-navigation-mobile-logo
   - .main-navigation-mobile-menu/.main-navigation-mobile-screen flex column
   - search screen beige via .is-search-screen .nav-overlay { background:#dacc98 }
   - transition classes driven manually by js/mobile-nav.js */

/* Desktop: search screen */
@media (min-width: 64em) {
  .main-navigation-search {
    position: fixed;
    left: 0; right: 0;
    top: 6.875rem;
    z-index: 20;
    padding-top: 0;
  }
  .search-form-wrapper { display: flex; align-items: center; gap: 2rem; border-bottom: 2px solid #000; padding-bottom: 1rem; }
  .search-input-wrapper { flex: 1; display: flex; }
  .search-input { flex: 1; border: 0; background: transparent; outline: none; color: #000; min-height: 3rem; }
  .search-right-buttons-wrapper { display: flex; align-items: center; gap: 1.5rem; }
  .search-input-button-clear { color: rgba(0, 0, 0, 0.55); }
  .search-input-button-clear:hover { color: #000; }
}

/* fixed teaser images: hide panels not active (original toggles opacity) */
.home-page .home-page-teaser-image { opacity: 0; transition: opacity 0.2s; }
.home-page .home-page-teaser-image.active { opacity: 1; }

/* teasers: only the active card's content is visible while stacking;
   originals cross-fade via Vue — static pages show all cards stacked,
   content wrapper hidden unless active */
.home-page.has-layering-effect .home-page-teaser .content-wrapper { opacity: 0; }
.home-page.has-layering-effect .home-page-teaser.active .content-wrapper { opacity: 1; }
.home-page.has-layering-effect .home-page-teaser.home-page-end.active .content-wrapper { transition-delay: 0.35s; }

/* only the visible card may take clicks — the cards are fixed and stacked,
   so a transparent card on top would otherwise swallow every click */
.home-page-teaser.active { pointer-events: all !important; }
.home-page-teaser:not(.active) { pointer-events: none !important; }
/* keep the links of the visible card above the decorative image layers */
.home-page-teaser.active .home-page-teaser-content a,
.home-page-teaser.active .home-page-teaser-content .link { position: relative; z-index: 2; }

/* cta-list from the original */
.cta-list-item { display: flex; }
.cta-list-item .link { display: inline-flex; align-items: center; gap: 0.625rem; }
.cta-list-item .icon-arrow-right-medium { width: 0.875rem; height: 0.875rem; }

/* language switch (overlay screens) */
.language-switch li { border-bottom: 1px solid rgba(255, 255, 255, 0.25); }
.language-switch .main-navigation-desktop-screen-item.active span,
.language-switch .main-navigation-desktop-screen-item:hover span { text-decoration: underline; }

/* partner logo placeholders (real logos are lazy-loaded images) */
.partner-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1.5px solid rgba(0, 0, 0, 0.35);
  border-radius: 0.188rem;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  opacity: 0.75;
}

/* scroll-for-more visible by default, fades on scroll (handled by JS class).
   The mobile variant is only visible on small screens (as on the original). */
.scroll-for-more { opacity: 1; }
.scroll-for-more.is-hidden { opacity: 0; pointer-events: none; }
.scroll-for-more-mobile { display: none; }
@media (max-width: 63.9375em) {
  .scroll-for-more { display: none; }
  .scroll-for-more-mobile { display: flex; opacity: 1; }
}

/* image fallback */
.image-fallback-wrap { position: absolute; inset: 0; }

/* search screen: black nav text + beige overlay while open (original
   is-search-screen behavior; the fade itself is handled by the shared
   fade-* transition classes above) */
.main-navigation.has-open-screen.is-search-screen,
.main-navigation.has-open-screen.is-search-screen .main-navigation-desktop-item { color: #000; }
.main-navigation.has-open-screen.is-search-screen .nav-overlay { background: #dacc98; color: #000; }
.main-navigation.has-open-screen.is-search-screen .nav-overlay .main-navigation-desktop-screen-item,
.main-navigation.has-open-screen.is-search-screen .nav-overlay .main-navigation-desktop-footer-item,
.main-navigation.has-open-screen.is-search-screen .nav-overlay .main-navigation-desktop-screen-heading { color: #000; }

/* ---------- generated mobile nav (js/subpage-mobile-nav.js) ----------
   The SPA used v-show; the runtime builder must control visibility itself.
   Selectors mirror vgm-app.css specificity so these rules win. */
.main-navigation .main-navigation-mobile .main-navigation-mobile-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  color: var(--navigation-text-color, #000);
}

/* the overlay and its screens stay collapsed until the builder opens them */
.main-navigation .main-navigation-mobile .nav-overlay { display: none; }
.main-navigation .main-navigation-mobile .nav-overlay.is-open {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--background-color, #F8F2D8);
  overflow-y: auto;
}

.main-navigation .main-navigation-mobile .main-navigation-mobile-menu,
.main-navigation .main-navigation-mobile .main-navigation-mobile-screen { display: none; }

.main-navigation .main-navigation-mobile .main-navigation-mobile-menu:not(.is-hidden),
.main-navigation .main-navigation-mobile .main-navigation-mobile-screen.is-visible {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-bottom: 3rem;
  padding-left: 28px;
  padding-right: 28px;
}

.main-navigation .main-navigation-mobile .main-navigation-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.main-navigation .main-navigation-mobile .main-navigation-mobile-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.main-navigation .main-navigation-mobile .main-navigation-mobile-menu-header,
.main-navigation .main-navigation-mobile .main-navigation-mobile-screen-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.main-navigation .main-navigation-mobile .main-navigation-mobile-menu-item,
.main-navigation .main-navigation-mobile .main-navigation-mobile-screen-item {
  display: inline-block;
  padding: 0.5rem 0;
}
.main-navigation .main-navigation-mobile .main-navigation-mobile-menu-items,
.main-navigation .main-navigation-mobile .main-navigation-mobile-screen-items {
  display: flex;
  flex-direction: column;
}

/* desktop: the whole mobile block is off */
@media (min-width: 64em) {
  .main-navigation .main-navigation-mobile { display: none; }
}

/* <picture> is inline and measures 0x0; the absolutely positioned img inside
   it needs a full-size block parent, otherwise the image never paints */
picture {
  display: block;
  width: 100%;
  height: 100%;
}
picture > img {
  display: block;
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .nav-overlay-enter-active,
  .nav-overlay-leave-active {
    animation-duration: 0.01s;
  }
}

/* the home page keeps the bar pinned: its snap sections start at scroll 0,
   so a static bar would slide out of view */
body.home-page .main-navigation,
body.home-page-animated .main-navigation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}
