/* ==============================
   PARTNER ARTISTS SECTION
   ============================== */

/* აშორებს Astra თემის ნაგულისხმევ თეთრ დაშორებებს */
.site-main,
main#primary,
.entry-content,
.ast-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* უზრუნველყოფს, რომ პირველივე სექცია მიეწებოს ნავიგაციას */
.partner-artists-section {
    margin-top: 0 !important;
}

.partner-artists-section {
    padding: 9rem 0;
    background: var(--color-light, #f5f5f5);
}

/* ---------- HERO / HEADER ---------- */

.partner-hero__header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 4rem;
}

.partner-hero__label {
    display: inline-block;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--color-secondary, #35C4F5);
    margin-bottom: 1rem;
}

.partner-hero__title {
    font-size: clamp(2.8rem, 5vw, 4.2rem) !important;
    font-weight: bold;
    line-height: 1.15;
    color: var(--color-primary, #2a2e60);
    margin: 0 0 1.5rem;
}

.partner-hero__description {
    font-size: 1.5rem !important;
    line-height: 1.8;
    color: #444;
    margin: 0 auto;
    font-weight: 800;
}

/* ---------- ARTIST BLOCK & GRID ---------- */

.artist-block {
    max-width: 1100px;
    margin: 0 auto 4rem;
}

.artist-block:last-child {
    margin-bottom: 0;
}

.artist-block__header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 3rem;
}

.artist-block__name {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-primary, #2a2e60);
    margin: 0 0 0.35rem;
}

.artist-block__role {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-secondary, #35C4F5);
    margin-bottom: 0.9rem;
}

.artist-block__bio {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #665;
    margin: 0;
    font-family: bold;
}

/* ---------- Painting Grid ---------- */

.painting-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 4rem;
}

.painting-card {
    background: var(--color-white, #ffffff);
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-sm, 0 4px 12px rgba(0,0,0,0.08));
    transition: var(--transition, all 0.3s ease);
}

.painting-card:hover,
.painting-card:focus-visible {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md, 0 8px 24px rgba(0,0,0,0.15));
    outline: none;
}

/* Card-ზე გადატარებისას (Hover) ტექსტების ფერის შეცვლა */
.painting-card:hover .painting-card__size,
.painting-card:focus-visible .painting-card__size,
.painting-card:hover .painting-card__price,
.painting-card:focus-visible .painting-card__price {
    color: var(--color-white, #35C4F5) !important;
}

.painting-card__frame {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.painting-card__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition, all 0.3s ease);
}

.painting-card:hover .painting-card__frame img {
    transform: scale(1.05);
}

.painting-card__zoom {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(42, 46, 96, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition, all 0.3s ease);
}

.painting-card__zoom svg {
    width: 18px;
    height: 18px;
    color: var(--color-white, #ffffff);
}

.painting-card:hover .painting-card__zoom {
    opacity: 1;
}

.painting-card__meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 18px 22px 20px;
}

.painting-card__size {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #777;
    transition: color 0.3s ease;
}

.painting-card__price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary, #2a2e60);
    transition: color 0.3s ease;
}

.artist-block__cta {
    text-align: center;
}


/* ---------- Are You An Artist CTA ---------- */

.artist-cta {
    position: relative;
    padding: 6rem 0;
    background: var(--color-white, #ffffff);
    overflow: hidden;
    text-align: center;
}

.artist-cta__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.artist-cta__bg svg {
    width: 100%;
    height: 100%;
    display: block;
}

.artist-cta__content {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: 0 auto;
}

.artist-cta__content h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    color: var(--color-primary, #2a2e60);
    margin: 0 0 1rem;
}

.artist-cta__content p {
    font-size: 1.5rem;
    color: #555;
    margin: 0 auto 2rem;
    line-height: 1.7;
    font-weight: bold;
}

/* ---------- Lightbox ---------- */

.painting-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 26, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
    z-index: 9999;
}

.painting-lightbox.open {
    display: flex;
}

.painting-lightbox__panel {
    max-width: 650px;
    width: 100%;
}

.painting-lightbox__img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-lg, 0 8px 32px rgba(0,0,0,0.2));
}

.painting-lightbox__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.painting-lightbox__meta {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    color: var(--color-white, #ffffff);
}

.painting-lightbox__meta #paintingLightboxSize {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.85;
}

.painting-lightbox__meta #paintingLightboxPrice {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-secondary, #35C4F5);
}

.painting-lightbox__close {
    position: absolute;
    top: 24px;
    right: 28px;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    color: #ffffff !important;
    font-size: 2.8rem;
    font-weight: 300;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.25s ease;
    z-index: 10000;
}

.painting-lightbox__close:hover,
.painting-lightbox__close:focus {
    background: transparent !important;
    transform: scale(1.25);
}

/* ---------- BUTTON STYLES (PARTNER PAGE ONLY) ---------- */

.btn-partner-primary {
    display: inline-block;
    background-color: var(--color-primary, #2a2e60) !important;
    color: #ffffff !important;
    padding: 0.9rem 2.2rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    border: 2px solid var(--color-primary, #2a2e60);
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(42, 46, 96, 0.25);
}

.btn-partner-primary:hover {
    background-color: #1e2248 !important;
    border-color: #1e2248;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 46, 96, 0.35);
    color: #ffffff !important;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
    .artist-block {
        max-width: 900px;
    }
    .painting-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media screen and (max-width: 768px) {
    .partner-artists-section {
        padding: 4rem 0;
    }

    .painting-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .artist-block__name {
        font-size: 1.5rem;
    }
}