/* Modern Gallery Frontend Styles */
.mg-gallery-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 60px;
    margin-bottom: 60px;
    background: #FFCCE1; /* Reverted to user preferred pink */
    overflow: hidden;
    padding: 80px 0; /* Reset padding since dots are hidden */
}

/* Curved Slider Styles */
.mg-layout-curved {
    padding: 0;
}

.mg-curved-slider {
    width: 100%;
    padding: 60px 0 100px 0; /* Further increased bottom padding */
    overflow: visible !important;
}

.mg-curved-slider .swiper-slide {
    width: 600px; /* Increased width */
    height: 400px; /* Increased height */
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 30px; /* More rounded for premium feel */
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15); /* deeper shadow */
    cursor: grab;
    background: transparent; /* Fixed white background issue */
    backdrop-filter: blur(5px); /* Subtle glass effect on edges */
}

.mg-curved-slider .mg-slide-inner {
    width: 100%;
    height: 100%;
    transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3); /* Glassmorphism border */
    border-radius: 30px;
    overflow: hidden;
}

.mg-curved-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 1.2s cubic-bezier(0.2, 1, 0.3, 1);
}

.mg-curved-slider .swiper-slide-active img {
    transform: scale(1.05); /* Slight zoom on active slide */
}

/* Detailed 3D perspective enhancements */
.mg-curved-slider .swiper-slide-active {
    z-index: 20;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.mg-curved-slider .swiper-slide:not(.swiper-slide-active) {
    opacity: 0.7; /* Subtly dim inactive slides */
}

/* Modern Pagination Styles */
.mg-curved-slider .swiper-pagination {
    display: none !important; /* Hidden as requested */
}

.mg-curved-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #710016;
    opacity: 0.2;
    transition: all 0.4s ease;
    margin: 0 8px !important;
}

.mg-curved-slider .swiper-pagination-bullet-active {
    opacity: 1;
    width: 40px;
    border-radius: 20px;
}

/* Masonry Layout (retained and enhanced) */
.mg-masonry-grid {
    columns: 3;
    column-gap: 25px;
    padding: 0 20px;
}

.mg-masonry-item {
    margin-bottom: 25px;
    break-inside: avoid;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

.mg-masonry-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
}

/* Responsive */
@media (max-width: 1024px) {
    .mg-curved-slider .swiper-slide {
        width: 500px;
        height: 340px;
    }
}

@media (max-width: 768px) {
    .mg-masonry-grid {
        columns: 2;
    }

    .mg-curved-slider .swiper-slide {
        width: 380px;
        height: 260px;
    }
    
    .mg-gallery-wrapper {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .mg-masonry-grid {
        columns: 1;
    }
}