.wp-block-celebrate-suite-vendor-gallery-filmstrip {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--50);
}

.wp-block-celebrate-suite-vendor-gallery-filmstrip .wp-block-gallery {
    width: 100%;
    flex: 1;
    display: flex;
    opacity: 0;
    flex-wrap: nowrap !important;
    gap: 5px;
    transition: .3s ease;
    height: 500px;
}

.wp-block-celebrate-suite-vendor-gallery-filmstrip .wp-block-image {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    margin-right: 5px;
    height: 500px;
}

.wp-block-celebrate-suite-vendor-gallery-filmstrip .wp-block-image img {
    height: 100%;
    width: auto;
    object-fit: cover;
    display: block;
}

.celebrate-custom-gallery-wrapper.celebrate-gallery-format-slider .wp-block-image div > img {
    flex: unset !important;
    opacity: 1;
    z-index: 1;
    display: block;
}

.celebrate-custom-gallery-wrapper:has(.alignfull) {
    max-width: unset !important;
    position: relative;
    margin: 0px;
}

.celebrate-custom-gallery-wrapper .celebrate-filmstrip-prev-next-button {
    position: absolute;
    top: 50%;
    left: 10px;
    z-index: 9;
    height: 50px;
    width: 50px;
    display: flex;
    padding: 13px;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.celebrate-custom-gallery-wrapper .celebrate-filmstrip-prev-next-button.next {
    left: auto;
    right: 10px;
}

.celebrate-custom-gallery-wrapper .celebrate-filmstrip-page-dots {
    z-index: 9;
    position: absolute;
    bottom: 20px;
    display: flex;
    width: 100%;
    justify-content: center;
    left: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
    line-height: 1;
}

.celebrate-custom-gallery-wrapper .celebrate-filmstrip-page-dots .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 8px;
    background: #333;
    border-radius: 50%;
    opacity: .25;
    cursor: pointer;
}

.celebrate-custom-gallery-wrapper .celebrate-filmstrip-page-dots .dot.is-selected {
    opacity: 1;
}

.celebrate-custom-gallery-wrapper.celebrate-gallery-format-slider .flickity-page-dots {
    bottom: 20px;
}

.celebrate-custom-gallery-wrapper.celebrate-gallery-format-slider .flickity-viewport {
    width: 100%;
}

.celebrate-custom-gallery-wrapper.celebrate-gallery-format-slider .flickity-viewport .flickity-slider {
    width: 100%;
}

.celebrate-custom-gallery-wrapper.celebrate-gallery-format-slider .flickity-viewport .flickity-slider > figure {
    margin-right: 5px !important;
}

/* Mobile styles - 768px and below */
@media (max-width: 768px) {
    .wp-block-celebrate-suite-vendor-gallery-filmstrip .wp-block-gallery {
        height: 300px;
    }
    
    .wp-block-celebrate-suite-vendor-gallery-filmstrip .wp-block-image {
        width: 100% !important;
        height: 300px !important;
        margin-right: 0 !important;
        display: flex;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
    }
    
    .wp-block-celebrate-suite-vendor-gallery-filmstrip .wp-block-image img {
		max-width: 100%;
		max-height: 100%;
		width: auto !important;
		height: auto !important;
		object-fit: contain;
        margin-left: auto;
        margin-right: auto;
	}
    
    .celebrate-custom-gallery-wrapper.celebrate-gallery-format-slider .flickity-viewport .flickity-slider > figure {
        width: 100% !important;
        margin-right: 0 !important;
    }
    
    .celebrate-custom-gallery-wrapper .celebrate-filmstrip-prev-next-button {
        height: 60px;
        width: 60px;
        padding: 18px;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    
    .celebrate-custom-gallery-wrapper .celebrate-filmstrip-page-dots .dot {
        width: 12px;
        height: 12px;
        margin: 0 10px;
    }
    
    .celebrate-custom-gallery-wrapper.celebrate-gallery-format-slider .flickity-page-dots .dot {
        width: 12px;
        height: 12px;
        margin: 0 10px;
    }
}