/* special rule - bootstrap xxl and over */

@media (min-width: 1920px) {

  .responsive-maxwidth {
    max-width: 1920px;
    margin: 0 auto;
  }

  .module_index .heroanimation-container {
    max-width: unset;
  }

}

/* special rule - slider tweak for sub-FullHD displays */
@media (max-height: 1000px) and (min-width: 1200px) {

  .swiper-slide {
    height: calc( 85vh );
    overflow-y: hidden;
  }

}

/* special rule - heroanim wrapper tweak needed because of absolute positioning */
@media (min-width: 1200px ) {

  .module_index .heroanimation-wrapper {
    max-height: 953px; /* limit over 1920px */
  }

  body.module_index:not(.fluidhero) .heroanimation-wrapper {
    /* FLUID OFF */ height: calc( ( 100vw - 1rem ) / 1813 * 855 ); /* WHEN FLUID - superseded by calc()'d height */
  }
    
}

@media (min-width: 1400px) {
  /* generic */
  body, .news-lead p, .program-lead p, .event-lead p, .dropdown-menu, .page-link,
  #contents .tag, #news .tag, #searchcontent .tag, .swiper-tags .tag {
    font-size: 18px;
    line-height: 23px;
  }
  .footer {
    font-size: 13px;
    line-height: normal;
  }
  .logo img {
    height: 64px;
  }
  #contents .tag, #news .tag, #searchcontent .tag, .swiper-tags .tag {
    font-size: 17px;
    line-height: 36px;
  }
  .container-fluid {
    max-width: 1920px;
  }
  .module_index .heroanimation-wrapper {
    /* min-height: 720px; - superseded by calc()'d height */
  }
  .indentedcontent .editable-content {
    padding-top: 60px;
    margin-top: 0;
  }
  .indentedcontent .editable-content,
  .displayheading p {
    padding-left: 8%;
    margin-left: 0;
    padding-right: 27%;
    margin-right: 0;
    width: 100%;
    font-size: 22px;
    line-height: 30px;
  }
  h1.display.mt-5 {
    margin-top: 2.2rem!important;
  }
  h1.display,
  .displayheading h1 {
    font-family: 'PPEiko', serif;
    font-size: 3.4rem;
    line-height: 100px;
  }
  .searchcontentform-container,
  .h1extralarge h1,
  h1.extralarge {
    font-size: 72px;
  }
  h1 {
    /* events details */
    font-size: 37px;
    line-height: 46px;
  }
  h2 {
    font-size: 24px;
    line-height: 30px;
  }
  .module_contentitemcategories h2 {
    font-size: 38px;
  }
  .module_contentitemcategories .contentitemcategory-description h2 {
    font-size: 30px;
  }
  .cic-indexitems-headeranddesc h2 + .description.usergenerated {
    margin-top: -1rem!important;
  }
  .newslist h2, .news-item h2 {
    font-size: 20px;
    line-height: 21px;
  }  
  .swiper-caption h2 {
    font-size: 22px;
    line-height: 29px;
  }
  .displayheading .cic-index-headers {
    width: 760px;
    min-height: 360px;
    margin-top: -50px!important;
    margin-left: 46%!important;
    margin-bottom: 0px!important;
  }
  .cic-index-headers-subtitle {
    width: 650px;
  }
  .displayheading.background-kutatasiosztaly .cic-index-headers {
    max-width: 500px;
  }
  .displayheading.background-kutatasiosztaly {
    background-position: 0px -3vw;
  }
  .displayheading.background-adk {
    background-position: -5px -4vw;
  }
  .displayheading.background-artpool {
    background-position: 0px -4vw;
  }
  /* artpool header link */
  .displayheading.background-artpool .cic-index-headers p {
    margin-top: -42px;
  }
  .background-redonright {
    background-position: calc( 100% - 80px ) top;
  }
  body.module_index.fluidhero h1.display {
    font-size: min(9.3vh,6.3vw);
    line-height: min(11vh,7vw);
    white-space: break-spaces;
    margin-top: min(7.9vh,3.9vw)!important;
  }
  body.module_index:not(.fluidhero) .heroanimation-textoverlay p {
    font-size: 21px;
    line-height: 31px;
  }
  body.module_index.fluidhero .heroanimation-textoverlay p {
    font-size: min(3vh,1.5vw);
    line-height: min(3.9vh,1.97vw);
  }
  .swiper-slide {
    width: 580px;
  }
  .menu-container {
    margin-top: 2rem;
    font-size: 38px;
    line-height: 62px;
  }
  nav.overlay-menu li:hover a {
    padding-left: 3rem;
  }
  nav.overlay-menu li::before {
    left: -10px;
    width: 50px;
    height: 77px;
    background-size: 47px 61px;
    background-position: 0px 0px;
  }
  nav.overlay-menu .menu-pageelements {
    font-size: 22px;
    line-height: 29px;
  }
  .cic-staff .cic-indexitems-items h2,
  .cic-staff .cic-indexitems-items h3 {
    font-size: 21px;
    line-height: 30px;    
  }
  .cic-staff .cic-indexitems-container h1 {
  }
  .cic-staff .cic-indexitems-container:nth-of-type(1) h1 {
    font-size: 72px;
    line-height: 85px;
  }
  .searchterm1, .searchterm2, .searchterm3, .searchterm4, .searchterm5 {
    line-height: normal;
    border-bottom: 2px solid var(--kemki-swatch-purple);
  }
  /* classname based on content shortname (content referred to as $item in contents template) */
  body.itemsn-services .content-services .editable-content {
    background-image: url(../images/background-services.svg);
    background-repeat: no-repeat;
    background-position: calc( 100% - 5rem ) top;
  }
  .gridof3 {
    gap: 1.5rem 1.5rem;
  }
  body:not(.fluidhero) .szepmuveszeti-link {
    width: 230px;
  }
  body.fluidhero .szepmuveszeti-link {
    width: min(24vh,12vw);
  }
  .szepmuveszeti-link.en {
  }
}

