/* Grid layout */
.art-pieces-grid {
    display: grid;
    /* Slightly larger item sizes */
    gap: 20px;
    padding: 0;
    margin: 0;
    width: 100%;
    transition: all 0.3s ease-in-out;
}

/* Art Piece Item Styling */
.art-piece-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px; /* Rounded corners for a smoother look */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Add subtle shadow to elevate item */
    overflow: hidden; /* To prevent content from overflowing rounded corners */
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.art-piece-item:hover {
    transform: translateY(-5px); /* Slight hover effect to lift items */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}

/* Image Style */
.art-piece-item img {
    width: 100%;
    height: auto;
    max-height: 250px; /* Increase max height for a more prominent image */
    object-fit: cover;
    border-radius: 5px; /* Rounded corners on the image */
    transition: transform 0.3s ease-in-out;
}


.art-piece-item img:hover {
    transform: scale(1.1); /* Zoom effect on image hover */
}

/* Placeholder Style for Art Pieces without Image */
.art-piece-placeholder {
    width: 100%;
    height: 250px; /* Same height as the image */
    background-color: #cccccc; /* Default color if no image */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.25rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out;
}

.art-piece-placeholder:hover {
    background-color: #999999; /* Darken the placeholder color on hover */
}

.art-piece-item h3 {
    margin: 15px 0;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-transform: uppercase; /* All caps for title emphasis */
    letter-spacing: 1px;
    line-height: 1.3;
}

/* Display the Description Text */
.art-piece-item p {
    font-size: 1.125rem;
    margin-bottom: 10px;
    color: #666;
}

/* Link Styling */
.art-piece-item a {
    text-decoration: none;
    color: inherit;
}

.art-piece-item a:hover h3 {
    color: #0073aa; /* Highlight the name on hover */
}

/* Display campaign and artist info */
.campaign-info,
.artist-info {
    font-size: 1rem;
    color: #555;
    margin-top: 10px;
}

.campaign-dates {
    font-size: 0.9rem;
    color: #777;
}

.campaign-info strong,
.artist-info strong {
    font-weight: bold;
}

/* Button Styles */
.preset-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.preset-buttons button {
    padding: 12px 30px;
    font-size: 18px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 30px; /* Rounded, pill-like button */
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Add subtle shadow for buttons */
}

.preset-buttons button:hover {
    background-color: #005a87;
    transform: scale(1.05); /* Slight zoom on hover */
}

.preset-buttons button:focus {
    outline: none;
    border: 2px solid #0073aa;
}

/* General Hover Effects */
.art-piece-item:hover {
    transform: translateY(-10px); /* More pronounced hover effect */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* Larger shadow effect */
    transition: all 0.3s ease-in-out;
}

.art-piece-item img:hover {
    transform: scale(1.1); /* Zoom in slightly on hover */
}

.art-piece-item,
.art-piece-item a,
.preset-buttons button {
    transition: all 0.3s ease; /* Apply smooth transition on all elements */
}