:root {
    --photo-bg-1: #050b18;
    --photo-bg-2: #0a1630;
    --photo-card: rgba(9, 17, 34, 0.74);
    --photo-border: rgba(255, 255, 255, 0.14);
    --photo-text: #f4f8ff;
    --photo-muted: rgba(227, 236, 255, 0.76);
    --photo-primary: #4a7aff;
    --photo-secondary: #c043e5;
    --photo-cyan: #50dfdb;
    --photo-shadow: 0 20px 55px rgba(3, 8, 20, 0.55);
    --photo-radius-lg: 22px;
    --photo-radius-md: 14px;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    color: var(--photo-text);
    background:
        radial-gradient(1200px 700px at 15% 10%, rgba(80, 223, 219, 0.12), transparent 65%),
        radial-gradient(1000px 600px at 90% 20%, rgba(192, 67, 229, 0.16), transparent 70%),
        linear-gradient(145deg, var(--photo-bg-1), var(--photo-bg-2));
    background-attachment: fixed;
    background-size: 140% 140%;
    animation: photoAmbient 18s ease-in-out infinite;
    overflow-x: hidden;
    font-family: "Bahnschrift", "Segoe UI", sans-serif;
}

.main-content {
    width: min(1280px, 94vw);
    margin: 0 auto;
    padding: 82px 0 56px;
}

.photo-hero {
    border-radius: var(--photo-radius-lg);
    border: 1px solid var(--photo-border);
    background: linear-gradient(145deg, rgba(9, 17, 34, 0.86), rgba(9, 17, 34, 0.64));
    box-shadow: var(--photo-shadow);
    padding: clamp(20px, 3vw, 34px);
    position: relative;
    overflow: hidden;
}

.photo-hero::before,
.photo-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(36px);
    pointer-events: none;
    z-index: 0;
}

.photo-hero::before {
    width: 230px;
    height: 230px;
    left: -46px;
    top: -48px;
    background: rgba(80, 223, 219, 0.2);
    animation: floatGlowOne 9s ease-in-out infinite;
}

.photo-hero::after {
    width: 280px;
    height: 280px;
    right: -72px;
    bottom: -72px;
    background: rgba(192, 67, 229, 0.2);
    animation: floatGlowTwo 10s ease-in-out infinite;
}

.photo-hero > * {
    position: relative;
    z-index: 1;
}

.photo-kicker {
    margin: 0;
    letter-spacing: 0.22em;
    font-size: 0.75rem;
    color: rgba(186, 246, 213, 0.9);
}

.photo-hero h1 {
    margin: 10px 0 10px;
    font-size: clamp(1.5rem, 3.4vw, 2.8rem);
    line-height: 1.12;
    text-wrap: balance;
}

.photo-subtitle {
    margin: 0;
    max-width: 860px;
    color: var(--photo-muted);
    line-height: 1.62;
}

.hero-pills {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-pill {
    border-radius: 999px;
    border: 1px solid rgba(80, 223, 219, 0.36);
    background: rgba(80, 223, 219, 0.12);
    color: #d7f8ff;
    padding: 9px 13px;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hero-pill:hover,
.hero-pill:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(80, 223, 219, 0.6);
    background: rgba(80, 223, 219, 0.2);
}

.team-filters {
    margin-top: 24px;
    display: grid;
    gap: 10px;
}

.team-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.team-filter-button {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: #e1f7ff;
    padding: 10px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.team-filter-button:hover,
.team-filter-button:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(80, 223, 219, 0.5);
    background: rgba(80, 223, 219, 0.14);
}

.team-filter-button.selected {
    border-color: rgba(255, 210, 98, 0.9);
    background: linear-gradient(135deg, rgba(255, 218, 102, 0.18), rgba(255, 190, 75, 0.24));
    color: #fff;
}

/* Role filters should show green selected state */
.team-filter-row.role-filters .team-filter-button.selected {
    border-color: rgba(80, 223, 219, 0.95);
    background: linear-gradient(135deg, rgba(80, 223, 219, 0.16), rgba(74, 122, 255, 0.06));
    color: #eafef6;
}

/* City filters keep the yellow look (explicit) */
.team-filter-row.city-filters .team-filter-button.selected {
    border-color: rgba(255, 210, 98, 0.95);
    background: linear-gradient(135deg, rgba(255, 218, 102, 0.18), rgba(255, 190, 75, 0.24));
    color: #fff;
}

.photo-listing {
    margin-block: 48px; /* spacing above and below each section */
    --team-card-width: clamp(278px, 26vw, 336px);
    --team-per-view: 3; /* default desktop: show exactly 3 cards per view */
    --team-gap: 16px;
}

.photo-listing-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.section-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 12px;
}

