/* ================================================ */
/* WEDDING GALLERY SHOWCASE SECTION - Enhanced Font Sizes */
/* ================================================ */

.marshall-wedding-gallery-showcase {
    background-color: #e8e8e8;
    padding: 90px 0; /* Increased from 80px */
    font-family: 'Lancelot', cursive, serif;
}

.marshall-wedding-gallery-showcase-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.marshall-wedding-gallery-showcase-content {
    text-align: center;
}

.marshall-wedding-gallery-showcase-title {
    color: #333;
    font-size: 2.75rem; /* Increased from 2.625rem (44px) */
    font-weight: 500;
    margin-bottom: 55px; /* Increased from 50px */
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.marshall-wedding-gallery-showcase-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #5ca7db;
}

.marshall-wedding-gallery-showcase-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.marshall-wedding-gallery-showcase-scroll {
    display: flex;
    gap: 22px; /* Increased from 20px */
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 12px 0 22px 0; /* Increased from 10px 0 20px 0 */
    scrollbar-width: thin;
    scrollbar-color: #5ca7db #f1f1f1;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.marshall-wedding-gallery-showcase-scroll::-webkit-scrollbar {
    height: 8px;
}

.marshall-wedding-gallery-showcase-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.marshall-wedding-gallery-showcase-scroll::-webkit-scrollbar-thumb {
    background: #5ca7db;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.marshall-wedding-gallery-showcase-scroll::-webkit-scrollbar-thumb:hover {
    background: #4a94c4;
}

.marshall-wedding-gallery-showcase-item {
    flex: 0 0 auto;
    width: 310px; /* Increased from 300px */
    height: 415px; /* Increased from 400px */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.marshall-wedding-gallery-showcase-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.marshall-wedding-gallery-showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    user-select: none;
}

.marshall-wedding-gallery-showcase-item:hover img {
    transform: scale(1.05);
}

/* ================================================ */
/* LIGHTBOX STYLES */
/* ================================================ */

.marshall-gallery-lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 25px; /* Increased from 20px */
}

