/*!
Theme Name: Blocksy
Theme URI: https://creativethemes.com/blocksy/
Author: CreativeThemes
Author URI: https://creativethemes.com
Description: Blocksy is a fast, modern WordPress theme with advanced WooCommerce support and full compatibility with the block editor.
Version: 2.1.27
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Copyright: (c) 2019 CreativeThemes.
Requires at least: 6.5
Requires PHP: 7.0
Tested up to: 6.9
Text Domain: blocksy
Blocksy Minimum Companion Version: 2.0.74-beta1
Tags: accessibility-ready, blog, block-patterns, e-commerce, wide-blocks, block-styles, grid-layout, one-column, two-columns, three-columns, four-columns, right-sidebar, left-sidebar, translation-ready, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, theme-options, threaded-comments
*/
.custom-cpt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 20px 0;
}

.grid-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
	max-width: 300px;
	background-color: rgba(0,0,0,0.5);
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.grid-item .button{
	display: block;
	width: 100%;
}

.item-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.item-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Schiebt den Button nach unten */
}

.item-content h3 { margin-top: 0; font-size: 1.25rem; }
.item-content .button { 
	align-self: flex-start; 
	margin-top: auto ; 
}

.item-content .button-bottom { 
	margin-top: auto ; 
}

@media (max-width: 670px) {
	.grid-item {
		max-width: 100% !important;
	}
}