.scroll-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.card-top-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    justify-content: flex-end;
}

.card-top-meta-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

.card-instagram-top {
    margin: 0;
}

.section-copy {
    max-width: 700px;
}

.section-kicker {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(186, 246, 213, 0.9);
}

.photo-listing-head h2 {
    margin: 6px 0 0;
    font-size: clamp(1.12rem, 2.1vw, 1.65rem);
}

.section-subtitle {
    margin: 6px 0 0;
    color: var(--photo-muted);
    font-size: 0.93rem;
    line-height: 1.52;
}

.scroll-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.scroll-btn {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.scroll-btn:hover,
.scroll-btn:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(80, 223, 219, 0.54);
    background: linear-gradient(145deg, rgba(80, 223, 219, 0.26), rgba(74, 122, 255, 0.26));
}

.scroll-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

.photographers-scroll-shell {
    position: relative;
    isolation: isolate;
}

.photographers-scroll-shell::before,
.photographers-scroll-shell::after {
    display: none; /* remove dark side overlays */
}

.photographers-track {
    display: grid;
    grid-auto-flow: column;
    /* compute card width so exactly `--team-per-view` cards fit the viewport */
    grid-auto-columns: calc((100% - (var(--team-gap) * (var(--team-per-view) - 1))) / var(--team-per-view));
    gap: var(--team-gap);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 6px;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    padding: 6px 6px 14px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.photographers-track::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.photographers-track::-webkit-scrollbar-thumb {
    display: none;
}

.photographers-track::-webkit-scrollbar-track {
    display: none;
}

.team-sort-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
    align-self: flex-end;
    justify-content: flex-end;
}

.team-sort-button {
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    padding: 10px 18px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.team-sort-button:hover,
.team-sort-button:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(80, 223, 219, 0.54);
    background: rgba(74, 122, 255, 0.14);
}

.team-sort-button.selected {
    border-color: rgba(80, 223, 219, 0.86);
    background: linear-gradient(135deg, rgba(82, 230, 255, 0.18), rgba(248, 221, 156, 0.16));
}

.team-pagination {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.team-pagination-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, 0.56);
    background: transparent;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.team-pagination-dot:hover,
.team-pagination-dot:focus-visible {
    transform: scale(1.1);
    border-color: rgba(82, 230, 255, 0.86);
}

.team-pagination-dot.is-active {
    background: linear-gradient(135deg, #52e6ff, #f8dd9c);
    border-color: transparent;
    box-shadow: 0 0 0 4px rgba(82, 230, 255, 0.14);
}

.photographer-card {
    min-width: 0;
    max-width: none;
    width: 100%;
    border-radius: var(--photo-radius-md);
    border: 1px solid var(--photo-border);
    background: var(--photo-card);
    box-shadow: 0 14px 34px rgba(4, 9, 23, 0.44);
    padding: 14px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, opacity 0.28s ease;
    opacity: 1;
    transform: translateY(0) scale(1);
    cursor: pointer;
}

.photographer-card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: var(--card-delay, 0ms);
}

.photographer-card:hover {
    transform: translateY(-4px);
    border-color: rgba(80, 223, 219, 0.42);
    box-shadow: 0 22px 48px rgba(4, 9, 23, 0.6);
}

