@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Montserrat:wght@400;500;600&family=Parisienne&display=swap');
:root{--burgundy:#9b0028;--burgundy-dark:#78001f;--gold:#ddb432;--gold-soft:#f8edc8;--ink:#282828;--muted:#777;--cream:#fffdf9}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#f5f5f5;color:var(--ink);font-family:Montserrat,Arial,sans-serif}.page{width:100%;max-width:430px;min-height:100vh;margin:auto;background:#fff;box-shadow:0 0 30px rgba(0,0,0,.06);overflow:hidden}.hero{position:relative;padding:26px 31px 0}.names{font-family:Parisienne,'Brush Script MT',cursive;font-size:28px;line-height:1;text-align:center;color:#dfb638;margin:0 0 17px}.names span{color:var(--burgundy);padding:0 3px}.hero-photo{height:253px;border-radius:19px;overflow:hidden;box-shadow:0 4px 7px rgba(0,0,0,.22)}.hero-photo img{width:100%;height:100%;object-fit:cover}.date-script{position:absolute;left:46px;bottom:17px;color:#fff;font-family:'Cormorant Garamond',serif;font-style:italic;font-size:28px;line-height:.7;text-shadow:0 1px 5px #000}.date-script em{font-family:Parisienne,cursive;font-size:31px}.actions{padding:37px 79px 39px;display:grid;gap:17px}.btn{border:0;border-radius:10px;height:54px;padding:0 20px;display:flex;align-items:center;justify-content:center;gap:18px;text-decoration:none;font:500 13px Montserrat,Arial,sans-serif;cursor:pointer;transition:.2s transform,.2s opacity}.btn:hover{transform:translateY(-1px);opacity:.92}.btn-burgundy{background:var(--burgundy);color:#fff}.btn-gold{background:var(--gold);color:#5b0018}.icon{font-size:23px;line-height:1}.album-icon{font-size:19px}.memories{padding:0 31px 20px}.memories h2{font-family:Parisienne,'Brush Script MT',cursive;font-weight:400;font-size:25px;color:var(--burgundy);text-align:center;margin:0 0 28px}.featured{height:194px;overflow:hidden;margin-bottom:38px}.featured img{width:100%;height:100%;object-fit:cover}.photo-grid,.gallery-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.photo-grid img,.gallery-grid img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:10px;display:block}.small-btn{width:161px;margin:26px auto 0;height:40px}footer{height:32px;background:var(--burgundy);color:#fff;font-size:10px;padding:10px 22px;margin-top:0}.inner-page{min-height:100vh}.inner-head{padding:24px 24px 10px;display:flex;align-items:center;position:relative}.back{font-size:25px;text-decoration:none;color:var(--burgundy);position:absolute;left:20px;top:20px}.compact{font-size:24px;width:100%;margin:0}.upload-card{margin:12px 24px 38px;padding:24px 20px;background:var(--cream);border:1px solid #eee;border-radius:18px}.upload-card h1,.admin-login h1{font-family:'Cormorant Garamond',serif;text-align:center;font-size:31px;font-weight:600;margin:0 0 4px}.upload-card>p,.admin-login>p{text-align:center;color:var(--muted);font-size:12px;margin:0 0 15px}.counter{text-align:center;color:var(--burgundy);font-size:11px;font-weight:600;margin-bottom:17px}.dropzone{min-height:160px;border:1.5px dashed #d6b044;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;cursor:pointer;background:#fff}.dropzone input{display:none}.upload-symbol{width:42px;height:42px;border-radius:50%;background:#f9edc7;color:var(--burgundy);display:grid;place-items:center;font-size:24px}.dropzone small{font-size:9px;color:#999}.preview-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:13px 0}.preview-item{position:relative}.preview-item img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:7px}.remove-photo{position:absolute;right:2px;top:2px;border:0;border-radius:50%;background:rgba(0,0,0,.7);color:#fff;width:20px;height:20px;cursor:pointer}.full{width:100%;margin-top:14px}.form-message{text-align:center;font-size:11px;min-height:16px;color:var(--burgundy)}.album-section{padding-bottom:35px}.album-subtitle{text-align:center;color:#888;font-size:10px;margin:-17px 0 24px}.gallery-grid img{border-radius:8px}.empty{text-align:center;color:#888;font-size:12px;padding:30px 0}.admin-page{min-height:100vh;background:#f8f6f1;padding:25px}.admin-login{max-width:390px;margin:12vh auto;background:#fff;padding:35px 25px;border-radius:20px;box-shadow:0 8px 35px rgba(0,0,0,.08)}.admin-mark{font-family:Parisienne,cursive;color:var(--gold);font-size:38px;text-align:center}.admin-login input{width:100%;height:48px;border:1px solid #ddd;border-radius:9px;padding:0 14px;margin:16px 0 4px;font:13px Montserrat}.admin-dashboard{max-width:1100px;margin:auto}.admin-header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}.admin-header .names{text-align:left;margin:0}.admin-header p{margin:3px 0;color:#888;font-size:11px}.admin-actions{display:flex;gap:10px;align-items:center}.admin-actions .btn{height:42px}.ghost{border:0;background:none;color:var(--burgundy);cursor:pointer}.stats{display:inline-flex;background:#fff;border-radius:12px;padding:12px 22px;margin-bottom:20px;box-shadow:0 3px 12px rgba(0,0,0,.05)}.stats strong{font-size:22px;display:block;color:var(--burgundy)}.stats span{font-size:9px;color:#888}.admin-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.admin-item{background:#fff;border-radius:10px;overflow:hidden;position:relative;box-shadow:0 2px 10px rgba(0,0,0,.06)}.admin-item img{display:block;width:100%;aspect-ratio:1;object-fit:cover}.delete-btn{position:absolute;right:7px;top:7px;border:0;background:rgba(155,0,40,.9);color:#fff;border-radius:50%;width:28px;height:28px;cursor:pointer}.admin-item a{display:block;padding:8px;font-size:9px;color:var(--burgundy);text-decoration:none}

/* =========================
   DESKTOP LANDING PAGE
   Same structure as mobile:
   Names → Large Image → Centered Buttons
   ========================= */

@media(min-width:768px){

  body{
    background:linear-gradient(
      135deg,
      #faf7f1 0%,
      #fff 48%,
      #f7f1e7 100%
    );
  }

  .page{
    width:100%;
    max-width:1180px;
    min-height:100vh;
    margin:auto;
    background:#fff;
    box-shadow:0 10px 50px rgba(62,20,28,.10);
    overflow:hidden;
  }

  /* HERO */
  .hero{
    display:flex;
    flex-direction:column;
    align-items:center;
    padding:55px 70px 0;
    width:100%;
  }

  /* COUPLE NAMES */
  .names{
    width:100%;
    text-align:center;
    font-size:52px;
    line-height:1.08;
    margin:0 0 30px;
    padding:0;
  }

  /* LARGE COUPLE IMAGE */
  .hero-photo{
    width:100%;
    max-width:920px;
    height:520px;
    margin:0 auto;
    border-radius:30px;
    overflow:hidden;
    box-shadow:0 12px 30px rgba(0,0,0,.16);
  }

  .hero-photo img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
  }

  /* DATE ON IMAGE */
  .date-script{
    left:50%;
    right:auto;
    bottom:auto;
    top:calc(55px + 52px + 30px + 475px);
    transform:translateX(-50%);
    font-size:40px;
    line-height:.78;
    white-space:nowrap;
  }

  .date-script em{
    font-size:48px;
  }

  /* CENTERED BUTTONS */
  .actions{
    width:100%;
    max-width:720px;
    margin:0 auto;
    padding:32px 0 45px;
    display:flex;
    flex-direction:row;
    justify-content:center;
    align-items:center;
    gap:20px;
  }

  .actions .btn{
    width:250px;
    height:58px;
    flex:0 0 250px;
    border-radius:11px;
    font-size:14px;
  }

  /* MEMORIES SECTION */
  .memories{
    width:100%;
    padding:30px 70px 60px;
  }

  .memories h2{
    font-size:40px;
    margin:0 0 38px;
    text-align:center;
  }

  /* FEATURED PHOTO */
  .featured{
    width:100%;
    max-width:920px;
    height:330px;
    margin:0 auto 28px;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
  }

  .featured img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
  }

  /* GALLERY */
  .photo-grid,
  .gallery-grid{
    width:100%;
    max-width:920px;
    margin:0 auto;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:14px;
  }

  .photo-grid img,
  .gallery-grid img{
    width:100%;
    aspect-ratio:1.08/1;
    object-fit:cover;
    border-radius:12px;
    display:block;
  }

  .small-btn{
    width:190px;
    height:46px;
    margin:32px auto 0;
  }

  /* FOOTER */
  footer{
    height:45px;
    padding:15px 70px;
    margin-top:0;
    font-size:11px;
  }
}