@media (min-width: 1600px) {
  /* generic */
  body, .news-lead p, .program-lead p, .event-lead p, .dropdown-menu, .page-link,
  #contents .tag, #news .tag, #searchcontent .tag, .swiper-tags .tag {
    font-size: 25px;
    line-height: 30px;
  }
  .footer {
    font-size: 15px;
    line-height: 20px;
    font-weight: 500;
    color: rgba(0,0,0, 0.9);
  }
  .logo img {
    height: 84px;
  }
  #contents .tag, #news .tag, #searchcontent .tag, .swiper-tags .tag {
    font-size: 18px;
    line-height: 38px;
  }
  .module_index .heroanimation-wrapper {
    /* min-height: 890px; - superseded by calc()'d height */
  }
  body.module_index:not(.fluidhero) .heroanimation-textoverlay p {
    /* FLUID OFF */ font-size: 27px;
    /* FLUID OFF */ line-height: 35px;
  }
  .indentedcontent .editable-content {
    padding-top: 90px;
    margin-top: 0;
  }
  .indentedcontent .editable-content,
  .displayheading p {
    padding-left: 7.5%;
    margin-left: 0;
    padding-right: 27%;
    margin-right: 0;
    width: 100%;
    font-size: 26px;
    line-height: 35px;
  }
  .background-redonright {
    background-position: calc( 100% - 120px ) top;
  }
  h1.display.mt-5 {
    margin-top: 3rem!important;
  }
  .searchcontentform-container,
  .h1extralarge h1,
  h1.extralarge {
    font-size: 81px;
  }
  h1 {
    /* events details */
    font-size: 48px;
    font-weight: 500;
    line-height: 60px;
  }
  h2 {
    font-size: 26px;
    line-height: 37px;
  }
  .module_contentitemcategories h2 {
    font-size: 42px;
  }
  .module_contentitemcategories .contentitemcategory-description h2 {
    font-size: 34px;
    line-height: auto;
  }
  .newslist h2, .news-item h2 {
    font-size: 30px;
    line-height: 41px;
  }  
  .swiper-caption h2 {
    font-size: 27px;
    line-height: 29px;
  }
  .swiper-slide {
    width: 720px;
  }
  .cic-indexitems-items h2, .module_contentitemcategories .cic-indexitems-items h2,
  .cic-indexitems-items h3, .module_contentitemcategories .cic-indexitems-items h3 {
    font-size: 30px;
    line-height: 36px;
  }
  .cic-staff .cic-indexitems-items h2,
  .cic-staff .cic-indexitems-items h3 {
    font-size: 25px;
    line-height: 30px;
  }
  .cic-staff .cic-indexitems-container h1 {
  }
  .cic-staff .cic-indexitems-container:nth-of-type(1) h1 {
    font-size: 95px;
    line-height: 115px;
  }
  /* artpool header link */
  .displayheading.background-artpool .cic-index-headers p {
    margin-top: -46px;
  }
  .searchterm1, .searchterm2, .searchterm3, .searchterm4, .searchterm5 {
    line-height: 130%;
    border-bottom: 2px solid var(--kemki-swatch-purple);
  }
  .gridof3 {
    gap: 2rem 1.5rem;
  }
  body:not(.fluidhero) .szepmuveszeti-link {
    /* FLUID OFF */ width: 230px;
  }
  .card-galleryindex .card-galleryindex-open {
    font-size: 70%;
  }  

}

