/*
Theme Name: Nest Coworking
Theme URI: https://nestcoworking.com.mx
Author: Alban González <alban.gonzalez@outlook.com> 
Author URI:
Description: Nest Coworking is a modern coworking space in Playa del Carmen, Mexico.
Requires at least: 7.0
Tested up to: 7.0
Requires PHP: 5.7
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nestcoworking
Tags:
*/

.has-gradient-3-text {
    background-image: var(--wp--preset--gradient--gradient-3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Bento grid – latest 3 posts */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2rem;
}

.bento-grid .wp-block-post:first-child {
    grid-row: span 2;
}

.bento-grid .wp-block-post {
    position: relative;
    overflow: hidden;
    margin-block-start: 0;
}

.bento-grid .wp-block-post-featured-image {
    height: 100%;
}

.bento-grid .wp-block-post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bento-grid .wp-block-post-title {
    font-size: var(--wp--preset--font-size--xl);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 2rem;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.65));
    color: #fff;
    border-radius: var(--wp--custom--border--radius);
}

@media (max-width: 640px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .bento-grid .wp-block-post:first-child {
        grid-row: span 1;
    }
}

div.grid-spaces > div {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 1rem .5rem;
}

div.grid-spaces a.wp-element-button {
    background: none;
    font-size: var(--wp--preset--font-size--large);
    font-weight: 700;
    letter-spacing: .08;

    &::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
    }
}