/**
 * Album Gallery Frontend Styles
 */

/* Global Container */
.album-gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Album Header */
.album-gallery-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.album-gallery-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.album-gallery-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.album-gallery-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.album-gallery-count,
.album-gallery-date {
    display: flex;
    align-items: center;
    gap: 8px;
}

.album-gallery-count::before {
    content: "📷";
    font-size: 1.2rem;
}

    .album-gallery-date::before {
        content: "📅";
        font-size: 1.2rem;
    }
    
    /* Folder Navigation */
    .album-gallery-folders {
        margin: 30px 0;
        padding: 25px;
        background: #f8f9fa;
        border-radius: 12px;
        border: 1px solid #e9ecef;
    }
    
    .album-gallery-folders-title {
        font-size: 1.3rem;
        font-weight: 600;
        margin: 0 0 20px 0;
        color: #495057;
        text-align: center;
    }
    
    .album-gallery-breadcrumb {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 20px;
        padding: 10px 15px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .album-gallery-breadcrumb-item {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #007bff;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s ease;
    }
    
    .album-gallery-breadcrumb-item:hover {
        color: #0056b3;
        text-decoration: underline;
    }
    
    .album-gallery-breadcrumb-separator {
        margin: 0 10px;
        color: #6c757d;
        font-weight: 600;
    }
    
    .album-gallery-breadcrumb-current {
        color: #495057;
        font-weight: 600;
    }
    
    .album-gallery-folders-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        margin-top: 25px;
    }
    
    .album-gallery-folder-item {
        background: white;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border: 1px solid #e9ecef;
        position: relative;
    }
    
    .album-gallery-folder-item:hover {
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
        border-color: #ff7276;
    }
    
    .album-gallery-folder-link {
        display: block;
        padding: 20px 15px;
        text-decoration: none;
        color: inherit;
        transition: all 0.3s ease;
        height: 100%;
        text-align: center;
    }
    
    .album-gallery-folder-link:hover {
        color: #ff7276;
        text-decoration: none;
    }
    
    .album-gallery-folder-link.active {
        background: linear-gradient(135deg, #ff7276 0%, #ff565a 100%);
        color: white;
    }
    
    .album-gallery-folder-link.active .album-gallery-folder-icon .dashicons {
        color: #ff7276;
    }
    
    .album-gallery-folder-icon {
        text-align: center;
        margin-bottom: 16px;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        width: 64px;
        height: 64px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 16px auto;
        transition: all 0.3s ease;
    }
    
    .album-gallery-folder-item:hover .album-gallery-folder-icon {
        background: linear-gradient(135deg, #ffeaeb 0%, #ffc5c6 100%);
        transform: scale(1.1);
    }
    
    .album-gallery-folder-item:hover .album-gallery-folder-icon .dashicons {
        color: #ff7276;
    }
    
    .album-gallery-folder-icon .dashicons {
        font-size: 32px;
        width: 32px;
        height: 32px;
        color: #ff7276;
    }
    
    .album-gallery-folder-info {
        text-align: center;
    }
    
    .album-gallery-folder-name {
        font-size: 1.1rem;
        font-weight: 700;
        margin: 0 0 8px 0;
        color: #2c3e50;
        transition: color 0.3s ease;
    }
    
    .album-gallery-folder-link:hover .album-gallery-folder-name {
        color: #ff7276;
    }
    
    .album-gallery-folder-link.active .album-gallery-folder-name {
        color: #ff7276;
    }
    
    .album-gallery-folder-description {
        font-size: 0.8rem;
        line-height: 1.5;
        margin: 0;
        color: #6c757d;
        transition: color 0.3s ease;
    }
    
    .album-gallery-folder-link.active .album-gallery-folder-description {
        color: #ff7276;
    }
    
    /* Album Content */
.album-gallery-content {
    margin-top: 30px;
}

/* Empty State */
.album-gallery-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.empty-icon {
    font-size: 64px;
    color: #6c757d;
    margin-bottom: 20px;
}

.album-gallery-empty h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #495057;
}

.album-gallery-empty p {
    color: #6c757d;
    font-size: 1rem;
}

/* Gallery Grid */
.album-gallery-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
    grid-auto-flow: row;
    grid-auto-rows: masonry;
}

