* {
    box-sizing: border-box;
}

:root {
    --bg: #f7f7f5;
    --surface: #ffffff;
    --text: #111111;
    --muted: #777777;
    --line: #e5e5e5;
    --accent: #111111;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.topbar {
    height: 76px;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.5px;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #111;
    color: #fff;
    font-weight: 900;
}

nav {
    display: flex;
    gap: 30px;
    color: #555;
    font-size: 14px;
}

nav a:hover {
    color: #000;
}

.login-button {
    border: 1px solid #ddd;
    background: white;
    border-radius: 999px;
    padding: 10px 18px;
    cursor: pointer;
}


.hero {
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 90px 7%;
    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.78),
            rgba(0,0,0,.35),
            rgba(0,0,0,.05)
        ),
        url("https://images.unsplash.com/photo-1500534623283-312aade485b7?auto=format&fit=crop&w=2200&q=90")
        center / cover;
    color: white;
}

.hero-content {
    max-width: 760px;
}

.eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    opacity: .7;
}

.hero h1 {
    font-size: clamp(48px, 7vw, 88px);
    line-height: .95;
    letter-spacing: -4px;
    margin: 18px 0 25px;
}

.hero h1 span {
    opacity: .62;
}

.hero p {
    max-width: 580px;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255,255,255,.82);
}

.search-box {
    margin-top: 35px;
    width: min(600px, 100%);
    height: 64px;
    background: white;
    color: #111;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 20px;
}

.search-box span {
    font-size: 30px;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    font-size: 16px;
}


.section {
    padding: 90px 7%;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 35px;
}

.section-heading h2,
.how-section h2 {
    font-size: 42px;
    letter-spacing: -2px;
    margin: 8px 0 0;
}

.event-count {
    color: var(--muted);
    font-size: 14px;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.event-card {
    min-width: 0;
}

.event-image {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 16px;
    background: #ddd;
}

.event-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .45s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.04);
}

.event-category {
    position: absolute;
    left: 15px;
    top: 15px;
    background: rgba(0,0,0,.7);
    color: white;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 11px;
}

.favorite {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    font-size: 22px;
    cursor: pointer;
}

.favorite.active {
    background: #111;
    color: white;
}

.event-info {
    padding: 17px 3px;
}

.event-date {
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.event-info h3 {
    font-size: 22px;
    margin: 8px 0;
    letter-spacing: -.5px;
}

.location {
    color: #666;
    margin: 0 0 13px;
}

.event-meta {
    display: flex;
    gap: 8px;
    color: #999;
    font-size: 12px;
}

.empty-search {
    display: none;
    padding: 50px 0;
    color: #777;
}


.photographer-section {
    margin: 20px 7% 100px;
    padding: 70px;
    background: #111;
    color: white;
    border-radius: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.photographer-section h2 {
    font-size: 52px;
    line-height: .98;
    letter-spacing: -3px;
    margin: 15px 0;
}

.photographer-section p {
    color: #aaa;
    line-height: 1.6;
    max-width: 480px;
}

.primary-button {
    margin-top: 15px;
    border: 0;
    background: white;
    color: #111;
    padding: 13px 20px;
    border-radius: 999px;
    font-weight: 700;
}

.photographer-card {
    background: #1d1d1d;
    border: 1px solid #333;
    padding: 25px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #333;
    font-weight: 800;
}

.photographer-card strong,
.photographer-card span {
    display: block;
}

.photographer-card span {
    margin-top: 5px;
    color: #999;
    font-size: 12px;
}

.photographer-stat {
    margin-left: auto;
    text-align: right;
}


.how-section {
    padding: 30px 7% 100px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.steps > div {
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.steps span {
    color: #999;
    font-size: 12px;
}

.steps h3 {
    font-size: 21px;
    margin-bottom: 10px;
}

.steps p {
    color: #777;
    line-height: 1.5;
}


footer {
    padding: 40px 7%;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    color: #777;
    font-size: 13px;
}


@media (max-width: 900px) {

    nav {
        display: none;
    }

    .event-grid,
    .steps,
    .photographer-section {
        grid-template-columns: 1fr;
    }

    .photographer-section {
        padding: 40px 25px;
    }

    .hero {
        min-height: 520px;
        padding: 70px 6%;
    }

    .hero h1 {
        letter-spacing: -3px;
    }

    .section-heading {
        align-items: start;
        gap: 15px;
        flex-direction: column;
    }

    footer {
        flex-direction: column;
        gap: 10px;
    }
}


/* =========================================================
   FOTOMARKET — EVENT PAGE
   ========================================================= */

.event-page {
    background: #f7f7f5;
}

.brand a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.event-hero {
    position: relative;
    height: min(68vh, 680px);
    min-height: 520px;
    overflow: hidden;
    background: #111;
}

.event-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.event-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.78) 0%,
            rgba(0,0,0,.18) 55%,
            rgba(0,0,0,.05) 100%
        );
}

.event-hero-content {
    position: absolute;
    left: 6vw;
    right: 6vw;
    bottom: 60px;
    color: white;
    max-width: 1000px;
}

.back-link {
    display: inline-block;
    color: rgba(255,255,255,.85);
    text-decoration: none;
    margin-bottom: 30px;
    font-size: 14px;
}

.back-link:hover {
    color: white;
}

.event-hero-content .event-category {
    display: inline-block;
    position: static;
    margin-bottom: 15px;
    background: rgba(255,255,255,.14);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.25);
    color: white;
}

