/*
 * Public experience layer
 * - semantic contrast for copy placed directly on the animated atmosphere
 * - homepage community hub
 * - clearer, more inviting user-gallery journey
 */

/* ---------- Copy displayed directly on the weather atmosphere ---------- */

.atmosphere-copy {
    --atmosphere-title: #102033;
    --atmosphere-copy: #536577;
    --atmosphere-kicker: #0f766e;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.atmosphere-copy :is(h1, h2) {
    color: var(--atmosphere-title);
}

.atmosphere-copy :is(.section-note, .article-lead) {
    color: var(--atmosphere-copy);
}

.atmosphere-copy > .eyebrow,
.atmosphere-copy > div > .eyebrow {
    color: var(--atmosphere-kicker);
}

body[data-weather-period="night"] .atmosphere-copy {
    --atmosphere-title: #f6fbff;
    --atmosphere-copy: #c4d3df;
    --atmosphere-kicker: #56d6c6;
}

body[data-weather-period="night"] .atmosphere-copy-panel {
    padding: clamp(18px, 2.2vw, 28px);
    border: 1px solid rgba(164, 211, 229, 0.16);
    border-radius: 26px;
    background:
        radial-gradient(circle at 10% 0%, rgba(31, 167, 164, 0.13), transparent 34%),
        linear-gradient(112deg, rgba(3, 15, 30, 0.76), rgba(7, 30, 49, 0.52));
    box-shadow: 0 24px 58px rgba(2, 10, 22, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px) saturate(125%);
}

body[data-weather-period="night"] .atmosphere-copy :is(h1, h2) {
    color: var(--atmosphere-title);
    text-shadow: 0 2px 22px rgba(0, 0, 0, 0.28);
}

body[data-weather-period="night"] .atmosphere-copy :is(.section-note, .article-lead) {
    color: var(--atmosphere-copy);
}

body[data-weather-period="night"] .weather-tools-section .atmosphere-copy .weather-section-note {
    color: var(--atmosphere-copy) !important;
}

body[data-weather-period="night"] .atmosphere-copy > .eyebrow,
body[data-weather-period="night"] .atmosphere-copy > div > .eyebrow {
    color: var(--atmosphere-kicker);
}

body[data-weather-period="night"] .article-breadcrumbs.atmosphere-copy-inline {
    color: #9eb3c2;
}

body[data-weather-period="night"] .article-breadcrumbs.atmosphere-copy-inline a {
    color: #bcd1df;
}

body[data-weather-period="night"] .article-breadcrumbs.atmosphere-copy-inline a:hover,
body[data-weather-period="night"] .article-breadcrumbs.atmosphere-copy-inline a:focus-visible {
    color: #68dfd0;
}

body[data-weather-period="night"] .article-breadcrumbs.atmosphere-copy-inline span:last-child {
    color: #f4f9fc;
}

body[data-weather-period="night"] .article-cover-caption {
    color: #c2d1dc;
}

body[data-weather-period="night"] .article-meta-line-top-editorial .meta-pill-views {
    border-color: rgba(104, 223, 208, 0.24) !important;
    background: linear-gradient(135deg, rgba(7, 92, 105, 0.9), rgba(8, 58, 82, 0.88)) !important;
    color: #defaf6;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body[data-weather-period="night"] :is(.posts-section, .gallery-grid-shell) > .pagination .pagination-meta {
    padding: 10px 16px;
    border: 1px solid rgba(164, 211, 229, 0.14);
    border-radius: 999px;
    background: rgba(3, 15, 30, 0.55);
    color: #e8f2f8;
    backdrop-filter: blur(8px);
}

/* ---------- Homepage: community hub ---------- */

.community-home-section {
    order: -10;
    padding-top: 34px;
}

.home-page .hero-panel {
    order: -40;
}

.home-page .home-bento-section {
    order: -20;
}

.home-page .posts-section-latest {
    order: -30;
}

