.image-gallery {
  display: flex;
  gap: 16px;
}
.image-gallery__thumbs {
  flex: 0 0 66px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.image-gallery__thumbs .skeleton {
  position: relative;
  overflow: hidden;
}
.image-gallery__thumbs .skeleton::before {
  display: block;
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: loadingSkeleton 1.5s infinite;
  z-index: 1;
}
.image-gallery__thumbs .skeleton__text {
  height: 15px;
  background: #dedede;
}
.image-gallery__thumbs .skeleton__text--paragraph {
  height: 80px;
}
.image-gallery__thumbs .skeleton__image {
  background: #dedede;
}
.image-gallery__thumbs .skeleton__imageAndText {
  display: flex;
  gap: 25px;
  margin: 0 0 25px 0;
}
.image-gallery__thumbs .skeleton__imageAndText:before {
  content: '';
  display: block;
  width: 200px;
  height: 620px;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 25px, #dedede 25px, #dedede 120px, rgba(255, 255, 255, 0) 120px, rgba(255, 255, 255, 0) 155px);
}
.image-gallery__thumbs .skeleton__imageAndText:after {
  content: '';
  display: block;
  width: 100%;
  height: 620px;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 25px, #dedede 25px, #dedede 40px, rgba(255, 255, 255, 0) 40px, rgba(255, 255, 255, 0) 50px, #dedede 50px, #dedede 65px, rgba(255, 255, 255, 0) 65px, rgba(255, 255, 255, 0) 75px, #dedede 75px, #dedede 155px);
}
.image-gallery__thumbs .skeleton--events {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  margin: 0 -10px;
  min-width: 100%;
}
.image-gallery__thumbs .skeleton--events .skeleton__searchResult {
  display: flex;
  flex-direction: row;
  align-items: start;
  padding: 0;
  gap: 0;
  background: #fff;
  border: 1px solid #cccccc;
  height: 330px;
  cursor: pointer;
  flex-wrap: wrap;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  max-width: 33.333333%;
  flex: 1 1 25%;
  margin: 0 10px 20px 10px;
}
.image-gallery__thumbs .skeleton--events .skeleton__searchResult__image {
  flex: 0 0 100%;
  max-width: 100%;
  max-height: 100%;
  height: 130px;
  background: #dedede;
}
.image-gallery__thumbs .skeleton--events .skeleton__searchResult__body {
  height: 140px;
  margin: 24px 16px 16px 16px;
  max-width: 100%;
  flex: 1 1 80%;
}
.image-gallery__thumbs .skeleton--events .skeleton__searchResult__body__eventType {
  height: 10px;
  margin: 5px 0;
  display: block;
  width: 35%;
  background: #dedede;
}
.image-gallery__thumbs .skeleton--events .skeleton__searchResult__body__title {
  width: 70%;
  height: 20px;
  margin: 5px 0;
  background: #dedede;
}
.image-gallery__thumbs .skeleton--events .skeleton__searchResult__body__summary {
  height: 30px;
  margin: 5px 0;
  background: #dedede;
}
.image-gallery__thumbs .skeleton--events .skeleton__searchResult__eventDelivery {
  height: 10px;
  margin-top: 64px;
  display: block;
  background: #dedede;
}
@media (max-width: 600px) {
  .image-gallery__thumbs .skeleton__imageAndText:before {
    display: none;
  }
  .image-gallery__thumbs .skeleton__imageAndText {
    padding: 20px;
  }
  .image-gallery__thumbs .skeleton__imageAndText:after {
    background: repeating-linear-gradient(180deg, #dedede 0%, #dedede 100px, rgba(255, 255, 255, 0) 100px, rgba(255, 255, 255, 0) 110px, #dedede 110px, #dedede 125px, rgba(255, 255, 255, 0) 125px, rgba(255, 255, 255, 0) 135px, #dedede 135px, #dedede 160px, rgba(255, 255, 255, 0) 160px, rgba(255, 255, 255, 0) 180px);
  }
}
@keyframes loadingSkeleton {
  100% {
    transform: translateX(100%);
  }
}
.skeleton--image-gallery {
  display: none;
  flex-direction: column;
  gap: 8px;
}
.skeleton--image-gallery .skeleton__image {
  width: 64px;
  height: 64px;
}
.image-gallery--thumbs-loading .image-gallery__thumbs > *:not(.skeleton--image-gallery) {
  display: none;
}
.image-gallery--thumbs-loading .skeleton--image-gallery {
  display: flex;
}
.image-gallery--thumbs-loading .image-gallery__modal-thumbs {
  display: none;
}
.image-gallery__thumb {
  border: solid 1px transparent;
  transition: border-color 0.35s;
}
.image-gallery__thumb:hover,
.image-gallery__thumb:focus-visible,
.image-gallery__thumb:focus {
  border: solid 1px #004494;
}
.image-gallery__thumb img {
  width: 64px;
  height: 64px;
  object-fit: cover;
}
.image-gallery__thumb--more {
  width: 64px;
  height: 64px;
  background: #f6f6f6;
  font-weight: bold;
}
.image-gallery__thumb--video,
.image-gallery__modal-thumb--video {
  position: relative;
}
.image-gallery__thumb--video img,
.image-gallery__modal-thumb--video img {
  aspect-ratio: 1;
  object-fit: cover;
}
.image-gallery__thumb--video img.image-gallery__thumb-img--fit,
.image-gallery__modal-thumb--video img.image-gallery__thumb-img--fit {
  object-fit: contain;
}
.image-gallery__thumb--video:after,
.image-gallery__modal-thumb--video:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 15%;
  min-width: 24px;
  max-width: 100px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: transparent url("../../../../../etc/designs/mt/docroot/images/icons/blue-play-icon.svg") center / contain no-repeat;
}
.image-gallery__thumb--video:hover:after,
.image-gallery__thumb--video:focus:after,
.image-gallery__thumb--video:focus-visible:after {
  opacity: .8;
}
.image-gallery__thumb--video img.image-gallery__thumb-img--fit {
  object-fit: cover;
}
.image-gallery__main {
  aspect-ratio: 1;
  width: 100%;
}
.image-gallery__main:is([data-open-modal]) {
  cursor: pointer;
}
.image-gallery__main picture {
  display: block;
}
.image-gallery__main img {
  width: 100%;
  height: auto;
}
/* Modal */
.image-gallery__modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}
.image-gallery__modal--visible {
  opacity: 1;
  visibility: visible;
  z-index: 109;
}
.image-gallery__modal-content-wrapper {
  position: relative;
  outline: none;
  width: 90vw;
  max-height: 90vh;
}
.image-gallery__modal-content {
  position: relative;
  background: #f6f6f6;
  height: calc(100vh - 200px);
  outline: none;
  overflow-y: scroll;
  overflow-x: hidden;
  padding: 60px;
}
.image-gallery__modal-header {
  display: flex;
  justify-content: space-between;
}
.image-gallery__modal-header h2 {
  margin-top: 0;
}
.image-gallery__close {
  border: solid 1px transparent;
  cursor: pointer;
  position: absolute;
  top: -15px;
  right: -15px;
  z-index: 3;
  outline: 0;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6f6f6;
  border-color: #cccccc;
}
.image-gallery__modal [class*="-prev"],
.image-gallery__modal [class*="-next"] {
  opacity: 0;
  z-index: 1;
  width: 48px;
  height: 48px;
  transition: opacity .2s;
  border: 0;
  background: transparent;
}
.image-gallery__modal [class*="-prev"]:before,
.image-gallery__modal [class*="-next"]:before {
  content: "" !important;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  margin: 0 auto;
  opacity: 1;
  width: 35px;
  height: 35px;
  border-radius: 100%;
  background: #004494;
  border: solid 1px #004494;
}
.image-gallery__modal [class*="-prev"]:after,
.image-gallery__modal [class*="-next"]:after {
  content: '';
  display: inline-block;
  position: absolute;
  z-index: 1;
  top: 13px;
  border: solid 1px white;
  border-width: 0 2px 2px 0;
  padding: 4px;
}
.image-gallery__modal [class*="-prev"][class*="-arrow"][aria-disabled="true"]:before,
.image-gallery__modal [class*="-next"][class*="-arrow"][aria-disabled="true"]:before {
  background: white;
  opacity: 1;
}
.image-gallery__modal [class*="-prev"][class*="-arrow"][aria-disabled="true"]:after,
.image-gallery__modal [class*="-next"][class*="-arrow"][aria-disabled="true"]:after {
  border-color: #004494;
  opacity: 1;
}
.image-gallery__modal [class*="-prev"]:after {
  left: 14px;
  transform: rotate(135deg);
  -webkit-transform: rotate(135deg);
}
.image-gallery__modal [class*="-next"]:after {
  right: 26px;
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
}
.image-gallery__modal:hover [class*="-prev"],
.image-gallery__modal:hover [class*="-next"] {
  opacity: 1;
}
.image-gallery__modal [class*="-prev"],
.image-gallery__modal [class*="-next"] {
  position: relative;
  opacity: 1;
  flex: 0 0 50px;
  height: 50px;
  max-width: 50px;
  align-self: center;
  display: flex;
  align-items: center;
}
.image-gallery__modal [class*="-prev"]:after,
.image-gallery__modal [class*="-next"]:after,
.image-gallery__modal [class*="-prev"]:before,
.image-gallery__modal [class*="-next"]:before {
  padding: 6px;
}
.image-gallery__modal [class*="-prev"]:before,
.image-gallery__modal [class*="-next"]:before {
  width: 100%;
  height: 100%;
  right: 20px;
  box-sizing: border-box;
}
.image-gallery__modal [class*="-prev"]:after,
.image-gallery__modal [class*="-next"]:after {
  top: 17px;
}
.image-gallery__modal [class*="-prev"]:after {
  left: 20px;
}
.image-gallery__modal [class*="-next"]:after {
  right: 20px;
}
.image-gallery__modal-title {
  font-family: 'Avant Garde for MT Bd', Arial, sans-serif;
  font-weight: 700;
  color: #004494 !important;
  font-size: 30px !important;
  line-height: 39px !important;
}
.image-gallery__modal-images {
  display: flex;
}
.image-gallery__modal-images .image-gallery__modal-main {
  flex: 1 1 60%;
  min-width: 0;
  max-width: 100%;
  max-height: calc(100vh - 265px);
  display: flex;
  gap: 10px;
  margin: 0 20px 0 0;
  aspect-ratio: 1;
}
.image-gallery__modal-images .image-gallery__modal-main--video img {
  aspect-ratio: 1.77777778;
}
.image-gallery__modal-images .image-gallery__modal-main--video {
  aspect-ratio: 1.77777778;
}
.image-gallery__modal-images .image-gallery__modal-main picture,
.image-gallery__modal-images .image-gallery__modal-main .image-gallery__modal-main-video {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.image-gallery__modal-images .image-gallery__modal-main picture[hidden],
.image-gallery__modal-images .image-gallery__modal-main .image-gallery__modal-main-video[hidden] {
  display: none;
}
.image-gallery__modal-images .image-gallery__modal-main img {
  max-width: 730px;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: cover;
}
.image-gallery__modal-images .image-gallery__modal-main video-js {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: auto !important;
  max-width: 730px;
  max-height: 100%;
  aspect-ratio: 1.77777778 !important;
  padding-top: 0 !important;
  overflow: hidden;
}
.image-gallery__modal-images .image-gallery__modal-main video-js .vjs-tech,
.image-gallery__modal-images .image-gallery__modal-main video-js .vjs-poster {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.image-gallery__modal-images .image-gallery__modal-main video-js .vjs-poster {
  background-size: cover !important;
}
.image-gallery__modal-images .image-gallery__modal-main video-js .vjs-poster:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  background: linear-gradient(to top, #004494 0%, rgba(0, 68, 148, 0) 100%);
  pointer-events: none;
  z-index: 1;
}
.image-gallery__modal-images .image-gallery__modal-main video-js .vjs-poster img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover !important;
}
.image-gallery__modal-images .image-gallery__modal-main video-js.image-gallery__video-poster--contain .vjs-poster {
  background-size: contain !important;
}
.image-gallery__modal-images .image-gallery__modal-main video-js.image-gallery__video-poster--contain .vjs-poster img {
  object-fit: contain !important;
}
.image-gallery__modal-images .image-gallery__modal-main video-js .vjs-big-play-button {
  background: transparent url("../../../../../etc/designs/mt/docroot/images/icons/white-play-icon.svg") center / contain no-repeat !important;
  aspect-ratio: 1 !important;
  border: none !important;
  left: 50% !important;
  opacity: 0.5;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  z-index: 2;
}
.image-gallery__modal-images .image-gallery__modal-main video-js .vjs-big-play-button:hover,
.image-gallery__modal-images .image-gallery__modal-main video-js .vjs-big-play-button:focus {
  opacity: 0.8;
}
.image-gallery__modal-images .image-gallery__modal-main video-js .vjs-big-play-button .vjs-icon-placeholder,
.image-gallery__modal-images .image-gallery__modal-main video-js .vjs-big-play-button .vjs-icon-placeholder::before {
  display: none !important;
}
.image-gallery__modal-thumbs {
  flex: 1 1 40%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: min-content;
  align-items: start;
  gap: 20px;
}
.image-gallery__modal-thumbs .image-gallery__modal-thumb {
  flex: 0 0 33.333333%;
  display: flex;
  align-items: center;
  aspect-ratio: 1;
  border: solid 1px #cccccc;
  transition: border-color 0.35s;
}
.image-gallery__modal-thumbs .image-gallery__modal-thumb picture {
  display: block;
  width: 100%;
  height: 100%;
}
.image-gallery__modal-thumbs .image-gallery__modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-gallery__modal-thumbs .image-gallery__modal-thumb.image-gallery__modal-thumb--video img {
  object-fit: cover;
}
.image-gallery__modal-thumbs .image-gallery__modal-thumb:hover,
.image-gallery__modal-thumbs .image-gallery__modal-thumb:focus-visible,
.image-gallery__modal-thumbs .image-gallery__modal-thumb:focus {
  border-color: #004494;
}
/* Change z-index stacking of .mt-stage when 
   .image-gallery__modal is visible, 
   so it stacks on top of the header 
*/
.mt-stage:has(.image-gallery__modal--visible) {
  position: relative;
  z-index: 109;
}
.mt_direction_right_to_left .image-gallery__modal--visible {
  direction: ltr;
}
@media (max-width: 1200px) {
  .image-gallery__modal-content-wrapper {
    width: 95vw;
  }
  .image-gallery__modal-thumbs {
    gap: 20px;
  }
  .image-gallery__modal-thumbs .image-gallery__modal-thumb {
    max-width: none;
    max-height: none;
  }
}
@media (max-width: 767px) {
  .image-gallery {
    flex-direction: column;
    margin: 0 0 30px 0;
  }
  .image-gallery__thumbs {
    order: 2;
    flex: 1;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
  }
  .image-gallery__thumb {
    width: 100%;
    height: auto;
  }
  .image-gallery__thumb img {
    width: 100%;
    height: auto;
  }
  .image-gallery__main {
    order: 1;
  }
  .image-gallery__modal {
    display: block;
  }
  .image-gallery__modal [class*="-prev"],
  .image-gallery__modal [class*="-next"] {
    display: none;
    opacity: 0;
  }
  .image-gallery__modal-header h2 {
    margin-bottom: 10px;
  }
  .image-gallery__modal-content-wrapper {
    width: 100vw;
  }
  .image-gallery__modal-content {
    padding: 40px 20px 20px;
    margin: 20px 10px;
    height: auto;
    max-height: 87vh;
  }
  .image-gallery__close {
    right: 0;
  }
  .image-gallery__modal-images {
    display: block;
  }
  .image-gallery__modal-images .image-gallery__modal-main {
    display: block;
    margin: 0 0 20px 0;
  }
  .image-gallery__modal-thumbs {
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
  }
}
