/* SK VASRA Current Project: three linked service cards and responsive child page. */
.current-project-section{margin:0 0 20px;padding:22px;background:#fff;border:1px solid #e3eaf5;border-radius:18px}
.current-project-section .current-project-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:17px}
.current-project-heading h2{font:800 20px/1.3 Manrope,sans-serif;color:#16355f;margin:0 0 5px}
.current-project-heading p{margin:0;color:#617b9c;font-size:12px;line-height:1.55}
.current-project-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.current-project-card{display:flex;flex-direction:column;overflow:hidden;min-width:0;border:1px solid #dce6f4;border-radius:15px;text-decoration:none;background:#fff;transition:transform .18s,border-color .18s,box-shadow .18s}
.current-project-card:hover,.current-project-card:focus-visible{transform:translateY(-2px);border-color:#7baced;box-shadow:0 10px 25px #122c5020;outline-offset:2px}
.current-project-cover{position:relative;display:block;aspect-ratio:16/9;background:#173f6f;overflow:hidden}
.current-project-cover img{width:100%;height:100%;object-fit:cover;display:block}
.current-project-image-tag{position:absolute;bottom:12px;left:12px;background:#082e5cde;color:white;padding:6px 9px;border-radius:6px;font:800 10px Arial,sans-serif;letter-spacing:.09em}
.current-project-card-body{display:flex;flex:1;flex-direction:column;padding:16px;gap:9px}
.current-project-card-body>strong{font:800 15px/1.4 Manrope,sans-serif;color:#143461;overflow-wrap:anywhere}
.current-project-card-body>span:nth-child(2){font-size:12px;line-height:1.6;color:#627897}
.current-project-open{margin-top:auto;color:#075dca;font:800 12px/1.5 Arial,sans-serif;padding-top:8px}
.current-project-open span{margin-left:4px}
.current-project-detail-wrap{padding:0 0 20px}
.current-project-detail{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);background:#fff;border:1px solid #dce8f5;overflow:hidden;border-radius:20px;min-height:430px}
.current-project-detail-image{background:#143965;min-width:0;min-height:360px}
.current-project-detail-image img{width:100%;height:100%;max-height:620px;min-height:360px;display:block;object-fit:cover}
.current-project-detail-copy{padding:clamp(21px,3vw,42px);min-width:0;display:flex;flex-direction:column;align-items:flex-start}
.current-project-eyebrow{font:700 10px Arial,sans-serif;color:#3970b6;letter-spacing:.13em}
.current-project-detail-copy h1{font:800 clamp(27px,3vw,45px)/1.18 Manrope,sans-serif;color:#12335b;margin:14px 0 25px;overflow-wrap:anywhere}
.current-project-detail-copy h2{font:800 17px Manrope,sans-serif;color:#143d6c;margin:0 0 10px}
.current-project-detail-copy>p{white-space:pre-wrap;color:#4b6484;font-size:14px;line-height:1.9;margin:0 0 22px}
.current-project-service-cta{background:#f2f7ff;border:1px solid #d4e3f5;padding:18px;border-radius:14px;display:grid;gap:10px;width:100%;box-sizing:border-box}
.current-project-service-cta strong{font-size:13px;color:#183f70}
.current-project-service-cta>span{font-size:12px;color:#516b89;line-height:1.7}
.current-project-cta-link{display:flex;justify-content:space-between;align-items:center;background:#235cb2;color:#fff;text-decoration:none;border-radius:10px;padding:13px 16px;font:800 12px Arial,sans-serif}
.current-project-cta-link:hover{background:#154a9d}
.current-project-return{margin-top:18px;font-size:12px;font-weight:700;color:#1a61bc}
.current-project-notfound{padding:36px;background:#fff;border-radius:14px}
.current-project-admin-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-top:15px}
.current-project-admin-card{overflow:hidden;border-radius:14px;background:#fff;border:1px solid #d5e2f2;min-width:0}
.current-project-admin-image{aspect-ratio:16/9;background:#143e70}
.current-project-admin-image img{width:100%;height:100%;object-fit:cover;display:block}
.current-project-admin-card form{padding:17px;display:flex;flex-direction:column;gap:11px}
.current-project-admin-card h3{font:800 14px/1.4 Manrope,sans-serif;color:#15365e;margin:0}
.current-project-admin-card label:not(.current-project-upload){font-size:12px;color:#315881;font-weight:700}
.current-project-admin-card textarea{box-sizing:border-box;resize:vertical;width:100%;min-height:125px;padding:10px;border:1px solid #aec5e4;border-radius:9px;color:#162d50;background:#fff;font:12px/1.6 Arial,sans-serif}
.current-project-admin-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.current-project-admin-actions button,.current-project-upload{display:inline-flex;align-items:center;justify-content:center;min-height:39px;padding:10px 13px;border-radius:9px;font-size:12px;cursor:pointer}
.current-project-upload{background:#e9f2ff;border:1px solid #acc5e8;color:#164d94;font-weight:750}
.current-project-upload input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.current-project-admin-actions>a{color:#1b5aae;font-size:12px;font-weight:700}
.current-project-admin-card small{font-size:11px;color:#68809b;line-height:1.6}
#current-project-admin-status{color:#3b5d84;font-size:12px;margin:8px 0}
body[data-theme="dark"] .current-project-admin-card,body[data-theme="dark"] .current-project-section,body[data-theme="dark"] .current-project-card,body[data-theme="dark"] .current-project-detail{background:#162a46;border-color:#365270}
body[data-theme="dark"] .current-project-admin-card h3,body[data-theme="dark"] .current-project-card-body>strong,body[data-theme="dark"] .current-project-heading h2,body[data-theme="dark"] .current-project-detail-copy h1,body[data-theme="dark"] .current-project-detail-copy h2{color:#e5f0ff}
body[data-theme="dark"] .current-project-admin-card textarea{background:#102039;border-color:#456b94;color:#fff}
body[data-theme="dark"] .current-project-card-body>span:nth-child(2),body[data-theme="dark"] .current-project-detail-copy>p{color:#c5d7ef}
@media(max-width:1050px){.current-project-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.current-project-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.current-project-detail{grid-template-columns:1fr}.current-project-detail-image,.current-project-detail-image img{min-height:0;max-height:390px;aspect-ratio:16/9}}
@media(max-width:650px){.current-project-section{padding:14px}.current-project-cards,.current-project-admin-grid{grid-template-columns:1fr}.current-project-detail-copy{padding:22px}.current-project-detail-copy h1{font-size:29px}.current-project-cover{aspect-ratio:16/9}.current-project-heading h2{font-size:18px}}


/* 2026-10-29: Open a child view OVER the homepage (not a separate fullscreen page).
   Keep the page behind it softly blurred; preserve complete vertical service posters. */
.current-project-modal{
 position:fixed;inset:0;box-sizing:border-box;
 width:min(1140px,calc(100vw - 44px));max-width:none;max-height:min(91dvh,880px);
 margin:auto;padding:0;border:0;border-radius:22px;background:transparent;
 box-shadow:0 28px 80px rgba(4,15,34,.36);overflow:visible;
}
.current-project-modal::backdrop,.current-project-preview-dialog::backdrop{
 background:rgba(8,24,47,.57);-webkit-backdrop-filter:blur(9px);backdrop-filter:blur(9px);
}
body.current-project-modal-open{overflow:hidden}
.current-project-modal-shell{position:relative;width:100%;max-height:min(91dvh,880px)}
.current-project-modal .current-project-detail{
 display:grid;grid-template-columns:minmax(0,.94fr) minmax(0,1fr);
 max-height:min(91dvh,880px);min-height:0;overflow:auto;overscroll-behavior:contain;
 border-radius:21px;background:#fff;align-items:start;
}
.current-project-modal-close{
 position:absolute;z-index:5;top:13px;right:13px;display:grid;place-items:center;
 width:40px;height:40px;padding:0;border:1px solid #d3e0f1;border-radius:50%;
 background:rgba(255,255,255,.98);color:#173965;box-shadow:0 3px 12px #14305028;
 cursor:pointer;font:400 27px/1 Arial,sans-serif;
}
.current-project-modal-close:hover,.current-project-modal-close:focus-visible{background:#eaf3ff;outline:2px solid #3174ce;outline-offset:2px}
.current-project-modal .current-project-detail-image{
 align-self:stretch;display:grid;place-items:center;position:sticky;top:0;
 min-height:0;height:min(86dvh,820px);padding:12px;box-sizing:border-box;
 background:#e9f1fc;overflow:hidden;
}
.current-project-modal .current-project-detail-image img{
 display:block;width:100%;height:100%;min-height:0;max-height:none;
 object-fit:contain;object-position:center;border-radius:10px;
}
.current-project-modal .current-project-detail-copy{
 min-width:0;align-self:start;box-sizing:border-box;
 padding:clamp(24px,3vw,40px);padding-right:clamp(28px,4vw,54px);
}
.current-project-modal .current-project-detail-copy h1{font-size:clamp(24px,2.6vw,38px);margin-bottom:24px;padding-right:28px}
.current-project-modal .current-project-long-summary{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75}
.current-project-modal .current-project-service-cta{margin-top:12px}

/* Posters are portrait originals: never crop dates, captions, branding or QR codes. */
.current-project-cover{aspect-ratio:4/3;background:#edf3fc}
.current-project-cover img{object-fit:contain;object-position:center}
.current-project-admin-image{aspect-ratio:auto;height:clamp(300px,27vw,430px);background:#eef3fa}
.current-project-image-preview{
 position:relative;display:block;width:100%;height:100%;padding:8px;border:0;
 border-radius:0;overflow:hidden;background:transparent;cursor:zoom-in;
}
.current-project-image-preview img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.current-project-image-preview>span{
 position:absolute;bottom:9px;left:50%;transform:translateX(-50%);
 white-space:nowrap;background:rgba(9,34,67,.88);color:#fff;
 border-radius:6px;font:700 10px Arial,sans-serif;padding:6px 10px;
}
.current-project-char-count{display:block;text-align:right;font-size:11px;color:#61799a}
.current-project-admin-actions{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;
 align-items:stretch;width:100%;
}
.current-project-admin-actions>button,
.current-project-admin-actions>.current-project-upload,
.current-project-admin-actions>a{
 box-sizing:border-box;width:100%;min-width:0;min-height:45px;
 padding:9px 11px;margin:0;display:flex;align-items:center;justify-content:center;
 text-align:center;line-height:1.35;font:700 11.5px/1.35 Arial,sans-serif;
 border-radius:9px;white-space:normal;
}
.current-project-admin-actions>a{
 grid-column:1/-1;background:#f1f6ff;color:#1555a5;text-decoration:none;
 border:1px solid #c3d6ef;
}
.current-project-admin-actions>a:hover{background:#e3efff}
.current-project-upload{position:relative}
.current-project-preview-dialog{
 position:fixed;inset:0;width:min(760px,calc(100vw - 32px));max-width:none;
 max-height:92dvh;box-sizing:border-box;margin:auto;padding:12px;
 border:1px solid #ccd9ef;border-radius:16px;background:#f1f6fd;
 box-shadow:0 22px 70px #04152a75;overflow:visible;
}
.current-project-preview-inner{position:relative;display:grid;place-items:center;max-height:calc(92dvh - 26px)}
.current-project-preview-inner>img{max-height:calc(92dvh - 28px);max-width:100%;height:auto;width:auto;object-fit:contain}
.current-project-preview-dialog .current-project-modal-close{right:8px;top:8px}
body[data-theme="dark"] .current-project-modal .current-project-detail,
body[data-theme="dark"] .current-project-preview-dialog{background:#182e4a;border-color:#385779}
body[data-theme="dark"] .current-project-modal .current-project-detail-image,
body[data-theme="dark"] .current-project-admin-image{background:#213d60}
body[data-theme="dark"] .current-project-service-cta{background:#213b5f;border-color:#3c5e8a}
body[data-theme="dark"] .current-project-service-cta strong,
body[data-theme="dark"] .current-project-service-cta>span{color:#d9e9ff}
body[data-theme="dark"] .current-project-char-count{color:#bed4f0}
body[data-theme="dark"] .current-project-admin-actions>a{background:#25476c;color:#e5f2ff;border-color:#456890}
@media(max-width:800px){
 .current-project-modal{width:min(690px,calc(100vw - 24px));max-height:94dvh;border-radius:17px}
 .current-project-modal-shell{max-height:94dvh}
 .current-project-modal .current-project-detail{grid-template-columns:1fr;max-height:94dvh;border-radius:17px}
 .current-project-modal .current-project-detail-image{position:relative;height:auto;max-height:53dvh;padding:10px}
 .current-project-modal .current-project-detail-image img{height:auto;max-height:calc(53dvh - 20px);object-fit:contain}
 .current-project-modal .current-project-detail-copy{padding:22px}
 .current-project-modal .current-project-detail-copy h1{font-size:clamp(22px,5vw,31px)}
}
@media(max-width:480px){
 .current-project-modal{width:calc(100vw - 14px);max-height:96dvh}
 .current-project-modal-shell{max-height:96dvh}
 .current-project-modal .current-project-detail{max-height:96dvh}
 .current-project-modal .current-project-detail-image{max-height:48dvh}
 .current-project-modal .current-project-detail-image img{max-height:calc(48dvh - 18px)}
 .current-project-modal-close{top:8px;right:8px;width:37px;height:37px}
 .current-project-modal .current-project-detail-copy{padding:18px}
 .current-project-admin-image{height:380px}
 .current-project-admin-actions{gap:7px}
 .current-project-admin-actions>button,.current-project-admin-actions>.current-project-upload,.current-project-admin-actions>a{font-size:11px}
}
@media(prefers-reduced-motion:reduce){
 .current-project-card{transition:none}
}


/* 2026-10-29: mobile device fixes for Current Project sheets and chairman form. */
/* In a phone viewport, contain the modal itself; only its interior should scroll. */
.current-project-section,.current-project-cards,.current-project-admin-grid,
.current-project-card,.current-project-admin-card,.current-project-detail,
.current-project-detail-copy,.current-project-modal-shell{min-width:0;box-sizing:border-box}
.current-project-card-body>strong,.current-project-detail-copy h1,
.current-project-admin-card h3,.current-project-service-cta{overflow-wrap:anywhere}
.current-project-modal .current-project-detail-copy>p{overflow-wrap:anywhere;word-break:normal}
.current-project-modal .current-project-detail-copy .current-project-service-cta{
 position:relative;min-width:0;max-width:100%;box-sizing:border-box
}
/* Full-image tap target gives mobile users a readable poster instead of a cropped thumbnail. */
.current-project-poster-open{display:block;width:100%;height:100%;padding:0;margin:0;border:0;background:transparent;cursor:zoom-in}
.current-project-poster-open img{width:100%;height:100%;object-fit:contain;object-position:center}
.current-project-poster-open:focus-visible{outline:3px solid #81b5ff;outline-offset:-4px}
.current-project-poster-hint{
 position:absolute;left:50%;bottom:14px;transform:translateX(-50%);
 z-index:2;color:#fff;background:rgba(11,40,76,.88);
 padding:7px 12px;border-radius:50px;white-space:nowrap;
 font:700 11px/1.3 Arial,sans-serif;pointer-events:none
}
/* Allow iOS Safari and Android Chrome to tap the file picker across the WHOLE button.
   Do not shrink the actual input to a 1px non-pointer target. */
.current-project-admin-actions .current-project-upload{position:relative;overflow:hidden;cursor:pointer}
.current-project-admin-actions .current-project-upload input[type="file"]{
 position:absolute;inset:0;width:100%;height:100%;max-width:none;
 margin:0;padding:0;opacity:0;pointer-events:auto;cursor:pointer;
 font-size:16px;z-index:1
}
.current-project-admin-actions .current-project-upload:focus-within{
 outline:3px solid #91b8f1;outline-offset:2px
}
/* No accidental text overlap or side-scrolling in the chairman workspace. */
#panel-current-projects,#current-project-admin,#panel-current-projects .panel-heading,
#panel-current-projects .current-project-admin-card form{min-width:0;max-width:100%;box-sizing:border-box}
#panel-current-projects .current-project-admin-card textarea{font-size:16px;line-height:1.55}
#panel-current-projects .current-project-admin-actions>button,
#panel-current-projects .current-project-admin-actions>.current-project-upload,
#panel-current-projects .current-project-admin-actions>a{
 touch-action:manipulation;min-height:46px;max-width:100%;min-width:0;line-height:1.35
}
#panel-current-projects .current-project-admin-image{overflow:hidden}
#panel-current-projects .current-project-admin-image img{object-fit:contain;object-position:center}
/* Native dialog has its own top layer; keep poster preview scrollable on phones. */
.current-project-preview-dialog,.current-project-poster-dialog{
 box-sizing:border-box;max-width:calc(100vw - 18px);max-height:calc(100vh - 18px);
 max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 18px);
 margin:auto;overflow:hidden;border:1px solid #c7d8eb;border-radius:16px;
 background:#eef5ff;box-shadow:0 24px 70px #02142d66
}
.current-project-poster-dialog{
 position:fixed;inset:0;width:min(770px,calc(100vw - 18px));padding:12px
}
.current-project-poster-dialog::backdrop{
 background:rgba(5,19,41,.78);backdrop-filter:blur(7px);
 -webkit-backdrop-filter:blur(7px)
}
.current-project-poster-inner{
 position:relative;width:100%;height:100%;max-height:calc(100dvh - 52px);
 display:flex;justify-content:center;align-items:center;overflow:auto;
 overscroll-behavior:contain;-webkit-overflow-scrolling:touch
}
.current-project-poster-inner img{
 display:block;object-fit:contain;max-width:100%;
 max-height:calc(100dvh - 58px);height:auto;width:auto
}
.current-project-poster-dialog .current-project-modal-close{top:8px;right:8px}
/* The sticky mobile navigation must never cover an open native top-layer dialog. */
@media(max-width:850px){
 .current-project-modal{
  inset:0;width:calc(100vw - 20px);max-width:690px;
  height:calc(100vh - 24px);height:calc(100dvh - 24px);
  max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 18px);
  margin:auto;padding:0;border-radius:18px;background:#fff;overflow:hidden
 }
 .current-project-modal-shell{height:100%;min-height:0;max-height:none;overflow:hidden}
 .current-project-modal .current-project-detail{
  display:block;height:100%;min-height:0;max-height:none;
  padding:0 0 calc(24px + env(safe-area-inset-bottom));
  overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;border:0;border-radius:18px
 }
 .current-project-modal .current-project-detail-image{
  position:relative;top:auto;width:100%;height:clamp(220px,43dvh,390px);
  min-height:0;max-height:none;padding:12px 18px;
  display:flex;align-items:center;justify-content:center;background:#e8f1fd
 }
 .current-project-modal .current-project-detail-image img{
  display:block;max-height:100%;height:100%;width:100%;max-width:100%;
  min-height:0;object-fit:contain;object-position:center
 }
 .current-project-modal .current-project-detail-copy{
  width:100%;min-width:0;padding:20px 22px calc(20px + env(safe-area-inset-bottom))
 }
 .current-project-modal .current-project-detail-copy h1{
  padding-right:0;margin:12px 0 20px;font-size:clamp(22px,4.6vw,31px);line-height:1.2
 }
 .current-project-modal .current-project-detail-copy>p{font-size:14px;line-height:1.7}
 .current-project-modal .current-project-service-cta{padding:15px;gap:10px}
 .current-project-modal-close{
  position:absolute;top:10px;right:10px;z-index:20;
  width:44px;height:44px;min-width:44px;min-height:44px;
  display:grid;place-items:center
 }
 .current-project-poster-hint{bottom:12px;font-size:10px}
 #panel-current-projects .panel-heading{
  display:flex;flex-wrap:wrap;gap:12px;align-items:flex-start
 }
 #panel-current-projects .panel-heading>div{flex:1 1 250px;min-width:0}
 #panel-current-projects .panel-heading>a{flex:0 1 auto;min-width:0}
}
/* Small Android devices and iPhones: no horizontal page scroll, no clipped buttons. */
@media(max-width:650px){
 .current-project-section{padding:14px;border-radius:15px;margin:0 0 16px}
 .current-project-section .current-project-heading{margin-bottom:13px}
 .current-project-section .current-project-heading h2{font-size:18px}
 .current-project-section .current-project-heading p{font-size:12px;line-height:1.55}
 .current-project-cards,.current-project-admin-grid{grid-template-columns:minmax(0,1fr)!important;gap:13px;width:100%}
 .current-project-card{width:100%;max-width:100%;border-radius:13px}
 .current-project-cover{height:auto;aspect-ratio:4/3;max-height:310px}
 .current-project-cover img{object-fit:contain;object-position:center}
 .current-project-card-body{padding:14px;gap:8px}
 .current-project-card-body>strong{font-size:14px}
 .current-project-card-body>span:nth-child(2){font-size:12px;line-height:1.6}
 .current-project-admin-card{width:100%;max-width:100%;border-radius:13px}
 #panel-current-projects .current-project-admin-image{
  width:100%;height:auto;min-height:290px;aspect-ratio:4/5;
  max-height:min(78dvh,520px);background:#ecf3fc
 }
 #panel-current-projects .current-project-image-preview{height:100%;min-height:0;padding:10px}
 #panel-current-projects .current-project-image-preview img{width:100%;height:100%;object-fit:contain}
 #panel-current-projects .current-project-admin-card form{padding:15px;gap:11px}
 #panel-current-projects .current-project-admin-card h3{font-size:14px;line-height:1.4}
 #panel-current-projects .current-project-admin-card textarea{
  display:block;width:100%;min-height:155px;padding:12px;font-size:16px
 }
 #panel-current-projects .current-project-admin-actions{
  display:grid;width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px
 }
 #panel-current-projects .current-project-admin-actions>a{grid-column:1/-1}
 #panel-current-projects .panel-heading{flex-direction:column;align-items:stretch}
 #panel-current-projects .panel-heading>a{width:100%;min-height:43px;display:flex;align-items:center;justify-content:center}
 .current-project-modal{width:calc(100vw - 12px);border-radius:15px}
 .current-project-modal .current-project-detail{border-radius:15px}
 .current-project-modal .current-project-detail-image{
  height:clamp(195px,41dvh,340px);padding:10px 14px
 }
 .current-project-modal .current-project-detail-copy{padding:17px 17px calc(24px + env(safe-area-inset-bottom))}
 .current-project-modal .current-project-detail-copy h1{font-size:clamp(20px,6vw,28px)}
 .current-project-service-cta>span{font-size:12px;line-height:1.65}
 .current-project-cta-link{min-height:46px;box-sizing:border-box;gap:8px;line-height:1.4;overflow-wrap:anywhere}
 .current-project-preview-dialog,.current-project-poster-dialog{width:calc(100vw - 14px);padding:8px}
 .current-project-preview-inner,.current-project-poster-inner{max-height:calc(100dvh - 38px)}
 .current-project-preview-inner>img,.current-project-poster-inner img{max-height:calc(100dvh - 42px)}
}
@media(max-width:380px){
 #panel-current-projects .current-project-admin-actions{grid-template-columns:minmax(0,1fr)}
 #panel-current-projects .current-project-admin-actions>a{grid-column:auto}
 .current-project-cover{max-height:250px}
 .current-project-modal .current-project-detail-copy{padding-inline:14px}
 .current-project-modal .current-project-detail-image{height:36dvh;min-height:170px}
}
/* Landscape phones have little vertical space; scroll the sheet instead of clipping it. */
@media(max-width:850px) and (max-height:500px) and (orientation:landscape){
 .current-project-modal{height:calc(100dvh - 12px);max-height:calc(100dvh - 12px)}
 .current-project-modal .current-project-detail-image{height:clamp(110px,31dvh,165px);min-height:0}
 .current-project-modal .current-project-detail-copy h1{font-size:23px}
}


/* Current Project v4: compact artwork, complete poster zoom, accessible touch targets. */
.current-project-section .current-project-cover{
 height:196px;max-height:none;aspect-ratio:auto;background:#eaf2fc;
}
.current-project-section .current-project-cover img{
 display:block;width:100%;height:100%;object-fit:contain;object-position:center;
}
.current-project-section .current-project-image-tag{
 left:10px;bottom:10px;max-width:calc(100% - 20px);
}
.current-project-section .current-project-card-body{padding:13px 14px;gap:7px}
.current-project-section .current-project-card-body>strong{font-size:13px;line-height:1.4}
.current-project-section .current-project-card-body>span:nth-child(2){
 font-size:12px;line-height:1.55;overflow-wrap:anywhere;
}
/* Keep the image a manageable preview until the visitor taps to enlarge it. */
.current-project-modal .current-project-detail-image{
 position:relative;top:auto;align-self:start;
 height:310px;min-height:0;max-height:none;overflow:hidden;
 padding:13px;display:flex;justify-content:center;align-items:center;
}
.current-project-modal .current-project-poster-open{
 display:flex;justify-content:center;align-items:center;
 width:100%;height:100%;min-width:0;min-height:0;touch-action:manipulation;
}
.current-project-modal .current-project-poster-open img{
 max-width:100%;max-height:100%;width:auto;height:auto;
 min-height:0;object-fit:contain;object-position:center;
}
/* Single-dialog zoom, rather than a second showModal which can fail in Safari. */
.current-project-modal .current-project-poster-zoom[hidden]{display:none!important}
.current-project-modal .current-project-poster-zoom{
 position:absolute;inset:0;z-index:30;
 box-sizing:border-box;display:flex;align-items:center;justify-content:center;
 min-width:0;min-height:0;padding:55px 18px 20px;
 border-radius:inherit;background:rgba(5,20,42,.96);
 overflow:hidden;overscroll-behavior:contain;
}
.current-project-modal .current-project-poster-zoom img{
 display:block;object-fit:contain;max-width:100%;max-height:100%;
 width:auto;height:auto;min-width:0;min-height:0;
}
.current-project-modal .current-project-poster-zoom .current-project-modal-close{
 top:12px;right:12px;z-index:35;
}
#panel-current-projects .current-project-admin-image{
 height:225px;min-height:0;max-height:none;aspect-ratio:auto;
 background:#eaf2fc;
}
#panel-current-projects .current-project-image-preview{
 height:100%;min-height:0;
}
#panel-current-projects .current-project-image-preview img{
 width:100%;height:100%;object-fit:contain;
}
@media(max-width:900px){
 .current-project-section .current-project-cover{height:185px;aspect-ratio:auto;max-height:none}
 .current-project-modal .current-project-detail-image{height:235px;min-height:0;max-height:none}
 #panel-current-projects .current-project-admin-image{height:225px;min-height:0;max-height:none;aspect-ratio:auto}
}
@media(max-width:650px){
 .current-project-section .current-project-cover{height:170px;aspect-ratio:auto;max-height:none}
 .current-project-section .current-project-card-body{padding:12px 13px}
 .current-project-modal .current-project-detail-image{height:205px;min-height:0;max-height:none}
 .current-project-modal .current-project-poster-zoom{
  inset:0;padding:calc(54px + env(safe-area-inset-top)) 10px calc(16px + env(safe-area-inset-bottom));
 }
 #panel-current-projects .current-project-admin-image{
  height:215px;min-height:0;max-height:none;aspect-ratio:auto;
 }
}
@media(max-width:380px){
 .current-project-section .current-project-cover{height:150px;max-height:none}
 .current-project-modal .current-project-detail-image{height:175px;min-height:0}
 #panel-current-projects .current-project-admin-image{height:195px;min-height:0;max-height:none}
}
@media(max-width:850px) and (max-height:500px) and (orientation:landscape){
 .current-project-modal .current-project-detail-image{height:125px;min-height:0}
}


/* 2026-10-29 desktop poster detail: balanced, fully visible portrait and scrollable copy. */
@media(min-width:901px){
 .current-project-modal{
  width:min(1060px,calc(100vw - 72px));
  max-height:min(88dvh,760px);
  overflow:hidden;
  border-radius:20px;
 }
 .current-project-modal-shell{max-height:min(88dvh,760px);overflow:hidden}
 .current-project-modal .current-project-detail{
  display:grid;
  grid-template-columns:minmax(285px,39%) minmax(0,1fr);
  align-items:start;
  width:100%;max-height:min(88dvh,760px);
  min-height:0;overflow-x:hidden;overflow-y:auto;
  border-radius:20px;
 }
 .current-project-modal .current-project-detail-image{
  position:sticky;top:0;align-self:start;
  box-sizing:border-box;width:100%;
  height:clamp(330px,63dvh,540px);
  min-height:0;max-height:none;
  overflow:hidden;padding:22px;
  display:flex;align-items:center;justify-content:center;
  background:#eaf2fc;
 }
 .current-project-modal .current-project-poster-open{
  width:100%;height:100%;min-width:0;min-height:0;
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
 }
 .current-project-modal .current-project-poster-open img{
  display:block;position:static;
  max-width:100%;max-height:100%;width:auto;height:auto;
  min-width:0;min-height:0;
  object-fit:contain!important;object-position:center;
  box-shadow:0 8px 22px rgba(21,52,99,.11);
  border-radius:7px;
 }
 .current-project-modal .current-project-detail-copy{
  width:100%;min-width:0;box-sizing:border-box;
  padding:36px 42px 32px 31px;
 }
 .current-project-modal .current-project-detail-copy h1{
  font-size:clamp(24px,2.4vw,35px);line-height:1.2;
  overflow-wrap:anywhere;
 }
 .current-project-modal .current-project-poster-hint{
  bottom:15px;font-size:11px;
 }
 .current-project-modal .current-project-poster-zoom{
  position:absolute;inset:0;z-index:30;
  max-width:100%;max-height:100%;
 }
 .current-project-modal .current-project-poster-zoom img{
  max-width:100%;max-height:100%;
  width:auto;height:auto;object-fit:contain!important;
 }
}
@media(min-width:901px) and (max-height:640px){
 .current-project-modal .current-project-detail-image{
  height:min(68dvh,390px);
 }
}