.community-home-shell {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 28px;
    padding: clamp(24px, 3.2vw, 42px);
    border: 1px solid rgba(141, 206, 222, 0.2);
    border-radius: 34px;
    background:
        radial-gradient(circle at 0% 0%, rgba(20, 184, 166, 0.2), transparent 34%),
        radial-gradient(circle at 100% 10%, rgba(37, 99, 235, 0.22), transparent 30%),
        linear-gradient(135deg, #071b2d 0%, #0b2c43 52%, #102841 100%);
    box-shadow: 0 34px 80px rgba(2, 12, 24, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: #f5fbff;
}

.community-home-shell::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -170px;
    bottom: -230px;
    border: 1px solid rgba(112, 218, 207, 0.18);
    border-radius: 50%;
    box-shadow: 0 0 0 42px rgba(14, 116, 144, 0.06), 0 0 0 90px rgba(37, 99, 235, 0.035);
    pointer-events: none;
}

.community-home-intro,
.community-home-grid {
    position: relative;
    z-index: 1;
}

.community-home-intro {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
    gap: 12px 36px;
    align-items: end;
}

.community-home-heading {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.community-home-intro .eyebrow {
    margin: 0;
    color: #67dfd0;
}

.community-home-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid rgba(142, 231, 221, 0.18);
    border-radius: 999px;
    background: rgba(14, 116, 144, 0.18);
    color: #dffaf6;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.community-home-intro h2 {
    margin: 0;
    max-width: 14ch;
    color: #ffffff;
    font-size: clamp(2rem, 3.4vw, 3.35rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.community-home-intro > p {
    margin: 0;
    max-width: 58ch;
    color: #bfd0dc;
    font-size: 1rem;
    line-height: 1.75;
}

.community-home-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.community-home-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    align-content: start;
    gap: 19px;
    min-height: 390px;
    padding: clamp(24px, 3vw, 34px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 22px 45px rgba(0, 0, 0, 0.12);
    transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.community-home-card-gallery {
    background:
        radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.23), transparent 37%),
        linear-gradient(145deg, rgba(8, 82, 109, 0.88), rgba(7, 50, 76, 0.94));
}

.community-home-card-opinions {
    background:
        radial-gradient(circle at 100% 0%, rgba(251, 191, 36, 0.18), transparent 36%),
        linear-gradient(145deg, rgba(13, 107, 101, 0.88), rgba(8, 55, 65, 0.95));
}

.community-home-card:hover {
    transform: translateY(-5px);
    border-color: rgba(137, 225, 218, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 28px 55px rgba(0, 0, 0, 0.2);
}

.community-home-card > :not(.community-home-visual) {
    position: relative;
    z-index: 2;
}

.community-home-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.community-home-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: #dffbff;
}

.community-home-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.community-home-card-label {
    color: #d8edf4;
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.community-home-card-copy {
    display: grid;
    gap: 11px;
    max-width: 35rem;
}

.community-home-card-copy h3 {
    margin: 0;
    max-width: 19ch;
    color: #ffffff;
    font-size: clamp(1.52rem, 2.3vw, 2.1rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.community-home-card-copy p {
    margin: 0;
    max-width: 49ch;
    color: #c3d7e1;
    line-height: 1.68;
}

.community-home-benefits {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #e4f4f7;
    font-size: 0.91rem;
    font-weight: 700;
}

.community-home-benefits li {
    display: flex;
    align-items: center;
    gap: 9px;
}

.community-home-benefits li::before {
    content: "✓";
    display: inline-grid;
    place-items: center;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: rgba(88, 214, 198, 0.17);
    color: #7de6d9;
    font-size: 0.72rem;
}

.community-home-rating {
    display: grid;
    gap: 7px;
}

.community-home-rating > span {
    color: #f8c95d;
    font-size: 1.2rem;
    letter-spacing: 0.12em;
}

.community-home-rating small {
    color: #c3d7e1;
    font-size: 0.86rem;
    line-height: 1.5;
}

.community-home-actions {
    align-self: end;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-top: auto;
}

.community-home-button {
    border-color: rgba(255, 255, 255, 0.82);
    background: #ffffff;
    color: #0b3950;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.17);
}

.community-home-button:hover,
.community-home-button:focus-visible {
    border-color: #ffffff;
    background: #eaf8fb;
    color: #082f43;
}

.community-home-text-link {
    color: #e5f8fb;
    font-size: 0.9rem;
    font-weight: 800;
}

.community-home-text-link:hover,
.community-home-text-link:focus-visible {
    color: #87e8dc;
}

.community-home-visual {
    position: absolute;
    z-index: 1;
    right: 24px;
    bottom: 24px;
    width: 148px;
    height: 94px;
    opacity: 0.2;
    pointer-events: none;
}

.community-home-gallery-visual span {
    position: absolute;
    width: 84px;
    height: 62px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(125, 211, 252, 0.04));
}

.community-home-gallery-visual span:nth-child(1) { right: 0; bottom: 0; transform: rotate(7deg); }
.community-home-gallery-visual span:nth-child(2) { right: 34px; bottom: 12px; transform: rotate(-4deg); }
.community-home-gallery-visual span:nth-child(3) { right: 60px; bottom: 26px; transform: rotate(-12deg); }

.community-home-opinions-visual {
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 26px 26px 6px 26px;
    color: #ffffff;
    font-family: Georgia, serif;
    font-size: 5rem;
    line-height: 1;
}

/* ---------- User gallery: visual hierarchy and interaction cues ---------- */

.user-gallery-page .gallery-hero-card-pro {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(270px, 0.62fr);
    gap: clamp(28px, 4vw, 56px);
    padding: clamp(28px, 4vw, 48px);
    border-color: rgba(133, 217, 218, 0.2);
    border-radius: 32px;
    background:
        radial-gradient(circle at 5% 0%, rgba(45, 212, 191, 0.2), transparent 32%),
        radial-gradient(circle at 100% 20%, rgba(56, 189, 248, 0.2), transparent 30%),
        linear-gradient(135deg, #071b2d, #0a3850 58%, #0c4758);
    box-shadow: 0 34px 75px rgba(2, 16, 28, 0.28);
    color: #f6fbff;
}

.user-gallery-page .gallery-hero-card-pro::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 260px;
    height: 260px;
    right: -105px;
    top: -145px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    box-shadow: 0 0 0 40px rgba(255, 255, 255, 0.025), 0 0 0 84px rgba(255, 255, 255, 0.018);
}

.gallery-hero-kicker-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.user-gallery-page .gallery-hero-card-pro .eyebrow {
    margin: 0;
    color: #67dfd0;
}

.gallery-trust-badge {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    padding: 0 12px;
    border: 1px solid rgba(122, 229, 214, 0.18);
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.12);
    color: #ddfbf6;
    font-size: 0.75rem;
    font-weight: 800;
}

.user-gallery-page .gallery-hero-card-pro h1 {
    max-width: 18ch;
    margin: 16px 0 15px;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.user-gallery-page .gallery-hero-card-pro .section-note {
    max-width: 65ch;
    margin: 0;
    color: #c5d7e2;
    line-height: 1.72;
}

.gallery-hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

.gallery-hero-highlights span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: #e0eff5;
    font-size: 0.78rem;
    font-weight: 750;
}

.user-gallery-page .gallery-hero-card-pro .hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 17px;
    margin-top: 24px;
}

.gallery-hero-primary {
    border-color: rgba(255, 255, 255, 0.86);
    background: #ffffff;
    color: #0a4154;
    box-shadow: 0 15px 32px rgba(0, 0, 0, 0.18);
}

.gallery-hero-primary:hover,
.gallery-hero-primary:focus-visible {
    background: #eafafa;
    color: #06384b;
}

.gallery-hero-scroll-link {
    color: #dff6f6;
    font-size: 0.9rem;
    font-weight: 800;
}

.gallery-hero-scroll-link:hover,
.gallery-hero-scroll-link:focus-visible {
    color: #72e2d5;
}

.user-gallery-page .gallery-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    min-width: 0;
    align-self: center;
}

.user-gallery-page .gallery-hero-stat {
    min-width: 0;
    padding: 18px;
    border-color: rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
}

.user-gallery-page .gallery-hero-stat-wide {
    grid-column: 1 / -1;
}

.user-gallery-page .gallery-hero-stat span {
    color: #aac3d1;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.user-gallery-page .gallery-hero-stat strong {
    color: #ffffff;
    font-size: 1.16rem;
    line-height: 1.32;
}

.gallery-journey-shell {
    padding-top: 2px;
}

.gallery-journey-card {
    display: grid;
    grid-template-columns: minmax(190px, 0.45fr) minmax(0, 1.55fr);
    gap: 26px;
    align-items: center;
    padding: 24px 28px;
    border-radius: 27px;
}

.gallery-journey-heading h2 {
    margin: 6px 0 0;
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    line-height: 1.12;
}

.gallery-journey-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gallery-journey-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 11px;
    align-items: start;
    min-width: 0;
    padding: 15px;
    border: 1px solid rgba(15, 118, 110, 0.1);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(239, 253, 250, 0.88), rgba(240, 249, 255, 0.74));
}

