/* ==========================================
   Health Education Gallery
   Clean Grid Layout
   ========================================== */

/* Protect site logo/header */
header img,
.site-logo img,
.site-title img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
}

/* Gallery grid */
.resource-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
}

/* Gallery cards */
.resource-list .item.resource {
    border: 1px solid #e5e5e5;
    background: #fff;
    padding: 15px;
    text-align: center;
}

/* Hide descriptions */
.resource-list .description {
    display: none !important;
}

/* Force image + title vertical layout */
.resource-list .resource-link {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-decoration: none;
}

/* Image */
.resource-list .resource-link img {
    width: 180px !important;
    height: 180px !important;
    object-fit: contain !important;
    margin-bottom: 10px;
}

/* Title */
.resource-list .resource-name {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    font-size: 14px;
    line-height: 1.4;
    color: #5a338f;
}

/* Hover effect */
.resource-list .item.resource:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    transform: translateY(-2px);
    transition: all 0.2s ease;
