.card-img-top {
    height: 200px; /* Set fixed height - adjust as needed */
    object-fit: cover; /* Maintains aspect ratio while filling the space */
    object-position: center; /* Centers the image within the container */
    width: 100%;
}

.portfolio-main-photo {
    height: 250px; /* Adjust height as needed */
    object-fit: cover;
    object-position: center;
    width: 100%;
    border-top-left-radius: 0.375rem; /* Match Bootstrap card border radius */
    border-top-right-radius: 0.375rem;
}

/* Styles for object detail page photos */
.detail-main-photo {
    width: 100%;
    height: 400px; /* Almost square but a bit horizontal */
    object-fit: cover;
    object-position: center;
}

.detail-extra-photo {
    width: 120px; /* Almost square but a bit horizontal */
    height: 100px;
    object-fit: cover;
    object-position: center;
}

/* Gallery thumbnail styles */
.gallery-thumbnail {
    width: 80px;
    height: 65px;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.gallery-thumbnail:hover {
    border-color: #007bff;
    opacity: 0.8;
    transform: scale(1.05);
}

.gallery-thumbnail.active {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.4);
}

.photo-gallery {
    max-width: 100%;
    overflow-x: auto;
    /* Hide scrollbar for Chrome, Safari and Opera */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.photo-gallery::-webkit-scrollbar {
    display: none;
}

/* Portfolio Filter Styles */
.filter-container {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.filter-container h5 {
    color: #333;
    font-weight: 500;
}

.filter-container .form-control,
.filter-container .form-select {
    border: 1px solid #e0e0e0;
    padding: 10px 15px;
}

.filter-container .form-control:focus,
.filter-container .form-select:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1);
}

.filter-container .btn-primary {
    background: #0ea5e9;
    border-color: #0ea5e9;
    font-weight: 500;
}

.filter-container .btn-primary:hover {
    background: #0284c7;
    border-color: #0284c7;
}

.filter-container .btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-container .btn-outline-secondary:hover {
    background-color: #f8f9fa;
    color: #495057;
}

/* Equipment type badges styling */
.badge.bg-secondary {
    background-color: #6c757d !important;
    color: #ffffff;
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 1rem;
    font-weight: 500;
}

.badge.bg-secondary:hover {
    background-color: #5c636a !important;
}