/* Gallery and community stories */
.media-hero { padding: 80px 0 65px; color: #fff; background: #102b4a; border-bottom: 4px solid var(--yellow); }
.media-hero .eyebrow { color: #b8d0e8; }
.media-hero h1 { margin: 18px 0 24px; max-width: 960px; font-size: clamp(2.8rem, 5.6vw, 5.6rem); line-height: 1.04; letter-spacing: -.05em; }
.media-hero h1 span { color: var(--yellow); }
.media-hero .container > p:not(.eyebrow) { max-width: 640px; color: #c0cfdf; font-size: 1rem; line-height: 1.8; }
.media-hero-meta { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 28px; font-size: .85rem; }
.media-hero-meta > span { padding: 10px 16px; border: 1px solid #ffffff30; border-radius: 999px; }
.media-hero-meta > a:not(.btn):hover { color: var(--yellow); }
.success-video-stories { color: var(--ink); background: #fff; border-bottom: 1px solid #dfe7ef; }
.success-video-stories::before { display: none; }
.success-video-stories .home-video-heading { position: relative; align-items: center; padding-left: 24px; }
.success-video-stories .home-video-heading::before { position: absolute; top: 4px; bottom: 4px; left: 0; width: 5px; content: ''; background: var(--yellow); border-radius: 999px; }
.success-video-stories .home-video-heading .eyebrow { color: var(--blue2); }
.success-video-stories .home-video-heading h2 { color: var(--navy); font-size: clamp(2.2rem, 4vw, 4rem); }
.success-video-stories .home-video-heading h2 span { color: var(--blue2); }
.success-video-stories .home-video-heading > p { color: var(--muted); }
.success-video-stories .home-video-card { background: #f8fafc; border-color: #dce5ed; box-shadow: 0 12px 32px rgba(13,43,72,.08); }
.success-video-stories .home-video-player { aspect-ratio: 16 / 9; }
.success-video-stories .home-video-empty { color: var(--ink); background: #f5f7fa; border-color: #dce5ed; }
.success-video-stories .home-video-empty h3 { color: var(--navy); }
.success-video-stories .home-video-empty p { color: var(--muted); }
.media-section { background: #f5f7fa; }
.media-section-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 30px; }
.media-section-heading h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.5rem); letter-spacing: -.04em; }
.media-section-heading > p { color: var(--muted); font-size: .85rem; }
.public-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.gallery-tile { position: relative; display: block; overflow: hidden; background: #e0e7ef; border-radius: 13px; aspect-ratio: 4 / 3; }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.gallery-tile:hover img, .gallery-tile:focus-visible img { transform: scale(1.035); }
.gallery-tile-overlay { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; gap: 15px; align-items: end; padding: 35px 20px 18px; color: #fff; background: linear-gradient(transparent, #07192dcc); font-size: .8rem; }
.gallery-tile-overlay > span:first-child { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gallery-tile-overlay > span:last-child { flex-shrink: 0; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #ffffff66; border-radius: 50%; }
.media-empty { grid-column: 1 / -1; width: 100%; padding: 60px 24px; text-align: center; border: 1px dashed #cbd6e1; border-radius: 14px; background: #fff; }
.media-empty > span { display: block; color: #9ab0c8; font-size: 3rem; }
.media-empty h2 { margin: 12px 0; font-size: 1.4rem; color: var(--navy); }
.media-empty p { color: var(--muted); }
.media-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.media-pagination a, .media-pagination > span { display: grid; min-width: 42px; min-height: 42px; padding: 10px 13px; place-items: center; border: 1px solid #dce5ed; border-radius: 8px; font-size: .8rem; background: #fff; }
.media-pagination a:hover { border-color: var(--blue2); color: var(--blue2); }
.media-pagination a[aria-current=page] { background: var(--navy); color: #fff; border-color: var(--navy); }
.media-pagination [aria-disabled=true] { color: #8090a3; background: #edf1f5; }
.media-page-count { margin: 20px 0 0; text-align: center; color: var(--muted); font-size: .75rem; }
.gallery-viewer-open { overflow: hidden; }
.gallery-viewer { width: min(1100px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 54px 18px 20px; background: #0a1728; border: 1px solid #ffffff30; border-radius: 14px; color: #fff; }
.gallery-viewer::backdrop { background: #020912e8; backdrop-filter: blur(5px); }
.viewer-close { position: absolute; top: 8px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; color: #fff; background: #ffffff14; font-size: 1.8rem; }
.viewer-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 160px; }
.viewer-stage img { max-width: calc(100% - 104px); max-height: calc(100dvh - 230px); width: auto; height: auto; object-fit: contain; }
.viewer-stage img[hidden] { display: none; }
.viewer-arrow { position: absolute; z-index: 1; top: calc(50% - 22px); width: 44px; height: 44px; border: 1px solid #ffffff50; border-radius: 50%; background: #142a44; color: #fff; font-size: 1.2rem; }
.viewer-previous { left: 0; }.viewer-next { right: 0; }
.viewer-arrow:disabled { opacity: .25; cursor: default; }
.viewer-arrow:not(:disabled):hover, .viewer-close:hover { background: #315273; }
.gallery-viewer :focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.viewer-caption { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 18px 12px 0; }
.viewer-caption p { margin: 0; font-size: .9rem; overflow-wrap: anywhere; }.viewer-caption > span { flex-shrink: 0; font-size: .8rem; color: #adc0d7; }
.viewer-status { text-align: center; font-size: .85rem; color: #d7e2ef; margin: 10px 0 0; }.viewer-status:empty { display: none; }
.stories-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.story-card { display: flex; min-width: 0; padding: 20px; flex-direction: column; background: #fff; border: 1px solid #dde5ed; border-radius: 14px; box-shadow: 0 6px 22px rgba(13,43,72,.055); transition: transform .2s ease,box-shadow .2s ease,border-color .2s ease; }
.story-card:hover { transform: translateY(-3px); border-color: #c8d7e5; box-shadow: 0 12px 30px rgba(13,43,72,.1); }
.story-card-header { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; padding-bottom: 15px; border-bottom: 1px solid #edf1f5; }
.story-avatar { display: grid; width: 52px; height: 52px; overflow: hidden; place-items: center; flex-shrink: 0; background: linear-gradient(145deg,#d8e6f2,#eef4f9); border-radius: 50%; }
.story-avatar img { width: 100%; height: 100%; object-fit: cover; }.story-monogram { color: #557899; font-size: 1.15rem; font-weight: 800; }
.story-card-person { display: grid; min-width: 0; gap: 2px; }.story-card-person strong,.story-card-person span,.story-card-person small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.story-card-person strong { color: var(--navy); font-size: .82rem; }.story-card-person span { color: #52677d; font-size: .68rem; }.story-card-person small { color: #8693a1; font-size: .61rem; }
.story-rating { display: flex; align-items: center; gap: 5px; color: #e9a900; }.story-rating > span { display: flex; gap: 1px; }.story-rating b { font-size: .72rem; line-height: 1; }.story-rating b.is-empty { color: #d8dee5; }.story-rating small { color: #5d6f81; font-size: .62rem; font-weight: 800; }
.story-card-body { position: relative; padding: 17px 0 16px 22px; }.story-quote { position: absolute; top: 9px; left: 0; color: #d4e1ec; font-family: Georgia,serif; font-size: 2rem; line-height: 1; }.story-card-body h2 { margin: 0 0 9px; font-size: 1rem; line-height: 1.4; overflow-wrap: anywhere; }.story-card-story { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.65; overflow-wrap: anywhere; }
.story-card footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 13px; margin-top: auto; border-top: 1px solid #edf1f5; }.story-card footer > span { color: #84909d; font-size: .58rem; text-transform: uppercase; letter-spacing: .05em; }.story-card a:hover { color: var(--blue2); }.story-byline { display: grid; gap: 5px; margin: 20px 0; }.story-byline strong { font-size: .9rem; }.story-byline span { color: var(--muted); font-size: .8rem; }.story-read-link { flex-shrink: 0; color: var(--blue2); font-size: .68rem; font-weight: 800; }
.story-form-container, .story-detail { max-width: 850px; }.story-form-container h1, .story-detail h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); letter-spacing: -.04em; margin: 14px 0; line-height: 1.15; overflow-wrap: anywhere; }.story-form-intro { color: var(--muted); margin-bottom: 30px; }
.story-form-card { padding: 30px; background: #fff; border: 1px solid #dce5ed; border-radius: 14px; }.story-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }.story-wide { grid-column: 1 / -1; }
.story-fields textarea { width: 100%; padding: 13px; border: 1px solid #cdd8e2; border-radius: 8px; font: inherit; line-height: 1.7; resize: vertical; color: var(--ink); }.story-current-photo { max-width: 200px; max-height: 180px; object-fit: contain; }
.story-rating-field { padding: 0; margin: 0 0 18px; border: 0; }.story-rating-field legend { margin-bottom: 8px; font-size: .75rem; font-weight: 800; }.story-rating-input { display: flex; width: fit-content; flex-direction: row-reverse; justify-content: flex-end; }.story-rating-input input { position: absolute; width: 1px; height: 1px; opacity: 0; }.story-rating-input label { padding: 2px; color: #d7dee5; cursor: pointer; font-size: 1.8rem; line-height: 1; transition: color .15s ease,transform .15s ease; }.story-rating-input label:hover,.story-rating-input label:hover~label,.story-rating-input input:checked~label { color: #e9a900; }.story-rating-input label:hover { transform: scale(1.08); }.story-rating-input input:focus-visible+label { outline: 2px solid var(--blue2); outline-offset: 2px; border-radius: 3px; }
.story-consent { display: flex; align-items: start; gap: 10px; margin: 24px 0; font-size: .82rem; line-height: 1.7; }.story-consent input { margin-top: 6px; }.story-honeypot { position: fixed; inset: 0 auto auto 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.story-detail-rating { width: fit-content; padding: 9px 12px; margin-top: 18px; background: #fff; border: 1px solid #e0e6ed; border-radius: 999px; }.story-detail-rating b { font-size: .9rem; }.story-detail-photo { width: 100%; max-height: 600px; object-fit: contain; background: #e0e7ef; border-radius: 14px; margin: 30px 0; }.story-prose { white-space: pre-line; font-size: 1.05rem; line-height: 1.9; overflow-wrap: anywhere; }.story-detail-cta { margin-top: 45px; padding-top: 30px; border-top: 1px solid #dce5ed; }.story-detail-cta h2 { font-size: 1.4rem; }
@media (max-width: 900px) { .public-gallery-grid, .stories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .media-section-heading { align-items: start; flex-direction: column; gap: 8px; } }
@media (max-width: 600px) { .media-hero { padding: 55px 0 45px; }.success-video-stories .home-video-heading { padding-left: 18px; }.public-gallery-grid { gap: 12px; }.gallery-tile-overlay { padding: 22px 10px 10px; font-size: .7rem; }.gallery-tile-overlay > span:last-child { display: none; }.stories-grid, .story-fields { grid-template-columns: minmax(0, 1fr); }.story-card { padding: 17px; }.story-card-header { grid-template-columns: auto minmax(0,1fr); }.story-rating { grid-column: 2; }.story-card footer { align-items: flex-start; flex-direction: column; }.story-form-card { padding: 20px; }.viewer-stage img { max-width: 100%; }.viewer-stage { padding-bottom: 60px; }.viewer-arrow { top: auto; bottom: 0; }.viewer-previous { left: calc(50% - 54px); }.viewer-next { right: calc(50% - 54px); }.viewer-caption { padding-left: 0; padding-right: 0; } }
@media (prefers-reduced-motion: reduce) { .gallery-tile:is(:hover, :focus-visible) img { transform: none; } }