.gallery-journey-list li > span {
    color: #0e7490;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.gallery-journey-list li div {
    display: grid;
    gap: 5px;
}

.gallery-journey-list strong {
    color: #123047;
    font-size: 0.9rem;
    line-height: 1.25;
}

.gallery-journey-list small {
    color: #607383;
    font-size: 0.78rem;
    line-height: 1.5;
}

.user-gallery-page .gallery-toolbar-card {
    padding: 24px 28px;
    border-radius: 27px;
}

.user-gallery-page .gallery-toolbar-card h2 {
    margin: 7px 0 5px;
}

.user-gallery-page .gallery-toolbar-card .section-note {
    max-width: 70ch;
    margin: 0;
}

.user-gallery-page .user-gallery-grid {
    gap: 22px;
}

.user-gallery-page .user-gallery-card {
    display: grid;
    grid-template-rows: auto 1fr;
    border-color: rgba(255, 255, 255, 0.72);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 45px rgba(17, 44, 64, 0.13);
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.user-gallery-page .user-gallery-card:hover {
    transform: translateY(-6px);
    border-color: rgba(15, 118, 110, 0.22);
    box-shadow: 0 28px 60px rgba(10, 39, 59, 0.2);
}

.user-gallery-page .user-gallery-card-media {
    isolation: isolate;
    aspect-ratio: 16 / 10.5;
    background: #0a2637;
}

.user-gallery-page .user-gallery-card-media::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 45% 0 0;
    background: linear-gradient(180deg, transparent, rgba(2, 12, 22, 0.68));
    pointer-events: none;
}

