/* =============================================================
   TEAM GLAM — Artist Editorial Portfolio Widget CSS
   ============================================================= */

.tg-ap-wrap {
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

/* ── 1. Section Header Row ────────────────────────────────── */
.tg-ap-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: clamp(30px, 4vw, 55px);
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.tg-ap-title {
    font-family: var(--tg-font-heading, 'beaufort-pro', Georgia, serif);
    font-size: clamp(28px, 3.2vw, 46px);
    font-weight: 400;
    line-height: 1.1;
    color: #111111;
    margin: 0;
    letter-spacing: -0.01em;
}

.tg-ap-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #000000;
    color: #ffffff !important;
    font-family: var(--tg-font-body, 'brandon-grotesque', sans-serif) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    padding: 12px 28px;
    line-height: 1 !important;
    border: 1px solid #000000;
    border-radius: 0;
    white-space: nowrap;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.tg-ap-cta:hover {
    background-color: #ffffff;
    color: #000000 !important;
    border-color: #000000;
}

/* ── 2. Artist Row Container ──────────────────────────────── */
.tg-ap-artists-list {
    display: flex;
    flex-direction: column;
    gap: clamp(60px, 7vw, 110px);
}

.tg-ap-artist-row {
    display: grid;
    grid-template-columns: minmax(260px, 300px) 1fr;
    gap: clamp(30px, 4.5vw, 60px);
    align-items: start;
}

/* ── 3. Left Column (Artist Bio & Portrait) ────────────────── */
.tg-ap-artist-left {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: calc(var(--tg-header-height, 80px) + 20px);
}

.tg-ap-portrait-wrap {
    width: 100%;
    overflow: hidden;
    background-color: #f6f6f6;
    margin-bottom: 24px;
}

.tg-ap-portrait-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    object-position: center 20%;
    transition: transform 0.4s ease;
}

.tg-ap-artist-name {
    font-family: var(--tg-font-heading, 'beaufort-pro', Georgia, serif);
    font-size: clamp(15px, 1.4vw, 18px);
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #111111;
    margin: 0 0 16px 0;
}

.tg-ap-artist-bio {
    font-family: var(--tg-font-body, 'brandon-grotesque', sans-serif);
    font-size: 14.5px;
    line-height: 1.6;
    color: #3b3b3b;
    letter-spacing: -0.015em;
}

.tg-ap-artist-bio p {
    margin: 0 0 14px 0;
}

.tg-ap-artist-bio p:last-child {
    margin-bottom: 0;
}

/* ── 4. Right Column (Galleries & Portfolios) ──────────────── */
.tg-ap-artist-right {
    display: flex;
    flex-direction: column;
    gap: clamp(30px, 4vw, 50px);
    width: 100%;
}

/* Part A: Signature Lookbook Grid */
.tg-ap-lookbook-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
}

.tg-ap-lookbook-item {
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0;
    display: block;
    text-decoration: none;
}

.tg-ap-lookbook-img {
    width: 100%;
    height: 100%;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.3s ease;
}

.tg-ap-lookbook-item:hover .tg-ap-lookbook-img {
    transform: scale(1.04);
}

/* Part B: Recent Events / Date Portfolio Grid */
.tg-ap-events-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.tg-ap-events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 12px;
    width: 100%;
}

.tg-ap-event-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.tg-ap-event-img-wrap {
    width: 100%;
    overflow: hidden;
    background-color: #f0f0f0;
    margin-bottom: 8px;
    position: relative;
}

.tg-ap-event-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tg-ap-event-item:hover .tg-ap-event-img {
    transform: scale(1.04);
}

.tg-ap-event-date {
    font-family: var(--tg-font-body, 'brandon-grotesque', sans-serif);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0.03em;
    color: #707070;
    margin: 0;
    text-transform: capitalize;
}

.tg-ap-event-title {
    font-family: var(--tg-font-heading, 'beaufort-pro', Georgia, serif);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: #111111;
    margin: 4px 0 0 0;
}

/* ── 5. Responsive Breakpoints ────────────────────────────── */
@media (max-width: 1024px) {
    .tg-ap-artist-row {
        grid-template-columns: minmax(220px, 260px) 1fr;
        gap: 30px;
    }

    .tg-ap-lookbook-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .tg-ap-events-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px 8px;
    }
}

@media (max-width: 767px) {
    .tg-ap-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 30px;
    }

    .tg-ap-artist-row {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .tg-ap-artist-left {
        position: static;
    }

    .tg-ap-portrait-wrap {
        max-width: 320px;
        margin: 0 auto 20px auto;
    }

    .tg-ap-artist-name {
        text-align: left;
    }

    .tg-ap-lookbook-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .tg-ap-events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px 10px;
    }
}
