: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);
}

.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-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 {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 28px;
    pointer-events: none;
    z-index: 2;
}

.photographers-scroll-shell::before {
    left: 0;
    background: linear-gradient(90deg, rgba(5, 11, 24, 0.95), rgba(5, 11, 24, 0));
}

.photographers-scroll-shell::after {
    right: 0;
    background: linear-gradient(270deg, rgba(5, 11, 24, 0.95), rgba(5, 11, 24, 0));
}

.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: thin;
    scrollbar-color: rgba(80, 223, 219, 0.6) rgba(10, 18, 36, 0.3);
}

.photographers-track::-webkit-scrollbar {
    height: 9px;
}

.photographers-track::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(80, 223, 219, 0.8), rgba(74, 122, 255, 0.8));
}

.photographers-track::-webkit-scrollbar-track {
    background: rgba(10, 18, 36, 0.34);
    border-radius: 999px;
}

.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;
    transform: translateY(14px) scale(0.98);
    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(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #d9e8ff;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 5px 9px;
}

.photographer-card h3 {
    margin: 12px 0 2px;
    font-size: 1.12rem;
}

.card-city {
    margin: 0;
    color: #b8d3ff;
    font-weight: 700;
    font-size: 0.86rem;
}

.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: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 1.42rem;
    cursor: pointer;
}

.photo-modal__head {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 16px;
    align-items: start;
}

.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: 18px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.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 {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.media-lightbox {
    position: fixed;
    inset: 0;
    z-index: 13050;
    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);
    }
}