:root {
    --bg: #081c2c;
    --bg2: #123b55;
    --card: #f4f7fa;
    --text: #07182b;
    --muted: #d7e2ea;
    --yellow: #ffd447;
    --orange: #ff981f;
    --white: #fff;
    --line: rgba(255, 255, 255, 0.18);
}

* {
    box-sizing: border-box;
}

body.premium-gallery-page {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at 12% 10%, #315d70 0, #113a54 35%, #081c2c 72%);
    font-family: Arial, Helvetica, sans-serif;
    color: var(--white);
}

.gallery-topbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 52px;
}

.back-home,
.pill-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 13px 22px;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.mini-brand {
    display: flex;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    padding: 14px 22px;
}

.mini-brand span {
    font-size: 24px;
}

.mini-brand strong {
    display: block;
    font-size: 20px;
}

.mini-brand small {
    display: block;
    color: #d5e4ec;
}

.gallery-hero {
    max-width: 1500px;
    margin: 45px auto 28px;
    padding: 0 42px;
    text-align: center;
}

.gallery-hero.compact {
    max-width: 980px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-weight: 900;
    color: #eef4f8;
    font-size: 18px;
}

.gallery-hero h1 {
    margin: 18px 0;
    font-size: clamp(48px, 7vw, 118px);
    line-height: 0.95;
    color: #fff;
}

.gallery-hero p {
    font-size: 24px;
    color: #fff;
    line-height: 1.45;
}

.gallery-actions {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 28px;
}

.pill-button.strong {
    background: linear-gradient(135deg, var(--yellow), var(--orange));
    color: #061727;
    border: 0;
}

.login-wrap {
    padding-bottom: 80px;
}

.login-card,
.empty-card {
    max-width: 920px;
    margin: 40px auto;
    padding: 45px;
    background: rgba(247, 249, 251, 0.96);
    color: var(--text);
    border-radius: 34px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}

.login-card h2 {
    margin: 0 0 26px;
    font-size: 42px;
}

.event-login-form {
    display: grid;
    gap: 16px;
}

.event-login-form label {
    font-size: 18px;
    font-weight: 900;
}

.event-login-form select,
.event-login-form input {
    width: 100%;
    height: 58px;
    border-radius: 18px;
    border: 1px solid #cbd5df;
    background: #fff;
    padding: 0 20px;
    font-size: 18px;
}

.primary-action {
    height: 58px;
    margin-top: 8px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--yellow), var(--orange));
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 18px 35px rgba(255, 152, 31, 0.28);
}

.alert {
    margin-bottom: 18px;
    padding: 16px 18px;
    border: 1px solid #ffb7b7;
    background: #fff0f0;
    color: #a00000;
    border-radius: 18px;
    font-weight: 800;
}

.login-card code {
    display: block;
    background: #111b31;
    color: #fff;
    padding: 18px;
    border-radius: 14px;
}

.gallery-wrap {
    width: 100%;
    padding-bottom: 80px;
}

.premium-grid {
    width: min(1780px, calc(100vw - 80px));
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 26px;
    align-items: start;
}

.premium-photo-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 10px 10px 14px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.photo-open {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 0;
    padding: 0;
    border-radius: 18px;
    overflow: hidden;
    background: #dfe6ec;
    cursor: pointer;
    display: block;
}

.photo-open img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.28s ease, filter 0.28s ease;
}

.premium-photo-card:hover img {
    transform: scale(1.06);
    filter: brightness(1.05);
}

.photo-download {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px auto 0;
    width: 80%;
    min-height: 42px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--yellow), var(--orange));
    color: #061727;
    text-decoration: none;
    text-align: center;
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(255, 152, 31, 0.22);
}

.photo-download:hover {
    transform: translateY(-1px);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.lightbox.is-open {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 82vh;
    border-radius: 18px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    border: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    cursor: pointer;
}

.lightbox-close {
    top: 26px;
    right: 32px;
    width: 54px;
    height: 54px;
    font-size: 38px;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 58px;
    height: 72px;
    font-size: 58px;
}

.lightbox-nav.prev {
    left: 30px;
}

.lightbox-nav.next {
    right: 30px;
}

.lightbox-download {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    text-decoration: none;
    color: #061727;
    background: linear-gradient(135deg, var(--yellow), var(--orange));
    border-radius: 999px;
    padding: 14px 30px;
    font-weight: 900;
}

.empty-card {
    text-align: center;
}

.empty-card h2 {
    font-size: 40px;
}

@media (max-width: 1300px) {
    .premium-grid {
        grid-template-columns: repeat(4, 1fr);
        width: min(1120px, calc(100vw - 50px));
        gap: 22px;
    }

    .gallery-hero h1 {
        font-size: clamp(44px, 8vw, 86px);
    }
}

@media (max-width: 760px) {
    .gallery-topbar {
        padding: 14px 16px;
        gap: 12px;
    }

    .mini-brand {
        padding: 10px 14px;
    }

    .mini-brand strong {
        font-size: 16px;
    }

    .back-home {
        padding: 11px 14px;
        font-size: 14px;
    }

    .gallery-hero {
        margin-top: 28px;
        padding: 0 18px;
    }

    .gallery-hero p {
        font-size: 18px;
    }

    .eyebrow {
        font-size: 14px;
    }

    .login-card {
        margin: 24px 16px;
        padding: 28px;
        border-radius: 26px;
    }

    .login-card h2 {
        font-size: 32px;
    }

    .premium-grid {
        grid-template-columns: repeat(2, 1fr);
        width: calc(100vw - 26px);
        gap: 14px;
    }

    .premium-photo-card {
        border-radius: 18px;
        padding: 7px 7px 10px;
    }

    .photo-open {
        border-radius: 14px;
    }

    .photo-download {
        width: 92%;
        font-size: 13px;
        min-height: 38px;
    }

    .lightbox {
        padding: 30px 14px;
    }

    .lightbox-nav {
        width: 46px;
        height: 58px;
        font-size: 44px;
    }

    .lightbox-nav.prev {
        left: 10px;
    }

    .lightbox-nav.next {
        right: 10px;
    }

    .lightbox-close {
        right: 14px;
        top: 14px;
    }

    .gallery-actions {
        padding: 0 14px;
    }

    .pill-button {
        width: 100%;
        max-width: 360px;
    }
}