/* OVERRIDES THE ABOVE - limitations around/above "full hd" */
@media (min-width: 1700px) {

  body.module_index:not(.fluidhero) .heroanimation-textoverlay p {
    /* FLUID OFF */ font-size: 28px;
    /* FLUID OFF */ line-height: 38px;
  }

  body.module_index:not(.fluidhero) h1.display {
    /* FLUID OFF */ font-size: 4.2rem;
    /* FLUID OFF */ line-height: 120px;
  }

  body.module_index.fluidhero h1.display {
    /* FLUID ON */ font-size: min(11vh,5.6vw);
    /* FLUID ON */ line-height: min(13vh,6.5vw)
  }

}

/* OVERRIDES THE ABOVE - limitations around/above "full hd" */
@media (min-width: 1850px) {
  h1.display,
  .displayheading h1 {
    font-family: 'PPEiko', serif;
    font-size: 120px;
    line-height: 135px;
  }
  .footer {
    font-size: 18px;
    line-height: 24px;
    font-weight: 600;
  }
  .searchcontentform-container,
  h1.extralarge {
    font-size: 95px;
  }
  h2 {
    font-size: 30px;
    line-height: 37px;
  }
  .module_contentitemcategories h2 {
    font-size: 51px;
  }
  .displayheading {
    max-width: 1920px;
    margin: 0 auto;
  }
  .displayheading .cic-index-headers {
    width: 910px;
    min-height: 440px;
    margin-top: -40px!important;
    margin-left: 45%!important;
    margin-bottom: 20px!important;
  }
  .cic-index-headers-subtitle {
    width: auto;
  }
  .cic-staff .cic-indexitems-items h2,
  .cic-staff .cic-indexitems-items h3 {
    font-size: 30px;
    line-height: 36px;
  }
  .indentedcontent .editable-content,
  .displayheading p {
    padding-left: min(8%, 150px);
    margin-left: auto;
    padding-right: min(27%, 500px);
    margin-right: auto;
    width: 100%;
    font-size: 30px;
    line-height: 40px;
    max-width: 1920px;
  }
  .displayheading.background-adk {
    background-position: 0 -80px;
  }
  .displayheading.background-artpool {
    background-position: 0 -80px;
  }
  /* artpool header link */
  .displayheading.background-artpool .cic-index-headers p {
    margin-top: -55px;
  }
  .displayheading.background-kutatasiosztaly {
    background-position: 0 -80px;
  }
  .swiper-slide {
    width: 769px;
  }
  .menu-container {
    margin-top: 3rem;
    font-size: 52px;
    line-height: 82px;
  }
  nav.overlay-menu li:hover a {
    padding-left: 3.7rem;
  }
  nav.overlay-menu li::before {
    left: -5px;
    width: 55px;
    height: 94px;
    background-size: 47px 80px;
    background-position: 0px 0px;
  }
  nav.overlay-menu .menu-pageelements {
    font-size: 30px;
    line-height: 39px;
  }
  .searchcontentform-container {
    padding-left: 0.8rem!important;
  }
  body:not(.fluidhero) .szepmuveszeti-link {
    width: 270px; /* FLUID OFF */
  }
}

