/* Figma 262:7508 / 262:13294 and details 262:7361 / 262:7715. Content and status remain server-owned. */
.public-shell .main:has(>.contests-page){max-width:none;padding:0 0 60px}
.public-shell .main:has(>.contests-page)>.dev-banner,.public-shell .main:has(>.contests-page)>.notice{width:min(1170px,calc(100% - 48px));margin:16px auto}
.contests-page{font:400 16px/1.5 'IBM Plex Sans',Arial,sans-serif;color:#2d2d2f}
.contest-container{width:min(1170px,calc(100% - 48px));margin-inline:auto;min-width:0}
.contests-page .breadcrumbs{font:400 16px/1.2 'IBM Plex Sans',Arial,sans-serif;margin:0 0 50px;overflow-wrap:anywhere}
.contests-page h1,.contest-banner h2,.contest-archive>h2{font:700 52px/normal Inter,Arial,sans-serif;letter-spacing:-.04em;margin:0;overflow-wrap:anywhere}
.contest-sr-only{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.contest-hero-shell{position:relative;isolation:isolate;padding:25px 0 0}
.contest-hero-active{padding-bottom:100px;background:linear-gradient(180deg,#fff,#fff498);overflow:clip}
.contest-hero-active:before{content:'';position:absolute;z-index:-1;inset:0;background:url('home-static/hero-grid-live.png') center/cover;opacity:.15;mask:url('contests-static/hero-mask-desktop.svg') center/100% 100% no-repeat;-webkit-mask:url('contests-static/hero-mask-desktop.svg') center/100% 100% no-repeat}
.contest-banner{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:30px}
.contest-banner+.contest-banner{margin-top:60px}
.contest-banner-no-cover{grid-template-columns:minmax(0,1fr)}
.contest-banner-no-cover .contest-banner-copy{max-width:770px}
.contest-status{font-size:14px;color:#6f6f75;margin:0 0 12px}
.contest-banner .contest-excerpt{margin:20px 0 0;white-space:pre-line;overflow-wrap:anywhere}
.contest-dates{font-size:14px;color:#6f6f75;margin:12px 0 0}
.contests-page .contest-cta{background:#ffef68;border-color:#ffef68;border-radius:8px;min-height:52px;padding:15px 25px;font:500 16px/1.4 'IBM Plex Sans',Arial,sans-serif;max-width:100%;overflow-wrap:anywhere}
.contest-banner .contest-cta{margin-top:40px}
.contest-banner-art{position:relative;isolation:isolate;min-width:0}
.contest-banner-cover{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:24px}
.contest-ribbon{position:absolute;z-index:-1;left:-34px;top:-70px;width:579.381px;height:533.133px;display:flex;align-items:center;justify-content:center;pointer-events:none}
.contest-ribbon>img{display:block;width:auto;height:auto;max-width:none;transform:rotate(4.65deg)}
.contest-archive{padding-top:120px}
.contest-filters{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin:50px 0}
.contest-filters button{background:#f3f3f3;border:0;border-radius:30px;padding:12px 24px;min-height:46px;font:500 16px/1.4 'IBM Plex Sans',Arial,sans-serif;max-width:100%;overflow-wrap:anywhere}
.contest-filters button[aria-pressed=true]{background:#ffef68}
.contest-filter-unavailable{font-size:14px;color:#6f6f75;padding:12px}
.contest-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px}
.contest-grid>.empty{grid-column:1/-1}
.contest-card{display:flex;flex-direction:column;min-width:0;border:1px solid #d9d9d9;border-radius:24px;background:#fff;overflow:hidden}
.contest-card-image{display:block;margin:9px 9px 0}
.contest-card-image img{display:block;width:100%;height:200px;border-radius:16px;object-fit:cover}
.contest-card-body{display:flex;flex:1;flex-direction:column;align-items:flex-start;gap:20px;padding:20px 19px 19px;min-width:0}
.contest-card h3{font:700 20px/normal Inter,Arial,sans-serif;letter-spacing:-.02em;margin:0;overflow-wrap:anywhere}
.contest-card .contest-excerpt{margin:0;overflow-wrap:anywhere}
.contest-category{display:inline-flex;align-self:flex-start;padding:4px 12px;border-radius:30px;background:#f3f3f3;font:500 14px/1.4 'IBM Plex Sans',Arial,sans-serif;max-width:100%;overflow-wrap:anywhere}
.contests-page [data-category=archicad] .contest-category{background:#fff3ed;color:#ee6829}
.contests-page [data-category=autocad] .contest-category{background:#ffe4e2;color:#bb4941}
.contests-page [data-category=revit] .contest-category{background:#e1efff;color:#456393}
.contests-page [data-category="3ds-max"] .contest-category{background:#e4f4f4;color:#41bbb9}
.contest-card-meta{display:flex;justify-content:space-between;gap:15px;width:100%;margin-top:auto;font:400 12px/1.5 'IBM Plex Sans',Arial,sans-serif;color:#6c6c6d}
.contest-card-meta>span{display:flex;align-items:center;gap:5px}
.contest-card-meta img{display:block;width:auto;height:auto;max-width:none}
.contest-card a:hover,.contest-winner a:hover{text-decoration:underline;text-underline-offset:4px}
.contest-detail{padding-top:25px}
.contest-closed-status{display:table;max-width:100%;background:#ffef68;padding:10px;margin:30px 0 0;font:700 32px/normal Inter,Arial,sans-serif;letter-spacing:-.04em;overflow-wrap:anywhere}
.contest-detail-lead{font-size:20px;line-height:1.5;margin:20px 0 0;overflow-wrap:anywhere;white-space:pre-line}
.contest-intro{display:block;margin:50px 0}
.contest-intro-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:30px}
.contest-intro>section{min-width:0}
.contest-intro h2,.contest-winners>h2{font:700 32px/normal Inter,Arial,sans-serif;letter-spacing:-.04em;margin:0 0 20px}
.contest-intro-results>section>h2{font-size:20px;letter-spacing:-.02em;margin-bottom:12px}
.contest-intro .rich-prose{font:400 16px/1.5 'IBM Plex Sans',Arial,sans-serif;margin-top:20px}
.contest-intro-results .rich-prose{margin-top:12px}
.contest-submission-count{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 10px;width:fit-content;max-width:100%;box-sizing:border-box;margin:24px 0 0;padding:12px 18px;border-radius:12px;background:#fff498;color:#2d2d2f}
.contest-submission-count strong{font:700 22px/1.3 Inter,Arial,sans-serif;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.contest-intro .rich-prose h2{font:700 32px/normal Inter,Arial,sans-serif;margin:50px 0 20px;letter-spacing:-.04em}
.contest-intro .rich-prose h3{font:700 20px/normal Inter,Arial,sans-serif;margin:30px 0 12px;letter-spacing:-.02em}
.contest-conditions>.contest-cta{margin:30px 0 12px}
.contest-conditions>.notice{margin-top:24px}
.contest-detail-cover{display:block;max-width:100%;max-height:620px;width:100%;object-fit:contain;border-radius:16px;margin:30px 0 50px}
.contest-winner-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:30px}
.contest-work{border:1px solid #d9d9d9;border-radius:24px;padding:28px;min-width:0;scroll-margin-top:90px;display:flex;flex-direction:column;gap:20px}.contest-work-author{display:flex;gap:15px;align-items:center;min-width:0}.contest-work-author>img{width:70px;height:70px;object-fit:cover;border-radius:50%;flex:none}.contest-work-author h3{font:700 16px/1.4 Inter,Arial,sans-serif;margin:0 0 4px;overflow-wrap:anywhere}.contest-work-author a{font-size:14px;overflow-wrap:anywhere}.contest-work-open{position:relative;display:block;color:inherit}.contest-work-open>img{width:100%;height:330px;object-fit:contain;background:#fafafa;display:block}.contest-work-expand{position:absolute;bottom:10px;right:10px;background:#ffef68;padding:8px 12px;border-radius:10px;font-size:13px;opacity:0;transition:opacity .15s}.contest-work:hover .contest-work-expand,.contest-work-open:focus-visible .contest-work-expand{opacity:1}.contest-work-courses{background:#f1f1f2;border-radius:16px;padding:18px 20px;font-size:14px;margin-top:auto;overflow-wrap:anywhere}.contest-work-courses p{font-weight:600;margin:0 0 8px}.contest-work-courses ul{margin:0;padding-left:18px}.contest-work-courses li+li{margin-top:6px}.contest-work-fallback img{max-width:100%;height:auto;display:block;margin:15px 0}.contest-gallery-ready [data-work-frames]{display:none}.contest-gallery-ready .contest-work{cursor:pointer}.contest-work-placeholder{display:grid;place-items:center;min-height:240px;background:#f3f3f3;padding:20px;text-align:center}.contest-intake-section,.contest-submit{margin:40px 0}.contest-intake-section h2 span,.contest-submit h2 span{color:#777;margin-right:20px}.contest-submit{max-width:800px}.contest-submit label{display:flex;flex-direction:column;gap:8px;margin:18px 0}.contest-submit input,.contest-submit select,.contest-submit textarea{box-sizing:border-box;width:100%;font:inherit;border:1px solid #bfc1c5;border-radius:10px;padding:13px;background:white;color:inherit}.contest-submit small,.contest-submit .muted{font-size:13px;color:#60646c}.contest-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}.contest-form-error{color:#ab2020}.contest-honeypot{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}.contest-hero-slider figure{margin:0}.contest-hero-slider figcaption{font-size:14px;margin-top:10px}.contest-hero-controls{display:flex;gap:8px;margin-top:12px}.contest-hero-controls button{background:#ffef68;border:0;border-radius:50%;width:40px;height:40px;cursor:pointer}.contest-prize{font:700 24px/1.3 Inter,Arial,sans-serif}.contest-more{display:block;width:max-content;margin:35px auto}.contest-gallery button:focus-visible,.contest-work a:focus-visible{outline:3px solid #5379d5;outline-offset:3px}@media(max-width:760px){.contest-work{padding:18px;gap:16px;border-radius:20px}.contest-work-open>img{height:auto;max-height:330px;min-height:160px}.contest-form-grid{grid-template-columns:1fr}.contest-work-expand{opacity:1;font-size:12px}.contest-work-author>img{width:55px;height:55px}}
.contest-winner{min-width:0;border:1px solid #d9d9d9;border-radius:20px;padding:29px;display:flex;flex-direction:column;gap:20px}
.contest-winner-author{display:flex;align-items:center;gap:12px;min-width:0}
.contest-winner-author>img{flex:none;width:70px;height:70px;object-fit:cover;border-radius:50%}
.contest-winner-author>div{min-width:0}
.contest-winner-name{font:700 16px/normal Inter,Arial,sans-serif;letter-spacing:-.02em;margin:0;overflow-wrap:anywhere}
.contest-winner-caption{font-size:12px;line-height:1.4;margin:5px 0 0;overflow-wrap:anywhere}
.contest-winner-image{position:relative;display:block}
.contest-winner-image>img{display:block;width:100%;height:auto;aspect-ratio:510/331;object-fit:contain;border:1px solid #6f6f75}
.contest-winner-image>.contest-category{position:absolute;left:10px;bottom:10px;max-width:calc(100% - 20px)}
.contest-winner h3{font:700 20px/normal Inter,Arial,sans-serif;letter-spacing:-.02em;margin:0;overflow-wrap:anywhere}
.contest-winner>.contest-excerpt{margin:0;overflow-wrap:anywhere}
.contest-winner-course{display:flex;flex-direction:column;gap:6px;border-radius:16px;background:#f3f3f3;padding:20px;font-size:14px;line-height:1.4;overflow-wrap:anywhere;margin-top:auto}
.contest-winner-course strong{font:700 14px/1.4 Inter,Arial,sans-serif}
.contest-winner-course a{text-decoration:underline;text-decoration-color:#ffef68;text-decoration-thickness:2px;text-underline-offset:4px}
.contest-work-courses a{text-decoration:underline;text-decoration-color:#ffef68;text-decoration-thickness:2px;text-underline-offset:4px}
.contest-work-courses a,.contest-winner-course a{transition:color .18s ease}
.contest-work-author>div{min-width:0}
.contest-work-author .contest-author-contact{display:flex;align-items:center;gap:6px;line-height:20px;max-width:100%}
.contest-author-contact>img{display:block;flex:none;width:16px;height:16px}
.contest-author-contact>span{min-width:0;overflow-wrap:anywhere}
@media(min-width:761px) and (max-width:1100px){.contests-page h1,.contest-banner h2,.contest-archive>h2{font-size:40px}.contest-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.contest-ribbon{display:none}.contest-winner{padding:23px}}
@media(max-width:760px){
 .contest-container,.public-shell .main:has(>.contests-page)>.dev-banner,.public-shell .main:has(>.contests-page)>.notice{width:calc(100% - 30px)}
 .contests-page .breadcrumbs{font-size:14px;margin-bottom:30px}
 .contest-detail .breadcrumbs{margin-bottom:40px}
 .contests-page h1,.contest-banner h2,.contest-archive>h2{font-size:32px}
 .contest-hero-shell,.contest-detail{padding-top:15px}
 .contest-hero-active{padding-bottom:30px}
 .contest-hero-active:before{mask-image:url('contests-static/hero-mask-mobile.svg');-webkit-mask-image:url('contests-static/hero-mask-mobile.svg')}
 .contest-banner{grid-template-columns:minmax(0,1fr);gap:30px}
 .contest-banner .contest-excerpt{margin-top:12px}
 .contest-banner .contest-cta{margin-top:30px;width:100%}
 .contest-ribbon{display:none}
 .contest-archive{padding-top:60px}
 .contest-filters{margin:30px 0;gap:5px}
 .contest-filters button{padding:12px 20px}
 .contest-grid,.contest-winner-grid{grid-template-columns:minmax(0,1fr);gap:30px}
 .contest-detail-lead{font-size:16px;margin-top:12px}
 .contest-closed-status{font-size:24px;letter-spacing:-.02em}
 .contest-intro{margin:30px 0}
 .contest-intro-results{grid-template-columns:minmax(0,1fr);gap:30px}
 .contest-intro h2,.contest-winners>h2,.contest-intro .rich-prose h2{font-size:24px}
 .contest-intro .rich-prose h2{margin-top:30px;letter-spacing:-.02em}
 .contest-intro-results>section>h2{font-size:20px}
 .contest-winner{padding:19px}
}

/* Imported archive projects stay inline, with stable legacy fragment links. */
.contest-archive-projects{margin:40px 0}.contest-archive-projects>h2{font:700 32px/1.2 Inter,Arial,sans-serif}.contest-project-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;padding:0;list-style:none}.contest-project-nav img{display:block;width:100%;height:auto;border-radius:12px}.contest-project-nav a{display:block;overflow-wrap:anywhere}.contest-archive-project{margin:48px 0;scroll-margin-top:100px;min-width:0}.contest-archive-project h3{overflow-wrap:anywhere}.contest-project-images{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}.contest-project-images figure{margin:0;min-width:0}.contest-project-images img{display:block;width:100%;height:auto;object-fit:contain;border-radius:8px}.contest-project-images figcaption{font-size:14px;color:#6f6f75;margin-top:6px}@media(max-width:760px){.contest-project-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.contest-project-images{grid-template-columns:minmax(0,1fr)}.contest-archive-projects>h2{font-size:24px}}

/* Fixed viewport, fitted image; all gallery controls overlay the visible picture. */
.contest-gallery{box-sizing:border-box;border:0;border-radius:20px;padding:0;width:min(1440px,calc(100vw - 48px));height:calc(100dvh - 48px);max-width:none;max-height:none;overflow:hidden;background:transparent;color:#25272b}
.contest-gallery:has([data-gallery-placeholder]:not([hidden])){background:#f4f4f5}
.contest-gallery::backdrop{background:#171a24ce}
.contest-gallery-stage{position:absolute;inset:0;--image-x:0px;--image-y:0px;touch-action:pan-y pinch-zoom;border-radius:inherit}
.contest-gallery-picture{position:absolute;inset:auto;overflow:hidden;max-width:100%;max-height:100%;border-radius:inherit}
.contest-gallery-picture>[data-gallery-image]{position:absolute;display:block;max-width:none;max-height:none;object-fit:contain}
.contest-gallery-info{position:absolute;top:calc(var(--image-y) + 12px);left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:20px;width:max-content;max-width:min(calc(100% - 2 * var(--image-x) - 24px),calc(100% - 116px));max-height:30dvh;overflow:auto;box-sizing:border-box;padding:10px 14px;border-radius:12px;background:#e1efff;border:1px solid #c6dcf4;backdrop-filter:blur(10px);box-shadow:0 2px 12px #00000012;scrollbar-width:thin}
.contest-gallery [data-gallery-author]{min-width:0;flex:0 1 auto}
.contest-gallery .contest-work-author{gap:10px}
.contest-gallery .contest-work-author>img{width:40px;height:40px}
.contest-gallery .contest-work-author h3{font-size:14px;margin:0 0 2px}
.contest-gallery .contest-work-author a,.contest-gallery .contest-work-author span{font-size:12px}
.contest-gallery [data-gallery-courses]{min-width:0;flex:1 1 160px}
.contest-gallery [data-gallery-courses]:empty{display:none}
.contest-gallery .contest-work-courses{background:transparent;border-radius:0;margin:0;padding:0;font-size:12px}
.contest-gallery .contest-work-courses p{font-size:11px;font-weight:500;margin:0 0 3px;color:#565b62}
.contest-gallery .contest-work-courses ul{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:4px 14px}
.contest-gallery .contest-work-courses li+li{margin:0}
.contest-gallery .contest-work-courses a{font-weight:600;text-decoration:underline;text-decoration-color:#b3a221;text-underline-offset:3px}
.contest-work-courses a:is(:hover,:focus-visible),.contest-winner-course a:is(:hover,:focus-visible){color:#55555b;text-decoration:none}
/* Shared rows keep the author's contact level with the first course, including wrapped names. */
.contest-gallery-info{display:grid;grid-template-columns:minmax(0,auto) minmax(0,1fr);grid-template-rows:auto auto;align-items:start;gap:4px 20px}
.contest-gallery [data-gallery-author],.contest-gallery [data-gallery-courses],.contest-gallery .contest-work-author,.contest-gallery .contest-work-author>div,.contest-gallery .contest-work-courses{display:grid;grid-template-rows:subgrid;grid-row:1 / span 2;row-gap:4px}
.contest-gallery [data-gallery-author]{grid-column:1}
.contest-gallery [data-gallery-courses]{grid-column:2}
.contest-gallery .contest-work-author{grid-template-columns:40px minmax(0,1fr);column-gap:10px}
.contest-gallery .contest-work-author>img{grid-row:1 / span 2;align-self:center}
.contest-gallery .contest-work-author>div{grid-column:2}
.contest-gallery .contest-work-author:not(:has(>img)){grid-template-columns:minmax(0,1fr)}
.contest-gallery .contest-work-author:not(:has(>img))>div{grid-column:1}
.contest-gallery .contest-work-author h3,.contest-gallery .contest-work-courses p{margin:0;line-height:20px;align-self:end}
.contest-gallery .contest-work-author a,.contest-gallery .contest-work-author>div>span,.contest-gallery .contest-work-courses li{line-height:18px;align-self:start}
.contest-gallery .contest-work-courses ul{align-self:start}
.contest-gallery .contest-work-courses a{display:block}
/* A portrait project also leaves a narrow caption in a landscape phone viewport. */
@media(max-height:500px){
 .contest-gallery-info{grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(4,auto)}
 .contest-gallery [data-gallery-courses]{grid-column:1;grid-row:3 / span 2;margin-top:6px}
}
.contest-gallery-close,.contest-gallery-prev,.contest-gallery-next{position:absolute;width:44px;height:44px;border:0;padding:0;line-height:1;display:grid;place-items:center;border-radius:50%;cursor:pointer;color:#25272b;box-shadow:0 2px 10px #0000001a;transition:background .15s,box-shadow .15s}
.contest-gallery button>svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.contest-gallery-close{z-index:2;right:10px;top:10px;background:rgba(255,255,255,.88);font-size:28px}
.contest-gallery-prev,.contest-gallery-next{top:50%;transform:translateY(-50%);background:#ffef68e8;font-size:23px}
.contest-gallery-prev{left:calc(var(--image-x) + 12px)}
.contest-gallery-next{right:calc(var(--image-x) + 12px)}
.contest-gallery button:hover{background:#ffe84b;box-shadow:0 3px 15px #0003}
.contest-gallery-count{position:absolute;left:calc(var(--image-x) + 12px);bottom:calc(var(--image-y) + 12px);padding:5px 10px;border-radius:8px;background:rgba(255,255,255,.88);font-size:13px;font-variant-numeric:tabular-nums}
.contest-gallery [data-gallery-placeholder]{position:absolute;inset:40% 12% auto;text-align:center;font-size:20px;color:#5a6069}
.contest-gallery [hidden],.contest-hero-slider [hidden]{display:none!important}
/* Trim only the narrow source-image edge in archive covers; gallery originals stay whole. */
.contest-card-image{overflow:hidden;border-radius:16px}
.contest-card-image img{transform:scale(1.03);transform-origin:center}
.contest-archive-status{min-height:20px;font-size:13px;color:#626873;margin:-30px 0 10px}
@media(max-width:760px){
 .contest-gallery{width:calc(100vw - 16px);height:calc(100dvh - 16px);border-radius:12px}
 .contest-gallery-info{top:calc(var(--image-y) + 8px);max-width:min(calc(100% - 2 * var(--image-x) - 16px),calc(100% - 96px));gap:10px;padding:8px;align-items:flex-start}
 .contest-gallery .contest-work-author{gap:6px;align-items:flex-start}
 .contest-gallery .contest-work-author>img{width:30px;height:30px}
 .contest-gallery-info{grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(4,auto);row-gap:4px}
 .contest-gallery [data-gallery-courses]{grid-column:1;grid-row:3 / span 2;margin-top:6px}
 .contest-gallery .contest-work-author{grid-template-columns:30px minmax(0,1fr)}
 .contest-gallery .contest-work-author h3{font-size:12px}
 .contest-gallery .contest-work-author a,.contest-gallery .contest-work-author span{font-size:11px}
 .contest-gallery [data-gallery-author]{flex:1 1 45%}
 .contest-gallery [data-gallery-courses]{flex:1 1 55%}
 .contest-gallery .contest-work-courses{font-size:11px}
 .contest-gallery-close{right:6px;top:6px;width:36px;height:36px}
 .contest-gallery-prev,.contest-gallery-next{width:40px;height:40px}
 .contest-gallery-prev{left:calc(var(--image-x) + 8px)}
 .contest-gallery-next{right:calc(var(--image-x) + 8px)}
 .contest-gallery-count{left:calc(var(--image-x) + 8px);bottom:calc(var(--image-y) + 8px);font-size:12px}
 .contest-archive-status{margin:-18px 0 10px}
}

.contest-gallery-caption{position:absolute;width:max-content;bottom:calc(var(--image-y) + 12px);left:50%;transform:translateX(-50%);max-width:calc(100% - 2 * var(--image-x) - 170px);margin:0;padding:6px 12px;border-radius:8px;background:rgba(255,255,255,.88);font-size:13px;text-align:center;max-height:20vh;overflow:auto}
.contest-gallery [data-image-error]{position:absolute;inset:40% 15% auto;padding:20px;background:#fff;border-radius:12px;text-align:center}
@media(max-width:760px){.contest-gallery-caption{bottom:calc(var(--image-y) + 8px);left:calc(50% + 28px);max-width:calc(100% - 2 * var(--image-x) - 100px);font-size:12px;line-height:18px}}

/* Optional work finale: selected images and project link remain separate from course advertising. */
.contest-gallery [hidden]{display:none!important}
.contest-gallery-fragment{position:absolute;left:calc(var(--image-x) + 14px);bottom:calc(var(--image-y) + 14px);z-index:3;display:flex;gap:12px;align-items:center;max-width:calc(100% - 2 * var(--image-x) - 110px);padding:10px 14px;border:1px solid #dfe2e5;border-radius:10px;background:#ffffffed;color:#33383e;text-align:left;cursor:pointer;box-shadow:0 2px 12px #0000000c;font-size:13px;line-height:1.35}
.contest-gallery-fragment strong{font-size:12px}.contest-gallery-fragment span{font-size:12px;border-left:1px solid #d3d6da;padding-left:12px;color:#707781}.contest-gallery-fragment:hover{background:#e1efff;border-color:#afcbea}
/* The finale occupies the same fitted sheet as the preceding image. */
.contest-gallery-final{position:absolute;inset:var(--image-y) var(--image-x);box-sizing:border-box;display:flex;flex-direction:column;gap:24px;overflow:auto;overscroll-behavior:contain;padding:36px 44px 48px;border-radius:inherit;background:#fff}
.contest-gallery-final-active .contest-gallery-close{z-index:8}
.contest-gallery-final-active .contest-gallery-count{left:auto;right:calc(var(--image-x) + 12px);bottom:calc(var(--image-y) + 12px);z-index:4}
.contest-final-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;gap:36px;width:100%;max-width:1160px;margin:auto}
.contest-final-student,.contest-final-offer{min-width:0;display:flex;flex-direction:column}
.contest-final-kicker{margin:0 0 14px;font:500 12px/1.4 Inter,Arial,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#747a81}
.contest-final-project{flex:1;display:flex;flex-direction:column;gap:20px;min-width:0;padding:24px;border-radius:24px;background:#f3f4f4}
.contest-final-author{display:flex;align-items:center;gap:12px}.contest-final-author>img{width:44px;height:44px;border-radius:50%;object-fit:cover;flex:none}.contest-final-author h2{font:600 20px/1.3 Inter,Arial,sans-serif;margin:0;overflow-wrap:anywhere}
.contest-final-project-visual{flex:none;display:grid;place-items:center;width:100%;aspect-ratio:420/297;min-width:0;margin-block:auto;background:transparent}.contest-final-preview{display:block;box-sizing:border-box;width:100%;height:auto;border:1px solid #dedfe1}
.contest-final-pdf,.contest-final-cta{display:flex;align-items:center;justify-content:center;gap:16px;width:fit-content;max-width:100%;align-self:flex-start;min-height:50px;border-radius:10px;padding:14px 20px;font:500 15px/1.35 Inter,Arial,sans-serif;text-decoration:none!important;box-sizing:border-box;transition:background-color .18s,border-color .18s,box-shadow .18s}
.contest-final-pdf{border:1px solid #aeb3b9;background:transparent;color:#2d2d2f;margin-top:auto}.contest-final-pdf:hover{background:#ffffff90;border-color:#555b63;box-shadow:0 3px 10px #2d2d2f0a}.contest-final-pdf span,.contest-final-cta span{flex:none}
.contest-final-course{flex:1;display:flex;flex-direction:column;border:1px solid #dedfe1;border-radius:24px;overflow:hidden;background:white;box-shadow:0 8px 24px #30374207}
.contest-final-cover{position:relative;flex:none;background:#f1dfdb;overflow:hidden}.contest-final-cover>img{display:block;width:100%;height:auto;aspect-ratio:3/2;max-height:32dvh;object-fit:cover;object-position:50% 50%}
.contest-final-cover>div{position:absolute;top:14px;left:16px;display:flex;flex-wrap:wrap;gap:7px}.contest-final-cover span{border-radius:99px;padding:6px 10px;background:#fff;font-size:11px;color:#4c5259}.contest-final-cover span:first-child{background:#ffe0dc;color:#a83d35}
.contest-final-copy{flex:1;display:flex;flex-direction:column;gap:16px;padding:24px}.contest-final-copy h2{font:600 28px/1.17 Inter,Arial,sans-serif;letter-spacing:-1px;margin:0;overflow-wrap:anywhere}.contest-final-copy>p{font-size:16px;line-height:1.5;margin:0;color:#60656c;overflow-wrap:anywhere}
.contest-final-cta{background:#ffef68;color:#2d2d2f;border:1px solid #ffef68;margin-top:auto}.contest-final-cta:hover{background:#f5e45c;border-color:#f5e45c;color:#2d2d2f}
.contest-final-back{align-self:flex-start;flex:none;max-width:calc(100% - 64px);margin:0;border:0;padding:8px 0;background:none;color:#4a5057;cursor:pointer;font-size:14px}
.contest-gallery-final :focus-visible,.contest-gallery-fragment:focus-visible{outline:3px solid #4285dc;outline-offset:4px}
@media(min-width:761px) and (max-height:850px){.contest-gallery-final{padding:26px 30px 44px;gap:16px}.contest-final-layout{gap:24px}.contest-final-project,.contest-final-copy{padding:20px}.contest-final-project{gap:16px}.contest-final-copy h2{font-size:25px}.contest-final-copy>p{font-size:15px}.contest-final-cover>img{max-height:27dvh}}
@media(max-width:1000px){.contest-gallery-final{padding-left:26px;padding-right:26px}.contest-final-layout{gap:24px}.contest-final-copy h2{font-size:25px}.contest-final-project,.contest-final-copy{padding:20px}}
@media(max-width:760px){.contest-gallery-final{inset:0;padding:56px 20px 50px;gap:24px}.contest-final-layout{grid-template-columns:minmax(0,1fr);gap:26px;margin:0}.contest-final-project{padding:18px;border-radius:18px}.contest-final-project-visual{margin-block:0}.contest-final-author h2{font-size:19px}.contest-final-pdf,.contest-final-cta{font-size:14px;padding:13px 14px}.contest-final-course{border-radius:20px}.contest-final-cover>img{max-height:none}.contest-final-copy{padding:22px}.contest-final-copy h2{font-size:27px}.contest-final-copy>p{font-size:15px}.contest-gallery-final-active .contest-gallery-count{right:16px;bottom:12px}.contest-gallery-fragment{max-width:calc(100% - 2 * var(--image-x) - 80px);padding:8px 10px;left:calc(var(--image-x) + 8px);bottom:calc(var(--image-y) + 8px);flex-direction:column;align-items:flex-start;gap:4px}.contest-gallery-fragment span{border:0;padding:0;font-size:10px}.contest-gallery-fragment strong{font-size:11px}}
@media(prefers-reduced-motion:reduce){.contest-final-pdf,.contest-final-cta{transition:none}}

/* Clear project actions, without stretching buttons across their cards. */
.contest-final-preview-link{position:relative;display:block;width:100%;color:#fff;text-decoration:none;overflow:hidden}
.contest-final-preview-label{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:12px;padding:16px;box-sizing:border-box;text-align:center;background:#20262c80;color:#fff;font:600 16px/1.4 Inter,Arial,sans-serif;opacity:0;transition:opacity .18s}
.contest-final-preview-link:hover .contest-final-preview-label,.contest-final-preview-link:focus-visible .contest-final-preview-label{opacity:1}
.public-shell .contest-gallery button.contest-final-back:hover{color:#3d434a;background:none;box-shadow:none;border:0;filter:none}
.public-shell .contest-gallery button.contest-gallery-fragment:hover{background:#ffffffed;border-color:#dfe2e5;box-shadow:0 2px 12px #0000000c;color:#292e34;filter:none}
.public-shell .contest-gallery button.contest-gallery-fragment:hover span{color:#606771}
.contest-gallery .contest-final-back,.contest-gallery .contest-gallery-fragment,.contest-gallery-fragment span{transition:color .18s}
@media(prefers-reduced-motion:reduce){.contest-final-preview-label,.contest-gallery .contest-final-back,.contest-gallery .contest-gallery-fragment,.contest-gallery-fragment span{transition:none}}

/* Mobile gallery reserves separate space for metadata and navigation. */
@media(max-width:760px){
 .contest-gallery-info{top:auto;bottom:0;left:0;right:0;transform:none;width:100%;max-width:none;max-height:min(180px,28dvh);padding:12px;display:flex;flex-direction:column;gap:10px;border-radius:12px;box-shadow:none}
 .contest-gallery [data-gallery-author],.contest-gallery [data-gallery-courses],.contest-gallery .contest-work-author>div,.contest-gallery .contest-work-courses{display:block;grid-column:auto;grid-row:auto;margin:0;width:100%}
 .contest-gallery .contest-work-author{display:flex;align-items:center;gap:10px}
 .contest-gallery .contest-work-author>img{width:36px;height:36px}
 .contest-gallery .contest-work-author h3{font-size:14px;line-height:20px;margin-bottom:2px}
 .contest-gallery .contest-work-author a,.contest-gallery .contest-work-author span{font-size:12px;line-height:18px}
 .contest-gallery .contest-work-courses ul{gap:6px 12px}
 .contest-gallery-prev,.contest-gallery-next{top:auto;bottom:var(--gallery-controls-bottom,0px);transform:none;width:44px;height:44px}
 .contest-gallery-prev{left:4px}.contest-gallery-next{right:4px}
 .contest-gallery:not(.contest-gallery-final-active) .contest-gallery-count{left:50%;bottom:calc(var(--gallery-controls-bottom,0px) + 8px);transform:translateX(-50%)}
 .contest-gallery .contest-gallery-fragment{left:50%;bottom:calc(var(--gallery-controls-bottom,0px) + 50px);transform:translateX(-50%);max-width:100%;width:max-content;padding:6px 12px;flex-direction:row;align-items:center;gap:8px}
 .contest-gallery-caption{bottom:calc(var(--image-bottom,0px) + 8px)}
}