.user-gallery-page .user-gallery-card-media :is(img, video) {
    transition: transform 360ms ease, filter 360ms ease;
}

.user-gallery-page .user-gallery-card:hover .user-gallery-card-media :is(img, video) {
    transform: scale(1.045);
    filter: saturate(1.06) contrast(1.02);
}

.gallery-media-type-badge,
.gallery-card-open-cue {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 850;
    backdrop-filter: blur(9px);
}

.gallery-media-type-badge {
    top: 14px;
    left: 14px;
    min-height: 31px;
    padding: 0 11px;
    border-radius: 999px;
    background: rgba(6, 31, 48, 0.64);
}

.gallery-card-open-cue {
    right: 14px;
    bottom: 14px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(8, 75, 85, 0.78);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.user-gallery-card-media:hover .gallery-card-open-cue,
.user-gallery-card-media:focus-visible .gallery-card-open-cue {
    opacity: 1;
    transform: translateY(0);
}

.user-gallery-page .user-gallery-card-body {
    align-content: start;
    padding: 22px;
}

.user-gallery-page .user-gallery-card-body h3 a {
    color: #10283b;
    text-decoration: none;
}

.user-gallery-page .user-gallery-card-body h3 a:hover,
.user-gallery-page .user-gallery-card-body h3 a:focus-visible {
    color: #0e7490;
}

.user-gallery-page .gallery-card-footer {
    align-self: end;
    align-items: flex-end;
    gap: 12px;
    padding-top: 5px;
    border-top: 1px solid rgba(16, 51, 72, 0.08);
}

.gallery-rating-block {
    display: grid;
    gap: 4px;
}

.user-gallery-page .gallery-rating {
    margin: 0;
    color: #17445b;
    font-size: 0.92rem;
    font-weight: 850;
}

.user-gallery-page .gallery-rating > span {
    color: #d59a1d;
}

.gallery-card-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0f766e;
    font-size: 0.82rem;
    font-weight: 850;
    white-space: nowrap;
}

.gallery-card-detail-link:hover,
.gallery-card-detail-link:focus-visible {
    color: #0e7490;
}

