
/* === Shine Away: fixed non-tiling background override (v11) === */
html, body{background:transparent !important;}
body::before{
  content:"";
  position:fixed;
  inset:0;
  background:url('/assets/att_bg.jpg') center / cover no-repeat fixed;
  z-index:-1;
}

:root{
  --tile: 840px;
  --bg:#000000;
  --primary:#ffcc00;
  --ring: rgba(255,204,0,0.35);
  --hero:url('/assets/hero.jpg');
  --radius:14px;
  --shadow:0 10px 30px rgba(0,0,0,.18);
  --font:'Montserrat', sans-serif;
}
*{box-sizing:border-box}
html,body{height:100%; min-height:100svh}
body{
  margin:0;font-family:var(--font);color:#ffffff;
  background: var(--hero) center/var(--tile) auto repeat fixed;
  display:grid;grid-template-rows:auto 1fr auto;
}
.container{max-width:920px;margin-inline:auto;padding: clamp(16px, 4vw, 40px);}
.site-header{background:transparent;box-shadow:none;position:relative}
.header-inner{display:flex;align-items:center;justify-content:center;padding: clamp(12px, 2.8vw, 24px) 0}
.brand-logo{height:min(22vw, 200px)}
.hero{padding: clamp(24px, 6vw, 80px) 0;text-align:center;}
.title{font-size: clamp(22px, 3.4vw, 40px);margin: 8px 0 18px;color:#fff;text-shadow: 0 2px 12px rgba(0,0,0,.35)}
.code-form{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.code-input{min-width:min(440px, 78vw);padding: 16px 18px;border:1.5px solid rgba(255,255,255,.65);border-radius: var(--radius);font-size:18px;outline:none;color:#000;background:#fff;box-shadow: var(--shadow)}
.code-input:focus{ border-color: var(--primary); box-shadow: 0 0 0 6px var(--ring);}
.btn{padding: 16px 22px; background: var(--primary); color: #000;border: none; border-radius: var(--radius); font-weight:700; font-size:18px;cursor:pointer; box-shadow: var(--shadow)}
.site-footer{background: transparent;border:0;}
.footer-inner{display:flex;justify-content:center;padding:18px 0;color:#e7eef6;text-shadow:0 1px 2px rgba(0,0,0,.4)}

.gallery-wrap{max-width:1200px;margin-inline:auto;padding: clamp(16px, 4vw, 40px)}
.gallery-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin: 8px 0 14px}
.gallery-title{font-size:28px;margin:0;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.35)}
.grid{display:grid;grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));gap:12px;margin-top: 18px}
.grid img{width:100%;height:auto;display:block;border-radius:12px;background:#eee;box-shadow: var(--shadow)}
.card{position:relative; display:flex; flex-direction:column; gap:8px}
.card .actions{display:flex; gap:8px; flex-wrap:wrap}
.card .btn-small{padding:10px 12px; background: rgba(0,0,0,.7); color:#fff; border:0;border-radius:10px; font-weight:600; cursor:pointer}
.card .btn-small.download{ background: var(--primary); color:#000 }
.card .btn-small:active{ transform: translateY(1px) }


  font-size: clamp(14px, 1.8vw, 18px);
  text-shadow:0 2px 10px rgba(0,0,0,.45)
}
.gallery-copy{
  margin:16px 0 20px;
  line-height:1.6;
  color:#000;
  font-size: clamp(15px, 1.9vw, 19px);
  text-align:center;
  text-shadow:none;
}
.title{color:#000;text-shadow:none;}
.code-input{color:#000;}
.brand-logo{height:min(28vw, 260px);}

/* v4e overrides */
.gallery-header .gallery-title{color:#000 !important; text-shadow:none !important; text-align:center !important; width:100%}
.gallery-wrap{max-width:1100px;margin: 0 auto; padding: clamp(16px, 4vw, 40px)}
.gallery-copy{color:#000 !important; text-align:center !important; text-shadow:none !important;}
.grid{justify-items:center}

/* Lightbox styles */
.lb-overlay{position:fixed; inset:0; background:rgba(0,0,0,.8); display:none; align-items:center; justify-content:center; z-index:9999; padding:20px}
.lb-overlay.open{display:flex}
.lb-content{position:relative; max-width: min(92vw, 1100px); max-height: 92vh; display:flex; flex-direction:column; gap:12px; align-items:center}
.lb-img-wrap{max-height: calc(92vh - 110px); display:flex; align-items:center; justify-content:center}
.lb-img{max-width:100%; max-height:100%; border-radius:12px; box-shadow:0 12px 40px rgba(0,0,0,.5); background:#fff}
.lb-actions{display:flex; gap:10px}
.lb-btn{padding:12px 16px; border-radius:10px; border:0; font-weight:700; cursor:pointer}
.lb-btn.download{background:#ffcc00; color:#000}
.lb-btn.share{background:#111; color:#fff}
.lb-close{position:absolute; top:-10px; right:-10px; background:#000; color:#fff; border-radius:999px; width:36px; height:36px; display:flex; align-items:center; justify-content:center; font-weight:900; border:2px solid #fff; cursor:pointer; box-shadow:0 6px 18px rgba(0,0,0,.5)}
@media (max-width: 600px){ .lb-close{ top:-6px; right:-6px } }

/* v4g lightbox tweaks + arrows */
.lb-overlay{position:fixed; inset:0; background:rgba(0,0,0,.86); display:none; align-items:center; justify-content:center; z-index:9999; padding:20px}
.lb-overlay.open{display:flex}
.lb-content{position:relative; width: min(96vw, 1200px); max-height: 96vh; display:grid; grid-template-rows: 1fr auto; gap:12px; align-items:center; justify-items:center}
.lb-img-wrap{width:100%; height: 100%; display:flex; align-items:center; justify-content:center; overflow:hidden}
.lb-img{max-width: 100%; max-height: 100%; width:auto; height:auto; object-fit: contain; border-radius:12px; box-shadow:0 12px 40px rgba(0,0,0,.5); background:#fff}
.lb-actions{display:flex; gap:10px; margin-bottom:4px}
.lb-btn{padding:12px 16px; border-radius:10px; border:0; font-weight:700; cursor:pointer}
.lb-btn.download{background:#ffcc00; color:#000}
.lb-btn.share{background:#111; color:#fff}
.lb-close{position:absolute; top:8px; right:8px; background:#000; color:#fff; border-radius:999px; width:36px; height:36px; display:flex; align-items:center; justify-content:center; font-weight:900; border:2px solid #fff; cursor:pointer; box-shadow:0 6px 18px rgba(0,0,0,.5)}
.lb-arrow{position:absolute; top:50%; transform:translateY(-50%); width:44px; height:44px; border-radius:999px; display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,.65); color:#fff; font-weight:900; border:2px solid rgba(255,255,255,.9); cursor:pointer; user-select:none}
.lb-prev{left:8px}
.lb-next{right:8px}
.lb-arrow.hidden{display:none}
@media (max-width: 600px){
  .lb-close{ top:6px; right:6px }
  .lb-arrow{ width:38px; height:38px }
}

/* v4h: iOS/mobile background-attachment fix */
@media (max-width: 1024px){
  body{ background: var(--hero) center/var(--tile) auto repeat; }
}
@supports (-webkit-touch-callout: none){
  body{ background: var(--hero) center/var(--tile) auto repeat; }
}

/* v4i: lightbox animation + sticky action on mobile */
.lb-overlay{opacity:0; transition:opacity .18s ease-out;}
.lb-overlay.open{opacity:1;}
.lb-content{transform:scale(.985); transition:transform .18s ease-out;}
.lb-overlay.open .lb-content{transform:scale(1);}
/* Sticky action bar on mobile */
@media (max-width: 700px){
  .lb-actionbar{position:fixed; left:0; right:0; bottom:calc(env(safe-area-inset-bottom,0) + 10px);
    display:flex; justify-content:center; z-index:10000; pointer-events:none;}
  .lb-actionbar .lb-btn{pointer-events:auto; box-shadow:0 8px 24px rgba(0,0,0,.35)}
  /* keep bottom spacing so content doesn't collide */
  .lb-actions{margin-bottom:60px}
}

/* v4i-no-sticky overrides */
.lb-actionbar{ display: none !important; }
@media (max-width: 700px){
  .lb-actionbar{ display: none !important; }
}
.lb-actions{ margin-bottom: 4px !important; }


/* ===== Added Double Drop Shadow for Download Button ===== */
.btn-small.download {
  background-color: #FAE90E; /* yellow button */
  color: #000;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow:
    2px 2px 0 #F58871,  /* peach inner shadow */
    4px 4px 0 #F1593A;  /* red outer shadow */
}

.btn-small.download:hover {
  transform: translateY(-1px);
  box-shadow:
    2px 2px 0 #F58871,
    4px 4px 0 #F1593A,
    6px 6px 6px rgba(0, 0, 0, 0.15);
}

.btn-small.download:active {
  transform: translateY(1px);
}

/* Empty gallery text & footer to black */
.gallery-wrap p,
.site-footer small {
  color: #000 !important;
}


/* Center & bold empty gallery text */
.grid:empty::after { text-align: center; font-weight: bold; color: #000 !important; }

/* === Center empty-gallery message vertically and style === */
.grid:empty {
  min-height: 48vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.grid:empty::after {
  content: "No photos yet. Check back soon.";
  color: #000;
  font-weight: 700;
  text-align: center;
}

/* Apply double-drop-shadow style to lightbox button too */
.lb-btn,
#lb-action {
  background-color: #FAE90E;
  color: #000;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  padding: 10px 22px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow:
    2px 2px 0 #F58871,
    4px 4px 0 #F1593A;
}
.lb-btn:hover,
#lb-action:hover {
  transform: translateY(-1px);
  box-shadow:
    2px 2px 0 #F58871,
    4px 4px 0 #F1593A,
    6px 6px 6px rgba(0,0,0,0.15);
}
.lb-btn:active,
#lb-action:active {
  transform: translateY(1px);
}


/* === v8: Force full-bleed non-tiled background (AT&T) ===================== */
html, body { height: 100%; }
body {
  background-image: url('/assets/hero.jpg') !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !important;
  background-attachment: scroll !important; /* safer for iOS */
}
/* Kill any older repeating/tile backgrounds applied elsewhere */
body::before, .bg-tile, .site-bg, .page-bg { background: none !important; }


/* === v9: fixed, non-moving background layer ============================= */
#page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url('/assets/hero.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  pointer-events: none;
  will-change: transform;
}
/* Ensure body itself has no competing background */
body { background: transparent !important; }
/* iOS viewport quirk handling */
@supports (-webkit-touch-callout: none) {
  #page-bg { position: fixed; height: 100vh; }
}


/* Empty gallery note style */
.gallery-wrap .grid:empty::after{
  content:"No photos yet. Check back soon.";
  display:block;
  text-align:center;
  font-weight:700;
  color:#000;
  margin: 24px auto;
}


/* v12: FORCE global fixed background & transparent wrappers */
:root { --bg-image: url('/assets/att_bg.jpg'); }
html, body { background: transparent !important; height: 100%; }
body::before{
  content:"";
  position:fixed; inset:0; z-index:-1;
  background: var(--bg-image) center center / cover no-repeat fixed;
  pointer-events:none;
}
/* kill any page-level white backgrounds */
.site-header, .gallery-wrap, .container, main, .grid, .site-footer { background: transparent !important; }
/* empty message (CSS fallback) */
.gallery-wrap .grid:empty{
  min-height:48vh; display:flex; align-items:center; justify-content:center;
}
.gallery-wrap .grid:empty::after{
  content:"No photos yet. Check back soon."; color:#000; font-weight:700; text-align:center;
}

/* v14: Apply yellow double‑shadow style to gallery Share buttons */
.actions .btn-small,
.actions .btn-small.download,
.actions .btn-small.share,
.lb-btn {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  outline: none;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 10px;
  background: #fae90e;
  color: #000;
  box-shadow:
    0 4px 0 #f1593a,
    0 8px 0 #f58871,
    0 12px 18px rgba(0,0,0,.16);
  transition: transform .08s ease, box-shadow .08s ease, filter .08s ease;
}

.actions .btn-small:hover,
.lb-btn:hover {
  filter: brightness(1.02);
}

.actions .btn-small:active,
.lb-btn:active {
  transform: translateY(2px);
  box-shadow:
    0 2px 0 #f1593a,
    0 6px 0 #f58871,
    0 10px 14px rgba(0,0,0,.14);
}


/* v15: Match landing-page "Go" button to yellow double-shadow buttons */
.go-btn,
.btn-go,
.code-form button[type="submit"],
.hero .code-form button,
.site-hero .code-form button,
header + .container .code-form button {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  outline: none;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 10px;
  background: #fae90e;
  color: #000;
  box-shadow:
    0 4px 0 #f1593a,
    0 8px 0 #f58871,
    0 12px 18px rgba(0,0,0,.16);
  transition: transform .08s ease, box-shadow .08s ease, filter .08s ease;
}

.go-btn:hover,
.btn-go:hover,
.code-form button[type="submit"]:hover {
  filter: brightness(1.02);
}

.go-btn:active,
.btn-go:active,
.code-form button[type="submit"]:active {
  transform: translateY(2px);
  box-shadow:
    0 2px 0 #f1593a,
    0 6px 0 #f58871,
    0 10px 14px rgba(0,0,0,.14);
}


/* v16: Angled peach/red shadow for all primary buttons (Go, Download, Share, LB) */
:root {
  --sa-yellow: #FAE90E;
  --sa-peach:  #F58871;
  --sa-red:    #F1593A;
}

/* Base for all buttons */
.btn-small.download,
.btn-go,
.go-btn,
.code-form button[type="submit"],
.actions .share,
.lb-btn {
  background: var(--sa-yellow);
  color: #111;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 14px;
  padding: 10px 20px;
  cursor: pointer;
  box-shadow:
    3px 3px 0 var(--sa-peach),
    6px 6px 0 var(--sa-red);
  transition: transform .08s ease, box-shadow .08s ease, filter .1s ease;
}

.btn-small.download:hover,
.btn-go:hover,
.go-btn:hover,
.actions .share:hover,
.lb-btn:hover {
  filter: brightness(1.04);
}

.btn-small.download:active,
.btn-go:active,
.go-btn:active,
.actions .share:active,
.lb-btn:active {
  transform: translate(1px, 1px);
  box-shadow:
    2px 2px 0 var(--sa-peach),
    4px 4px 0 var(--sa-red);
}


/* v17: Force angled shadow on GALLERY grid buttons (override any previous) */
.actions .btn-small.download,
.actions .btn-small.share,
.grid .card .actions .btn-small,
.grid .card .actions .btn-small.download,
.grid .card .actions .btn-small.share {
  box-shadow:
    3px 3px 0 #F58871 !important,
    6px 6px 0 #F1593A !important;
  background: #FAE90E !important;
  color: #000 !important;
  border: none !important;
}

@media (hover:hover){
  .actions .btn-small.download:hover,
  .actions .btn-small.share:hover {
    transform: translateY(-1px);
    box-shadow:
      4px 4px 0 #F58871 !important,
      7px 7px 0 #F1593A !important;
  }
}

.actions .btn-small.download:active,
.actions .btn-small.share:active {
  transform: translate(1px,1px);
  box-shadow:
    2px 2px 0 #F58871 !important,
    4px 4px 0 #F1593A !important;
}


/* v18: dedicated angled class to guarantee style */
.btn-angled {
  background: #FAE90E !important;
  color: #000 !important;
  box-shadow:
    3px 3px 0 #F58871 !important,
    6px 6px 0 #F1593A !important;
  border: none !important;
}
