/* Mobile-first refinements layered over the main POVents design. */
html,body{max-width:100%;overflow-x:hidden}
button,.button,input{min-height:44px}
.gallery{columns:unset;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.gallery .shot{margin:0}
.gallery .shot{position:relative}
.gallery .shot img{width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;border-radius:13px;transition:transform .2s ease,filter .2s ease}
.gallery .shot a:hover img{transform:scale(1.025);filter:brightness(.92)}
.gallery .shot.is-selected img{outline:4px solid #dff25f;outline-offset:-4px;filter:brightness(.8)}
.gallery-toolbar{display:flex;align-items:center;gap:14px;margin:0 0 16px;padding:14px 16px;background:#fffdf8;border:1px solid #d9ddd4;border-radius:16px}
.gallery-toolbar label{display:flex;align-items:center;gap:7px;font-weight:750}
.gallery-toolbar input[type="checkbox"]{min-height:0;width:18px;height:18px;accent-color:#245b45}
.gallery-toolbar [data-selected]{color:#64716b;margin-right:auto}
.gallery-toolbar button{padding:10px 17px}
.gallery-toolbar .album-create{padding:10px 17px;white-space:nowrap;background:#fffdf8;color:#17231f;border:1px solid #d9ddd4}
.gallery-toolbar .album-share{padding:10px 17px;white-space:nowrap;background:#fffdf8;color:#17231f;border:1px solid #d9ddd4}
.gallery-pagination{display:flex;align-items:center;justify-content:center;gap:14px;margin:20px 0 0}.gallery-pagination button{padding:10px 16px;background:#fffdf8;color:#17231f;border:1px solid #d9ddd4}.gallery-pagination span{min-width:110px;text-align:center;color:#64716b;font-size:14px;font-weight:700}.gallery-pagination button:disabled{opacity:.4}
.photo-select{position:absolute;z-index:3;top:8px;left:8px;width:30px;height:30px;border-radius:50%;background:#ffffffdd;display:grid;place-items:center;cursor:pointer;box-shadow:0 3px 12px #0003}
.photo-select input{position:absolute;opacity:0;pointer-events:none}
.photo-select span{color:#245b45;font-weight:900;opacity:0}
.shot.is-selected .photo-select{background:#dff25f}.shot.is-selected .photo-select span{opacity:1}
.photo-delete{position:absolute;z-index:3;top:8px;right:8px;margin:0}
.photo-delete button{width:32px;height:32px;min-width:32px;min-height:32px;padding:0;border:2px solid #fff;border-radius:999px;background:#a53838;color:#fff;font-size:23px;line-height:1;box-shadow:0 3px 12px #0005}
.photo-delete button:hover{background:#7f2020}
.delete-modal{position:fixed;z-index:2100;inset:0;display:grid;place-items:center;padding:18px;background:#03100cdb;backdrop-filter:blur(10px)}
.delete-modal[hidden]{display:none}
.delete-modal__panel{width:min(520px,100%);overflow:hidden;background:#fffdf8;color:#17231f;border:1px solid #d9ddd4;border-radius:24px;box-shadow:0 28px 100px #000a}
.delete-modal__preview{display:block;width:100%;height:min(38vh,280px);object-fit:cover;background:#d9ddd4}
.delete-modal__content{padding:22px}.delete-modal__content h2{font-family:Georgia,serif;font-size:34px;margin:7px 0 9px}.delete-modal__content p{margin:0;color:#64716b;line-height:1.55}
.delete-modal__error{margin-top:13px!important;padding:10px 12px;border-radius:10px;background:#fde8e5;color:#a53838!important;font-weight:700}
.delete-modal__actions{display:grid;grid-template-columns:1fr 1.35fr;gap:10px;margin-top:22px}.delete-modal__actions button{width:100%}.delete-modal__confirm{background:#a53838}.delete-modal__confirm:hover{background:#7f2020}
.album-modal{position:fixed;z-index:2100;inset:0;display:grid;place-items:center;padding:18px;background:#03100cdb;backdrop-filter:blur(10px)}.album-modal[hidden]{display:none}
.album-modal__panel{width:min(620px,100%);max-height:94vh;overflow:auto;background:#fffdf8;color:#17231f;border:1px solid #d9ddd4;border-radius:24px;box-shadow:0 28px 100px #000a}
.album-modal__cover{height:min(34vh,240px);display:grid;place-items:center;overflow:hidden;background:linear-gradient(145deg,#113f31,#071c16)}.album-modal__cover>img{width:100%;height:100%;object-fit:cover}.album-modal__cover [data-album-placeholder]{display:grid;place-items:center;gap:8px;color:#fff;font-weight:750}.album-modal__cover [data-album-placeholder] img{width:min(240px,60%);height:auto}
.album-modal__content{padding:22px}.album-modal__content h2{font-family:Georgia,serif;font-size:36px;margin:7px 0 9px}.album-modal__content>p{color:#64716b;line-height:1.55}.album-modal__picker{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:18px;padding:12px 14px;border:1px solid #d9ddd4;border-radius:12px;font-weight:750}.album-modal__picker input{max-width:58%;min-height:0}.album-modal__content small{display:block;margin-top:7px;color:#64716b}.album-modal__error{padding:10px 12px;border-radius:10px;background:#fde8e5;color:#a53838!important;font-weight:700}.album-modal__actions{display:grid;grid-template-columns:1fr 1.45fr;gap:10px;margin-top:22px}.album-modal__actions button{width:100%}
.photo-modal{position:fixed;inset:0;z-index:1000;display:grid;grid-template-columns:72px minmax(0,1fr) 72px;align-items:center;background:rgba(4,9,7,.95);padding:24px;color:#fff}
.photo-modal[hidden]{display:none}
.photo-modal__stage{height:calc(100vh - 48px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-width:0}
.photo-modal__image{display:block;max-width:100%;max-height:calc(100vh - 120px);object-fit:contain;border-radius:12px;box-shadow:0 24px 80px #000}
.photo-modal__nav,.photo-modal__close{border:0;background:#ffffff20;color:#fff;width:52px;height:52px;padding:0;font-size:30px;border-radius:50%}
.photo-modal__nav:hover,.photo-modal__close:hover{background:#ffffff38}
.photo-modal__close{position:absolute;right:20px;top:20px;z-index:2;font-size:25px}
.photo-modal__meta{display:flex;align-items:center;gap:14px;font-size:13px;color:#cbd4cf}
.photo-modal__download{color:#17231f;background:#dff25f;padding:8px 14px;border-radius:999px;text-decoration:none;font-weight:800}
.capture-review{position:absolute;z-index:4;left:16px;right:16px;bottom:18px;display:grid;grid-template-columns:1fr 1.4fr;gap:10px;padding:10px;background:#07100dcc;border:1px solid #ffffff2b;border-radius:18px;backdrop-filter:blur(10px)}
.capture-review[hidden]{display:none}
.capture-review button{border-radius:13px;background:#ffffff25;color:#fff}
.capture-review [data-approve]{background:#dff25f;color:#17231f}
.capture-review [data-caption]{grid-column:1/-1;width:100%;border:1px solid #ffffff30;background:#ffffff18;color:#fff;border-radius:12px;padding:11px 13px;font:inherit}
.capture-review [data-caption]::placeholder{color:#ffffff9c}
.watermark-preview{position:absolute;z-index:3;left:0;right:0;bottom:115px;padding:13px 20px;background:#040c09a3;color:#fff;font-weight:800;text-shadow:0 1px 3px #000;pointer-events:none}
.watermark-preview[hidden]{display:none}
.brand{display:inline-flex;align-items:center;text-decoration:none;line-height:1}
.brand img{display:block;width:148px;max-width:38vw;height:auto}
.camera-top .brand img{width:116px;filter:drop-shadow(0 1px 1px #fff8)}
.watermark-preview{display:flex;align-items:center;gap:14px}
.watermark-preview img{display:block;width:min(160px,42%);height:auto;filter:drop-shadow(0 1px 1px #fff)}
.watermark-preview span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.message-logo{display:block;width:min(220px,65%);height:auto;margin:0 auto 28px}
.footer-logo{display:inline-block;width:120px;height:auto;vertical-align:middle;margin-right:12px}
.event-downloads{display:flex;flex-wrap:wrap;gap:8px}
.presentation-qr-preview{aspect-ratio:16/9;height:auto;min-height:220px}.presentation-qr-preview>img{width:100%;height:100%;object-fit:cover}.presentation-qr-preview [data-qr-placeholder]{display:grid;place-items:center;gap:10px;color:#fff;font-weight:750}.presentation-qr-preview [data-qr-placeholder] img{width:min(260px,65%);height:auto}
.guest-consent{position:fixed;z-index:2000;inset:0;display:grid;place-items:center;padding:18px;background:#03100cdb;backdrop-filter:blur(12px);color:#17231f}
.guest-consent__panel{width:min(720px,100%);max-height:min(90vh,850px);display:flex;flex-direction:column;background:#fffdf8;border:1px solid #d9ddd4;border-radius:24px;box-shadow:0 28px 100px #000a;overflow:hidden}
.guest-consent__head{padding:22px 24px 15px;border-bottom:1px solid #e1e3dc}.guest-consent__head img{display:block;width:150px;height:auto;margin-bottom:14px}.guest-consent__head h1{font-family:Georgia,serif;font-size:34px;letter-spacing:-1px;margin:0 0 6px}.guest-consent__head p{margin:0;color:#64716b}
.guest-consent__terms{padding:18px 24px;overflow:auto;line-height:1.55;font-size:14px}.guest-consent__terms h2{font-size:17px;margin:20px 0 7px}.guest-consent__terms h2:first-child{margin-top:0}.guest-consent__terms p,.guest-consent__terms li{color:#46534d}.guest-consent__terms ul{padding-left:21px}.guest-consent__terms strong{color:#17231f}
.guest-consent__actions{padding:15px 24px 20px;border-top:1px solid #e1e3dc;background:#f7f4ed}.guest-consent__check{display:flex;align-items:flex-start;gap:10px;font-size:14px;font-weight:700;line-height:1.4;margin-bottom:13px}.guest-consent__check input{width:20px;height:20px;min-height:0;flex:0 0 auto;accent-color:#245b45}.guest-consent__buttons{display:grid;grid-template-columns:auto 1fr;gap:10px}.guest-consent__leave{background:#fff;color:#17231f;border:1px solid #d9ddd4}
@media(max-width:600px){.guest-consent{padding:8px}.guest-consent__panel{max-height:96vh;border-radius:18px}.guest-consent__head{padding:16px 17px 12px}.guest-consent__head img{width:120px;margin-bottom:9px}.guest-consent__head h1{font-size:27px}.guest-consent__terms{padding:14px 17px;font-size:13px}.guest-consent__actions{padding:12px 17px 15px}.guest-consent__buttons{grid-template-columns:1fr}.guest-consent__buttons button{width:100%}}

@media (max-width:760px){
  .shell{width:calc(100% - 24px)}
  .nav{padding:14px 0}
  .brand{font-size:19px}
  .navlinks{gap:8px}
  .navlinks .button{padding:10px 14px}

  .hero{padding:38px 0 64px;gap:28px}
  .hero h1{font-size:clamp(46px,16vw,68px);line-height:.94;margin:14px 0 20px}
  .lead{font-size:17px;line-height:1.55}
  .hero>div:first-child>div:last-child{flex-wrap:wrap}
  .hero>div:first-child .button{flex:1;min-width:145px}
  .hero-card{padding:18px;border-radius:24px}
  .photo-stack{height:300px}
  .mini-stat strong{font-size:24px}

  .section{padding:52px 0}
  .section h2{font-size:36px;line-height:1.05}
  .section-head{gap:8px;margin-bottom:22px}
  .feature,.card{padding:20px;border-radius:19px}

  .auth-wrap{display:block;min-height:auto;padding:28px 0 56px}
  .auth{width:100%}
  .auth h1{font-size:42px;line-height:1;margin:14px 0 22px}
  .field input{font-size:16px}

  .dash-head{padding:30px 0 20px;gap:18px}
  .dash-head h1{font-size:42px;line-height:1}
  .dash-head>.button{width:100%}
  .stats{grid-template-columns:1fr 1fr}
  .stat{padding:17px;border-radius:16px}
  .stat:last-child{grid-column:1/-1}
  .stat strong{font-size:27px}
  .event-row{padding:17px}
  .event-row strong{justify-self:start}

  .qr-panel{gap:20px;text-align:center}
  .qr-panel img{margin:auto}
  .qr-panel h2{font-size:30px;line-height:1.08}
  .copyline{display:grid;grid-template-columns:1fr}
  .copyline input{width:100%;font-size:13px}
  .copyline button{width:100%}

  .gallery{columns:unset;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .gallery-toolbar{display:grid;grid-template-columns:1fr auto;gap:10px}
  .gallery-toolbar [data-selected]{margin:0;text-align:right}
  .gallery-toolbar button,.gallery-toolbar .album-download,.gallery-toolbar .album-share{grid-column:auto;width:100%}
  .gallery-pagination{gap:8px}.gallery-pagination button{padding:9px 12px}.gallery-pagination span{min-width:90px;font-size:13px}
  .shot{margin:0}
  .shot img{height:190px;object-fit:cover;border-radius:13px}

  .camera-shell{padding:12px}
  .camera{border-radius:22px;max-height:72vh}
  .camera-controls{bottom:16px}
  .shutter{width:68px;height:68px}
  .strip{grid-template-columns:repeat(3,minmax(0,1fr))!important}

  a.button[style*="position:fixed"]{right:12px!important;bottom:12px!important;padding:12px 16px}
  .photo-modal{grid-template-columns:48px minmax(0,1fr) 48px;padding:12px}
  .photo-modal__stage{height:calc(100vh - 24px)}
  .photo-modal__image{max-height:calc(100vh - 100px)}
  .photo-modal__nav{width:42px;height:42px;font-size:24px}
  .photo-modal__close{right:12px;top:12px;width:44px;height:44px}
}

@media (max-width:390px){
  .stats{grid-template-columns:1fr}
  .stat:last-child{grid-column:auto}
  .gallery{grid-template-columns:1fr 1fr}
  .shot img{height:150px}
  .auth h1,.dash-head h1{font-size:38px}
}