.user-gallery-page .gallery-empty-state {
    max-width: 700px;
    margin-inline: auto;
    padding: clamp(34px, 5vw, 60px);
    text-align: center;
}

.user-gallery-page .gallery-empty-state p:not(.eyebrow) {
    max-width: 55ch;
    margin: 0 auto 20px;
}

/* Submission form: make the process self-explanatory without changing its logic. */

.gallery-submit-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 24px 0 28px;
    padding: 0;
    list-style: none;
}

.gallery-submit-steps li {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 13px 15px;
    border: 1px solid rgba(15, 118, 110, 0.1);
    border-radius: 17px;
    background: linear-gradient(145deg, rgba(239, 253, 250, 0.86), rgba(240, 249, 255, 0.72));
}

.gallery-submit-steps span {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: linear-gradient(135deg, #0f766e, #0e7490);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
}

.gallery-submit-steps strong {
    color: #16374b;
    font-size: 0.82rem;
    line-height: 1.35;
}

.user-gallery-page .gallery-file-field {
    padding: 20px;
    border: 1px dashed rgba(14, 116, 144, 0.3);
    border-radius: 21px;
    background: linear-gradient(145deg, rgba(236, 254, 255, 0.68), rgba(240, 253, 250, 0.78));
}

.user-gallery-page .gallery-file-field .file-input {
    min-height: 54px;
    padding: 8px;
    border-style: solid;
    background: rgba(255, 255, 255, 0.9);
}

.user-gallery-page .gallery-file-field .file-input::file-selector-button {
    min-height: 38px;
    margin-right: 12px;
    padding: 0 15px;
    border: 0;
    border-radius: 12px;
    background: #0f766e;
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.user-gallery-page .gallery-preview-panel {
    border-color: rgba(14, 116, 144, 0.13);
    background: rgba(248, 252, 253, 0.9);
}

@media (max-width: 1050px) {
    .community-home-intro {
        grid-template-columns: 1fr;
    }

    .community-home-intro h2 {
        max-width: 18ch;
    }

    .user-gallery-page .gallery-hero-card-pro,
    .gallery-journey-card {
        grid-template-columns: 1fr;
    }

    .user-gallery-page .gallery-hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .user-gallery-page .gallery-hero-stat-wide {
        grid-column: auto;
    }
}

@media (max-width: 760px) {
    body[data-weather-period="night"] .atmosphere-copy-panel {
        padding: 19px;
        border-radius: 22px;
    }

    .community-home-section {
        padding-top: 24px;
    }

    .community-home-shell {
        gap: 23px;
        padding: 21px;
        border-radius: 27px;
    }

    .community-home-grid {
        grid-template-columns: 1fr;
    }

    .community-home-card {
        min-height: 0;
        padding: 23px;
        border-radius: 23px;
    }

    .community-home-intro h2,
    .community-home-card-copy h3 {
        max-width: none;
    }

    .community-home-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .community-home-button {
        width: 100%;
    }

    .community-home-visual {
        display: none;
    }

    .user-gallery-page .gallery-hero-card-pro {
        gap: 28px;
        padding: 24px;
        border-radius: 26px;
    }

    .user-gallery-page .gallery-hero-stats,
    .gallery-journey-list,
    .gallery-submit-steps {
        grid-template-columns: 1fr;
    }

    .gallery-journey-card,
    .user-gallery-page .gallery-toolbar-card {
        padding: 21px;
        border-radius: 23px;
    }

    .gallery-journey-list li {
        padding: 14px;
    }

    .gallery-card-open-cue {
        opacity: 1;
        transform: none;
    }

    .user-gallery-page .gallery-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 440px) {
    .community-home-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .community-home-intro h2 {
        font-size: 1.88rem;
    }

    .community-home-card-copy h3 {
        font-size: 1.45rem;
    }

    .user-gallery-page .gallery-hero-card-pro h1 {
        font-size: 1.82rem;
    }

    .user-gallery-page .gallery-hero-card-pro .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .gallery-hero-primary {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .community-home-card,
    .user-gallery-page .user-gallery-card,
    .user-gallery-page .user-gallery-card-media :is(img, video),
    .gallery-card-open-cue {
        transition: none;
    }
}
