
.main-banner {
    width: 100%;
    height: max(700px, calc(100vh - 80px));
   
    display: grid;
    grid-template: 1fr / 1fr;
}
  
.main-banner .background {
  grid-column: 1 / 1;
  grid-row: 1 / 1;
  width: 100%;
  height: max(700px, calc(100vh - 80px));
  z-index: 2;
}
.main-banner .background > .images {
  grid-template: 1fr / 1fr;
  display: grid;
  width: 100%;
  height: max(700px, calc(100vh - 80px));
}
.main-banner .background > .images > div {
  grid-column: 1 / 1;
  grid-row: 1 / 1;
  width: 100%;
  height: max(700px, calc(100vh - 80px));
}
.main-banner .background > .images > div > img {

  width: 100%;
  height: max(700px, calc(100vh - 80px));

  transform: scaleX(0);
  transform-origin: left bottom;
  object-fit: cover;
  opacity: 0;
  
  transition: transform 1s ease-out, opacity 1s ease-out;

}
.main-banner .background > .images > .visible > img  {
  transform-origin: right bottom;
  transform: scaleX(1);
  opacity: 1;
}
  .main-banner .overlay {
    z-index: 4;
    grid-column: 1 / 1;
    grid-row: 1 / 1;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);

    
  }
  .main-banner .container {

 
    height: 100%;
 

  }
  .main-banner .caption {

 
    padding: 20px 0;
    text-align: left;
    position: relative;

    height: auto;
 
    top: calc(50% - 200px);

   

  }
  

  
  .main-banner .caption h2 {

    font-size: 60px;

    font-weight: 800;
   
    font-family: var(--titlefont);
    
    color: var(--lightcolor);
   
    margin-bottom: 10px;
  }

  .main-banner .caption .subtitle {

 
    height: 50px;
    display: block;
    width: 100%;
    margin-bottom: 20px;

  }

  .main-banner .caption .subtitle a {

    font-size: 50px;
    font-family: var(--titlefont);
    font-weight: 600;
    color: var(--lightcolor);
    padding: 2px;
   
    position: absolute;
    margin-bottom: 20px;

   
    transition: all 0.5s;

    transform-origin: left top;
    transform: scaleY(0);

    z-index: 7;
  }

 

  .main-banner .caption .subtitle a:nth-child(0) {
    background-color: var(--accentcolor3);
  }
  .main-banner .caption .subtitle a:nth-child(2) {
    background-color: var(--accentcolor2);
  }
  .main-banner .caption .subtitle a:nth-child(1) {
    background-color: var(--accentcolor3);
  }
  .main-banner .caption .subtitle a:nth-child(3) {
    background-color: var(--accentcolor1);
  }

  .main-banner .caption .subtitle .visible:hover {

    background-color: var(--accentcolor4);
    transform: scale(1.01);
  }
  .main-banner .caption .subtitle .visible::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 3px;
    bottom: 0;
    left: 0;
 
    background-color: var(--lightcolor);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
   
  }

  .main-banner .caption .subtitle:hover .visible:hover::after {
    transform: scaleX(1);

    transform-origin: bottom left;
  }

  .main-banner .caption .subtitle .visible {
    transform-origin: left bottom;
    transform: scaleY(1);
  }

  .main-banner .caption .news {
    margin-top: 80px;

    padding: 6px;
    background-color: rgba(0, 0, 0, 0.212);
  }

  .main-banner .caption .news > h3 {
    font-size: 16px;
    font-family: var(--titlefont);
    font-weight: 400;
    color: var(--lightcolor);
    padding: 2px;
  }

  .main-banner .caption .news > ul {
    height: auto;
    width: auto;
    display: block;
  }

  .main-banner .caption .news > ul > li {
    height: auto;
    width: auto;
    display: block;
  }

  .main-banner .caption .news a {
    height: auto;
    width: auto;

    margin: 4px;
    display: inline-block;
    position: relative;
    transition: all 0.4s;
  }
  .main-banner .caption .news a > * {
    display: flex;
    margin-bottom: 1px;
  }
  


  .main-banner .caption .news a h4 {
    font-size: 24px;
    font-family: var(--titlefont);
    font-weight: 300;
    color: var(--lightcolor);

  }
  .main-banner .caption .news a .date {
    font-size: 14px;
    font-family: var(--textfont);
    font-weight: 300;
    color: var(--lightcolor);
 

  }
  .main-banner .caption .news a .type {
    font-size: 16px;
    font-family: var(--textfont);
    font-weight: 400;
    color: var(--lightcolor);
  

  }


  .main-banner .caption .news a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
 
    background-color: var(--accentcolor4);
    transform-origin: bottom right;
    transition: transform 0.6s ease-out;
    
   
  }
  .main-banner .caption .news a:hover {
    transform: scale(1.01);
  }
  .main-banner .caption .news a:hover::after {
    transform: scaleX(1);

    transform-origin: bottom left;
    
   
  }

  
  @media (max-width: 700px) {
    .main-banner .caption h2 {

      font-size: 70px;
   
    }
  }

  @media (max-width: 500px) {
    .main-banner .caption h2 {

      font-size: 50px;
   
    }
  }