/* =========================
   LARGE DESKTOP
   Keep the same vertical layout
   ========================= */

@media(min-width:1100px){

  .hero{
    padding-left:90px;
    padding-right:90px;
  }

  .names{
    font-size:58px;
    margin-bottom:32px;
  }

  .hero-photo{
    max-width:950px;
    height:560px;
  }

  .actions{
    max-width:720px;
    padding-top:34px;
    padding-bottom:50px;
  }

  .actions .btn{
    width:270px;
    flex:0 0 270px;
    height:60px;
  }

  .memories{
    padding-left:90px;
    padding-right:90px;
    padding-top:30px;
  }

  .featured{
    max-width:950px;
    height:350px;
  }

  .photo-grid,
  .gallery-grid{
    max-width:950px;
  }
}

@media(max-width:767px){.admin-page{padding:14px}.admin-header{align-items:flex-start}.admin-actions{flex-direction:column;align-items:flex-end}.admin-grid{grid-template-columns:repeat(2,1fr)}}

/* Photo viewer / swipe gallery */
.gallery-photo-button{
  border:0;
  padding:0;
  margin:0;
  width:100%;
  background:none;
  cursor:pointer;
  display:block;
  border-radius:10px;
  overflow:hidden;
  -webkit-tap-highlight-color:transparent;
}

