.san_glry_px_0 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.san_glry_row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -5px;
    margin-right: -5px;
}

.san_glry_col {
    padding-left: 5px;
    padding-right: 5px;
    margin-bottom: 10px;
}

.san_glry_item {
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    height: 400px;
}

.san_glry_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.overlay-grayscale {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    pointer-events: none;
}

.san_glry_item:hover .overlay-grayscale {
    background: rgba(0, 0, 0, 0);
}

.san_glry_item:hover .san_glry_img {
    transform: scale(1.05);
}

.fancybox-content .image-wrapper .overlay-grayscale {
    display: none;
}

@media (max-width: 768px) {
    .image-wrapper {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .image-wrapper {
        height: 300px;
    }
}
/* Before After Css*/
.san_glry_item {
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.choose-slide-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.choose-slide-image .img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.choose-slide-image .foreground-img {
    width: 50%;
    border-right: 3px solid white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.choose-slide-image .slider {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    z-index: 10;
    cursor: pointer;
    opacity: 0.8;
}

.choose-slide-image .slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.choose-slide-image .slider-button::before,
.choose-slide-image .slider-button::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 10px;
    height: 2px;
    background: #ff6b6b;
}

.choose-slide-image .slider-button::before {
    left: 12px;
    transform: translateY(-50%) rotate(-45deg);
}

.choose-slide-image .slider-button::after {
    right: 12px;
    transform: translateY(-50%) rotate(45deg);
}

@media (max-width: 768px) {
    .choose-slide-image {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .choose-slide-image {
        height: 300px;
    }
}
