.section {
    padding: 60px 0;
    overflow: hidden;
}

.download-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.download-card:hover {
    transform: none;
}

.download-card img {
    width: auto;
    height: auto;
}

/* Updated overlay to be always visible and slightly transparent */
.download-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 15px;
    color: white;
    background-color: rgba(0, 0, 0, 0.3);
}

/* Download button position (bottom-left) */
.download-overlay .btn {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 2px solid transparent;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.download-overlay .btn:hover {
    background-color: #fff;
    color: #1a1a1a;
    border: 2px solid #1a1a1a;
}

.download-overlay .btn .bi {
    margin: 0;
    font-size: 1.5rem;
}

/* Updated Tab styles for the downloads page */
.nav-tabs {
    border-bottom: none;
}

.nav-tabs .nav-item {
    margin: 10px 5px;
}

.nav-tabs .nav-link {
    color: #000000;
    background-color: #bdbdbd;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link.active {
    color: #000;
    background-color: #ffc107;
    border-color: #ffc107;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

.nav-tabs .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Custom styles for portrait images */
.download-card.portrait-card {
    height: 300px; 
    overflow: hidden;
}

.download-card.portrait-card img {
    height: 100%;
    width: auto;
    object-fit: cover;
}

/* Flexbox for portrait items container to remove gaps */
#portrait-content .downloadable-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1.5rem;
}

/* Updated style for the download count text */
.download-card .download-overlay p {
    position: absolute;
    top: 20px;
    right: 1px;
    color: #fff;
    padding: 0 50px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    z-index: 2;
    margin: 0;
}