/* ================================================
   TEAM GLAM — Artist & Stylist Showcase Widget CSS
   ================================================ */

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

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

/* ── Header ── */
.tg-as-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}

.tg-as-title {
    font-family: 'beaufort-pro', serif;
    font-size: clamp(32px, 3.5vw, 48px);
    font-weight: 400;
    color: #111111;
    margin: 0 0 16px;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.tg-as-subtitle {
    font-family: 'brandon-grotesque', sans-serif;
    font-size: var(--tg-body-font-size, 18px);
    line-height: 1.6;
    color: #555555;
    margin: 0;
}

/* ── Grid ── */
.tg-as-grid {
    display: grid;
    gap: 40px;
    width: 100%;
}

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

/* ── Card ── */
.tg-as-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    background: #ffffff;
}

.tg-as-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background-color: #f5f5f5;
    margin-bottom: 24px;
}

.tg-as-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.3, 1);
}

.tg-as-card:hover .tg-as-img {
    transform: scale(1.05);
}

.tg-as-view-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: rgba(17, 17, 17, 0.9);
    color: #ffffff;
    font-family: 'brandon-grotesque', sans-serif;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
}

.tg-as-card:hover .tg-as-view-btn {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── Content ── */
.tg-as-content {
    text-align: center;
}

.tg-as-name {
    font-family: 'beaufort-pro', serif;
    font-size: 24px;
    font-weight: 400;
    color: #111111;
    margin: 0 0 6px;
    line-height: 1.25;
}

.tg-as-role {
    font-family: 'brandon-grotesque', sans-serif;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #777777;
    margin: 0 0 4px;
    font-weight: 400;
}

.tg-as-location {
    font-family: 'brandon-grotesque', sans-serif;
    font-size: 12px;
    color: #999999;
    margin: 0;
    font-weight: 300;
}

/* ── Modal Bio Popup ── */
.tg-as-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.tg-as-modal.is-active {
    display: flex;
}

.tg-as-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
}

.tg-as-modal-box {
    position: relative;
    width: 100%;
    max-width: 860px;
    background-color: #ffffff;
    padding: 48px;
    box-sizing: border-box;
    z-index: 2;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.tg-as-modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 32px;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
    color: #111111;
    outline: none;
}

.tg-as-modal-body {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

.tg-as-modal-img-wrap {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background-color: #f5f5f5;
}

.tg-as-modal-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.tg-as-modal-name {
    font-family: 'beaufort-pro', serif;
    font-size: 32px;
    font-weight: 400;
    color: #111111;
    margin: 0 0 8px;
    line-height: 1.2;
}

.tg-as-modal-role {
    font-family: 'brandon-grotesque', sans-serif;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #777777;
    margin: 0 0 4px;
}

.tg-as-modal-location {
    font-family: 'brandon-grotesque', sans-serif;
    font-size: 13px;
    color: #999999;
    margin: 0 0 24px;
}

.tg-as-modal-bio {
    font-family: 'brandon-grotesque', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #333333;
    margin-bottom: 24px;
}

.tg-as-modal-social a {
    display: inline-block;
    font-family: 'brandon-grotesque', sans-serif;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #111111;
    text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .tg-as-grid--cols-3,
    .tg-as-grid--cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .tg-as-modal-body {
        grid-template-columns: 220px 1fr;
        gap: 28px;
    }
}

@media (max-width: 767px) {
    .tg-as-wrap {
        padding: 60px 20px;
    }
    .tg-as-grid {
        grid-template-columns: 1fr !important;
        gap: 32px;
    }
    .tg-as-modal-box {
        padding: 32px 24px;
        max-height: 90vh;
        overflow-y: auto;
    }
    .tg-as-modal-body {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    .tg-as-modal-img-wrap {
        max-width: 200px;
        margin: 0 auto;
    }
    .tg-as-view-btn {
        opacity: 1 !important;
        transform: translateX(-50%) translateY(0) !important;
    }
}