/* all sizes above 1920px FullHD */
@media (min-width: 1921px) {

  .swiper-wrapper.less-imagepixel-than-viewportwidth {
    justify-content: center;
  }

  .swiper-slide {
    width: auto;
    max-width: 40%;
    max-height: 100vh;
    overflow: hidden;
  }

}

/* bootstrap xl */
@media(max-width:1399px){ 
  /* generic */
  body, .news-lead p, .program-lead p, .event-lead p, .dropdown-menu, .page-link,
  #contents .tag, #news .tag, #searchcontent .tag, .swiper-tags .tag {
    font-size: 17px;
    line-height: 22px;
  }
  #contents .tag, #news .tag, #searchcontent .tag, .swiper-tags .tag {
    font-size: 16px;
    line-height: 30px;
  }
  .footer {
    font-size: 15px;
    line-height: 21px;
    font-weight: normal;
  }
  .footer .active {
    font-weight: bold;
  }
  .logo img {
    height: 64px;
  }
  .searchcontentform-container,
  .h1extralarge h1,
  h1.extralarge {
    font-size: 65px;
  }
  h1 {
    font-size: 34px;
    line-height: 46px;
    word-wrap: anywhere;
  }
  .module_contentitemcategories h2 {
    font-size: 34px;
    line-height: 46px;
  }
  .cic-indexitems-headeranddesc h2 + .description.usergenerated {
    margin-top: -2rem!important;
  }
  .module_contentitemcategories .contentitemcategory-description h2 {
    font-size: 28px;
    line-height: auto;
  }
  .description.usergenerated .description-content br,
  .description.usergenerated .description-content br::before {
    content: " " !important; /* override manually entered row breaks, both rule target is needed */
  }
  h2 {
    font-size: 21px;
    line-height: 27px;
  }
  .news-item h2 {
    font-size: 21px;
    line-height: 27px;
    word-wrap: anywhere;
  }

  /* hero anim */
  .module_index .heroanimation-wrapper {
    /* min-height: 640px; - superseded by calc()'d height */
  }
  body.module_index:not(.fluidhero) .heroanimation-textoverlay p {
    font-size: 19px;   /* FLUID REMOVE */
    line-height: 27px; /* FLUID REMOVE */
  }
  .module_index h1.display {
    white-space: break-spaces;
    /* font-size: 19px; */ /* FLUID REMOVE */
    word-wrap: normal; /* override 'anywhere' */
    /* line-height: 27px; */ /* FLUID REMOVE */
  }
  body.module_index.fluidhero h1.display {
    font-size: min(9.3vh,6.3vw);
    line-height: min(11vh,7vw);
    /* font-size: 19px; */ /* FLUID REMOVE */
    margin-top: min(7.9vh,3.9vw)!important;
    /* line-height: 27px; */ /* FLUID REMOVE */
  }
  body.module_index.fluidhero .heroanimation-textoverlay p {
    font-size: min(3vh,1.5vw);
    line-height: min(3.9vh,1.97vw);
  }
  .module_index .heroanimation-container svg polygon {
    stroke-width: 6px;
  }
  h1.display, 
  .displayheading h1 {
    font-size: 2.73rem;
    line-height: 80px;
  }
  h1.display.mt-5 {
    margin-top: 2rem!important;
  }

  /* menu */
  .menu-container {
    margin-top: 2rem;
    font-size: 38px;
    line-height: 62px;
  }
  nav.overlay-menu li:hover a {
    padding-left: 2.5rem;
  }
  nav.overlay-menu li::before {
    left: -4px;
    width: 30px;
    height: 60px;
    background-size: 30px 60px;
    background-position: 0px 0px;
  }
  nav.overlay-menu .menu-pageelements {
    font-size: 22px;
    line-height: 29px;
  }

  /* further settings */

  .swiper-slide {
    width: 630px;
  }
  .swiper-caption h2 {
    font-size: 29px;
    line-height: 30px;
  }
  
  .displayheading h1 {
    font-family: 'PPEiko', serif;
    font-size: 2.5rem;
    line-height: 3rem;
  }
  .displayheading .cic-index-headers {
    width: auto;
    max-width: 500px;
    margin-top: -50px!important;
    margin-left: 44%!important;
    margin-bottom: 20px!important;
  }
  .displayheading.background-artpool .cic-index-headers {
    margin-bottom: 0px!important;
  }
  .displayheading.background-kutatasiosztaly {
    background-position: 0px -4vw;
  }
  .displayheading.background-adk {
    background-position: 10px -5vw;
  }
  .displayheading.background-artpool {
    background-position: 0px -5vw;
  }
  /* artpool header link */
  .displayheading.background-artpool .cic-index-headers p {
    margin-top: -40px;
  }
  .displayheading.background-kutatasiosztaly .cic-index-headers {
    max-width: 400px;
    min-height: 260px;
  }
  .background-redonright {
    background-position: calc( 100% - 60px ) top;
  }
  .indentedcontent .editable-content,
  .displayheading p {
    padding-left: 7%;
    margin-left: 0;
    padding-right: 27%;
    margin-right: 0;
    width: 100%;
    font-size: 21px;
    line-height: 31px;
    padding-top: 30px;
  }
  
  .cic-staff .cic-indexitems-items h2,
  .cic-staff .cic-indexitems-items h3,
  .cic-indexitems-items h2, .module_contentitemcategories .cic-indexitems-items h2,
  .cic-indexitems-items h3, .module_contentitemcategories .cic-indexitems-items h3 {
    font-size: 21px;
    line-height: 27px;
  }
  .module_contentitemcategories .card-img-top {
    height: 220px;
  }
  .searchterm1, .searchterm2, .searchterm3, .searchterm4, .searchterm5 {
    line-height: normal;
    border-bottom: 2px solid var(--kemki-swatch-purple);
  }
  /* classname based on content shortname (content referred to as $item in contents template) */
  body.itemsn-services .content-services .editable-content {
    background-image: none;
    min-height: unset;
  }
  .gridof3 {
    gap: 1.5rem;
  }
  body:not(.fluidhero) .szepmuveszeti-link {
    /* FLUID OFF */ width: 210px;
  }
  
}

