/* Width */
@media (max-width: 1919px) {
  :root {
    --fs: 28px;
  }
}


@media (max-width: 1599px) {
  :root {
    --fs: 27px;
  }
}


@media (max-width: 1399px) {
  :root {
    --fs: 26px;
  }


  /*
   * Horizontally scrollable boxes
   *
   * The section itself stays fixed and provides the visual
   * scroll hint. The Bootstrap container is the scroll viewport.
   */
  .accordeon.boxes {
    position: relative;
    overflow: hidden;
  }

  .accordeon.boxes .container {
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;

    padding-bottom: 1rem;

    /* Firefox fallback */
    scrollbar-width: thin;
    scrollbar-color: rgba(245, 230, 204, .3) transparent;
  }


  /*
  * Chromium / Safari
  *
  * Reset the standardized scrollbar properties so that the
  * ::-webkit-scrollbar dimensions can control the scrollbar.
  */
  @supports selector(::-webkit-scrollbar) {

    .accordeon.boxes .container {
      scrollbar-width: auto;
      scrollbar-color: auto;
    }

    .accordeon.boxes .container::-webkit-scrollbar {
      width: 3px;
      height: 3px;
    }

    .accordeon.boxes .container::-webkit-scrollbar-track {
      background: transparent;
    }

    .accordeon.boxes .container::-webkit-scrollbar-thumb {
      border: 0;
      border-radius: 999px;
      background: rgba(245, 230, 204, .3);
    }

    .accordeon.boxes .container::-webkit-scrollbar-thumb:hover {
      background: rgba(245, 230, 204, .5);
    }

  }


  
}


@media (max-width: 1199px) {
  :root {
    --fs: 25px;
  }
  /*
   * Subtle indication that more content is available
   * horizontally.
   */
  .accordeon.boxes::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1;

    width: 3rem;

    background: linear-gradient(
      to right,
      rgba(0, 0, 37, 0),
      var(--dg)
    );

    pointer-events: none;
  }
  .accordeon.boxes.transparent::after {
    background: linear-gradient(
      to right,
      rgba(0, 0, 37, 0),
      var(--bg)
    );
  }

  .accordeon.boxes::before {
    content: '›';
    position: absolute;
    top: 50%;
    right: .75rem;
    z-index: 2;

    color: var(--wg);
    font-size: 1.5rem;
    line-height: 1;

    opacity: .45;
    pointer-events: none;

    transform: translateY(-50%);
  }
}


@media (max-width: 991px) {
  :root {
    --fs: 22px;
  }

  .eyecatcher .inner .text {
    align-items: flex-end;
  }

  .eyecatcher .inner .text .container {
    padding-bottom: 15px;
  }

  .reference-list .list {
    column-count: 2;
  }

  .image-carousel .swiper-slide {
    max-width: 42vw;
  }

  .image-carousel .swiper-slide.vertical {
    max-width: 28vw;
  }

  .news-list-view .article .teaser-text {
    display: none;
  }

  .photo-gallery .list {
    column-count: 3;
  }

  #site-main.lp {
    margin-top: 2rem;
  }

  .accordeon.boxes {
    --boxes-container-max-width: 720px;
  }
  
  .accordeon.boxes .box.icon-top {
    min-width:40%;
  }
  
}


