:root {
    --up-navy: #284d7a;
    --up-navy-deep: #173451;
    --up-blue: #7591af;
    --up-blue-soft: #dfe8ef;
    --up-gold: #cdaf61;
    --up-cream: #fefbf7;
    --up-green: #6e9f36;
    --gallery-ink: #142536;
    --gallery-muted: #607080;
    --gallery-line: rgba(40, 77, 122, 0.14);
    --gallery-white: #ffffff;
    --gallery-shadow: 0 24px 70px rgba(23, 52, 81, 0.12);
    --gallery-radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--up-cream);
}

body.gallery-app {
    margin: 0;
    padding: 0;
    min-width: 320px;
    color: var(--gallery-ink);
    background:
        radial-gradient(circle at 10% 4%, rgba(117, 145, 175, 0.17), transparent 25rem),
        linear-gradient(180deg, #fefbf7 0, #f8f6f2 42rem, #f5f7fa 100%);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
    text-align: left;
}

.gallery-app h1,
.gallery-app h2,
.gallery-app h3,
.gallery-app p {
    color: inherit;
}

.gallery-app button,
.gallery-app input,
.gallery-app textarea {
    font: inherit;
}

.gallery-app a {
    color: inherit;
}

.gallery-app svg {
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.visually-hidden,
.sr-live {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.event-site-nav {
    position: relative;
    z-index: 20;
    min-height: 48px;
    margin: 0;
    padding: 7px max(14px, env(safe-area-inset-right)) 7px max(14px, env(safe-area-inset-left));
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    background: var(--up-navy-deep);
    color: #fff;
}

.event-site-nav a {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.82rem;
    font-weight: 650;
    white-space: nowrap;
}

.event-site-nav a:hover,
.event-site-nav a:focus-visible,
.event-site-nav a[aria-current="page"] {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    text-decoration: none;
}

.event-bar {
    position: sticky;
    top: 0;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 86px;
    padding: 12px max(28px, calc((100vw - 1240px) / 2));
    border-bottom: 1px solid var(--gallery-line);
    background: rgba(254, 251, 247, 0.94);
    box-shadow: 0 8px 28px rgba(23, 52, 81, 0.06);
}

@supports (backdrop-filter: blur(16px)) {
    .event-bar {
        background: rgba(254, 251, 247, 0.82);
        backdrop-filter: blur(16px);
    }
}

.event-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    text-decoration: none;
}

.event-brand:hover {
    text-decoration: none;
}

.event-brand img {
    width: min(245px, 30vw);
    height: auto;
}

.event-brand-copy {
    display: grid;
    gap: 2px;
    padding-left: 18px;
    border-left: 1px solid var(--gallery-line);
    color: var(--gallery-muted);
    font-size: 0.8rem;
    line-height: 1.3;
}

.event-brand-copy strong {
    color: var(--up-navy-deep);
    font-size: 1.05rem;
}

.event-host {
    flex: none;
    color: var(--gallery-muted);
    font-size: 0.82rem;
}

.event-host strong {
    color: var(--up-navy);
}

.gallery-main {
    width: min(1240px, calc(100% - 36px));
    max-width: none;
    margin: 0 auto;
}

.gallery-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.93fr) minmax(420px, 0.77fr);
    gap: clamp(36px, 7vw, 94px);
    align-items: center;
    min-height: 620px;
    padding: clamp(58px, 8vw, 105px) 0 clamp(68px, 9vw, 116px);
}

.hero-copy {
    position: relative;
    padding-left: clamp(0px, 2vw, 26px);
}

.hero-copy::before {
    content: "";
    position: absolute;
    top: -32px;
    left: 0;
    width: 88px;
    height: 3px;
    background: var(--up-gold);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--up-navy);
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    line-height: 1.3;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 0;
    color: var(--up-navy-deep);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.2rem, 7.2vw, 6.8rem);
    font-weight: 500;
    letter-spacing: -0.052em;
    line-height: 0.93;
}

.hero-copy h1 em {
    color: var(--up-blue);
    font-weight: 400;
}

.hero-intro {
    max-width: 600px;
    margin: 28px 0 0;
    color: var(--gallery-muted);
    font-size: clamp(1.05rem, 1.7vw, 1.25rem);
}

.hashtag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.hashtag-row span {
    padding: 7px 11px;
    border: 1px solid rgba(40, 77, 122, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.66);
    color: var(--up-navy);
    font-size: 0.76rem;
    font-weight: 700;
}

.upload-panel {
    position: relative;
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(24px, 4vw, 38px);
    overflow: hidden;
    border: 1px solid rgba(40, 77, 122, 0.13);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--gallery-shadow);
    text-align: left;
}

