:root {
    --bg: #fafafa;
    --text: #090909;
    --muted: #727272;
    --line: #e7e7e7;
    --panel: #ffffff;
    --max: 1440px;
    --gallery-max: 1260px;
    --gutter: clamp(20px, 4vw, 68px);
}

* {
    box-sizing: border-box;
}

*:focus,
*:focus-visible {
    outline: 0;
}

* {
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    min-height: 100vh;
    padding-bottom: 96px;
    background: var(--bg);
    color: var(--text);
    font-family: Outfit, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

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

img {
    display: block;
    width: 100%;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    max-width: var(--gallery-max);
    margin: 0 auto;
    padding: 32px var(--gutter);
}

.site-logo {
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}

.social-nav {
    display: flex;
    align-items: center;
    gap: clamp(22px, 2.4vw, 34px);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
}

.social-nav a {
    display: block;
    padding: 2px 0 4px;
}

.home,
.gallery-page {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter) 72px;
}

.masonry {
    position: relative;
    max-width: var(--gallery-max);
    margin: 0 auto;
}

.related-galleries {
    margin-top: 12px;
}

.masonry-item {
    position: relative;
    display: block;
    width: 100%;
    min-height: 200px;
    margin: 0 0 12px;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: hidden;
}

.masonry-ready {
    min-height: 200px;
}

.masonry-item > img,
.showcase-image,
.showcase-image img {
    height: 100%;
}

.masonry-item > img,
.showcase-image > img {
    object-fit: cover;
    background: #efefef;
    transition: transform 420ms ease, filter 420ms ease;
}

.showcase-image {
    display: block;
}

.showcase-card:hover .showcase-image > img,
.masonry-item:hover > img {
    filter: brightness(0.96);
    transform: scale(1.025);
}

.external-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.7);
    pointer-events: none;
}

.external-badge img {
    width: 18px;
    height: 18px;
    background: transparent;
    object-fit: contain;
    opacity: 1;
    transform: none;
    filter: none;
}

.promo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    color: #ffffff;
    font-size: clamp(24px, 3vw, 42px);
    font-weight: 900;
    line-height: 1;
    text-align: center;
}

.promo-onlyfans {
    background: #21b8ff;
}

.promo-twitch {
    background: #7c3cff;
}

.promo-twitter {
    background: #000000;
}

.tile-panoramic {
    aspect-ratio: 2 / 1;
}

.tile-short {
    aspect-ratio: 16 / 9;
}

.tile-wide {
    aspect-ratio: 3 / 2;
}

.tile-portrait {
    aspect-ratio: 3 / 4;
}

.tile-tall {
    aspect-ratio: 2 / 3;
}

.tile-large {
    aspect-ratio: 1 / 1;
}

.image-open {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.empty-state {
    max-width: 680px;
    min-height: 160px;
    margin: 0 auto;
    padding: 0;
}

.floating-cta {
    position: fixed;
    left: 50%;
    bottom: 48px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-width: min(330px, calc(100vw - 40px));
    min-height: 56px;
    padding: 14px 34px;
    border: 1px solid #ffffff;
    border-radius: 999px;
    background: #000000;
    color: #ffffff;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    transform: translateX(-50%);
}

.floating-cta:hover {
    background: #000000;
}

.lightbox {
    width: min(92vw, 1280px);
    max-height: 92vh;
    padding: 0;
    border: 0;
    background: transparent;
}

.lightbox::backdrop {
    background: rgba(0, 0, 0, 0.84);
}

.lightbox img {
    width: 100%;
    max-height: 92vh;
    object-fit: contain;
}

.lightbox-close {
    position: fixed;
    top: 18px;
    right: 22px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    z-index: 2;
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #ffffff;
    font-size: 44px;
    line-height: 0.8;
    cursor: pointer;
    transform: translateY(-50%);
}

.lightbox-prev {
    left: 22px;
}

.lightbox-next {
    right: 22px;
}

@media (max-width: 620px) {
    .site-header {
        align-items: center;
        flex-direction: column;
        gap: 18px;
        padding: 24px 0 20px;
    }

    .site-logo {
        width: 100%;
        padding-left: 0;
        text-align: center;
    }

    .social-nav {
        width: 100%;
        gap: 0;
        justify-content: space-between;
        overflow-x: auto;
        padding: 0 16px;
        font-size: 15px;
        line-height: 1.35;
    }

    .home,
    .gallery-page {
        padding-right: 0;
        padding-left: 0;
    }

    .masonry {
        max-width: none;
    }

    .masonry-item,
    .tile-panoramic,
    .tile-short,
    .tile-wide,
    .tile-portrait,
    .tile-tall,
    .tile-large {
        aspect-ratio: auto;
        height: auto;
        min-height: 0;
        margin-bottom: 12px;
    }

    .masonry-item > img,
    .showcase-image,
    .showcase-image img {
        height: auto;
    }

    .masonry-item > img {
        object-fit: contain;
    }

    .image-open,
    .lightbox-nav,
    .lightbox {
        display: none;
    }

    .floating-cta {
        bottom: 48px;
        min-width: calc(100vw - 28px);
    }
}
