.agfa,
.agfa * { box-sizing: border-box; }

.agfa {
    --agfa-gold: #d79a17;
    --agfa-gold-deep: #bd7e00;
    --agfa-ink: #171717;
    --agfa-muted: #929292;
    --agfa-line: rgba(27,31,36,.10);
    --agfa-card: #fff;
    --agfa-gap: 18px;
    --agfa-side: 48px;
    width: 100%;
    position: relative;
    overflow: visible;
    font-family: inherit;
}

/* Elementor'daki tam genişlik alanından çıkar, fakat Fioxen carousel gibi
   kontrollü bir içerik genişliği ve iki yanda nefes alanı bırakır. */
.agfa--full-bleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.agfa__inner {
    width: 100%;
    max-width: 1780px;
    margin: 0 auto;
    padding: 8px 0 13px;
}

.agfa__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 10px;
    padding: 0 var(--agfa-side);
}

/* English source label; GTranslate can translate it to the active language. */
.agfa__title {
    margin: 0;
    color: var(--agfa-ink);
    font-family: inherit;
    font-size: 16px !important;
    font-weight: 700;
    letter-spacing: .018em;
    line-height: 1.25;
}

.agfa__all {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--agfa-gold-deep);
    text-decoration: none !important;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    padding: 0 0 5px;
    border-bottom: 1px solid rgba(189,126,0,.60);
    transition: color .2s ease, border-color .2s ease;
}
.agfa__all:hover,
.agfa__all:focus-visible {
    color: #a96f00;
    border-color: currentColor;
}
.agfa__all svg {
    width: 17px;
    height: 17px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Fioxen carousel ritmi: iki yandaki kontrollü boşluk üstteki kart alanıyla hizayı korur. */
.agfa__slider-shell {
    position: relative;
    padding: 0 var(--agfa-side);
}

.agfa__viewport {
    width: 100%;
    overflow: hidden;
    outline: none;
    touch-action: pan-y;
    cursor: default;
    -webkit-user-select: none;
    user-select: none;
}
.agfa__viewport.is-dragging { cursor: grabbing; }
.agfa__viewport.is-dragging .agfa-card__link { cursor: grabbing; }
.agfa__track {
    display: flex;
    align-items: stretch;
    gap: var(--agfa-gap);
    will-change: transform;
    transform: translate3d(0,0,0);
}

/* Desktop: tam 5 kart. */
.agfa-card {
    flex: 0 0 calc((100% - (var(--agfa-gap) * 4)) / 5);
    min-width: 0;
    position: relative;
    overflow: hidden;
    background: var(--agfa-card);
    border: 1px solid var(--agfa-line);
    border-radius: 8px;
    box-shadow: 0 7px 19px rgba(25,29,34,.045);
    transition: border-color .20s ease, box-shadow .20s ease;
}
/* Premium hover ring is drawn inside the card so the bottom edge can never be
   clipped by the slider viewport or card content. */
.agfa-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 12;
    pointer-events: none;
    border: 1px solid rgba(197,137,13,.82);
    border-radius: inherit;
    opacity: 0;
    transition: opacity .20s ease;
}
.agfa-card__link {
    display: block;
    cursor: pointer;
    height: 100%;
    color: inherit !important;
    text-decoration: none !important;
}

.agfa-card__media {
    display: grid;
    position: relative;
    width: 100%;
    aspect-ratio: 1.48 / 1;
    overflow: hidden;
    background: #ece8e1;
    gap: 2px;
}
.agfa-card__media::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 18%;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.035));
    z-index: 1;
}
.agfa-card__media--count-3 {
    grid-template-columns: 62% 38%;
    grid-template-rows: 1fr 1fr;
}
.agfa-card__media--count-3 .agfa-card__art--1 { grid-column: 1; grid-row: 1 / span 2; }
.agfa-card__media--count-3 .agfa-card__art--2 { grid-column: 2; grid-row: 1; }
.agfa-card__media--count-3 .agfa-card__art--3 { grid-column: 2; grid-row: 2; }
.agfa-card__media--count-2 { grid-template-columns: 1.35fr .85fr; grid-template-rows: 1fr; }
.agfa-card__media--count-1 { display: block; }

.agfa-card__art {
    display: block;
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #ece7df;
}
.agfa-card__art img {
    display: block;
    -webkit-user-drag: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Eserin üst kısmını korur; portre/figürlerde başların kesilmesini azaltır. */
    object-position: center top;
    transform: none !important;
    transition: none !important;
}
.agfa-card__art-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-family: Georgia, serif;
    font-size: 34px;
    background: linear-gradient(135deg,#ded6c9,#f1ece5);
    color: #8e826f;
}

.agfa-card__body {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 121px;
    padding: 39px 14px 12px;
    background: #fff;
}
.agfa-card__body::before {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg,rgba(215,154,23,.38),rgba(215,154,23,.07),transparent 75%);
}

