/*!**********************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/thread-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[2]!./node_modules/postcss-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./blocks/misc/image-gallery/image-gallery.scss ***!
  \**********************************************************************************************************************************************************************************************************************************************************************************/
.image-gallery__inner {
  box-sizing: border-box;
}
.image-gallery__header {
  text-align: center;
  margin-bottom: 4rem;
}
.image-gallery__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text);
}
.image-gallery__content {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}
.image-gallery__grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.image-gallery__item {
  position: relative;
  overflow: hidden;
  background: var(--color-grey-light);
  width: 100%;
}
.image-gallery__item:hover .image-gallery__image {
  transform: scale(1.05);
}
.image-gallery__link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
}
.image-gallery__link.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--color-primary);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 10;
}
.image-gallery__image {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.image-gallery__image.hover {
  transform: scale(1.02);
}
.image-gallery--style_1 .image-gallery__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  flex-direction: row;
}
.image-gallery--style_1 .image-gallery__item {
  flex: 1 1 calc(33.333% - 14px);
  min-width: 280px;
  height: 30vw;
  max-height: 688px;
}
@media (max-width: 992px) {
  .image-gallery--style_1 .image-gallery__item {
    flex: 1 1 calc(50% - 10px);
    min-width: 250px;
    height: auto;
    max-height: 450px;
  }
}
@media (max-width: 768px) {
  .image-gallery--style_1 .image-gallery__item {
    flex: 1 1 100%;
    min-width: unset;
    max-height: 300px;
  }
}
.image-gallery--style_2 .image-gallery__grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.image-gallery--style_2 .image-gallery__group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-height: 1000px;
}
.image-gallery--style_2 .image-gallery__group .image-gallery__item {
  position: relative;
  overflow: hidden;
  background: var(--color-grey-light);
}
.image-gallery--style_2 .image-gallery__group--odd {
  grid-template-rows: subgrid;
}
.image-gallery--style_2 .image-gallery__group--odd .image-gallery__item:nth-child(1) {
  grid-area: 1/1/3/2;
  aspect-ratio: 4/5;
}
.image-gallery--style_2 .image-gallery__group--odd .image-gallery__item:nth-child(2) {
  grid-area: 1/2/2/3;
  aspect-ratio: inherit;
}
.image-gallery--style_2 .image-gallery__group--odd .image-gallery__item:nth-child(3) {
  grid-area: 2/2/3/3;
  aspect-ratio: inherit;
}
.image-gallery--style_2 .image-gallery__group--odd:has(.image-gallery__item:nth-child(1)) {
  grid-template-rows: 1fr 1fr;
  align-items: stretch;
}
.image-gallery--style_2 .image-gallery__group--even .image-gallery__item:nth-child(1) {
  grid-area: 1/1/2/2;
  aspect-ratio: inherit;
}
.image-gallery--style_2 .image-gallery__group--even .image-gallery__item:nth-child(2) {
  grid-area: 2/1/3/2;
  aspect-ratio: inherit;
}
.image-gallery--style_2 .image-gallery__group--even .image-gallery__item:nth-child(3) {
  grid-area: 1/2/3/3;
  aspect-ratio: 4/5;
}
.image-gallery--style_2 .image-gallery__group--even:has(.image-gallery__item:nth-child(3)) {
  grid-template-rows: 1fr 1fr;
  align-items: stretch;
}
@media (max-width: 767px) {
  .image-gallery__inner {
    padding: 3rem 0 6rem;
  }
  .image-gallery__title {
    font-size: 2rem;
  }
  .image-gallery__header {
    margin-bottom: 3rem;
  }
  .image-gallery--style_2 .image-gallery__group {
    grid-template-columns: 1fr;
  }
  .image-gallery--style_2 .image-gallery__group .image-gallery__item {
    grid-area: auto !important;
    aspect-ratio: 4/3 !important;
    min-height: 200px !important;
  }
}

.mfp-image-gallery.mfp-bg {
  background: rgba(0, 0, 0, 0.9);
}
.mfp-image-gallery .mfp-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
}
.mfp-image-gallery .mfp-figure::after {
  background: rgba(0, 0, 0, 0.9);
}
.mfp-image-gallery .mfp-arrow {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  opacity: 1 !important;
  margin-top: -30px;
}
.mfp-image-gallery .mfp-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
}
.mfp-image-gallery .mfp-arrow:before {
  border: solid white;
  border-width: 0 2px 2px 0;
  content: "";
  display: inline-block;
  padding: 8px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}
.mfp-image-gallery .mfp-arrow:after {
  display: none;
}
.mfp-image-gallery .mfp-arrow.mfp-arrow-right:before {
  transform: translate(-50%, -50%) rotate(-45deg);
  left: 45%;
}
.mfp-image-gallery .mfp-arrow.mfp-arrow-left:before {
  transform: translate(-50%, -50%) rotate(135deg);
  left: 55%;
}
.mfp-image-gallery .mfp-counter {
  color: white;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}
.mfp-image-gallery .mfp-close {
  width: 44px;
  height: 44px;
  transition: all 0.3s ease;
  opacity: 1 !important;
  padding: 0;
  font-size: 28px;
  line-height: 44px;
  text-align: center;
}
.mfp-image-gallery .mfp-close:active {
  top: 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