/* Fallback for browsers that don't support masonry */
@supports not (grid-auto-rows: masonry) {
    .album-gallery-grid {
        display: block;
        column-count: 4;
        column-gap: 20px;
    }
    
    .album-gallery-item {
        break-inside: avoid;
        margin-bottom: 20px;
    }
}

/* Responsive Grid Classes */
.album-gallery-col-1 { grid-template-columns: 1fr; }
.album-gallery-col-2 { grid-template-columns: repeat(2, 1fr); }
.album-gallery-col-3 { grid-template-columns: repeat(3, 1fr); }
.album-gallery-col-4 { grid-template-columns: repeat(4, 1fr); }
.album-gallery-col-5 { grid-template-columns: repeat(5, 1fr); }
.album-gallery-col-6 { grid-template-columns: repeat(6, 1fr); }

/* Responsive masonry fallback */
@supports not (grid-auto-rows: masonry) {
    .album-gallery-col-1 { column-count: 1; }
    .album-gallery-col-2 { column-count: 2; }
    .album-gallery-col-3 { column-count: 3; }
    .album-gallery-col-4 { column-count: 4; }
    .album-gallery-col-5 { column-count: 5; }
    .album-gallery-col-6 { column-count: 6; }
}

/* Tablet Responsive */
@media (max-width: 768px) {
    .album-gallery-col-tablet-1 { grid-template-columns: 1fr; }
    .album-gallery-col-tablet-2 { grid-template-columns: repeat(2, 1fr); }
    .album-gallery-col-tablet-3 { grid-template-columns: repeat(3, 1fr); }
    .album-gallery-col-tablet-4 { grid-template-columns: repeat(4, 1fr); }
    
    /* Masonry fallback for tablets */
    @supports not (grid-auto-rows: masonry) {
        .album-gallery-col-tablet-1 { column-count: 1; }
        .album-gallery-col-tablet-2 { column-count: 2; }
        .album-gallery-col-tablet-3 { column-count: 3; }
        .album-gallery-col-tablet-4 { column-count: 4; }
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .album-gallery-col-mobile-1 { grid-template-columns: 1fr; }
    .album-gallery-col-mobile-2 { grid-template-columns: repeat(2, 1fr); }
    
    /* Masonry fallback for mobile */
    @supports not (grid-auto-rows: masonry) {
        .album-gallery-col-mobile-1 { column-count: 1; }
        .album-gallery-col-mobile-2 { column-count: 2; }
    }
}

/* Gallery Item */
.album-gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

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

.album-gallery-image-wrapper {
    position: relative;
    overflow: hidden;
}

.album-gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.album-gallery-item:hover .album-gallery-image {
    transform: scale(1.05);
}

/* Image Info Overlay */
.album-gallery-image-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.album-gallery-item:hover .album-gallery-image-info {
    transform: translateY(0);
}

.album-gallery-image-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.album-gallery-image-description {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
    opacity: 0.9;
}

/* Load More Button */
.album-gallery-load-more {
    text-align: center;
    margin-top: 40px;
}

.album-gallery-load-more-btn {
    background: linear-gradient(135deg, #ff7276 0%, #ff565a 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 114, 118, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.album-gallery-load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 114, 118, 0.4);
}

.album-gallery-load-more-btn:active {
    transform: translateY(0);
}

.album-gallery-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.load-more-spinner {
    display: inline-block;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Messages */
.album-gallery-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
    margin: 20px 0;
    font-size: 1rem;
}

/* Lightbox Enhancements */
.lb-data .lb-caption {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.lb-data .lb-details {
    width: 100%;
    text-align: center;
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.lb-nav a.lb-prev:hover,
.lb-nav a.lb-next:hover {
    opacity: 1;
}

/* Lazy Loading */
.album-gallery-image.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.album-gallery-image.lazy.loaded {
    opacity: 1;
}

/* Loading Placeholder */
.album-gallery-item.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Masonry Layout (Alternative) */
.album-gallery-grid.masonry {
    column-count: 3;
    column-gap: 20px;
}

.album-gallery-grid.masonry .album-gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .album-gallery-grid.masonry {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    .album-gallery-grid.masonry {
        column-count: 1;
    }
}

/* Hover Effects */
.album-gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.album-gallery-item:hover::before {
    transform: translateX(100%);
}

/* Focus States for Accessibility */
.album-gallery-item:focus-within {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.album-gallery-load-more-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .album-gallery-item {
        border: 2px solid #000;
    }
    
    .album-gallery-image-info {
        background: rgba(0, 0, 0, 0.9);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .album-gallery-item,
    .album-gallery-image,
    .album-gallery-image-info,
    .album-gallery-load-more-btn {
        transition: none;
    }
    
    .album-gallery-item:hover {
        transform: none;
    }
    
    .album-gallery-item:hover .album-gallery-image {
        transform: none;
    }
    
    .album-gallery-item:hover .album-gallery-image-info {
        transform: none;
    }
    
    .album-gallery-item::before {
        display: none;
    }
}

/* Print Styles */
@media print {
    .album-gallery-load-more,
    .album-gallery-load-more-btn {
        display: none;
    }
    
    .album-gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    
    .album-gallery-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .album-gallery-image-info {
        position: static;
        background: white;
        color: black;
        transform: none;
        padding: 10px;
    }
}

/* Custom Scrollbar for Webkit browsers */
.album-gallery-container::-webkit-scrollbar {
    width: 8px;
}

.album-gallery-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.album-gallery-container::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.album-gallery-container::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}

/* Animation for new items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.album-gallery-item.new-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .album-gallery-title {
        font-size: 2rem;
    }
    
    .album-gallery-description {
        font-size: 1rem;
    }
    
    .album-gallery-meta {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .album-gallery-container {
        padding: 15px;
    }
    
    .album-gallery-title {
        font-size: 1.75rem;
    }
    
    .album-gallery-header {
        padding: 20px 0;
    }
    
    .album-gallery-grid {
        gap: 15px;
    }
    
    .album-gallery-image {
        height: 200px;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .album-gallery-container {
        padding: 15px;
    }
    
    .album-gallery-grid {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .album-gallery-container {
        padding: 10px;
    }
    
    .album-gallery-header {
        padding: 20px 0;
        margin-bottom: 30px;
    }
    
    .album-gallery-title {
        font-size: 2rem;
    }
    
    .album-gallery-description {
        font-size: 1rem;
    }
    
    .album-gallery-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .album-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    /* Folder Navigation Responsive */
    .album-gallery-folders {
        margin: 15px 0;
        padding: 15px 10px;
    }
    
    .album-gallery-folders-title {
        font-size: 1.1rem;
    }
    
    .album-gallery-folders-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .album-gallery-breadcrumb {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .album-gallery-breadcrumb-separator {
        display: none;
    }
    
    .album-gallery-folders-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .album-gallery-folder-link {
        padding: 15px;
    }
    
    .album-gallery-folder-icon .dashicons {
        font-size: 28px;
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .album-gallery-header {
        padding: 15px 0;
        margin-bottom: 20px;
    }
    
    .album-gallery-title {
        font-size: 1.5rem;
    }
    
    .album-gallery-description {
        font-size: 0.9rem;
    }
    
    .album-gallery-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .album-gallery-folders {
        margin: 15px 0;
        padding: 15px 10px;
    }
    
    .album-gallery-folders-title {
        font-size: 1.1rem;
    }
    
    .album-gallery-folders-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-bottom: 10px;
    }
    
    .album-gallery-folder-link {
        padding: 15px 10px;
    }
    
    .album-gallery-folder-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 15px;
    }
    
    .album-gallery-folder-icon .dashicons {
        font-size: 24px;
        width: 24px;
        height: 24px;
    }
    
    .album-gallery-folder-name {
        font-size: 1rem;
    }
    
    .album-gallery-folder-description {
        font-size: 0.8rem;
    }
    
    .album-gallery-folder-icon .dashicons {
        font-size: 24px;
        width: 24px;
        height: 24px;
    }
    
    .album-gallery-folder-name {
        font-size: 0.9rem;
    }
    
    .album-gallery-folder-description {
        font-size: 0.7rem;
    }
}

/* Cart Images Display - High Specificity to Override WooCommerce */
.wtbx-cart .shop_table .cart_item .product-name .album-gallery-cart-images,
.shop_table.cart .cart_item .product-name .album-gallery-cart-images,
.woocommerce-cart .cart_item .product-name .album-gallery-cart-images {
    margin-top: 10px !important;
    padding: 15px !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
    border: 1px solid #e9ecef !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
    position: relative !important;
}

/* Selected Images Title in WooCommerce Cart */
.wtbx-cart .shop_table .cart_item .product-name .album-gallery-cart-images .selected-images-title,
.shop_table.cart .cart_item .product-name .album-gallery-cart-images .selected-images-title,
.woocommerce-cart .cart_item .product-name .album-gallery-cart-images .selected-images-title {
    margin: 0 0 15px 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    text-align: left !important;
    display: block !important;
    width: 100% !important;
    line-height: 1.4 !important;
}

/* Override table layout for cart images */
.item-field .album-gallery-cart-images,
.variation .album-gallery-cart-images,
.item-fields .item-field .album-gallery-cart-images {
    display: block !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Selected Images Title Styling */
.album-gallery-cart-images .selected-images-title,
.item-field .album-gallery-cart-images .selected-images-title,
.variation .album-gallery-cart-images .selected-images-title,
.item-fields .item-field .album-gallery-cart-images .selected-images-title {
    margin: 0 0 15px 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    text-align: left !important;
    display: block !important;
    width: 100% !important;
    line-height: 1.4 !important;
}

/* Remove Image Button Styling */
.remove-image-btn:hover {
    background: #ff2222 !important;
    transform: scale(1.2) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

.remove-image-btn:active {
    transform: scale(0.9) !important;
}

.remove-image-btn:disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Cart images styling */
.cart-image-item {
    min-width: 45px !important;
    max-width: 45px !important;
}

.cart-image-item .image-title {
    font-size: 9px !important;
    line-height: 1.2 !important;
    margin-top: 3px !important;
    max-width: 45px !important;
    word-break: break-all !important;
}

.item-field .album-gallery-cart-images .cart-images-grid,
.variation .album-gallery-cart-images .cart-images-grid,
.item-fields .item-field .album-gallery-cart-images .cart-images-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-bottom: 10px !important;
    align-items: flex-start !important;
    width: 100% !important;
    flex-direction: row !important;
    position: relative !important;
    z-index: 11 !important;
}

.wtbx-cart .shop_table .cart_item .product-name .album-gallery-cart-images .cart-images-grid,
.shop_table.cart .cart_item .product-name .album-gallery-cart-images .cart-images-grid,
.woocommerce-cart .cart_item .product-name .album-gallery-cart-images .cart-images-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-bottom: 10px !important;
    align-items: flex-start !important;
    width: 100% !important;
}

.wtbx-cart .shop_table .cart_item .product-name .album-gallery-cart-images .cart-image-item,
.shop_table.cart .cart_item .product-name .album-gallery-cart-images .cart-image-item,
.woocommerce-cart .cart_item .product-name .album-gallery-cart-images .cart-image-item {
    text-align: center !important;
    position: relative !important;
    flex: 0 0 auto !important;
    width: 60px !important;
    display: inline-block !important;
}

.wtbx-cart .shop_table .cart_item .product-name .album-gallery-cart-images .cart-image-item img,
.shop_table.cart .cart_item .product-name .album-gallery-cart-images .cart-image-item img,
.woocommerce-cart .cart_item .product-name .album-gallery-cart-images .cart-image-item img {
    width: 60px !important;
    height: 60px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    transition: transform 0.2s ease !important;
    display: block !important;
    max-width: 60px !important;
    max-height: 60px !important;
}

.wtbx-cart .shop_table .cart_item .product-name .album-gallery-cart-images .cart-image-item img:hover,
.shop_table.cart .cart_item .product-name .album-gallery-cart-images .cart-image-item img:hover,
.woocommerce-cart .cart_item .product-name .album-gallery-cart-images .cart-image-item img:hover {
    transform: scale(1.05) !important;
}

.wtbx-cart .shop_table .cart_item .product-name .album-gallery-cart-images .image-title,
.shop_table.cart .cart_item .product-name .album-gallery-cart-images .image-title,
.woocommerce-cart .cart_item .product-name .album-gallery-cart-images .image-title {
    display: block !important;
    font-size: 10px !important;
    color: #666 !important;
    margin-top: 5px !important;
    word-wrap: break-word !important;
    max-width: 60px !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

.wtbx-cart .shop_table .cart_item .product-name .album-gallery-cart-images .image-count,
.shop_table.cart .cart_item .product-name .album-gallery-cart-images .image-count,
.woocommerce-cart .cart_item .product-name .album-gallery-cart-images .image-count {
    font-size: 12px !important;
    color: #333 !important;
    font-weight: 600 !important;
    margin: 0 !important;
    text-align: center !important;
    width: 100% !important;
}

/* Responsive Cart Images */
@media (max-width: 768px) {
    .wtbx-cart .shop_table .cart_item .product-name .album-gallery-cart-images .cart-images-grid,
    .shop_table.cart .cart_item .product-name .album-gallery-cart-images .cart-images-grid,
    .woocommerce-cart .cart_item .product-name .album-gallery-cart-images .cart-images-grid {
        gap: 8px !important;
    }
    
    .wtbx-cart .shop_table .cart_item .product-name .album-gallery-cart-images .cart-image-item,
    .shop_table.cart .cart_item .product-name .album-gallery-cart-images .cart-image-item,
    .woocommerce-cart .cart_item .product-name .album-gallery-cart-images .cart-image-item {
        width: 50px !important;
    }
    
    .wtbx-cart .shop_table .cart_item .product-name .album-gallery-cart-images .cart-image-item img,
    .shop_table.cart .cart_item .product-name .album-gallery-cart-images .cart-image-item img,
    .woocommerce-cart .cart_item .product-name .album-gallery-cart-images .cart-image-item img {
        width: 50px !important;
        height: 50px !important;
        max-width: 50px !important;
        max-height: 50px !important;
    }
    
    .wtbx-cart .shop_table .cart_item .product-name .album-gallery-cart-images .image-title,
    .shop_table.cart .cart_item .product-name .album-gallery-cart-images .image-title,
    .woocommerce-cart .cart_item .product-name .album-gallery-cart-images .image-title {
        font-size: 9px !important;
        max-width: 50px !important;
    }
}

@media (max-width: 480px) {
    .wtbx-cart .shop_table .cart_item .product-name .album-gallery-cart-images .cart-images-grid,
    .shop_table.cart .cart_item .product-name .album-gallery-cart-images .cart-images-grid,
    .woocommerce-cart .cart_item .product-name .album-gallery-cart-images .cart-images-grid {
        gap: 6px !important;
    }
    
    .wtbx-cart .shop_table .cart_item .product-name .album-gallery-cart-images .cart-image-item,
    .shop_table.cart .cart_item .product-name .album-gallery-cart-images .cart-image-item,
    .woocommerce-cart .cart_item .product-name .album-gallery-cart-images .cart-image-item {
        width: 40px !important;
    }
    
    .wtbx-cart .shop_table .cart_item .product-name .album-gallery-cart-images .cart-image-item img,
    .shop_table.cart .cart_item .product-name .album-gallery-cart-images .cart-image-item img,
    .woocommerce-cart .cart_item .product-name .album-gallery-cart-images .cart-image-item img {
        width: 40px !important;
        height: 40px !important;
        max-width: 40px !important;
        max-height: 40px !important;
    }
    
    .wtbx-cart .shop_table .cart_item .product-name .album-gallery-cart-images .image-title,
    .shop_table.cart .cart_item .product-name .album-gallery-cart-images .image-title,
    .woocommerce-cart .cart_item .product-name .album-gallery-cart-images .image-title {
        font-size: 8px !important;
        max-width: 40px !important;
    }
    
    .wtbx-cart .shop_table .cart_item .product-name .album-gallery-cart-images,
    .shop_table.cart .cart_item .product-name .album-gallery-cart-images,
    .woocommerce-cart .cart_item .product-name .album-gallery-cart-images {
        padding: 10px !important;
    }
    
    /* Responsive title styling */
    .album-gallery-cart-images .selected-images-title,
    .wtbx-cart .shop_table .cart_item .product-name .album-gallery-cart-images .selected-images-title,
    .shop_table.cart .cart_item .product-name .album-gallery-cart-images .selected-images-title,
    .woocommerce-cart .cart_item .product-name .album-gallery-cart-images .selected-images-title {
        font-size: 12px !important;
        margin-bottom: 10px !important;
    }
}
