@media (max-width:575.98px) {     

    
    #middle_tab_anounce_banners img {
    border-radius: 6px;
    }
    
  .social-icons {
    /* Optional: reduce visual size */
    transform: scale(0.8);
    transform-origin: center top; /* Keeps it centered and anchored */
    
    /* Critical: prevent layout from expanding */
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }

  /* Hide the visual overflow caused by scaling */
  .social-icons > .badge {
    white-space: nowrap;         /* 🔑 Prevents line breaks */
    display: inline-block;
  }

  /* Optional: reduce spacing slightly to help fit */
  .social-icons a {
    margin-right: 8px !important; /* or use 'mr-1' in HTML */
  }
        
  .social {
    padding-bottom: 20px;
    padding-top: 20px;
    margin-right: auto;
    margin-left: auto;
    }
    
    .logo_white_img {
      height: 35px;
    }
    
    #main_carousel .img-fluid {
    max-width: none;
    display: block; /* Important for margin: auto to work */
    margin: auto;
  }
    
/*  .carousel-item img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }*/
    
  .carousel-fullscreen .carousel-inner .carousel-item {
    height: 100vh;
/*    min-height: 600px;*/
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
  }    
    
  .carousel-caption p {
    display: none;
  }
    
    .carousel-caption {
      margin-top: 50%;
      margin-bottom: 50%;
    }
    
  .carousel-caption h1 {
    font-size: 2em;
   /*    text-transform: uppercase;
    font-weight: 600;
    text-align: center;*/
    white-space: pre-line;
    text-box-trim: trim-end;
  }
    
  .carousel-box {
/*    margin-top: 50%;
    margin-bottom: 50%;
    padding: 40px;
    border-left: none;
    border-right: none;*/
    background-color: rgba(0, 0, 0, 0.5);
    } 
    
  .carousel-item video {
    width: 60em;
    height: 60em;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }    


.dropdown-menu a {
    width: 300px;
    display: block;
    line-height: 0.9em;
    overflow-wrap: break-word !important;
    white-space: normal !important;
}

.dropdown-item {
    margin-top: 1.1em;
    /*padding-bottom: 1.1em;*/
    /*border-bottom: thin solid rgb(209, 209, 209);*/
}
    
 .carousel-box {
/*    border-left: 20px solid rgba(255,255,255,0.50);
    padding-left: 20px;*/
}
    
    #news .card {
        margin: 15px;
}
    
/*    #content .highslide {
    max-width: 100%; 
    height: auto;
    }
    
    #content .pictright {
    max-width: 100%; 
    height: auto;
    
}
    
    #content .highslide img {
    max-width: 100% !important;
    height: auto;
    }*/


}
    
    
@media (max-width:767.98px) {
    
    .carousel-caption h1 {
  /*          font-size: 0.1em;
text-transform: uppercase;
font-weight: 600;
    text-align: center;*/
  }
    
    #accordion .card {
/*  margin-left: 10px;
    margin-right: 10px;*/
    margin: 4px;
    }
    
}


@media (max-width:991.98px) {
    
  .carousel-caption h1 {
 /*       font-size: 1.5em;
line-height: 90%;*/
    white-space: pre-line;
    text-box-trim: trim-end;
  }
    
/*  .modal-content {
    font-size: 90%;
    line-height: 99%;
  }*/
    
  .carousel-box p {
    font-size: 90%;
    line-height: 90%;
  }
    
  .nav-link {
    padding: 0.1rem 0.1rem;
  }

    
 /*    .social {
    padding-top: 50px;
    padding-bottom: 50px;
}*/
    
}
    
    

@media (max-width:1199.98) { 
    
    
 .social {
    padding-bottom: 20px;
    padding-top: 20px;
    display: block;
    clear: both;
  }

        
/*  .carousel_menu {
    display: none;
  }*/

    
}

@media screen and (max-width: 768px) {
    #museum_page_submenu .nav-link {
    padding: 10px 20px 10px 20px;
    border: 1px solid #ced4da;
    border-radius: 20px;
    background-color: #f7f7f7;
    margin-top: 10px;
    }
}







@media (max-width: 575.98px) {
    #content .pictleft {
        float: none !important;
        margin-right: 0 !important;
        margin-bottom: 15px !important;
        width: 100% !important;
        height: auto !important;
    }
    
        #content .pictright {
        float: none !important;
        margin-right: 0 !important;
        margin-bottom: 15px !important;
        width: 100% !important;
        height: auto !important;
    }
}


