.msk-bedroom-gallery-grid {
  width: 100%;
  max-width: 1460px;
  margin: 0 auto;
}

.msk-bedroom-gallery-grid .w-grid,
.msk-bedroom-gallery-grid .w-grid-list {
  width: 100%;
  max-width: 1460px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.msk-bedroom-gallery-grid .w-grid-list {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  justify-content: center !important;
}

.msk-bedroom-gallery-grid .w-grid-item {
  flex: 0 0 calc((100% - 24px) / 3) !important;
  width: calc((100% - 24px) / 3) !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.04);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.msk-bedroom-gallery-grid .w-grid-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(17, 17, 17, 0.08);
}

.msk-bedroom-gallery-grid .w-grid-item-h,
.msk-bedroom-gallery-grid .w-grid-item-anchor,
.msk-bedroom-gallery-grid .w-post-elm.post_image,
.msk-bedroom-gallery-grid .w-post-elm.post_image img {
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border-radius: 22px !important;
  overflow: hidden !important;
}

.msk-bedroom-gallery-grid .w-post-elm.post_image {
  line-height: 0 !important;
}

.msk-bedroom-gallery-grid .w-grid-item img {
  display: block;
  width: 100% !important;
  height: auto !important;
  object-fit: cover;
  background: #f5f5f5 !important;
  transition: transform 0.35s ease;
}

.msk-bedroom-gallery-grid .w-grid-item:hover img {
  transform: scale(1.03);
}

.msk-bedroom-gallery-grid .w-grid-loadmore,
.msk-bedroom-gallery-grid .g-loadmore,
.msk-bedroom-gallery-grid .w-btn-wrapper,
.msk-bedroom-gallery-grid .w-grid-pagination {
  text-align: center;
  margin-top: 24px;
}

.msk-bedroom-gallery-grid .w-btn,
.msk-bedroom-gallery-grid .g-loadmore a,
.msk-bedroom-gallery-grid .w-grid-loadmore a {
  border-radius: 999px !important;
}

@media (max-width: 900px) {
  .msk-bedroom-gallery-grid .w-grid-list {
    gap: 10px !important;
  }

  .msk-bedroom-gallery-grid .w-grid-item {
    flex: 0 0 calc((100% - 10px) / 2) !important;
    width: calc((100% - 10px) / 2) !important;
  }
}

@media (max-width: 600px) {
  .msk-bedroom-gallery-grid .w-grid-list {
    gap: 8px !important;
  }

  .msk-bedroom-gallery-grid .w-grid-item {
    flex: 0 0 calc((100% - 8px) / 2) !important;
    width: calc((100% - 8px) / 2) !important;
  }

  .msk-bedroom-gallery-grid .w-grid-item,
  .msk-bedroom-gallery-grid .w-grid-item-h,
  .msk-bedroom-gallery-grid .w-grid-item-anchor,
  .msk-bedroom-gallery-grid .w-post-elm.post_image,
  .msk-bedroom-gallery-grid .w-post-elm.post_image img {
    border-radius: 16px !important;
  }
}
.msk-gallery-mobile {
  display: none;
}

@media (max-width: 820px) {
  .msk-gallery-desktop {
    display: none !important;
  }

  .msk-gallery-mobile {
    display: block !important;
  }
}

.mfp-bottom-bar,
.mfp-title,
.mfp-figure figcaption,
.mfp-figure small,
.mfp-counter {
  display: none !important;
}

.mfp-bottom-bar {
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.mfp-figure:after {
  bottom: 0 !important;
}

img.mfp-img {
  padding-bottom: 0 !important;
}
