/* TAMP FOREVER — Live Photo Wall V1.0 additive styles */
.photo-wall-toplinks{display:flex;justify-content:center;gap:20px;flex-wrap:wrap;margin-bottom:24px}
.photo-wall-toplinks a{color:#49627c;text-decoration:none;font-weight:700;font-size:14px}
.photo-wall-intro{text-align:center;padding-bottom:12px}
.photo-wall-intro span{font-size:10px;letter-spacing:.25em;color:#7c8fa9;font-weight:700}
.photo-wall-intro h2{font-size:clamp(22px,4vw,30px);line-height:1.4;color:#465f76;margin:8px 0}
.photo-wall-intro p{font-size:14px;color:#6a7888}
.photo-wall-selected{font-size:12px;color:#5c7081;overflow-wrap:anywhere;margin:5px 0 13px}
.photo-wall-progress{margin:15px 0}.photo-wall-track{height:9px;background:#e8eefa;border-radius:10px;overflow:hidden}
#photo-wall-progress-bar{height:100%;width:0;background:linear-gradient(90deg,#a6c7da,#d6afca,#c2b5e0);transition:width .2s}
#photo-wall-progress-label{font-size:12px;color:#516679}
.photo-wall-success,.photo-wall-error{padding:13px 15px;border-radius:13px;margin:13px 0;font-size:14px}
.photo-wall-success{background:#eaf7ef;color:#355e46}.photo-wall-error{background:#fff0ed;color:#8e4747}
#photo-wall-submit:disabled{opacity:.6;cursor:wait}.photo-wall-after{text-align:center;margin-top:26px}
/* Video/display wall is isolated from main-site styling. */
.tamp-wall-body{background:#152338;color:#fff;font-family:'IBM Plex Sans Thai',Tahoma,sans-serif;overflow:hidden}
.tamp-wall-app{height:100vh;height:100dvh;display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:radial-gradient(circle at 15% 15%,rgba(197,174,223,.20),transparent 33%),radial-gradient(circle at 90% 75%,rgba(154,190,221,.18),transparent 35%),#152338;padding:2.3vh 3.5vw;gap:1.4vh;position:relative}
.tamp-wall-header{display:flex;align-items:start;justify-content:space-between;gap:20px}
.tamp-wall-brand{font-family:Manrope,Arial,sans-serif;font-weight:800;letter-spacing:.13em;font-size:clamp(17px,2.2vw,34px);line-height:1.14}
.tamp-wall-brand span{font-weight:300}.tamp-wall-brand small{display:block;letter-spacing:.19em;color:#c8d0e7;font:600 clamp(8px,.8vw,11px)/2 'IBM Plex Sans Thai',Tahoma,sans-serif}
.tamp-wall-live{font:700 clamp(9px,1vw,15px) Manrope,Arial,sans-serif;white-space:nowrap;letter-spacing:.17em;background:rgba(255,255,255,.09);padding:12px 17px;border-radius:999px;color:#e9d3ea}
.tamp-wall-live>span{display:inline-block;width:8px;height:8px;background:#f1bdce;border-radius:50%;margin-right:8px;box-shadow:0 0 0 4px rgba(241,189,206,.15)}
.tamp-wall-stage{min-height:0;display:grid;place-items:center;overflow:hidden}
.tamp-wall-welcome{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:4vw;align-items:center;max-width:1100px;width:100%;height:100%;max-height:71vh}
.tamp-wall-welcome>img{max-height:100%;height:100%;min-width:0;max-width:100%;object-fit:contain;filter:drop-shadow(0 23px 36px rgba(0,0,0,.22));border-radius:16px}
.tamp-wall-welcome p{font-weight:700;letter-spacing:.22em;color:#f0bcd6;font-size:clamp(11px,1.1vw,18px)}
.tamp-wall-welcome h1{font:700 clamp(32px,4.7vw,76px)/1.13 Manrope,'IBM Plex Sans Thai',sans-serif;color:#fff;letter-spacing:-.04em;margin:.4em 0}
.tamp-wall-welcome span{color:#d5dff3;font-size:clamp(15px,1.6vw,26px)}
.tamp-wall-photo-stage{height:100%;width:100%;position:relative;display:grid;place-items:center}
.tamp-wall-photo-frame{height:100%;width:min(87vw,1250px);position:relative;border-radius:25px;overflow:hidden;background:#253449;box-shadow:0 25px 80px rgba(0,0,0,.27);display:grid;place-items:center}
.tamp-wall-blur{position:absolute;inset:-35px;background-size:cover;background-position:center;filter:blur(34px) brightness(.55);opacity:.6}
.tamp-wall-main-photo{position:relative;display:block;max-width:100%;width:100%;max-height:100%;height:100%;object-fit:contain}
.tamp-wall-caption{position:absolute;bottom:3.5%;left:50%;transform:translateX(-50%);max-width:80%;min-width:240px;padding:10px 25px;text-align:center;background:rgba(16,27,44,.82);border:1px solid rgba(255,255,255,.16);border-radius:18px;backdrop-filter:blur(14px);box-shadow:0 10px 40px rgba(0,0,0,.2)}
.tamp-wall-caption strong{color:#ffe1f2;font-size:clamp(16px,1.5vw,27px);line-height:1.2}.tamp-wall-caption p{margin:4px 0 0;color:#eff2fa;font-size:clamp(12px,1vw,19px);max-width:60ch;overflow-wrap:anywhere}
.tamp-wall-collage{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:1.1vw;width:100%;height:100%;padding:0 min(5vw,70px)}
.tamp-wall-collage-item{position:relative;min-width:0;min-height:0;overflow:hidden;background:#263a54;border:1px solid rgba(255,255,255,.11);border-radius:19px}
.tamp-wall-collage-item img{height:100%;width:100%;object-fit:contain}
.tamp-wall-collage-item span{position:absolute;bottom:10px;left:11px;right:11px;text-align:left;display:inline-block;width:max-content;max-width:80%;background:rgba(13,27,46,.78);border-radius:999px;padding:6px 12px;font-size:clamp(10px,1vw,16px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#ffe2ed}
.tamp-wall-wish{padding:5vh 6vw;text-align:center;max-width:1100px}
.tamp-wall-wish p{font-size:clamp(25px,4.4vw,74px);line-height:1.5;color:#fff7fd;font-weight:650;overflow-wrap:anywhere}
.tamp-wall-wish cite{font-size:clamp(16px,1.5vw,25px);font-style:normal;color:#eac3d8}
.tamp-wall-footer{display:flex;align-items:end;justify-content:space-between;gap:22px;min-height:84px}
.tamp-wall-status{display:grid;gap:5px;font:600 clamp(11px,1.3vw,17px) Manrope,Arial,sans-serif;letter-spacing:.03em;color:#f0d5eb}
.tamp-wall-status small{font:500 clamp(10px,.9vw,14px) Manrope,Arial,sans-serif;letter-spacing:.12em;color:#b3c6dc}
.tamp-wall-qr{display:flex;align-items:center;gap:13px;background:#fff;padding:8px 10px 8px 18px;border-radius:16px;color:#22354f}
.tamp-wall-qr b,.tamp-wall-qr small{display:block}.tamp-wall-qr b{font:800 clamp(11px,1vw,16px) Manrope,Arial,sans-serif;letter-spacing:.1em}.tamp-wall-qr small{font-size:clamp(10px,.85vw,14px)}
.tamp-wall-qr img{height:clamp(60px,9.5vh,110px);width:auto;aspect-ratio:1}
.tamp-wall-controls{position:absolute;top:0;left:50%;transform:translateX(-50%);display:flex;gap:8px;opacity:0;transition:opacity .2s;padding:6px 10px;background:rgba(15,30,52,.8);border-radius:0 0 12px 12px;z-index:10}
.tamp-wall-controls:hover,.tamp-wall-controls:focus-within{opacity:1}
.tamp-wall-controls button{border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.11);color:white;border-radius:9px;padding:7px 10px;cursor:pointer}
.tamp-wall-enter{animation:tampWallEnter .55s ease both}@keyframes tampWallEnter{from{opacity:.25;transform:scale(.984)}to{opacity:1;transform:none}}
@media(max-width:700px){.tamp-wall-app{padding:12px;gap:9px}.tamp-wall-welcome{grid-template-columns:1fr;gap:5px;text-align:center}.tamp-wall-welcome>img{height:auto;max-height:39vh;margin:auto}.tamp-wall-qr{padding:5px}.tamp-wall-qr>div{display:none}.tamp-wall-caption{max-width:96%;min-width:170px}.tamp-wall-footer{min-height:55px}.tamp-wall-collage{padding:0;gap:6px}.tamp-wall-collage-item{border-radius:8px}.tamp-wall-collage-item span{font-size:9px;padding:3px 5px;max-width:95%;left:5px;bottom:5px}.tamp-wall-qr img{height:60px}.tamp-wall-live{padding:8px}.tamp-wall-controls{opacity:.7;top:auto;bottom:15vh;left:12px;transform:none}}
@media(prefers-reduced-motion:reduce){.tamp-wall-enter{animation:none}}
.gallery-search{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:0 0 14px}.gallery-search label{flex:1;min-width:230px;margin:0}.gallery-search .btn{border:1px solid #bccbdb;cursor:pointer}
.gallery-result-count{font-size:13px;color:#64788d;margin:0 0 18px}.gallery-pagination{display:flex;gap:16px;justify-content:center;align-items:center;margin-top:34px;flex-wrap:wrap}.gallery-pagination a{color:#435d75;text-decoration:none;padding:9px 17px;border:1px solid #d5dfea;border-radius:12px}.gallery-pagination span{font-size:13px;color:#62798d}

.photo-wall-new{background:#ecf7f4;border-radius:13px;padding:12px 15px;margin-bottom:15px}.photo-wall-new[hidden]{display:none}.photo-wall-new a{color:#326c60;font-weight:700;text-decoration:none}

/*
 * TAMP LIVE PHOTO WALL V1.0.1 — DISPLAY FIT FIX
 * Keep portrait AND landscape images inside the actual visible stage.
 * Use an absolutely positioned image so its intrinsic size cannot enlarge
 * the CSS grid and get hidden behind the TV footer.
 */
.tamp-wall-app{
  width:100%;max-width:100vw;
  grid-template-rows:max-content minmax(0,1fr) max-content;
}
.tamp-wall-stage{
  position:relative;display:block;
  width:100%;height:100%;min-width:0;min-height:0;
  overflow:hidden;
}
.tamp-wall-photo-stage{
  position:absolute;inset:0;
  display:flex;flex-direction:column;align-items:center;
  min-width:0;min-height:0;
  gap:clamp(7px,1vh,14px);
  overflow:hidden;
}
.tamp-wall-photo-frame{
  display:block;position:relative;
  flex:1 1 0;height:auto;min-height:0;
  width:min(87vw,1250px);max-width:100%;
  overflow:hidden;
}
.tamp-wall-main-photo{
  position:absolute;inset:0;
  display:block;
  width:100%;height:100%;max-width:none;max-height:none;
  object-fit:contain;object-position:center;
}
.tamp-wall-caption{
  position:relative;bottom:auto;left:auto;transform:none;
  flex:0 0 auto;
  min-width:0;max-width:min(84vw,950px);
  padding:clamp(7px,1vh,12px) clamp(14px,1.5vw,24px);
  line-height:1.35;
}
/* Constrain the other TV modes to the same visible area. */
.tamp-wall-collage{
  position:absolute;inset:0;
  min-width:0;min-height:0;
}
.tamp-wall-collage-item img{
  position:absolute;inset:0;
  display:block;width:100%;height:100%;
  object-fit:contain;object-position:center;
}
.tamp-wall-welcome{
  position:absolute;inset:0;margin:auto;
  height:100%;max-height:100%;min-height:0;
}
.tamp-wall-welcome>img{min-height:0;object-fit:contain;}
.tamp-wall-wish{
  position:absolute;inset:0;max-width:none;min-width:0;
  display:flex;flex-direction:column;justify-content:center;align-items:center;
  overflow:hidden;
}
/* Small screens and low-height laptop displays. */
@media(max-width:700px){
  .tamp-wall-photo-frame{width:100%;border-radius:14px;}
  .tamp-wall-caption{max-width:96%;padding:7px 12px;}
  .tamp-wall-welcome{height:100%;}
}
@media(max-height:650px){
  .tamp-wall-app{padding-top:1vh;padding-bottom:1vh;gap:1vh;}
  .tamp-wall-footer{min-height:0;}
  .tamp-wall-qr img{height:clamp(46px,8vh,70px);}
  .tamp-wall-caption{padding:4px 12px;}
}


/* V1.0.3 — Guest-first Wedding Memories experience. */
.tamp-brand-with-cat{display:inline-flex;align-items:center;gap:10px;white-space:nowrap}
.tamp-brand-words{display:flex;flex-direction:column;align-items:flex-start}
.tamp-brand-with-cat img{width:46px;height:37px;object-fit:contain;opacity:.8;transition:transform .35s ease}
.tamp-brand-with-cat:hover img{transform:rotate(-5deg) scale(1.07)}
.tamp-two-features{grid-template-columns:repeat(2,minmax(0,1fr))}
.tamp-share-float{position:fixed;right:24px;bottom:24px;z-index:45;display:flex;align-items:center;justify-content:center;gap:10px;min-height:62px;max-width:min(90vw,330px);padding:12px 21px;border:1px solid rgba(255,255,255,.65);border-radius:999px;background:linear-gradient(110deg,#725a9a,#9373b6 48%,#7d9ebd);color:#fff;text-decoration:none;font-size:13px;font-weight:750;box-shadow:0 18px 42px rgba(112,85,149,.28),0 0 0 7px rgba(223,212,235,.2);animation:tampShareGlow 3.2s ease-in-out infinite;transition:transform .22s,filter .22s}
.tamp-share-float:hover{transform:translateY(-4px);filter:brightness(1.09)}
.tamp-share-float:focus-visible{outline:3px solid #4c658c;outline-offset:4px}
.tamp-share-float svg{width:23px;height:23px;flex-shrink:0}
@keyframes tampShareGlow{0%,100%{box-shadow:0 18px 42px rgba(112,85,149,.26),0 0 0 4px rgba(223,212,235,.2)}50%{box-shadow:0 18px 52px rgba(112,85,149,.44),0 0 0 13px rgba(223,212,235,.02)}}
.tamp-memories-hero{padding-top:60px!important;padding-bottom:32px!important}
.tamp-gallery-signature{display:flex;align-items:center;justify-content:center;gap:20px;margin:5px auto 0}
.tamp-gallery-signature h1{display:flex;align-items:baseline;gap:11px;font-size:clamp(36px,7vw,86px)!important;letter-spacing:-.07em!important;line-height:1.12!important;margin:0!important}
.tamp-gallery-signature h1 span{font-weight:800;color:#324a63}
.tamp-gallery-signature h1 em{font-style:normal;font-weight:300;background:linear-gradient(110deg,#708fa8,#a68bb4);-webkit-background-clip:text;background-clip:text;color:transparent}
.tamp-gallery-signature img{width:clamp(55px,8vw,88px);height:auto;animation:quincyFloat 6s ease-in-out infinite}
.tamp-memories-hero h2{font-size:clamp(23px,3.2vw,37px);color:#725d96;line-height:1.3;margin:12px 0 0}
.tamp-memories-hero>p:not(.eyebrow){margin:5px auto 12px;max-width:550px}
.tamp-gallery-primary{margin-top:12px}
.tamp-memory-gallery{padding-top:30px!important}
.tamp-memory-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;align-items:stretch}
.tamp-memory-card{position:relative;display:block;width:100%;aspect-ratio:4/5;border:1px solid rgba(90,95,125,.12);border-radius:22px;padding:0;cursor:zoom-in;overflow:hidden;background:linear-gradient(135deg,#f5ecf8,#e7eff5);box-shadow:0 13px 34px rgba(56,64,87,.1);transition:transform .25s,box-shadow .25s}
.tamp-memory-card img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .5s}
.tamp-memory-card:hover{transform:translateY(-4px);box-shadow:0 18px 44px rgba(73,64,102,.17)}
.tamp-memory-card:hover img{transform:scale(1.04)}
.tamp-memory-card:focus-visible{outline:3px solid #917bb3;outline-offset:3px}
.tamp-memory-byline{position:absolute;left:12px;right:12px;bottom:12px;width:max-content;max-width:calc(100% - 24px);padding:6px 11px;border-radius:999px;color:#fff;background:rgba(32,36,59,.75);font:600 12px/1.5 var(--sans);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;backdrop-filter:blur(12px)}
.tamp-memory-new{animation:tampMemoryEnter .7s ease-out both}
@keyframes tampMemoryEnter{from{opacity:.2;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
.tamp-memory-lightbox{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:22px;background:rgba(22,29,44,.94);backdrop-filter:blur(14px)}
.tamp-memory-lightbox[hidden]{display:none}
.tamp-memory-lightbox-panel{width:min(100%,1200px);max-height:95dvh;height:95dvh;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}
.tamp-memory-lightbox-panel>img{display:block;width:100%;height:calc(100% - 128px);min-height:0;object-fit:contain;border-radius:12px}
.tamp-memory-photo-info{color:#fff;text-align:center;min-height:74px;max-width:min(90%,850px);background:rgba(255,255,255,.09);padding:9px 18px;border:1px solid rgba(255,255,255,.13);border-radius:16px;overflow-wrap:anywhere}
.tamp-memory-photo-info strong{font-size:16px;color:#f4d8ee}
.tamp-memory-photo-info p{margin:1px 0;font-size:13px;line-height:1.5}
.tamp-memory-lightbox button{position:absolute;z-index:3;cursor:pointer;border:1px solid rgba(255,255,255,.18);border-radius:100%;background:rgba(29,38,56,.82);color:#fff;display:grid;place-items:center}
.tamp-memory-close{right:4px;top:5px;width:42px;height:42px;font-size:29px;line-height:1}
/* Fixed-center SVG arrows: font glyphs had font-dependent baseline offsets. */
.tamp-memory-lightbox .tamp-memory-prev,.tamp-memory-lightbox .tamp-memory-next{top:43%;height:48px;width:48px;display:flex;align-items:center;justify-content:center;padding:0;line-height:0;box-sizing:border-box;appearance:none}
.tamp-memory-prev svg,.tamp-memory-next svg{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.tamp-memory-prev:focus-visible,.tamp-memory-next:focus-visible{outline:3px solid #f6d8ed;outline-offset:3px}
.tamp-memory-prev{left:5px}.tamp-memory-next{right:5px}
.tamp-modal-open{overflow:hidden}
.tamp-upload-hero{padding-top:62px!important;padding-bottom:18px!important}
.tamp-upload-identity{display:flex;align-items:center;justify-content:center;gap:18px}
.tamp-upload-identity h1{font-size:clamp(36px,6vw,65px)!important;margin:8px 0 12px!important}
.tamp-upload-identity img{width:70px;height:auto}
.tamp-upload-sentiment{font-size:clamp(17px,2.4vw,23px)!important;color:#745b9c!important;font-weight:700;margin-bottom:3px!important}
.tamp-upload-hero>p:last-child{margin-top:0}
.upload-shell{padding-top:25px!important}
.tamp-upload-privacy{font-size:12px;line-height:1.65;color:#667383;margin:13px 0 8px;max-width:660px;overflow-wrap:anywhere}
.tamp-wish-only{font-size:13px;text-align:center;margin:18px 0 0}
.tamp-wish-only a{color:#755795;font-weight:700}
.tamp-venue-only{display:block!important;max-width:930px!important}
.tamp-venue-only .venue-card{max-width:850px;margin:auto}
.tamp-map-simple{display:block!important;max-width:1000px;margin:auto}
.tamp-map-simple .map-frame{display:block}
@media(max-width:900px){.tamp-memory-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.tamp-two-features{grid-template-columns:1fr}}
@media(max-width:650px){
  .tamp-gallery-signature{gap:5px;flex-wrap:wrap}
  .tamp-gallery-signature h1{font-size:clamp(29px,8.8vw,49px)!important;gap:4px}
  .tamp-gallery-signature img{width:48px}
  .tamp-memories-hero{padding-top:40px!important}
  .tamp-memory-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .tamp-memory-card{border-radius:15px}
  .tamp-memory-byline{font-size:10px;bottom:7px;left:7px;max-width:calc(100% - 14px);padding:4px 7px}
  .tamp-share-float{right:15px;bottom:calc(15px + env(safe-area-inset-bottom));padding:13px 16px;min-height:54px;font-size:12px}
  .tamp-share-float svg{width:20px;height:20px}
  .tamp-memory-lightbox{padding:8px}
  .tamp-memory-lightbox-panel{height:96dvh;max-height:96dvh}
  .tamp-memory-lightbox-panel>img{height:calc(100% - 152px)}
  .tamp-memory-photo-info{max-width:90%;max-height:128px;overflow:auto;padding:8px 12px}
  .tamp-memory-lightbox .tamp-memory-prev,.tamp-memory-lightbox .tamp-memory-next{width:38px;height:38px;top:40%}
  .tamp-memory-prev svg,.tamp-memory-next svg{width:20px;height:20px}
  .tamp-brand-with-cat img{width:36px;height:30px}
}
@media(prefers-reduced-motion:reduce){.tamp-share-float,.tamp-memory-new,.tamp-gallery-signature img{animation:none!important}}

/* V1.0.6: mobile horizontal swipe in the gallery lightbox.
   Preserve native vertical/pinch gestures; never crop the selected photo. */
.tamp-memory-lightbox-panel>img{touch-action:pan-y pinch-zoom;user-select:none;-webkit-user-select:none;-webkit-user-drag:none}
.tamp-memory-swipe-next{animation:tampMemorySlideNext .24s ease-out both}
.tamp-memory-swipe-prev{animation:tampMemorySlidePrev .24s ease-out both}
@keyframes tampMemorySlideNext{from{opacity:.6;transform:translateX(16px)}to{opacity:1;transform:translateX(0)}}
@keyframes tampMemorySlidePrev{from{opacity:.6;transform:translateX(-16px)}to{opacity:1;transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){.tamp-memory-swipe-next,.tamp-memory-swipe-prev{animation:none!important}}


/* V1.0.9: opt-in slideshow inside the expanded Gallery photo.
   The lightbox opens paused; user chooses Play (7 seconds per image).
   Photo, name, and caption never disappear. */
.tamp-memory-lightbox-panel>img{
  height:0;flex:1 1 0;min-height:0;object-fit:contain;
}
.tamp-memory-slideshow-bar{
  flex:0 0 auto;display:flex;align-items:center;justify-content:center;
  width:100%;min-height:46px;
}
.tamp-memory-lightbox .tamp-memory-play-toggle{
  position:static;display:inline-flex;align-items:center;justify-content:center;
  gap:9px;min-height:42px;min-width:135px;padding:9px 18px;
  border-radius:999px;background:rgba(97,83,135,.93);
  border:1px solid rgba(255,255,255,.3);font:650 13px/1.2 var(--sans);
  box-shadow:0 8px 26px rgba(9,11,27,.18);transition:opacity .24s,visibility .24s,background .24s;
}
.tamp-memory-lightbox .tamp-memory-play-toggle:not(:disabled):hover{background:rgba(123,98,161,.97)}
.tamp-memory-lightbox .tamp-memory-play-toggle:disabled{opacity:.5;cursor:not-allowed}
.tamp-memory-play-toggle svg{width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:2.7;stroke-linecap:round;stroke-linejoin:round}
.tamp-memory-play-toggle .tamp-memory-play-icon{fill:currentColor;stroke:currentColor;stroke-width:1}
.tamp-memory-play-toggle svg[hidden]{display:none}
.tamp-memory-lightbox button:focus-visible{outline:3px solid #f6d8ed;outline-offset:3px}
.tamp-memory-lightbox .tamp-memory-prev,.tamp-memory-lightbox .tamp-memory-next{
  transition:opacity .24s ease,visibility .24s ease;
}
.tamp-memory-controls-hidden .tamp-memory-prev,
.tamp-memory-controls-hidden .tamp-memory-next,
.tamp-memory-controls-hidden .tamp-memory-play-toggle{
  opacity:0;visibility:hidden;pointer-events:none;
}
.tamp-memory-auto-fade{animation:tampMemoryAutoFade .4s ease-out both}
@keyframes tampMemoryAutoFade{from{opacity:.22}to{opacity:1}}
@media(max-width:650px){
  .tamp-memory-slideshow-bar{min-height:44px}
  .tamp-memory-lightbox .tamp-memory-play-toggle{min-height:40px;min-width:132px;padding:8px 15px}
}
@media(prefers-reduced-motion:reduce){
  .tamp-memory-auto-fade{animation:none!important}
  .tamp-memory-lightbox .tamp-memory-prev,
  .tamp-memory-lightbox .tamp-memory-next,
  .tamp-memory-lightbox .tamp-memory-play-toggle{transition:none!important}
}

/* V1.1 — polished, responsive official photographer collection. */
.tamp-editorial-heading{display:flex;align-items:end;justify-content:space-between;gap:30px;margin:6px 0 24px;padding:23px 28px;border:1px solid rgba(201,181,142,.35);border-radius:22px;background:linear-gradient(105deg,rgba(255,253,249,.95),rgba(239,225,243,.45),rgba(220,235,245,.5));box-shadow:0 14px 40px rgba(62,65,83,.055)}
.tamp-editorial-heading span{font:750 10px/1.6 var(--sans);letter-spacing:.24em;color:#9d8567}
.tamp-editorial-heading h3{font:750 clamp(22px,3vw,37px)/1.24 var(--display);letter-spacing:-.05em;color:#4c5269;margin:7px 0 0}
.tamp-editorial-heading p{max-width:380px;margin:0;font-size:13px;color:#6d7585;line-height:1.9}
.tamp-memory-grid--editorial{grid-auto-flow:dense;gap:14px}
.tamp-memory-grid--editorial .tamp-memory-card{aspect-ratio:4/5;border-radius:12px;border:5px solid #fff;box-shadow:0 13px 38px rgba(60,55,73,.11)}
@media(min-width:901px){.tamp-memory-grid--editorial .tamp-memory-card:nth-child(11n + 1){grid-column:span 2;grid-row:span 2;aspect-ratio:auto}}
.tamp-memory-official{position:absolute;top:12px;left:12px;font:750 9px/1.2 var(--sans);letter-spacing:.18em;padding:7px 9px;background:rgba(255,253,249,.94);color:#877257;border:1px solid rgba(201,181,142,.35);border-radius:999px;box-shadow:0 5px 18px rgba(0,0,0,.08);pointer-events:none}
.tamp-memory-position{position:absolute;left:9px;top:11px;padding:5px 11px;border:1px solid rgba(255,255,255,.17);border-radius:99px;background:rgba(42,40,59,.7);color:#f8eaf3;font:700 12px/1.3 var(--sans);font-variant-numeric:tabular-nums;white-space:nowrap}
.tamp-memory-gesture{position:absolute;right:9px;top:12px;color:#dad4e7;font:500 11px/1.4 var(--sans)}
@media(max-width:900px){.tamp-editorial-heading{flex-direction:column;align-items:start;gap:6px}}
@media(max-width:650px){.tamp-editorial-heading{padding:18px 17px}.tamp-memory-grid--editorial{gap:8px}.tamp-memory-grid--editorial .tamp-memory-card{border:3px solid #fff;border-radius:11px}.tamp-memory-official{top:6px;left:6px;font-size:8px;letter-spacing:.1em;padding:5px 6px}.tamp-memory-gesture{font-size:10px;right:2px;top:13px}.tamp-memory-position{left:2px;top:11px;font-size:11px}}
/* Keep the counter and swipe hint inside the controls bar, away from Close. */
.tamp-memory-slideshow-bar{position:relative}
.tamp-memory-position{top:50%;left:9px;transform:translateY(-50%)}
.tamp-memory-gesture{top:50%;right:9px;transform:translateY(-50%)}
@media(max-width:480px){.tamp-memory-gesture{display:none}}

.tamp-album-count{display:inline-block;padding:1px 7px;margin-left:5px;background:rgba(133,111,166,.1);border-radius:999px;font-size:11px;font-variant-numeric:tabular-nums}.filter-pills .active .tamp-album-count{background:rgba(255,255,255,.25)}

/* Gallery V1.3: high-resolution download + responsive lightbox loading. */
.tamp-memory-lightbox .tamp-memory-download{
  position:absolute;right:8px;top:50%;transform:translateY(-50%);
  display:inline-flex;align-items:center;justify-content:center;
  min-height:38px;padding:8px 13px;border-radius:999px;
  border:1px solid rgba(255,255,255,.24);
  background:rgba(52,58,76,.92);color:#fff;
  text-decoration:none;font:650 12px/1.2 var(--sans);
  z-index:4;white-space:nowrap;
}
.tamp-memory-lightbox .tamp-memory-download:hover{background:rgba(98,86,125,.98)}
.tamp-memory-lightbox .tamp-memory-download:focus-visible{outline:3px solid #f6d8ed;outline-offset:3px}
.tamp-memory-lightbox .tamp-memory-download[hidden]{display:none}
.tamp-memory-gesture{display:none}
.tamp-memory-loading{
  position:absolute;top:45%;left:50%;transform:translate(-50%,-50%);
  z-index:2;pointer-events:none;max-width:75%;text-align:center;
  background:rgba(30,35,52,.77);padding:10px 16px;border-radius:100px;
  color:white;font:600 12px/1.4 var(--sans);backdrop-filter:blur(10px)
}
.tamp-memory-loading[hidden]{display:none}
@media(max-width:520px){
  .tamp-memory-lightbox .tamp-memory-download{right:2px;padding:8px 9px;font-size:11px;min-height:36px}
  .tamp-memory-lightbox .tamp-memory-play-toggle{min-width:105px;padding:8px 10px;font-size:11px}
  .tamp-memory-position{font-size:11px;left:2px;padding:5px 8px}
}