.upload-panel::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 112px;
    height: 7px;
    background: linear-gradient(90deg, var(--up-gold), var(--up-green));
}

.upload-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 23px;
}

.upload-heading h2 {
    margin: 0;
    color: var(--up-navy-deep);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.75rem, 3vw, 2.2rem);
    font-weight: 500;
}

.upload-heading .eyebrow {
    margin-bottom: 2px;
}

.upload-step {
    display: grid;
    width: 48px;
    height: 48px;
    flex: none;
    place-items: center;
    border-radius: 50%;
    background: var(--up-navy);
    color: #fff;
    font-weight: 800;
}

.picker-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.picker-button {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 84px;
    padding: 15px;
    border: 1px solid var(--gallery-line);
    border-radius: 18px;
    background: #fff;
    color: var(--up-navy-deep);
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.picker-button:hover,
.picker-button:focus-within {
    transform: translateY(-2px);
    border-color: rgba(40, 77, 122, 0.35);
    box-shadow: 0 12px 28px rgba(23, 52, 81, 0.09);
}

.picker-button > svg {
    width: 28px;
    height: 28px;
    flex: none;
    color: var(--up-navy);
}

.picker-camera {
    border-color: transparent;
    background: var(--up-navy);
    color: #fff;
}

.picker-camera > svg {
    color: var(--up-gold);
}

.picker-button span {
    display: grid;
    gap: 2px;
}

.picker-button strong {
    font-size: 0.92rem;
}

.picker-button small {
    color: inherit;
    font-size: 0.75rem;
    opacity: 0.7;
}

.drop-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 58px;
    margin-top: 12px;
    border: 1px dashed rgba(40, 77, 122, 0.3);
    border-radius: 15px;
    color: var(--gallery-muted);
    font-size: 0.8rem;
    transition: border-color 160ms ease, background 160ms ease;
}

.drop-zone.is-over {
    border-color: var(--up-gold);
    background: rgba(205, 175, 97, 0.1);
}

.upload-preview {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin-top: 14px;
    padding: 10px;
    border-radius: 16px;
    background: var(--up-blue-soft);
}

.upload-preview[hidden] {
    display: none;
}

.upload-preview img {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    background: #d6dee6;
    object-fit: cover;
}

.preview-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.preview-copy strong,
.preview-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-copy strong {
    font-size: 0.86rem;
}

.preview-copy span {
    color: var(--gallery-muted);
    font-size: 0.76rem;
}

.round-button {
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(40, 77, 122, 0.09);
    color: var(--up-navy);
    cursor: pointer;
}

.round-button:hover {
    background: rgba(40, 77, 122, 0.16);
}

.caption-field {
    display: grid;
    gap: 7px;
    margin-top: 17px;
}

.caption-field > span {
    color: var(--up-navy-deep);
    font-size: 0.84rem;
    font-weight: 750;
}

.caption-field > span small,
.caption-field > small {
    color: var(--gallery-muted);
    font-size: 0.73rem;
    font-weight: 500;
}

.caption-field textarea {
    width: 100%;
    min-height: 104px;
    resize: vertical;
    padding: 12px 13px;
    border: 1px solid var(--gallery-line);
    border-radius: 14px;
    background: #fff;
    color: var(--gallery-ink);
    line-height: 1.45;
}

.caption-field textarea:focus {
    border-color: rgba(40, 77, 122, 0.45);
}

.consent-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
    margin-top: 17px;
    color: var(--gallery-muted);
    font-size: 0.78rem;
    cursor: pointer;
}

.consent-row input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--up-navy);
}

.upload-note {
    margin: 12px 0 0;
    color: var(--gallery-muted);
    font-size: 0.73rem;
}

.post-button {
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    padding: 13px 20px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--up-navy), var(--up-navy-deep));
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 13px 28px rgba(23, 52, 81, 0.2);
    cursor: pointer;
    transition: transform 160ms ease, opacity 160ms ease;
}

.post-button:hover:not(:disabled) {
    transform: translateY(-1px);
    text-decoration: none;
}

.post-button:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    box-shadow: none;
}

.post-button.compact {
    display: inline-flex;
    width: auto;
    min-height: 48px;
    margin-top: 22px;
}

.app-toast {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: min(420px, calc(100vw - 36px));
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--up-navy-deep);
    color: #fff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
    font-size: 0.9rem;
}

.app-toast.is-success {
    border-left: 5px solid var(--up-green);
}

.app-toast.is-info {
    border-left: 5px solid var(--up-gold);
}

.app-toast.is-error {
    border-left: 5px solid #df6a61;
}

