.gallery-section {
    background-color: #ffffff;
}

.gallery-section-title h2 {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}

/* Search & Filter Container */
.gallery-search-filter-container {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
}

.search-input-group, .select-group {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-group .search-icon,
.select-group .select-icon {
    position: absolute;
    left: 16px;
    color: #9ca3af;
    font-size: 16px;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.filter-input {
    padding-left: 44px !important;
    height: 50px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 15px;
    color: #1f2937;
    background-color: #ffffff;
    transition: all 0.3s ease;
    width: 100%;
    outline: none;
}

.filter-input:focus {
    border-color: var(--primary-color1);
    box-shadow: 0 0 0 3px rgba(var(--primary-color1-opc), 0.15);
}

.filter-select {
    padding-left: 44px !important;
    height: 50px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 15px;
    color: #1f2937;
    background-color: #ffffff;
    transition: all 0.3s ease;
    width: 100%;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%234b5563' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 12px;
}

.filter-select:focus {
    border-color: var(--primary-color1);
    box-shadow: 0 0 0 3px rgba(var(--primary-color1-opc), 0.15);
}

.filter-select:disabled {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    border-color: #e5e7eb;
}

.btn-reset {
    height: 50px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #ef4444;
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    width: 100%;
}

.btn-reset:hover {
    background-color: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}


/* Grid Layout & Cards */
.gallery-card-wrapper {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    display: block;
    text-decoration: none;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.gallery-img-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #f3f4f6;
}

.height-380 {
    height: 380px;
}

.height-320 {
    height: 320px;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.06);
}

/* Overlay Styles */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color1);
    letter-spacing: 1.2px;
    margin-bottom: 6px;
    transform: translateY(15px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) 0.05s;
}

.gallery-item:hover .gallery-item-badge {
    transform: translateY(0);
}

.gallery-item-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.3;
    transform: translateY(15px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) 0.1s;
}

.gallery-item:hover .gallery-item-title {
    transform: translateY(0);
}

.gallery-item-link {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transform: translateY(15px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) 0.15s;
}

.gallery-item-link i {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.gallery-item:hover .gallery-item-link {
    transform: translateY(0);
}

.gallery-item:hover .gallery-item-link i {
    transform: translateX(3px);
}

/* Responsive Fixes */
@media (max-width: 991px) {
    .height-380, .height-320 {
        height: 300px;
    }
    .gallery-section-title h2 {
        font-size: 26px;
    }
}
@media (max-width: 575px) {
    .height-380, .height-320 {
        height: 250px;
    }
    .gallery-filter-btn {
        padding: 8px 18px;
        font-size: 14px;
    }
}
