div.component-lightgallery.type-layout-2 #gallery {
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 260px;
}
div.component-lightgallery.type-layout-2 #gallery a:first-child {
  grid-column: span 2;
  grid-row: span 1;
}
div.component-lightgallery.type-layout-3 #gallery {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 175px;
}
div.component-lightgallery.type-layout-3 #gallery a:first-child {
  grid-column: span 4;
  grid-row: span 3;
}
div.component-lightgallery #gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 20px;
  margin-bottom: 80px;
}
@media screen and (max-width: 768px) {
  div.component-lightgallery #gallery {
    grid-template-columns: 1fr 1fr;
    display: none;
  }
}
div.component-lightgallery #gallery a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}
div.component-lightgallery #gallery a:first-child {
  grid-column: span 2;
  grid-row: span 2;
}
@media screen and (max-width: 768px) {
  div.component-lightgallery #gallery a:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }
}
div.component-lightgallery #gallery a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
div.component-lightgallery #gallery a .show-more {
  background-color: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 40px;
  font-weight: 700;
  transition: all 0.3s ease-in-out;
}
div.component-lightgallery #gallery a .show-more:hover {
  background-color: rgba(0, 0, 0, 0.7);
  font-size: 45px;
}
div.component-lightgallery .swiper {
  width: 100%;
  position: relative;
  margin-bottom: 80px;
}
@media screen and (min-width: 769px) {
  div.component-lightgallery .swiper {
    display: none;
  }
}
div.component-lightgallery .swiper .pagination {
  width: fit-content;
  height: fit-content;
  display: flex;
  bottom: 20px;
  right: 20px;
  position: absolute;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 5px 20px;
  border-radius: 5px;
  font-weight: 500;
}
div.component-lightgallery .swiper a {
  display: block;
}
div.component-lightgallery .swiper-wrapper {
  display: flex;
  height: 100%;
}
div.component-lightgallery .swiper-wrapper .swiper-slide {
  width: 100%;
  height: 400px;
  cursor: pointer;
}
div.component-lightgallery .swiper-wrapper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}