/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

.custom-subcat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 30px auto; /* center vertically and horizontally */
    max-width: 1200px;  /* limit container width */
    width: 100%;
}



.custom-subcat-item {
    aspect-ratio: 2 / 1;
    background-size: cover;
    background-position: center;
    border-radius: 3px;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.3s ease;
}


.custom-subcat-item:hover {
    transform: scale(1.02);
}

.custom-subcat-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.custom-subcat-overlay h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: bold;
    color: #fff;
}

.custom-subcat-overlay span {
    font-size: 0.95rem;
    opacity: 0.9;
}



@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}