@media (max-width: 768px) {
    .tribe-events-event-image img {
        width: 100%;
        height: auto;
        max-height: 350px;
        object-fit: cover;
    }
}
/* ========================================
   CREST EVENT CENTER - EVENTS GALLERY
   ======================================== */

.crest-events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 0 30px;
}


/* EVENT CARD */

.crest-event-card {
    background: #ffffff;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.10);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.crest-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}


/* EVENT IMAGE */

.crest-event-image {
    display: block;
    width: 100%;
    overflow: hidden;
}

.crest-event-image img {
    display: block;
    width: 100%;
    height: 320px;
    object-fit: cover;
    margin: 0;
    transition: transform 0.4s ease;
}

.crest-event-card:hover .crest-event-image img {
    transform: scale(1.04);
}


/* EVENT INFORMATION */

.crest-event-content {
    padding: 22px;
}

.crest-event-date {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #666666;
}


/* EVENT TITLE */

.crest-event-title {
    margin: 0 0 18px;
    padding: 0;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 600;
}

.crest-event-title a {
    color: #111111;
    text-decoration: none;
}

.crest-event-title a:hover {
    opacity: 0.7;
}


/* VIEW EVENT BUTTON */

.crest-event-button {
    display: inline-block;
    background: #111111;
    color: #ffffff !important;
    padding: 12px 22px;
    border-radius: 3px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

.crest-event-button:hover {
    opacity: 0.8;
    color: #ffffff !important;
}


/* TABLET */

@media (max-width: 900px) {

    .crest-events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }

    .crest-event-image img {
        height: 280px;
    }
}


/* MOBILE */

@media (max-width: 600px) {

    .crest-events-grid {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 5px 0 20px;
    }

    .crest-event-image img {
        height: 250px;
    }

    .crest-event-content {
        padding: 18px;
    }

    .crest-event-title {
        font-size: 21px;
    }

    .crest-event-button {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}