 .main-panels {
     display: flex;
     flex-wrap: wrap;
     gap: 20px;
     margin-top: 20px;
 }

     .main-panels.first {
         margin-top: 0;
     }

 .main-panel-item {
     display: flex;
     flex-direction: row;
     width: calc(50% - 10px);
     min-height: 250px;
     background: #1a1a1a;
     position: relative;
     overflow: hidden;
 }

     .main-panel-item.small {
         flex-direction: column;
         flex: 1 1 calc(25% - 15px);
         min-width: 200px;
         max-width: calc(50% - 10px);
         min-height: 300px;
     }

 .main-panels.small-panels {
     display: grid;
     grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
     gap: 20px;
     margin-top: 20px;
 }

     .main-panels.small-panels .main-panel-item.small {
         width: auto;
         flex: none;
     }

 .main-panel-img {
     width: 50%;
     min-width: 50%;
     overflow: hidden;
     display: flex;
     flex-shrink: 0;
     align-self: stretch;
     align-items: center;
     justify-content: center;
     position: relative;
     aspect-ratio: 3 / 2;
     height: 250px;
     min-height: 250px;
     background-color: #000;
 }

 .main-panel-item.small .main-panel-img {
     width: 100%;
     min-width: 0;
     height: 150px;
     min-height: 150px;
     max-height: 150px;
     aspect-ratio: auto;
 }

     .main-panel-item.small .main-panel-img picture, .main-panel-item.small .main-panel-img img {
         display: block;
         width: 100%;
         height: 100%;
         object-fit: cover;
         object-position: center -20px;
         position: relative;
         transition: transform 0.4s ease,object-position 0.4s ease;
     }

         .main-panel-item.small .main-panel-img img.use-transform {
             object-position: center center;
             transform: translateY(-20px);
             will-change: transform;
         }

 @@media (max-width: 767px) {
     .main-panel-item.small .main-panel-img picture,.main-panel-item.small .main-panel-img img

 {
     transform: translateY(-20px);
     transform: none;
 }

 }

 .main-panel-img picture, .main-panel-img img {
     aspect-ratio: 3 / 2;
     display: block;
     width: 100%;
     height: 250px;
     object-fit: contain;
     object-position: center center;
     position: relative;
     transition: transform 0.4s ease;
 }

 .main-panel-item:hover .main-panel-img img {
     transform: scale(1.08);
 }

 .main-panel-content {
     flex: 1 1 0;
     padding: 40px;
     display: flex;
     flex-direction: column;
     justify-content: center;
     align-items: flex-start;
     min-width: 0;
 }

 .main-panel-item.small .main-panel-content {
     width: 100%;
     height: 150px;
     padding: 20px;
     flex: 1 1 0;
     display: flex;
     flex-direction: column;
     justify-content: center;
     align-items: flex-start;
 }

 .main-panel-content .header-5 {
     font-family: 'Playfair Display',sans-serif !important;
     font-size: 25px;
 }

 .main-panel-content .margin-top-12 {
     margin-top: 12px;
     font-size: 24px;
 }

 .main-panel-mobile-button {
     display: none;
 }

 .overlay-content {
     position: absolute;
     inset: 0;
     z-index: 4;
     padding: 40px;
     display: flex;
     flex-direction: column;
     justify-content: center;
     align-items: flex-start;
     opacity: 0;
     transition: opacity 0.3s ease;
     font-size:.8em;
     line-height:20px;
 }

 .main-panel-item.small .overlay-content {
     padding: 20px;
 }

 .main-panel-item:hover .overlay-content {
     opacity: 1;
 }

 .overlay-content .margin-top-12 {
     margin-top: 12px;
 }

 .overlay-content .margin-bottom-12 {
     margin-bottom: 12px;
 }

 .panel-overlay {
     position: absolute;
     inset: 0;
     z-index: 2;
     background-color: var(--red);
     opacity: 0;
     transition: opacity 0.3s ease;
 }

 .main-panel-item:hover .panel-overlay {
     opacity: 1;
 }

 .resources a {
     color: var(--white);
 }

 @@media screen and (max-width: 991px) {
     .main-panel-item,.main-panel-item.small

 {
     flex: 1 1 calc(50% - 10px);
     max-width: calc(50% - 10px);
 }

 .main-panels.small-panels {
     grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
 }

 }

 @@media screen and (max-width: 767px) {
     .main-panel-item,.main-panel-item.small

 {
     width: 100%;
     flex: 1 1 100%;
     max-width: 100%;
     flex-direction: column;
     min-height: 300px;
     position: relative;
 }

 .main-panels.small-panels {
     grid-template-columns: 1fr;
 }

 .resources .section-button-container {
     margin-bottom: 40px;
 }

 .resources .button-clear {
     width: auto;
 }

 .main-panel-img, .main-panel-img.small {
     width: 100%;
     height: 200px;
     background-position: center center;
     background-size: cover;
     pointer-events: auto;
 }

 .main-panel-content, .main-panel-item.small .main-panel-content {
     width: 100%;
     height: auto;
     padding: 20px;
 }

     .main-panel-content .margin-top-12 {
         margin-top: 8px;
         margin-bottom: 12px;
         font-size: 20px;
     }

 .main-panel-mobile-button {
     display: none !important;
 }

 .overlay-content {
     display: flex !important;
     opacity: 0;
     visibility: hidden;
     transition: opacity 0.3s ease,visibility 0.3s ease;
 }

 .panel-overlay {
     display: block !important;
     opacity: 0;
     visibility: hidden;
     transition: opacity 0.3s ease,visibility 0.3s ease;
 }

 .main-panel-item.mobile-overlay-active .overlay-content {
     display: block;
     opacity: 1;
     visibility: visible;
 }

 .main-panel-item.mobile-overlay-active .panel-overlay {
     opacity: 1;
     visibility: visible;
 }

 .main-panel-item.mobile-overlay-active .main-panel-content {
     opacity: 0;
     visibility: hidden;
 }

 .main-panel-content .header-5 {
     display: block;
     width: 100%;
     font-size: 20px;
     color: var(--white);
     text-decoration: none;
     cursor: pointer;
 }

     .main-panel-content .header-5 a {
         color: var(--white);
         text-decoration: none;
         cursor: pointer;
         display: block;
         width: 100%;
         font-size: 20px;
         pointer-events: auto !important;
     }

         .main-panel-content .header-5 a:hover {
             color: var(--white);
             text-decoration: underline;
         }

 .main-panel-item:hover .main-panel-img, .main-panel-item .main-panel-img:active, .main-panel-item .main-panel-img:focus {
     transform: none !important;
 }

 .main-panel-item:active {
     transform: scale(0.98);
     transition: transform 0.1s ease;
 }

 }

 .starry-section.overlay.resources {
     position: relative;
     overflow: hidden;
 }

 .background-image-wrapper {
     position: absolute;
     inset: 0;
     width: 100%;
     height: 100%;
     z-index: 0;
 }

     .background-image-wrapper img, .background-image-wrapper picture {
         width: 100%;
         height: 100%;
         object-fit: cover;
         display: block;
     }

 .starry-section.overlay.resources .content-container {
     position: relative;
     z-index: 1;
 }

 .starbg2 .content-heading {
     color:#ffffff;
 }

 .starbg2 ._2-col-content-container {
     color: #ffffff;
     padding-bottom:50px;
 }

 .red-button {
     display: inline-block;
     padding: 9px 15px;
     color: white;
     border: 1px solid #ffffff;
     line-height: inherit;
     text-decoration: none;
     cursor: pointer;
     border-radius: 0;
 }