.gallery-photo-button img{
  transition:transform .2s ease, opacity .2s ease;
}

.gallery-photo-button:hover img{
  transform:scale(1.03);
  opacity:.92;
}

.photo-lightbox{
  position:fixed;
  inset:0;
  z-index:9999;
  background:rgba(0,0,0,.96);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  opacity:0;
  visibility:hidden;
  transition:opacity .2s ease, visibility .2s ease;
  touch-action:pan-y;
}

.photo-lightbox.open{
  opacity:1;
  visibility:visible;
}

body.lightbox-open{
  overflow:hidden;
}

.lightbox-content{
  width:100%;
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
}

.lightbox-image{
  max-width:calc(100vw - 120px);
  max-height:calc(100vh - 100px);
  width:auto;
  height:auto;
  object-fit:contain;
  border-radius:4px;
  user-select:none;
  -webkit-user-drag:none;
}

.lightbox-counter{
  color:#fff;
  font:500 12px Montserrat,Arial,sans-serif;
  letter-spacing:1px;
}

.lightbox-close,
.lightbox-nav{
  position:absolute;
  z-index:2;
  border:0;
  color:#fff;
  background:rgba(0,0,0,.45);
  cursor:pointer;
  display:grid;
  place-items:center;
  -webkit-tap-highlight-color:transparent;
}

.lightbox-close{
  top:18px;
  right:20px;
  width:44px;
  height:44px;
  border-radius:50%;
  font-size:32px;
  line-height:1;
}

.lightbox-nav{
  top:50%;
  transform:translateY(-50%);
  width:48px;
  height:64px;
  border-radius:12px;
  font-size:25px;
}

.lightbox-prev{left:20px}
.lightbox-next{right:20px}

.lightbox-close:hover,
.lightbox-nav:hover{
  background:rgba(255,255,255,.18);
}

@media(max-width:767px){
  .photo-lightbox{padding:15px 10px 28px}
  .lightbox-image{
    max-width:calc(100vw - 30px);
    max-height:calc(100vh - 110px);
  }
  .lightbox-nav{
    width:40px;
    height:52px;
    background:rgba(0,0,0,.25);
  }
  .lightbox-prev{left:5px}
  .lightbox-next{right:5px}
  .lightbox-close{top:10px;right:10px}
}


/* Keep album photos sharp on larger screens. The gallery uses the original upload;
   CSS only controls the display size/crop. */
.gallery-photo-button img{width:100%;height:100%;display:block;object-fit:cover;image-rendering:auto;}
@media(min-width:768px){
  .photo-grid .gallery-photo-button img,
  .gallery-grid .gallery-photo-button img{
    min-height:240px;
  }
}