/* bootstrap lg */
@media(max-width:1199px){
  /* generic */
  body, .news-lead p, .program-lead p, .event-lead p, .dropdown-menu, .page-link,
  #contents .tag, #news .tag, #searchcontent .tag, .swiper-tags .tag {
    font-size: 16px;
    line-height: 19px;
  }
  .footer {
    font-size: 15px;
    line-height: 18px;
  }
  #contents .tag, #news .tag, #searchcontent .tag, .swiper-tags .tag {
    font-size: 18px;
    line-height: 28px;
  }
  .searchcontentform-container,
  .h1extralarge h1,
  h1.extralarge {
    font-size: 58px;
  }
  h1.display,
  .displayheading h1 {
    font-size: 2.35rem;
    line-height: 69px;
  }
  body.module_index:not(.fluidhero) h1.display {
    /* FLUID OFF */ /* font-size: 2.05rem; */
  }
  h1.display.mt-5 {
    margin-top: 2rem!important;
  }
  .module_index .heroanimation-wrapper {
    min-height: 560px;
  }
 
  h1 {
    font-size: 28px;
    line-height: 36px;
    word-wrap: anywhere;
  }
  h2 {
    font-size: 21px;
    line-height: 28px;
  }
  .module_contentitemcategories h2 {
    font-size: 30px;
    line-height: 35px;
  }
  .module_contentitemcategories .contentitemcategory-description h2 {
    font-size: 26px;
    line-height: auto;
  }
  .news-item h2, .swiper-caption h2 {
    font-size: 19px;
    line-height: 24px;
    word-wrap: anywhere;
  }
  .cic-staff .cic-indexitems-container h1 {
  }
  .cic-staff .cic-indexitems-container:nth-of-type(1) h1 {
    font-size: 60px;
    line-height: normal;
    margin-bottom: 2rem !important;
  }
  .cic-staff .cic-indexitems-items h2,
  .cic-staff .cic-indexitems-items h3,
  .cic-indexitems-items h2, .module_contentitemcategories .cic-indexitems-items h2,
  .cic-indexitems-items h3, .module_contentitemcategories .cic-indexitems-items h3 {
    font-size: 19px;
    line-height: 25px;
  }
  .indentedcontent .editable-content,
  .displayheading p {
    margin-left: 0;
    font-size: 18px;
    line-height: 25px;
  }
  .displayheading h1 {
    font-size: 2.55rem;
    line-height: 74px;
  }
  .displayheading .cic-index-headers {
    margin-top: -30px!important;
    margin-left: 39%!important;
  }
  .displayheading.background-adk {
    background-position: -5px -5vw;
  }
  .displayheading.background-artpool {
    background-position: -80px -4vw;
  }
  /* artpool header link */
  .displayheading.background-artpool .cic-index-headers p {
    margin-top: -34px;
  }
  .displayheading.background-kutatasiosztaly {
    background-position: -50px -4vw;
  }
  .displayheading.background-kutatasiosztaly .cic-index-headers {
    min-height: 250px;
  }

  body:not(.fluidhero) .szepmuveszeti-link {
    /* FLUID OFF */ width: 190px;
  }

}

