/* ================================================
   TEAM GLAM — Editorial Event Calendar / Grid Widget
   ================================================ */

.tg-ec-wrap {
    width: 100%;
    background-color: #ffffff;
    padding: 100px 40px;
    box-sizing: border-box;
}

.tg-ec-container {
    max-width: 1320px;
    margin: 0 auto;
    width: 100%;
}

.tg-ec-heading {
    font-family: 'beaufort-pro', serif;
    font-size: clamp(36px, 4.5vw, 60px);
    font-weight: 400;
    color: #111111;
    text-align: center;
    margin: 0 0 64px;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

/* ── Grid ── */
.tg-ec-grid {
    display: grid;
    gap: 32px;
    width: 100%;
    align-items: stretch;
}

.tg-ec-cols-3 { grid-template-columns: repeat(3, 1fr); }
.tg-ec-cols-2 { grid-template-columns: repeat(2, 1fr); }
.tg-ec-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Card ── */
.tg-ec-card {
    background-color: #f5f5f5;
    border-radius: 0;
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.tg-ec-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.06);
}

.tg-ec-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 24px;
    background: transparent;
}

.tg-ec-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center;
    display: block !important;
    transition: transform 0.5s ease;
}

.tg-ec-card:hover .tg-ec-card-img {
    transform: scale(1.04);
}

/* ── Card Content Body ── */
.tg-ec-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    width: 100%;
    justify-content: space-between;
}

.tg-ec-card-title {
    font-family: 'beaufort-pro', serif;
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 400;
    color: #111111;
    margin: 0 0 14px;
    text-align: center;
    line-height: 1.25;
}

.tg-ec-date {
    font-family: 'brandon-grotesque', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #444444;
    margin: 0 0 6px;
    text-align: center;
    line-height: 1.4;
}

.tg-ec-planner {
    font-family: 'brandon-grotesque', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #666666;
    margin: 0 0 28px;
    text-align: center;
    line-height: 1.4;
}

.tg-ec-btn-wrap {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: auto;
}

.tg-ec-btn {
    display: inline-block;
    font-family: 'brandon-grotesque', sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: #ffffff;
    background-color: #000000;
    padding: 13px 26px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.tg-ec-btn:hover {
    background-color: #333333;
    color: #ffffff;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .tg-ec-wrap {
        padding: 72px 24px;
    }
    .tg-ec-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px;
    }
    .tg-ec-heading {
        margin-bottom: 44px;
    }
}

@media (max-width: 767px) {
    .tg-ec-wrap {
        padding: 48px 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    .tg-ec-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        width: 100% !important;
    }
    .tg-ec-heading {
        font-size: clamp(28px, 7vw, 42px) !important;
        margin-bottom: 32px !important;
    }
    .tg-ec-card {
        padding: 24px 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}
