/* Základní styly pro plugin Custom Posts Grid */
.custom-post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);  /* Defaultně 3 sloupce */
    gap: 40px;
    justify-items: stretch;  /* Všechny položky budou rovnoměrně vyplňovat prostor */
}

.custom-post-item {
	position: relative;
    border-radius: 10px;
    overflow: hidden;
    background-color: #f7f7f7;
	transition: all 500ms ease-in-out;
    box-shadow: 0px 20px 40px 0 rgba(0, 0, 0, 0);
}

.custom-post-item:hover {
    box-shadow: 0px 20px 40px -10px rgba(0, 0, 0, 0.28);
}

.custom-post-item .thumb {
	width: 100%;
    height: 230px;
    padding: 11px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-post-item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
	border-radius: 5px;
}

.custom-post-item .post-title {
    padding: 6px 20px 15px;
    font-size: 17px;
    font-weight: bold;
    color: #3A3633;
}

.custom-post-item .excerpt {
    padding: 0 20px 70px;
    font-size: 1em;
    color: #666;
}

.custom-post-item .read-more {
    position: absolute;
    bottom: 15px;
    left: 15px;
}

.custom-post-item .read-more .button {
	padding: 5px 15px;
    display: block;
    background: #ffde72;
    color: #3a3633;
    width: fit-content;
    border-radius: 6px;
    font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 9pt;
    transition: all 350ms ease-in-out;
}

.custom-post-item:hover .read-more .button {
    background: #3a3633;
    color: #fff;
}

/* Média queries pro různé velikosti obrazovek */

/* Pro rozlišení mezi 768px a 980px (2 sloupce) */
@media (max-width: 980px) and (min-width: 768px) {
    .custom-post-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 sloupce */
    }
}

/* Pro mobilní zařízení do 768px (1 sloupec) */
@media (max-width: 768px) {
    .custom-post-grid {
        grid-template-columns: 1fr; /* 1 sloupec pro mobilní zařízení */
    }
}