/* bootstrap md */
@media(max-width:991px){
  /* generic */
  body, .news-lead p, .program-lead p, .event-lead p, .dropdown-menu, .page-link {
    font-size: 18px;
    line-height: 22px;
  }
  #contents .tag, #news .tag, #searchcontent .tag, .swiper-tags .tag {
    font-size: 16px;
    line-height: 25px;
  }  
  .searchcontentform-container,
  .h1extralarge h1,
  h1.extralarge {
    font-size: 60px;
  }
  h1 {
    font-size: 35px;
    line-height: 42px;
    word-wrap: anywhere;
  }
  h2, .news-item h2, .swiper-caption h2 {
    font-size: 26px;
    line-height: 29px;
    word-wrap: anywhere;
  }
  /* hero */
  .module_index .heroanimation-container {
    position: static;
  }
  .module_index .heroanimation-textoverlay {
    opacity: 1;
  }  
  /* freestyle classname from db settings */
  .background-redonright {
    background-image: none;
  }
  .background-redonright .editable-content {
    background: none;
  }
  .module_contentitemcategories h2 {
    font-size: 43px;
    line-height: 49px;
  }
  .module_contentitemcategories .contentitemcategory-description h2 {
    font-size: 22px;
    line-height: auto;
  }
  .cic-indexitems-headeranddesc h2 {    
    font-size: 26px;
    line-height: 29px;
    margin-bottom: 1rem!important;
  }
  .cic-indexitems-headeranddesc h2 + .description.usergenerated {
    margin-top: 0rem!important;
  }
  .cic-staff .cic-indexitems-items h2,
  .cic-staff .cic-indexitems-items h3,
  .cic-indexitems-items h2,
  .cic-indexitems-items h3 {
    font-size: 18px;
    line-height: 23px;
    margin-top: 0.5rem;
    margin-bottom: 0;
  }
  .cic-indexitems-items .card-body p {
    font-size: 16px;
    line-height: 23px;
  }
  .contentitems-details .editable-content {
    background-repeat: no-repeat;
  }
  .contentitems-details-kutatasiosztaly .editable-content,
  .contentitems-details-artpool .editable-content,
  .contentitems-details-adk .editable-content {
    background-image: none;
  }
  /* display headings */
  .displayheading .cic-index-headers {
    width: auto;
    height: auto;
    margin-top: 0px!important;
    margin-left: 0px!important;
    margin-bottom: 1rem!important;
    max-width: unset;
  }
  /* artpool header link */
  .displayheading.background-artpool .cic-index-headers p {
    margin-top: 0px;
  }
  .displayheading h1 {
    font-size: 45px;
    line-height: 49px;
  }
  .displayheading.background-artpool,
  .displayheading.background-kutatasiosztaly,
  .displayheading.background-adk {
    background-image: none;
  }
  .displayheading.background-kutatasiosztaly .cic-index-headers {
    min-height: auto;
  }
  .indentedcontent .editable-content,
  .displayheading p {
    margin-left: 0;
    width: 100%;
    font-size: 22px;
    line-height: 29px;
  }
  
  /* search */
  .searchcontentform-container {
    margin-top: 1.5rem;
  }
  /* pager */
  .page-link {
    padding: .1rem 0.2rem;
    margin: 0 1.5rem;
    min-width: 0.8rem;
  }

  .gridof3 {
    display: grid;
    grid-template-columns: 1fr;
    /* no need to have specific heights for rows for the one column layout */
    grid-template-rows: unset;
    gap: 1.5rem;
  }

  .gridof3-head {
    grid-column: 1;
    grid-row: 1;
  }
  
  .gridof3-image {
    grid-column: 1;
    grid-row: 2;
  }
  
  .gridof3-body {
    grid-column: 1;
    grid-row: 3;
  }
  body.itemsn-services #contents.content-services .editable-content .col h1 {
    margin-bottom: 1rem;
  }
  body.itemsn-services #contents.content-services .editable-content .col {
    padding-right: 1rem;
  }
  body:not(.fluidhero) .szepmuveszeti-link {
    /* FLUID OFF */ width: 170px;
  }

}

