.rf-masonry .et_pb_gallery_items {
display: block !important;
column-count: 3;
column-gap: 18px;
}
.rf-masonry .et_pb_gallery_items::after {
display: none !important;
}
.rf-masonry .et_pb_gallery_item.et_pb_grid_item {
display: inline-block;
width: 100% !important;
margin: 0 0 18px 0 !important;
padding: 0 !important;
float: none !important;
clear: none !important;
vertical-align: top;
break-inside: avoid;
page-break-inside: avoid;
-webkit-column-break-inside: avoid;
}
.rf-masonry .et_pb_gallery_image,
.rf-masonry .et_pb_gallery_image a,
.rf-masonry .et_pb_gallery_image img {
display: block;
width: 100%;
}
.rf-masonry .et_pb_gallery_image {
height: auto !important;
}
.rf-masonry .et_pb_gallery_image img {
height: auto !important;
aspect-ratio: auto !important;
object-fit: initial !important;
}
.mfp-close {
margin-top:5px!important;
margin-bottom:5px!important;
padding-bottom:5px!important;
} @media only screen and (max-width: 980px) {
.rf-masonry .et_pb_gallery_items {
column-count: 2;
}
} @media only screen and (max-width: 767px) {
.rf-masonry .et_pb_gallery_items {
column-count: 2;
}
}  .mfp-wrap .mfp-title {
display: none !important;
} .mfp-wrap .mfp-counter {
display: none !important;
} .mfp-wrap .mfp-content {
width: auto !important;
max-width: calc(100vw - 40px) !important;
}
.mfp-wrap .mfp-figure {
padding-top: 35px;
padding-bottom: 35px;
box-sizing: border-box;
}
.mfp-wrap img.mfp-img {
display: block !important;
width: auto !important;
height: auto !important;
max-width: calc(100vw - 40px) !important;
max-height: calc(100vh - 80px) !important;
max-height: calc(100dvh - 80px) !important;
padding: 0 !important;
margin: 0 auto !important;
object-fit: contain !important;
border-radius: 10px !important;
} img.mfp-animated-image {
border-radius: 10px !important;
} .mfp-wrap .mfp-figure::after {
border-radius: 10px !important;
} @media screen and (max-width: 800px) and (orientation: landscape),
screen and (max-height: 300px) {
.mfp-wrap .mfp-figure {
padding-top: 0;
padding-bottom: 0;
}
.mfp-wrap img.mfp-img {
max-height: 100vh !important;
max-height: 100dvh !important;
}
} @media only screen and (max-width: 767px) {
.mfp-wrap .mfp-content {
max-width: calc(100vw - 24px) !important;
}
.mfp-wrap .mfp-figure {
padding-top: 12px;
padding-bottom: 12px;
}
.mfp-wrap img.mfp-img {
max-width: calc(100vw - 24px) !important;
max-height: calc(100vh - 24px) !important;
max-height: calc(100dvh - 24px) !important;
}
} .mfp-wrap .mfp-close {
color: #D8CFC8 !important;
}