@media (min-width: 1300px) {
  .mm-overlay {
    display: none;
  }

  .mm-box {
    display: none;
  }
  
  .closeButton{
    font-weight: 700; 
    color: #d00235; 
    position: relative; 
    left: 90%; 
    cursor: pointer;
  }

 
  span {
    font-size: 17px;
    font-weight: 600;
  }
  
  .cards_main {
    display: flex; 
    position: fixed; 
    top: 50%; 
    left: 50%; 
    z-index: 10000; 
    transform: translate(-50%, -50%);
  }

  .cards {
    display: grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .card_item {
    display: flex;
    padding: 1rem;
    
  }
  
  .card_image {
    height: calc(13*1.2rem);
    padding: 1.2rem 1.2rem 0;
    position:relative;
  }
  .card_image:before,
  .card_image:after{
    content: "";
    position: absolute;
    width: 20px;
    left: 60%;
    top: 0;
    height: 45px;
    background: transparent;
    transform: rotate(45deg);
  }
  .card_image:after{
    transform: rotate(-45deg);
    top:auto;
    bottom:-22px;
    left:40%;
  }
  .card_image iframe {
    width:100%;
    height:100%;
    object-fit:cover;
  }

  
  
  .card_item {
    filter:drop-shadow(0 0 5px rgba(0, 0, 0, 0.25));
  }
  
  
  .card {
    width: 650px;
    background-color: white;
    border-radius: 0.25rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-left: 30px;
    background: repeating-linear-gradient(#0000 0 calc(1.2rem - 1px),white 0 0) right bottom /100% 100%,linear-gradient(red 0 0) 30px 0/2px 100% #fff;
    background-repeat: no-repeat;
    line-height: 1.2rem;
  }
  
  .card_content {
    padding: 1.2rem;
  }
  
  h2.card_title,p {
    margin: 1.2rem 0 0 0;
  }

  p {
    font-size: 15px;
  }

  h2.card_title {
      font-size: 1.3em;
  }

  
  .overlay {
    position: fixed;
    /* width: 100%;
    height: 100%; */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(216, 213, 213, 0.5); /* 0.5 is the transparency level */
    z-index: 1000;
  } 
}

.modalButton {
  display: flex; 
  align-items: center;
  justify-content: center;
  background-color: #d00235; 
  color: white; 
  padding: 15px 20px; 
  width: 136px !important; 
  height: 43px; 
  font-size: 14px;
  border: none;
  cursor: pointer;
}

@media (max-width: 1300px) { 
  .mm-overlay {
    display: none;
  }

  .mm-box {
    display: none;
  }
  .closeButton{
    font-weight: 700; 
    color: #d00235; 
    position: relative; 
    left: 50%; 
    cursor: pointer;
  }

  span {
    font-weight: 600;
    font-size: 16px;
  }

  .card-text-divides {
    padding-left: 20px;
  }

  ::-webkit-scrollbar {
    width: 2px;
  }
  
  /* Track */
  ::-webkit-scrollbar-track {
    background: grey; 
  }
   
  /* Handle */
  ::-webkit-scrollbar-thumb {
    background: red; 
  }
  
  /* Handle on hover */
  ::-webkit-scrollbar-thumb:hover {
    background: blue; 
  }
  .cards_main {
    display: flex; 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    z-index: 10000; 
    transform: translate(-50%, -50%);
  }
  
  .cards {
    display: grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .card_item {
    display: flex;
    padding: 1rem;
    
  }
  
  .card_image {
    height: calc(13*1.2rem);
    padding: 1.2rem 1.2rem 0;
    position: relative;
  }
  .card_image:before,
  .card_image:after{
    content: "";
    position: absolute;
    width: 20px;
    left: 60%;
    top: 0;
    height: 45px;
    background: transparent;
    transform: rotate(45deg);
  }
  .card_image:after{
    transform: rotate(-45deg);
    top:auto;
    bottom:-22px;
    left:40%;
  }
  .card_image iframe {
    width:100%;
    height:100%;
    object-fit:cover;
  }
  
  .card_item {
    filter:drop-shadow(0 0 5px rgba(0, 0, 0, 0.25));
   
  }
  
  
  .card {
    width: 550px;
    background-color: white;
    border-radius: 0.25rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-left: 30px;
    background: repeating-linear-gradient(#0000 0 calc(1.2rem - 1px),white 0 0) right bottom /100% 100%,linear-gradient(red 0 0) 30px 0/2px 100% #fff;
    background-repeat: no-repeat;
    line-height: 1.2rem;
    overflow: auto;
    height: 500px;
  }
  
 
  
  h2.card_title,p {
    margin: 1.2rem 0 0 0;
  }

  p {
    font-size: 14px;
  }

  h2.card_title {
      font-size: 1.3em;
  }
  
  .overlay {
    position: fixed;
    /* width: 100%;
    height: 100%; */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(216, 213, 213, 0.5); /* 0.5 is the transparency level */
    z-index: 1000;
  }
  
  .card_text {
    font-size: 11px;
  }
}

@media (max-width: 766px) {
  .overlay {
    display: none;
  }

  .card {
    display: none;
  }

  .mm-overlay {
    position: fixed;
    /* width: 100%;
    height: 100%; */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(216, 213, 213, 0.5); /* 0.5 is the transparency level */
    z-index: 1000;
  }
  
  .mm-box {
    display: flex; 
    flex-direction: column; 
    max-width: 500px; 
    height: 452px; 
    background: white; 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    z-index: 10000; 
    transform: translate(-50%, -50%); 
    overflow: auto; 
    border-radius: 8px; 
    padding: 20px 12px;
  }

  .mm-header {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
  }
  
  .mm-company-name {
    color: #d00235; 
    font-size: 20px; 
    padding: 0 12px 12px 12px;
    font-weight: 700;
  }

  .mm-location {
    font-size: 11px;
    padding: 0 0 4px 4px; 
    font-weight: 600;
  }
  
  iframe {
    max-height: 300px; 
    height: 150px;
    padding-left: 0;
    border: 0;
  }

  .mm-body {
    display: flex; 
    flex-direction: column; 
    padding: 12px;
  }
  
  .mm-text {
    font-size: 13px; 
    padding: 6px 6px 6px 0;
  }

 .mm-title {
    font-size: 13px;
    font-weight: 600;
  }

  .mm-close-btn {
    font-size: 12px; 
    font-weight: 600; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    cursor: pointer; 
    border-radius: 8px; 
    background-color: #d00235; 
    color: white; 
    padding: 4px 8px;
  }
}