/* bootstrap sm */
@media(max-width:767px){
  body, .news-lead p, .program-lead p, .event-lead p, .dropdown-menu, .page-link {
    font-size: 19px;
    line-height: 26px;
  }
  .header-main ul#toolbox li:nth-of-type(2) {
    margin-right: 1.2rem;
  }
  .displayheading h1 {
    font-size: 40px;
    line-height: 46px;
  }
  .displayheading.background-kutatasiosztaly {
    background-image: none;
  }
  .contentitems-details-kutatasiosztaly .editable-content {
    background-image: none;
  }
  .header-main #toolbox .menuicon {
    width: 0rem;
  }
  .swiper-slide .swiper-caption {
    opacity: 1;
  }
  .swiper-tags {
    position: static;
    bottom: unset;
  }
  .swiper-caption {
    height: auto;
  }
  .swiper-button-prev, 
  .swiper-button-next {
    display: none;
  } 
  /* pager */
  .page-link {
    padding: .15rem .1rem;
    margin: 0 0.7rem;
  }
  .divider {
    display: none;
  }
  .pagination {
    justify-content: center;
  }
  .pagination .page-item:first-child .page-link {
    padding: 0.5rem;
    margin: 0;
    display: none;
  }
  .pagination .page-item:last-child .page-link {
    padding: 0.5rem;
    margin: 0;
    display: none;
  }
  .pagination .groupdivider {
    display: none;
  }

  #news .col:hover .card-body {
    background: none !important;
  }
  body.itemsn-services #contents.content-services .editable-content .col {
    padding-right: 0;
  }
  body:not(.fluidhero) .szepmuveszeti-link {
    /* FLUID OFF */ width: 150px;
  }
}