.event-hero-content h1 {
    font-size: clamp(42px, 6vw, 82px);
    line-height: .95;
    letter-spacing: -3px;
    margin: 0 0 18px;
    max-width: 900px;
}

.event-hero-content p {
    font-size: 18px;
    margin: 0;
    color: rgba(255,255,255,.85);
}

.event-container {
    width: min(1380px, 90%);
    margin: 0 auto;
    padding: 85px 0 100px;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 35px;
}

.event-header h2 {
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1;
    letter-spacing: -2px;
    margin: 8px 0 15px;
}

.event-header p {
    color: #777;
    font-size: 17px;
    margin: 0;
}

.event-stat {
    text-align: right;
    white-space: nowrap;
}

.event-stat strong {
    display: block;
    font-size: 42px;
    letter-spacing: -2px;
}

.event-stat span {
    color: #777;
    font-size: 14px;
}

.photo-search {
    display: flex;
    align-items: center;
    gap: 14px;
    background: white;
    border: 1px solid #e4e4e1;
    border-radius: 18px;
    padding: 0 22px;
    height: 68px;
    margin-bottom: 22px;
    box-shadow: 0 8px 30px rgba(0,0,0,.04);
}

.photo-search span {
    font-size: 28px;
    color: #777;
}

.photo-search input {
    width: 100%;
    border: 0;
    outline: none;
    font-size: 17px;
    background: transparent;
    color: #111;
}

.photographer-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    margin-bottom: 35px;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 18px;
}

.photographer-bar .avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #111;
    color: white;
    font-weight: 700;
}

.photographer-info {
    flex: 1;
}

.photographer-info span {
    display: block;
    font-size: 10px;
    letter-spacing: 1.5px;
    color: #999;
    margin-bottom: 4px;
}

.photographer-info strong {
    display: block;
    font-size: 15px;
}

.photographer-button {
    border: 1px solid #ddd;
    background: white;
    border-radius: 999px;
    padding: 11px 18px;
    cursor: pointer;
}

.gallery-grid {
    columns: 3 320px;
    column-gap: 18px;
}

.photo-card {
    position: relative;
    break-inside: avoid;
    margin-bottom: 18px;
    overflow: hidden;
    border-radius: 14px;
    background: #ddd;
}

.photo-card img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .5s ease;
}

.photo-card:hover img {
    transform: scale(1.025);
}

.photo-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.6),
        transparent 35%
    );
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}

.photo-card:hover::after {
    opacity: 1;
}

.photo-favorite {
    position: absolute;
    z-index: 4;
    top: 15px;
    right: 15px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    font-size: 21px;
    cursor: pointer;
}

.photo-favorite.active {
    background: #111;
    color: white;
}

.watermark {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-18deg);
    color: rgba(255,255,255,.34);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 4px;
    pointer-events: none;
    white-space: nowrap;
}

.photo-actions {
    position: absolute;
    z-index: 5;
    left: 18px;
    right: 18px;
    bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    opacity: 0;
    transform: translateY(8px);
    transition: .25s ease;
}

.photo-card:hover .photo-actions {
    opacity: 1;
    transform: translateY(0);
}

.photo-actions span {
    font-size: 13px;
}

.photo-actions button {
    border: 0;
    background: white;
    color: #111;
    border-radius: 999px;
    padding: 9px 14px;
    cursor: pointer;
}

.event-cta {
    margin: 0 auto 100px;
    width: min(1380px, 90%);
    padding: 90px 8%;
    background: #111;
    color: white;
    border-radius: 28px;
}

.event-cta h2 {
    max-width: 700px;
    font-size: clamp(36px, 5vw, 65px);
    line-height: 1;
    letter-spacing: -2px;
    margin: 12px 0 20px;
}

.event-cta p {
    max-width: 600px;
    color: #aaa;
    font-size: 17px;
    line-height: 1.6;
}

.event-cta .primary-button {
    margin-top: 18px;
}


@media (max-width: 800px) {

    .event-hero {
        min-height: 470px;
        height: 65vh;
    }

    .event-hero-content {
        left: 5%;
        right: 5%;
        bottom: 38px;
    }

    .event-hero-content h1 {
        letter-spacing: -2px;
    }

    .event-container {
        padding-top: 55px;
    }

    .event-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .event-stat {
        text-align: left;
    }

    .gallery-grid {
        columns: 2 180px;
        column-gap: 10px;
    }

    .photo-card {
        margin-bottom: 10px;
        border-radius: 10px;
    }

    .photographer-button {
        display: none;
    }

    .event-cta {
        padding: 55px 8%;
        margin-bottom: 50px;
    }

}
