/**
 * Grid Cards Layout Styles
 * Minimal base styles - customize as needed
 */

.ga26-grid-cards {
    width: 100%;
    padding: 5vw;
}

.ga26-grid-cards__headline {
    font-family: 'Grack', sans-serif !important;
    margin: 0 auto 40px auto;
    text-align: center;
    font-weight: 500;
    text-transform: uppercase;
    max-width: 700px;
}

/* Dynamic section title colors - LIGHT values */
.ga26-flexible-content[data-menu-color="blue"] .ga26-grid-cards__headline {
    color: #00aeef;
}

.ga26-flexible-content[data-menu-color="purple"] .ga26-grid-cards__headline {
    color: #c6168d;
}

.ga26-flexible-content[data-menu-color="red"] .ga26-grid-cards__headline {
    color: #f15922;
}

.ga26-flexible-content[data-menu-color="yellow"] .ga26-grid-cards__headline {
    color: #fcaf17;
}

.ga26-flexible-content[data-menu-color="green"] .ga26-grid-cards__headline {
    color: #20bdbe;
}

.ga26-flexible-content[data-menu-color="black"] .ga26-grid-cards__headline {
    color: #d0d0d0;
}

.ga26-grid-cards__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 400px));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    justify-content: center;
}

.ga26-grid-cards__card {
    display: flex;
    flex-direction: column;
    background-color: #d0d0d0;
    padding: 15px;
    border-radius: 32px;
}

/* Dynamic background colors - LIGHT values */
.ga26-flexible-content[data-menu-color="blue"] .ga26-grid-cards__card {
    background-color: #00aeef;
}

.ga26-flexible-content[data-menu-color="purple"] .ga26-grid-cards__card {
    background-color: #c6168d;
}

.ga26-flexible-content[data-menu-color="red"] .ga26-grid-cards__card {
    background-color: #f15922;
}

.ga26-flexible-content[data-menu-color="yellow"] .ga26-grid-cards__card {
    background-color: #fcaf17;
}

.ga26-flexible-content[data-menu-color="green"] .ga26-grid-cards__card {
    background-color: #20bdbe;
}

.ga26-flexible-content[data-menu-color="black"] .ga26-grid-cards__card {
    background-color: #d0d0d0;
}

/* SIMPLIFIED MODE - Remove background (must come after color rules) */
.ga26-grid-cards--simplified .ga26-grid-cards__card {
    background-color: transparent !important;
    padding: 0;
}

.ga26-grid-cards__photo {
    margin-bottom: 20px;
    position: relative;
    width: 100%;
    padding-top: 100%; /* Creates 1:1 aspect ratio */
    overflow: hidden;
    border-radius: 20px;
}

/* SIMPLIFIED MODE - Remove rounded corners and show full image */
.ga26-grid-cards--simplified .ga26-grid-cards__photo {
    border-radius: 0;
    padding-top: 0;
    height: auto;
}

.ga26-grid-cards__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crops image to fill square */
    display: block;
}

/* SIMPLIFIED MODE - Show full image without cropping */
.ga26-grid-cards--simplified .ga26-grid-cards__image {
    position: relative;
    object-fit: contain;
    height: auto;
}

.ga26-grid-cards__title {
    font-family: 'Cachet Pro', sans-serif !important;
    margin: 15px 5%;
    text-align: center;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: -1px;
    color: #fff;
    line-height: 1em !important;
}

/* SIMPLIFIED MODE - Change title to MEDIUM color */
.ga26-flexible-content[data-menu-color="blue"] .ga26-grid-cards--simplified .ga26-grid-cards__title {
    color: #0089d0;
}

.ga26-flexible-content[data-menu-color="purple"] .ga26-grid-cards--simplified .ga26-grid-cards__title {
    color: #92278f;
}

.ga26-flexible-content[data-menu-color="red"] .ga26-grid-cards--simplified .ga26-grid-cards__title {
    color: #ed1c24;
}

.ga26-flexible-content[data-menu-color="yellow"] .ga26-grid-cards--simplified .ga26-grid-cards__title {
    color: #f47920;
}

.ga26-flexible-content[data-menu-color="green"] .ga26-grid-cards--simplified .ga26-grid-cards__title {
    color: #01a490;
}

.ga26-flexible-content[data-menu-color="black"] .ga26-grid-cards--simplified .ga26-grid-cards__title {
    color: #636466;
}

.ga26-grid-cards__copy {
    font-family: 'Noto Serif', serif;
    margin: 0 5% 15px 5%;
    color: #fff;
    font-size: 20px;
    text-align: center;
    line-height: 1.6em;
}

.ga26-grid-cards__copy p {
    color: #fff;
}

/* SIMPLIFIED MODE - Change copy text to medium grey */
.ga26-grid-cards--simplified .ga26-grid-cards__copy {
    color: #636466;
}

.ga26-grid-cards--simplified .ga26-grid-cards__copy p {
    color: #636466;
}

/* Responsive */
@media (max-width: 768px) {
    .ga26-grid-cards {
        padding: 5vw;
    }
    
    .ga26-grid-cards__grid {
        grid-template-columns: 1fr;
        gap: 5vw;
    }
    
    .ga26-grid-cards__card {
        padding: 20px;
        border-radius: 15px;
    }

    .ga26-grid-cards__title {
        margin: 15px 0 0 0;
        font-weight: 400;
        font-size: 26px !important;
    }

    .ga26-grid-cards__headline {
        margin: 40px auto 20px auto;
    }

    .ga26-grid-cards__copy {
        margin: 0 0 15px 0;
    }
}