.card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.photographer-avatar {
    width: 92px;
    height: 92px;
    border-radius: 16px;
    object-fit: contain;
    background: rgba(7, 14, 28, 0.94);
    padding: 4px;
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.experience-pill {
    border-radius: 999px;
    border: 1px solid rgba(80, 223, 219, 0.4);
    background: rgba(80, 223, 219, 0.12);
    color: #baf6d5;
    font-size: 0.8rem;
    padding: 6px 10px;
    white-space: nowrap;
}

.role-pill {
    margin: 11px 0 0;
    display: inline-flex;
    border-radius: 999px;
    border: 1px solid rgba(80, 223, 219, 0.36);
    background: linear-gradient(135deg, rgba(80, 223, 219, 0.12), rgba(15, 120, 110, 0.04));
    color: #baf6d5;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 5px 9px;
}

.card-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.card-instagram {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 7px 0 0;
    color: #d7f8ff;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.card-instagram:hover,
.card-instagram:focus-visible {
    color: #fff;
}

.instagram-icon {
    display: inline-flex;
    width: 16px;
    height: 16px;
    align-items: center;
    justify-content: center;
    color: #f5c26b;
}

.instagram-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.modal-meta-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.modal-city-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: transparent;
    border: none;
    color: inherit;
    height: 100%;
}

.work-preview {
    object-fit: cover;
}

.photographer-card h3 {
    margin: 12px 0 2px;
    font-size: 1.12rem;
}

.card-cities {
    display: flex;
    gap: 8px;
    align-items: center;
}

.card-city {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 6px 10px;
    background: linear-gradient(135deg, rgba(255, 214, 102, 0.22), rgba(196, 146, 42, 0.24));
    border: 1px solid rgba(255, 209, 95, 0.35);
    color: #ffd66a;
    font-weight: 700;
    font-size: 0.82rem;
    line-height: 1;
}

.card-headline {
    margin: 9px 0 0;
    color: var(--photo-muted);
    line-height: 1.5;
    min-height: 66px;
    font-size: 0.92rem;
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 11px;
}

.chip {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: #e6f1ff;
    font-size: 0.76rem;
    padding: 5px 9px;
}

.card-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
}

.btn-open-work,
.btn-quick-quote,
.btn-devis,
.btn-outline {
    border: 0;
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.btn-open-work,
.btn-devis {
    color: #fff;
    background: linear-gradient(98deg, var(--photo-primary), var(--photo-secondary));
}

.btn-quick-quote {
    color: #dff6ff;
    border: 1px solid rgba(80, 223, 219, 0.38);
    background: rgba(80, 223, 219, 0.11);
}

.btn-outline {
    color: #e7f0ff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
}

.btn-open-work:hover,
.btn-quick-quote:hover,
.btn-devis:hover,
.btn-outline:hover,
.btn-open-work:focus-visible,
.btn-quick-quote:focus-visible,
.btn-devis:focus-visible,
.btn-outline:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 12px 22px rgba(4, 9, 23, 0.4);
}

.photo-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.photo-modal.is-open {
    display: flex;
    animation: modalFadeIn 0.24s ease both;
}

.photo-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 8, 20, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.photo-modal__panel {
    position: relative;
    z-index: 1;
    width: min(1020px, 95vw);
    max-height: 90vh;
    overflow: auto;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(145deg, rgba(9, 17, 34, 0.97), rgba(8, 14, 28, 0.96));
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.58);
    padding: 22px;
}

.photo-modal__close {
    position: static;
    transform: none;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.photo-modal__head {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: 16px;
    align-items: center;
    position: relative;
}

.photo-modal__avatar {
    width: 110px;
    height: 110px;
    border-radius: 16px;
    object-fit: contain;
    background: rgba(7, 14, 28, 0.94);
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.photo-modal__head-copy h2 {
    margin: 4px 0 8px;
    font-size: clamp(1.25rem, 2.7vw, 2rem);
}

.modal-city {
    margin: 4px 0 0;
    color: #b8d3ff;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.modal-role {
    margin: 0;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: rgba(186, 246, 213, 0.95);
    font-weight: 700;
}

.modal-headline {
    margin: 0;
    color: var(--photo-muted);
    line-height: 1.56;
}

.photo-modal__gallery {
    margin-top: 22px;
    display: block;
    gap: 16px;
}

.photo-modal__gallery h3 {
    margin: 40px 0 0; /* give space before the heading, none after */
    color: #e9f6ff;
}

.collab-events-block { margin-bottom: 12px; }
.collab-events-header { color: var(--photo-muted); font-weight:700; margin-bottom:8px; }
.collab-events-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.collab-item { padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,0.02); border:1px solid rgba(255,255,255,0.04); color:var(--photo-muted); margin-bottom:8px; }

.work-item {
    display: block;
    width: 100%;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    padding: 0;
    color: inherit;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 14px 24px rgba(4, 9, 23, 0.42);
    transition: transform 0.22s ease, border-color 0.22s ease;
    animation: workReveal 0.35s ease both;
    animation-delay: var(--work-delay, 0ms);
}

.work-item:hover,
.work-item:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(80, 223, 219, 0.5);
}

.work-preview-wrap {
    position: relative;
}

.work-preview {
    border-radius: 14px;
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: contain;
    display: block;
    background: rgba(8, 14, 28, 0.9);
}

.work-video-badge {
    position: absolute;
    right: 8px;
    bottom: 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(7, 14, 28, 0.78);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 8px;
}