.app-toast button {
    width: 30px;
    height: 30px;
    flex: none;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

.gallery-section {
    padding: 74px 0 108px;
    border-top: 1px solid var(--gallery-line);
}

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

.section-heading h2 {
    margin: 0;
    color: var(--up-navy-deep);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1;
}

.photo-total {
    margin: 0;
    color: var(--gallery-muted);
    font-size: 0.86rem;
}

.photo-total strong {
    color: var(--up-navy);
    font-size: 1.45rem;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
}

.photo-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--gallery-line);
    border-radius: var(--gallery-radius);
    background: var(--gallery-white);
    box-shadow: 0 14px 38px rgba(23, 52, 81, 0.08);
}

.photo-link,
.detail-image-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    background: #dfe5ea;
}

.photo-link img,
.detail-image-wrap img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 620px;
    object-fit: cover;
    transition: transform 320ms ease;
}

.photo-link:hover img {
    transform: scale(1.018);
}

.photo-number {
    position: absolute;
    top: 13px;
    right: 13px;
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(23, 52, 81, 0.86);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.photo-card-body {
    padding: 16px;
}

.photo-meta {
    display: grid;
    gap: 5px;
    padding-bottom: 13px;
}

.photo-meta p {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--up-navy);
    font-size: 0.76rem;
    font-weight: 750;
}

.photo-meta .photo-caption {
    margin: 0 0 5px;
    color: var(--gallery-ink);
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.45;
    white-space: normal;
}

.photo-meta time,
.detail-copy time {
    color: var(--gallery-muted);
    font-size: 0.7rem;
}

.photo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding-top: 13px;
    border-top: 1px solid var(--gallery-line);
}