/* bootstrap extra small */
@media(max-width:575px){
  body, .news-lead p, .program-lead p, .event-lead p, .dropdown-menu, .page-link {
    font-size: 16px;
    line-height: 21px;
  }
  .searchcontentform-container,
  .h1extralarge h1,
  h1.extralarge {
    font-size: 40px;
  }
  .searchcontentform-container {
    padding-left: 0.4rem!important; 
  }
  h1 {
    font-size: 33px;
    line-height: 39px;
    word-wrap: anywhere;
  }
  h2, .news-item h2, .swiper-caption h2 {
    font-size: 21px;
    line-height: 26px;
    word-wrap: anywhere;
  }
  /* header */
  .logo img {
    height: 65px;
  }
  /* header - toolbox */
  .header-main #toolbox .menuicon {
    width: 1rem;
  }
  .header-main #toolbox .menuicon a {
    position: fixed;
    top: 1.5rem;
    right: 1rem;
    z-index: 9999;
  }
  .header-main ul#toolbox li {
    margin-left: 0.75rem;
  }
  .header-main ul#toolbox li:nth-of-type(2) {
    margin-left: 0.5rem;
    margin-right: 0.2rem;
  }
  .header-main ul#toolbox li a {
    font-size: 1.3em;
  }
  /* heroanimation */
  h1.display, .module_index h1.display {
    font-size: 37px;
    line-height: 49px;
  }
  #home {
    overflow-x: hidden; /* hide oversized heroanimation */
  }
  .module_index .heroanimation-container {
    /* width: 109%; */
  }
  .module_index .heroanimation-container svg polygon {
    stroke-width: 10px;
  }
  .module_index .heroanimation-textoverlay p {
    font-size: 18px;
    line-height: 23px;
  }
  .szepmuveszeti-link {
    width: 130px;
  }
  .szepmuveszeti-link.en {
    width: 180px;
  }
 /* display headings */
  .displayheading h1 {
    font-size: 35px;
    line-height: 39px;
  }
  .indentedcontent .editable-content,
  .displayheading p {
    margin-left: 0;
    width: 100%;
    font-size: 18px;
    line-height: 25px;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
  }
  
  /* news */
  #contents .tag,
  #news .tag,
  .swiper-tags .tag {
    font-size: 13px;
    line-height: 27px;
  }
  /* menu */
  .menu-container {
    margin-top: 2rem;
    font-size: 22px;
    line-height: 28px;
    font-weight: 500;
  }
  nav.overlay-menu .menu-pageelements {
    font-size: 16px;
    line-height: 22px;
    font-weight: 500;
    padding: 0 0 0 0.7rem;
  }
  nav.overlay-menu li:hover .menu-pageelements,
  nav.overlay-menu li.mobileactive .menu-pageelements {
    padding: 0.3rem 0 0 0.7rem;
  }
  nav.overlay-menu li .menu-pageelements li,
  nav.overlay-menu li.mobileactive .menu-pageelements li {
    margin-bottom: 0.1rem;
  }
  nav.overlay-menu li {
    margin-bottom: 0.3rem;
  }
  body.menuactive nav.overlay-menu:has(.menu-pageelements) .menu-bar > li.mobileactive + li,
  body.menuactive nav.overlay-menu:has(.menu-pageelements) .menu-bar > li:hover + li {
    /* overlaying pageelements submenu */
    transition: background-color 0.3s;
    background-color: var(--kemki-swatch-lightgray);
  }
  nav.overlay-menu li:before {
    top: 5px;
    left: 0px;
    width: 22px;
    height: 46px;
    background-size: 22px 41px;
    background-position: 0px 0px;
  }
  nav.overlay-menu li:hover:before {
    opacity: 0;
  }
  nav.overlay-menu li:hover a {
    padding-left: 0rem;
  } 
  /* footer */
  .footer {
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
  }
  .displayheading.background-kutatasiosztaly {
    background-position: 0 -250px;
  }
  /* search */
  #searchtype-wrap .hideable {
    display: none;
  }
  .cic-staff .cic-indexitems-container h1:nth-of-type(1) {
    font-size: 38px;
    line-height: 42px;
    margin-bottom: 1rem!important;
  }
  #contents .editable-content img {
    width: 100%;
    height: auto;
  }
  
}

/* ios portrait? */
@media(max-width:384px){
  /* heroanimation */
  h1.display {
    font-size: 30px;
    line-height: 39px;
  }
  .header-main ul#toolbox li {
    margin-top: 0.25rem;
  }
  .header-main ul#toolbox li:nth-of-type(2) {
    margin-left: 0.25rem;
    margin-right: 0;
    font-size: 90%;
  }
  .header-main ul#toolbox li a {
    font-size: 1.1em;
  }
  .header-main ul#toolbox li.search img {
    width: 2em;
  }
  .header-main #toolbox .menuicon {
    width: 0.6rem;
  } 
  .header-main #toolbox .menuicon img {
    width: 42px;
  }
}

/* android portrait minimum? */
@media(max-width:320px){
  /* heroanimation */
  h1.display {
    font-size: 25px;
    line-height: 33px;
  }
}

/* framework level portable additions and fixes */

@media(max-width: 991px) {
  /* content img */
  .editable-content img {
    max-width: 100%;
    height: auto;
  }
}