.work-copy {
    padding: 9px 10px 11px;
}

.work-copy p {
    margin: 0;
    font-size: 0.86rem;
    color: #f1f7ff;
    font-weight: 700;
}

.work-copy span {
    display: block;
    margin-top: 4px;
    color: var(--photo-muted);
    font-size: 0.78rem;
}

.photo-modal__actions {
    display: inline-flex;
    gap: 8px;
    margin-left: auto;
    align-items: center;
}

/* make actions and close smaller when space is tight */
.modal-meta-row .photo-modal__actions a,
.modal-meta-row .photo-modal__close {
    font-size: 0.84rem;
    padding: 6px 8px;
}

@media (max-width: 720px) {
    .modal-meta-row { flex-wrap: wrap; gap: 8px; }
    .modal-meta-row .photo-modal__actions { margin-left: 0; }
}

.media-lightbox {
    position: fixed;
    inset: 0;
    z-index: 15050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.media-lightbox.is-open {
    display: flex;
    animation: modalFadeIn 0.22s ease both;
}

.media-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 8, 20, 0.84);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.media-lightbox__panel {
    position: relative;
    z-index: 1;
    width: min(1120px, 96vw);
    max-height: 92vh;
    overflow: auto;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: linear-gradient(145deg, rgba(7, 14, 28, 0.98), rgba(6, 11, 22, 0.96));
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.62);
    padding: 16px;
}

.media-lightbox__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.42rem;
    cursor: pointer;
    z-index: 2;
}

.media-lightbox__inner {
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 26px 14px 8px;
}

.media-lightbox__inner img,
.media-lightbox__inner video {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 72vh;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: #040b16;
}

.media-lightbox__inner video {
    width: min(100%, 980px);
}

.media-lightbox__caption {
    margin: 8px 0 0;
    text-align: center;
    color: var(--photo-muted);
    font-size: 0.9rem;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 1180px) {
    .photo-listing {
        --team-card-width: clamp(268px, 35vw, 324px);
        --team-per-view: 3;
    }
}

@media (max-width: 980px) {
    body {
        background-attachment: scroll;
        animation: none;
    }

    .main-content {
        width: 100%;
        max-width: 100%;
        padding: 74px 12px 24px;
    }

    .photo-listing {
        --team-card-width: clamp(278px, 26vw, 336px);
        --team-per-view: 2;
    }

    .photographers-track {
        gap: 12px;
        padding: 6px 4px 12px;
    }

    .photographers-scroll-shell::before,
    .photographers-scroll-shell::after {
        width: 22px;
    }

    .photographer-card {
        padding: 13px;
    }
}