.marshall-gallery-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.marshall-gallery-lightbox-content {
    position: relative;
    max-width: 85%;
    max-height: 85%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marshall-gallery-lightbox-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 80vh; /* Limit height to 80% of viewport */
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.marshall-gallery-lightbox-close {
    position: absolute;
    top: -45px; /* Increased from -40px */
    right: 12px; /* Increased from 10px */
    color: #fff;
    font-size: 42px; /* Increased from 40px */
    font-weight: normal;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    transition: all 0.3s ease;
    user-select: none;
    line-height: 1;
}

.marshall-gallery-lightbox-close:hover {
    color: #5ca7db;
    transform: scale(1.1);
}

/* ================================================ */
/* RESPONSIVE BREAKPOINTS */
/* ================================================ */

/* Large Tablet Styles (769px - 1023px) */
@media (max-width: 1023px) and (min-width: 769px) {
    .marshall-wedding-gallery-showcase {
        padding: 80px 0; /* Increased from 70px */
    }
    
    .marshall-wedding-gallery-showcase-container {
        padding: 0 30px;
    }
    
    .marshall-wedding-gallery-showcase-title {
        font-size: 2.4875rem; /* Increased from 2.375rem (39.8px) */
        margin-bottom: 50px; /* Increased from 45px */
    }
    
    .marshall-wedding-gallery-showcase-item {
        width: 290px; /* Increased from 280px */
        height: 385px; /* Increased from 370px */
    }
    
    .marshall-wedding-gallery-showcase-scroll {
        gap: 20px; /* Increased from 18px */
        padding: 11px 0 21px 0; /* Increased */
    }
    
    .marshall-gallery-lightbox {
        padding: 20px; /* Increased from 15px */
    }
    
    .marshall-gallery-lightbox-content {
        max-width: 90%;
        max-height: 90%;
    }
    
    .marshall-gallery-lightbox-image {
        max-height: 75vh;
    }
    
    .marshall-gallery-lightbox-close {
        top: -40px; /* Increased from -35px */
        right: 10px; /* Increased from 8px */
        font-size: 38px; /* Increased from 36px */
    }
}

/* Small Tablet Styles (481px - 768px) */
@media (max-width: 768px) {
    .marshall-wedding-gallery-showcase {
        padding: 70px 0; /* Increased from 60px */
    }
    
    .marshall-wedding-gallery-showcase-container {
        padding: 0 20px;
    }
    
    .marshall-wedding-gallery-showcase-title {
        font-size: 2.25rem; /* Increased from 2.125rem (36px) */
        margin-bottom: 45px; /* Increased from 40px */
    }
    
    .marshall-wedding-gallery-showcase-item {
        width: 260px; /* Increased from 250px */
        height: 345px; /* Increased from 330px */
    }
    
    .marshall-wedding-gallery-showcase-scroll {
        gap: 18px; /* Increased from 15px */
        padding: 10px 0 20px 0; /* Increased */
    }
    
    .marshall-gallery-lightbox {
        padding: 15px; /* Increased from 10px */
    }
    
    .marshall-gallery-lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .marshall-gallery-lightbox-image {
        max-height: 70vh;
    }
    
    .marshall-gallery-lightbox-close {
        top: -35px; /* Increased from -30px */
        right: 8px; /* Increased from 6px */
        font-size: 34px; /* Increased from 32px */
    }
}

/* Mobile Styles (≤ 480px) */
@media (max-width: 480px) {
    .marshall-wedding-gallery-showcase {
        padding: 60px 0; /* Increased from 50px */
    }
    
    .marshall-wedding-gallery-showcase-container {
        padding: 0 20px; /* Increased from 15px for small margins */
    }
    
    .marshall-wedding-gallery-showcase-title {
        font-size: 2.125rem; /* Increased from 2rem (34px) */
        margin-bottom: 40px; /* Increased from 35px */
    }
    
    .marshall-wedding-gallery-showcase-item {
        width: 230px; /* Increased from 220px */
        height: 305px; /* Increased from 290px */
    }
    
    .marshall-wedding-gallery-showcase-scroll {
        gap: 15px; /* Increased from 12px */
        padding: 10px 0 18px 0; /* Increased from 8px 0 15px 0 */
        scroll-snap-type: x mandatory; /* Enable snap scrolling on mobile */
    }
    
    .marshall-wedding-gallery-showcase-item {
        scroll-snap-align: center; /* Snap to center */
    }
    
    .marshall-wedding-gallery-showcase-scroll::-webkit-scrollbar {
        height: 6px;
    }
    
    .marshall-gallery-lightbox {
        padding: 15px; /* Increased from 10px */
    }
    
    .marshall-gallery-lightbox-content {
        max-width: 98%;
        max-height: 98%;
    }
    
    .marshall-gallery-lightbox-image {
        max-height: 65vh; /* Smaller on mobile to ensure close button is visible */
    }
    
    .marshall-gallery-lightbox-close {
        top: -30px; /* Increased from -25px */
        right: 6px; /* Increased from 4px */
        font-size: 30px; /* Increased from 28px */
    }
}

/* Extra Small Mobile (≤ 360px) */
@media (max-width: 360px) {
    .marshall-wedding-gallery-showcase-container {
        padding: 0 18px; /* Increased from 12px for better margins */
    }
    
    .marshall-wedding-gallery-showcase-title {
        font-size: 2rem; /* Increased from 1.875rem (32px) */
        margin-bottom: 35px; /* Increased from 30px */
    }
    
    .marshall-wedding-gallery-showcase-item {
        width: 210px; /* Increased from 200px */
        height: 280px; /* Increased from 265px */
    }
    
    .marshall-wedding-gallery-showcase-scroll {
        gap: 12px; /* Increased from 10px */
        padding: 9px 0 16px 0; /* Increased */
    }
    
    .marshall-gallery-lightbox-image {
        max-height: 60vh;
    }
    
    .marshall-gallery-lightbox-close {
        top: -25px; /* Increased from -20px */
        right: 4px; /* Increased from 2px */
        font-size: 26px; /* Increased from 24px */
    }
}