.icon-action {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid var(--gallery-line);
    border-radius: 999px;
    background: #fff;
    color: var(--up-navy);
    font-size: 0.75rem;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.icon-action:hover {
    border-color: rgba(40, 77, 122, 0.32);
    background: var(--up-cream);
    text-decoration: none;
}

.icon-action svg {
    width: 18px;
    height: 18px;
}

.like-action svg {
    transition: fill 140ms ease, color 140ms ease;
}

.like-action.is-liked {
    border-color: rgba(194, 62, 68, 0.24);
    color: #bd3740;
    background: #fff5f5;
}

.like-action.is-liked svg {
    fill: currentColor;
}

.action-count {
    display: inline-grid;
    min-width: 20px;
    min-height: 20px;
    place-items: center;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(40, 77, 122, 0.08);
    font-size: 0.65rem;
}

.facebook-like {
    display: flex;
    min-height: 36px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    padding: 5px 3px 0;
    color: var(--gallery-muted);
    font-size: 0.67rem;
}

.facebook-like iframe {
    display: block;
    border: 0;
}

.empty-gallery {
    display: grid;
    min-height: 330px;
    place-items: center;
    align-content: center;
    padding: 40px 20px;
    border: 1px dashed rgba(40, 77, 122, 0.28);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.empty-gallery h3,
.empty-gallery h1 {
    margin: 16px 0 5px;
    color: var(--up-navy-deep);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 500;
}

.empty-gallery p {
    margin: 0;
    color: var(--gallery-muted);
}

.empty-mark {
    display: grid;
    width: 68px;
    height: 68px;
    place-items: center;
    border-radius: 20px;
    background: var(--up-navy);
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    box-shadow: 9px 9px 0 var(--up-gold);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 35px;
    color: var(--gallery-muted);
    font-size: 0.82rem;
}

.pagination a {
    padding: 9px 14px;
    border: 1px solid var(--gallery-line);
    border-radius: 999px;
    background: #fff;
    color: var(--up-navy);
    font-weight: 750;
    text-decoration: none;
}

.detail-main {
    padding: 44px 0 90px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 22px;
    color: var(--up-navy);
    font-size: 0.84rem;
    font-weight: 750;
    text-decoration: none;
}

.detail-card {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
    overflow: hidden;
    border: 1px solid var(--gallery-line);
    border-radius: 32px;
    background: #fff;
    box-shadow: var(--gallery-shadow);
}

.detail-image-wrap {
    display: grid;
    min-height: 520px;
    place-items: center;
    background: #e5e9ed;
}

.detail-image-wrap img {
    width: 100%;
    height: 100%;
    max-height: 760px;
    object-fit: contain;
}

.detail-copy {
    align-self: center;
    padding: clamp(28px, 5vw, 56px);
}

.detail-copy h1 {
    margin: 0 0 20px;
    color: var(--up-navy-deep);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 5vw, 4.6rem);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 0.96;
}

.detail-caption {
    margin: 0 0 16px;
    color: var(--gallery-ink);
    font-size: 1rem;
    line-height: 1.6;
}

.detail-tags {
    margin: 0 0 7px;
    color: var(--up-navy);
    font-size: 0.87rem;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.detail-copy .photo-actions {
    margin-top: 24px;
}

.detail-empty {
    margin-top: 30px;
}

.share-sheet {
    width: min(520px, calc(100% - 24px));
    max-width: none;
    margin: auto;
    padding: 24px;
    border: 0;
    border-radius: 26px;
    background: #fff;
    color: var(--gallery-ink);
    box-shadow: 0 30px 90px rgba(12, 28, 44, 0.34);
}

.share-sheet::backdrop {
    background: rgba(12, 28, 44, 0.55);
    backdrop-filter: blur(3px);
}

.share-sheet-handle {
    display: none;
    width: 48px;
    height: 5px;
    margin: 0 auto 19px;
    border-radius: 999px;
    background: #d5dce3;
}

.share-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.share-sheet-head h2 {
    margin: 0;
    color: var(--up-navy-deep);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.7rem;
    font-weight: 500;
}

.share-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 9px;
    margin-top: 23px;
}

.share-grid a,
.share-grid button {
    display: grid;
    gap: 7px;
    justify-items: center;
    padding: 8px 3px;
    border: 0;
    background: transparent;
    color: var(--gallery-muted);
    font-size: 0.7rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.share-badge {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 850;
}

.share-badge.whatsapp { background: #25d366; }
.share-badge.facebook { background: #1877f2; }
.share-badge.linkedin { background: #0a66c2; font-size: 0.9rem; }
.share-badge.x { background: #111; }
.share-badge.copy { background: var(--up-blue); }
.share-badge.copy svg { width: 21px; height: 21px; }

.uploading-screen {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    padding: 24px;
    background: rgba(23, 52, 81, 0.92);
    color: #fff;
    text-align: center;
}

.uploading-screen[hidden] {
    display: none;
}

.uploading-screen > span:last-child {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.83rem;
}

.upload-spinner {
    width: 52px;
    height: 52px;
    margin-bottom: 8px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--up-gold);
    border-radius: 50%;
    animation: gallerySpin 800ms linear infinite;
}

.event-footer {
    margin: 0;
    padding: 38px 22px max(38px, env(safe-area-inset-bottom));
    border: 0;
    background: var(--up-navy-deep);
    color: rgba(255, 255, 255, 0.78);
    text-align: center;
}

.event-footer .footer-tagline {
    background: none;
    color: #fff;
    animation: none;
}

.event-footer .nerd-joke {
    color: rgba(255, 255, 255, 0.6);
}

@keyframes gallerySpin {
    to { transform: rotate(360deg); }
}

.gallery-app :focus-visible {
    outline: 3px solid var(--up-gold);
    outline-offset: 3px;
}

@media (max-width: 980px) {
    .gallery-hero {
        grid-template-columns: 1fr;
        gap: 48px;
        padding-top: 76px;
    }

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

    .photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-card {
        grid-template-columns: 1fr;
    }

    .detail-image-wrap {
        min-height: 360px;
    }
}

@media (max-width: 680px) {
    .event-site-nav {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
    }

    .event-site-nav::-webkit-scrollbar {
        display: none;
    }

    .event-bar {
        min-height: 70px;
        padding: 10px 16px;
    }

    .event-brand img {
        width: 174px;
    }

    .event-brand-copy,
    .event-host {
        display: none;
    }

    .gallery-main {
        width: min(100% - 24px, 560px);
    }

    .gallery-hero {
        min-height: 0;
        gap: 38px;
        padding: 66px 0 72px;
    }

    .hero-copy::before {
        top: -25px;
    }

    .hero-copy h1 {
        font-size: clamp(3.05rem, 15.5vw, 5.2rem);
    }

    .hero-intro {
        margin-top: 21px;
    }

    .upload-panel {
        padding: 21px;
        border-radius: 24px;
    }

    .picker-grid {
        grid-template-columns: 1fr;
    }

    .drop-zone {
        display: none;
    }

    .gallery-section {
        padding: 58px 0 80px;
    }

    .section-heading {
        align-items: start;
    }

    .photo-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .photo-link img {
        max-height: none;
    }

    .detail-main {
        padding-top: 25px;
    }

    .detail-card {
        border-radius: 24px;
    }

    .detail-image-wrap {
        min-height: 280px;
    }

    .detail-copy {
        padding: 28px 21px 32px;
    }

    .share-sheet {
        width: 100%;
        margin: auto 0 0;
        padding: 14px 18px calc(24px + env(safe-area-inset-bottom));
        border-radius: 26px 26px 0 0;
    }

    .share-sheet-handle {
        display: block;
    }

    .share-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .share-badge {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }
}

@media (max-width: 390px) {
    .photo-actions {
        gap: 5px;
    }

    .icon-action {
        padding-inline: 8px;
    }

    .share-grid {
        gap: 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