.agfa-card__avatar {
    position: absolute;
    top: -38px;
    left: 14px;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 4px solid #fff;
    background: #ece8e2;
    box-shadow: 0 4px 12px rgba(0,0,0,.13), 0 0 0 1px rgba(215,154,23,.13);
    overflow: hidden;
    display: grid;
    place-items: center;
    color: #6f675d;
    font-family: Georgia,serif;
    font-size: 18px;
    z-index: 3;
}
.agfa-card__avatar img {
    -webkit-user-drag: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    display: block;
    filter: grayscale(1) saturate(0) contrast(1.04);
    transform: none !important;
    transition: filter .28s ease;
}

/* Hover'da tek görsel hareket: sanatçı portresi renge döner. */
.agfa-card:hover .agfa-card__avatar img,
.agfa-card:focus-within .agfa-card__avatar img {
    filter: grayscale(0) saturate(1) contrast(1);
}

.agfa-card__name-line {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    margin-bottom: 13px;
}

.agfa-card__name {
    display: block;
    min-width: 0;
    max-width: 100%;
    color: var(--agfa-ink);
    font-family: "Quicksand", Arial, sans-serif;
    font-size: clamp(16px,.98vw,19px);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -.018em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

/* /art sanatçı kartlarındaki mavi doğrulama rozetiyle aynı temel görünüm. */
.agfa-card__verified {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 1;
}
.agfa-card__verified::after {
    content: "✔";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    background-color: #1DA1F2;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(29,161,242,.18);
}
.agfa-card__discipline-row,
.agfa-card__country-wrap {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.agfa-card__meta-icon {
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    display: inline-grid;
    place-items: center;
    color: #c78b12;
}
.agfa-card__meta-icon svg {
    width: 15px;
    height: 15px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.agfa-card__discipline {
    display: block;
    min-width: 0;
    color: #303030;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    min-height: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.agfa-card__country-row {
    margin-top: auto;
    padding-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #3b3b3b;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.2;
}
.agfa-card__country-wrap {
    flex: 1 1 auto;
}
.agfa-card__country {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.agfa-card__flag {
    flex: 0 0 31px;
    width: 31px;
    height: 24px;
    padding: 2px;
    border-radius: 5px;
    display: inline-grid;
    place-items: center;
    background: #fff;
    border: 1px solid rgba(25,29,34,.08);
    box-shadow: 0 2px 7px rgba(25,29,34,.07);
    line-height: 1;
}

.agfa-card__flag-image {
    display: block;
    width: 26px;
    height: 20px;
    object-fit: contain;
    border-radius: 2px;
}
.agfa-card__flag-fallback {
    display: block;
    font-size: 16px;
    line-height: 1;
}

/* Kart veya eser asla hareket etmez/büyümez. Hover sadece zarif border verir. */
.agfa-card:hover,
.agfa-card:focus-within {
    transform: none !important;
    border-color: rgba(202,143,17,.66);
    box-shadow: 0 9px 23px rgba(25,29,34,.075);
}
.agfa-card:hover::after,
.agfa-card:focus-within::after {
    opacity: 1;
}
.agfa-card:hover .agfa-card__art img,
.agfa-card:focus-within .agfa-card__art img {
    transform: none !important;
}

.agfa-admin-note {
    padding: 12px 14px;
    border: 1px solid #d9b873;
    background: #fff9e9;
    color: #5e4d2f;
    font-size: 14px;
}

@media (max-width: 1439px) {
    .agfa { --agfa-side: 42px; --agfa-gap: 16px; }
    .agfa-card { flex-basis: calc((100% - (var(--agfa-gap) * 3)) / 4); }
}

@media (max-width: 1120px) {
    .agfa { --agfa-side: 34px; --agfa-gap: 15px; }
    .agfa-card { flex-basis: calc((100% - (var(--agfa-gap) * 2)) / 3); }
}

@media (max-width: 820px) {
    .agfa { --agfa-side: 18px; --agfa-gap: 13px; }
    .agfa-card { flex-basis: calc((100% - var(--agfa-gap)) / 2); }
    .agfa-card__media { aspect-ratio: 1.42 / 1; }
}

@media (max-width: 560px) {
    .agfa { --agfa-side: 8px; --agfa-gap: 12px; }
    .agfa__inner { padding-top: 7px; }
    .agfa__header { gap: 12px; }
    .agfa__title { font-size: 16px !important; }
    .agfa__all { font-size: 12px; gap: 5px; padding-bottom: 4px; }
    .agfa__all svg { width: 16px; height: 16px; }
    .agfa-card { flex-basis: 100%; }
    .agfa-card__media { aspect-ratio: 1.34 / 1; }
    .agfa-card__body { min-height: 126px; padding: 40px 14px 12px; }
    .agfa-card__avatar { width: 74px; height: 74px; top: -37px; }
    .agfa-card__name { font-size: 20px; }
    .agfa-card__name-line { gap: 7px; }
}



@media (prefers-reduced-motion: reduce) {
    .agfa__track,
    .agfa-card,
    .agfa-card__avatar img,
    .agfa__all { transition: none !important; }
}