@media (max-width: 767px) {
  :root {
    --fs: 20px;
  }


  /* Breadcrumb */
  .breadcrumb {
    display: none;
  }


  /* Headers */
  .header.xl {
    font-size: 1.75rem;
  }

  .header.lg {
    font-size: 1.5rem;
  }

  .header.md,
  .text-big {
    font-size: 1.25rem;
  }

  .main-menu .header.md {
    font-size: 1rem;
  }

  .main-menu a span.subheader {
    font-size: .8rem;
  }

  .main-menu a span::after {
    display: none;
  }


  /* References */
  .reference-list .list {
    column-count: 1;
  }


  /* Elements */
  .element .header.lg,
  .element .text-big {
    font-size: 1rem;
    line-height: 1.25;
  }


  /* Accordion */
  .accordeon .top {
    padding-block: 1rem;
  }

  .accordeon .bottom.show {
    padding-bottom: 1rem;
  }


  /* Image carousel */
  .image-carousel .swiper-slide {
    max-width: 60vw;
  }

  .image-carousel .swiper-slide.vertical {
    max-width: 40vw;
  }


  /* Text and image */
  .text-and-image .row > * + * {
    margin-top: 1rem;
  }


  /* Text/image slider */
  .text-image-slider {
    padding-bottom: 2rem !important;
  }

  .text-image-slider .swiper-pagination-progressbar {
    position: relative !important;
    margin-top: 2rem;
    background: none;
  }

  .text-image-slider .swiper-slide {
    height: auto !important;
  }

  .text-image-slider .row.bottom > * + * {
    margin-top: 1rem;
  }

  .text-image-element {
    position: relative;
    top: auto;
  }

  .text-image-element .bottom {
    padding-bottom: 0;
  }


  /* News */
  .news-list-view .article .small .header {
    font-size: .75rem;
  }

  .news-list-view .article .small .subheader {
    font-size: .6rem;
  }

  .news-single .row > div:first-child {
    margin-top: 1rem;
  }


  /* Photo gallery */
  .photo-gallery .list {
    column-count: 2;
  }


  /* Forms */
  .pp-fieldset-data,
  .pp-fieldset-event,
  .pp-fieldset-programme,
  .availability-form .pp-fieldset-captcha-submit,
  .tv-inquiry-form .pp-fieldset-captcha-submit {
    --columns: 1;
  }


/* Footer */
  #site-footer .row > * + * {
    margin-top: .25rem;
  }

  #box-copyright,
  #box-credits {
    text-align: center;
  }


  /* Site main */
  #site-main:not(.lp) {
    padding-top: 4rem;
  }

  #site-main:has(> .eyecatcher:first-child) {
    padding-top: 0;
  }


  /* Evaluation form */
  .evaluation-form .pp-field-first-name,
  .evaluation-form .pp-field-last-name,
  .evaluation-form .pp-field-email,
  .evaluation-form .pp-field-company {
    margin-bottom: 30px !important;
  }


  /* Pretty checkbox / radio */
  .pretty {
    font-size: .85rem;
  }


  /*
   * Prevent iOS Safari from zooming focused form controls.
   * Mobile font sizing is preserved while guaranteeing
   * the required minimum of 16px.
   */
  .contact-form input[type='text'],
  .contact-form input[type='email'],
  .contact-form input[type='tel'],
  .contact-form input[type='url'],
  .contact-form select,
  .contact-form textarea,

  .evaluation-form input[type='text'],
  .evaluation-form input[type='email'],
  .evaluation-form input[type='tel'],
  .evaluation-form input[type='url'],
  .evaluation-form select,
  .evaluation-form textarea,

  .availability-form input[type='text'],
  .availability-form input[type='email'],
  .availability-form input[type='tel'],
  .availability-form input[type='url'],
  .availability-form select,
  .availability-form textarea,

  .tv-inquiry-form input[type='text'],
  .tv-inquiry-form input[type='email'],
  .tv-inquiry-form input[type='tel'],
  .tv-inquiry-form input[type='url'],
  .tv-inquiry-form select,
  .tv-inquiry-form textarea {
    font-size: max(16px, 1rem);
  }


  /*
   * Keep the boxes track wider than the viewport,
   * creating the horizontal scrolling strip.
   */
  .accordeon.boxes {
    --boxes-track-width: calc(
      992px - var(--bs-gutter-x, 1.5rem)
    );

    --boxes-container-max-width: 540px;
  }
  .accordeon.boxes .box.icon-top {
    min-width:60%;
  }
}


@media (max-width: 575px) {
  .accordeon.boxes {
    --boxes-container-max-width: 100vw;
  }
}


@media (max-width: 374px) {
  :root {
    --fs: 18px;
  }
}


/* Height */
@media (max-height: 1080px) and (orientation: landscape) {
  :root {
    --fs: 22px;
  }
}


@media (max-height: 900px) and (orientation: landscape) {
  :root {
    --fs: 20px;
  }
}


@media (max-height: 800px) and (orientation: landscape) {
  :root {
    --fs: 18px;
  }
}