@media (max-width: 760px) {
    .photo-hero {
        padding: 18px 14px;
    }

    .hero-pills {
        gap: 6px;
    }

    .hero-pill {
        width: 100%;
        text-align: center;
    }

    .photo-listing-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .photo-listing {
        --team-card-width: min(88vw, 330px);
        --team-per-view: 1;
    }

    .photographers-scroll-shell::before,
    .photographers-scroll-shell::after {
        display: none;
    }

    .photographers-track {
        scroll-padding-inline: 0;
        padding-inline: 0;
    }

    .photographer-avatar {
        width: 84px;
        height: 84px;
    }

    .scroll-controls {
        width: 100%;
    }

    .scroll-btn {
        flex: 1;
        height: 36px;
    }

    .photo-modal {
        padding: 10px;
    }

    .photo-modal__panel {
        width: 96vw;
        max-height: 92vh;
        padding: 14px;
        border-radius: 16px;
    }

    .photo-modal__head {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .photo-modal__avatar {
        width: 88px;
        height: 88px;
        border-radius: 12px;
    }

    .photo-modal__gallery {
        grid-template-columns: 1fr;
    }

    .media-lightbox {
        padding: 10px;
    }

    .media-lightbox__panel {
        width: 96vw;
        max-height: 92vh;
        padding: 12px;
    }

    .media-lightbox__inner {
        padding-top: 22px;
    }

    .media-lightbox__inner img,
    .media-lightbox__inner video {
        max-height: 66vh;
    }
}

@media (max-width: 560px) {
    .main-content {
        padding: 72px 8px 20px;
    }

    .photo-listing {
        --team-card-width: 100%;
    }

    .photographers-track {
        grid-auto-columns: 100%;
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

@keyframes photoAmbient {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes floatGlowOne {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(8px, 10px, 0) scale(1.08);
    }
}

@keyframes floatGlowTwo {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(-12px, -10px, 0) scale(1.08);
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes workReveal {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal carousel styles (portfolio / events / artists) */
.modal-carousel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin: 10px 0 18px;
}
.modal-carousel-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.modal-carousel-prev,
.modal-carousel-next {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.modal-carousel-prev:hover,
.modal-carousel-next:hover {
    transform: translateY(-2px);
    border-color: rgba(80,223,219,0.6);
    background: linear-gradient(145deg, rgba(80,223,219,0.12), rgba(74,122,255,0.06));
}

/* Event modal styles */
.event-modal {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.event-modal.is-hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.event-modal h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: -0.02em;
}

.event-modal h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    margin-top: 30px;
    color: #d7f8ff;
    font-weight: 700;
}

.event-modal h3:first-of-type {
    margin-top: 0;
}

.event-modal button[type="button"] {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.event-modal button[type="button"]:focus {
    outline: 2px solid rgba(80, 223, 219, 0.6);
    outline-offset: 2px;
}
.modal-carousel-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 6px 4px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    flex: 1 1 auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.modal-carousel-track::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}
.modal-carousel-track > * {
    scroll-snap-align: start;
    flex: 0 0 calc((100% - 20px) / 3);
    max-width: calc((100% - 20px) / 3);
    box-sizing: border-box;
}
.modal-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: transparent;
    margin: 0 4px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.modal-carousel-dot.is-active {
    background: linear-gradient(135deg, #52e6ff, #f8dd9c);
    border-color: transparent;
}
.modal-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 0 0;
}
.modal-carousel-track img,
.modal-carousel-track video {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}
.modal-carousel .work-copy p {
    margin: 6px 0 0;
    font-size: 0.85rem;
}
.modal-carousel .work-copy span {
    display: block;
    font-size: 0.72rem;
    color: var(--photo-muted);
}

/* scrollbar style for carousel track */
.modal-carousel-track::-webkit-scrollbar { height: 8px; }
.modal-carousel-track::-webkit-scrollbar-thumb { background: linear-gradient(90deg, rgba(80,223,219,0.8), rgba(74,122,255,0.8)); border-radius: 999px; }

/* Responsive adjustments */
@media (max-width: 900px) {
    .modal-carousel-prev, .modal-carousel-next { width: 36px; height: 36px; }
    /* show 2 items per view on tablet */
    .modal-carousel-track > * { flex: 0 0 calc((100% - 10px) / 2); max-width: calc((100% - 10px) / 2); }
    .modal-carousel-track img, .modal-carousel-track video { height: 120px; }
}

@media (max-width: 520px) {
    .modal-carousel { gap: 8px; }
    .modal-carousel-prev, .modal-carousel-next { width: 32px; height: 32px; }
    /* single column on small screens */
    .modal-carousel-track > * { flex: 0 0 100%; max-width: 100%; }
    .modal-carousel-track img, .modal-carousel-track video { height: 96px; }
}

/* Artist-specific layout: 5 per row, circular avatars */
.modal-carousel-track.artists > * {
    flex: 0 0 calc((100% - 36px) / 6);
    max-width: calc((100% - 36px) / 6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.modal-carousel-track.artists img.artist-card-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 9999px;
    border: 2px solid rgba(255,255,255,0.12);
}
.artist-card {
    background: transparent;
    border: none;
    color: var(--photo-text);
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.artist-card-label {
    font-size: 0.78rem;
    text-align: center;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .modal-carousel-track.artists > * { flex: 0 0 calc((100% - 10px) / 4); max-width: calc((100% - 10px) / 4); }
}

@media (max-width: 520px) {
    .modal-carousel-track.artists > * { flex: 0 0 calc((100% - 8px) / 3); max-width: calc((100% - 8px) / 3); }
    .modal-carousel-track.artists img.artist-card-img { width: 72px; height: 72px; }
}

/* city pills in modal */
.modal-city-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 12px;
    margin-right: 6px;
    margin-bottom: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255,214,102,0.98), rgba(196,146,42,0.98));
    border: 1px solid rgba(196,146,42,0.9);
    color: #241700;
    font-weight: 800;
    font-size: 0.82rem;
}

/* role pill styling */
.modal-role {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    margin-left: 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(79,226,153,0.14), rgba(38,198,147,0.18));
    border: 1px solid rgba(79,226,153,0.28);
    color: #dffef0;
    font-weight: 800;
    font-size: 0.8rem;
}
