/* Styling for Gallery Action Buttons (Premium Look) */
.gallery-actions {
    /* Center the buttons and provide spacing */
    display: flex;
    justify-content: center;
    gap: 1.5rem; 
    margin-top: 3rem; 
    padding-bottom: 2rem;
}

.action-btn {
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: 2px solid;
    border-radius: 9999px; /* Pill shape */
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    user-select: none;
    
    /* Base style: White background, subtle shadow for premium look */
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Show More & Show All (Green Accent) */
#gallery-show-more-btn, #gallery-show-all-btn {
    color: #10B981; /* Primary Green */
    border-color: #10B981; 
}

/* Hover effect for Green Buttons (text turns white, background turns green) */
#gallery-show-more-btn:hover, #gallery-show-all-btn:hover {
    color: #ffffff;
    background-color: #059669; 
    border-color: #059669;
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.4); 
}

/* Show Less (Grey Accent) */
#gallery-show-less-btn {
    color: #6B7280; /* Primary Grey */
    border-color: #D1D5DB; /* Light grey border */
}

/* Hover effect for Show Less Button (text turns white, background turns grey) */
#gallery-show-less-btn:hover {
    color: #ffffff;
    background-color: #6B7280; 
    border-color: #6B7280;
    box-shadow: 0 4px 10px rgba(107, 114, 128, 0.3);
}

/* Utility classes for toggling visibility */
.gallery-item.hidden-by-pagination {
    display: none !important;
}
.hidden {
    display: none !important;
}
/* --- Responsive Adjustments for Small Screens --- */
@media (max-width: 640px) {
    /* Adjust spacing around the button container */
    .gallery-actions {
        gap: 0.75rem; /* Reduce space between buttons */
        margin-top: 2rem; /* Reduce top margin */
        padding: 1.5rem 1rem; /* Add horizontal padding to prevent edge touching */
    }

    /* Make the buttons themselves smaller */
    .action-btn {
        font-size: 0.875rem; /* Smaller font size (equivalent to Tailwind's text-sm) */
        padding: 0.5rem 1rem; /* Reduced vertical and horizontal padding */
        
        /* Ensure the border size remains readable but the button is generally more compact */
    }
}