/* Main CSS stylesheet for PhotosByBecca â€“ rewritten for clarity and maintainability. */

/*
  This stylesheet consolidates duplicate rules and ensures the animated SVG
  background applies consistently across every page. The optional wash overlay
  (bgâ€‘anim) sits above the SVG and provides a gentle motion without interfering
  with content. Unused cloud layers are disabled. Gallery tiles use a single
  definition with a consistent aspect ratio, and the lightbox has been tuned to
  be centered, scrollable and keyboard friendly. Other components retain their
  original appearance and responsive behaviour.
*/

:root{
  --bg0:#f7fbff;
  --bg1:#e8f3ff;
  --ink:#15324a;
  --muted:#49677f;
  --card:rgba(255,255,255,0.72);
  --card2:rgba(255,255,255,0.54);
  --stroke:rgba(21,50,74,0.12);
  --shadow: 0 18px 55px rgba(16,40,64,0.12);
  --shadow2: 0 10px 30px rgba(16,40,64,0.10);
  --radius: 22px;
  --radius2: 16px;
  --accent:#7ab7ff;
  --accent2:#ffd3ea;
  --accent3:#b5ffd2;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--ink);

  /* Animated SVG background across the whole site */
  background: url("../assets/bg-animated.svg") center / cover no-repeat fixed;

  overflow-x:hidden;
}

a{
  color:inherit;
  text-decoration:none;
}
a:hover{opacity:0.92}

/* Optional subtle wash overlay above the SVG */
.bg-anim{
  position:fixed;
  inset:-30vh -30vw;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(900px 520px at 15% 20%, rgba(122,183,255,0.16), transparent 60%),
    radial-gradient(900px 520px at 85% 30%, rgba(255,211,234,0.14), transparent 62%),
    radial-gradient(900px 520px at 35% 92%, rgba(181,255,210,0.12), transparent 66%);
  filter: blur(2px);
  animation: wash 18s ease-in-out infinite;
  opacity:0.25;
}

@keyframes wash{
  0%{ transform: translate3d(0,0,0) scale(1.02); opacity:0.95; }
  50%{ transform: translate3d(2.2vw,1.4vh,0) scale(1.04); opacity:0.88; }
  100%{ transform: translate3d(0,0,0) scale(1.02); opacity:0.95; }
}

/* Disable unused cloud layers */
.clouds{ display:none; }

/* Layout */
.container{
  width:min(1120px, calc(100% - 40px));
  margin:0 auto;
}

.topbar{
  position:sticky;
  top:0;
  z-index:10;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(247,251,255,0.86), rgba(232,243,255,0.55));
  border-bottom:1px solid var(--stroke);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 220px;
}
.brand .mark{
  width:40px;
  height:40px;
  border-radius:14px;
  background: radial-gradient(18px 18px at 30% 30%, #fff, rgba(255,255,255,0.2) 70%),
              linear-gradient(135deg, rgba(122,183,255,0.7), rgba(255,211,234,0.55));
  border:1px solid rgba(21,50,74,0.14);
  box-shadow: var(--shadow2);
  display:grid;
  place-items:center;
}
.brand .mark svg{opacity:0.85}
.brand .name{
  line-height:1.1;
}
.brand .name b{display:block; font-size:15px; letter-spacing:0.2px}
.brand .name span{display:block; font-size:12px; color:var(--muted)}

.menu{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.pill{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,0.55);
  box-shadow: 0 8px 22px rgba(16,40,64,0.06);
  font-size:13px;
  color: var(--muted);
}
.pill.active{
  color:var(--ink);
  background: rgba(255,255,255,0.72);
  border-color: rgba(21,50,74,0.18);
}

/* Hero section */
.hero{
  padding:58px 0 22px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap:22px;
  align-items:stretch;
}
@media (max-width: 900px){
  .hero-grid{grid-template-columns:1fr}
  .brand{min-width: auto}
}

.card{
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card), var(--card2));
  border:1px solid var(--stroke);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.hero-card{
  padding:26px;
  position:relative;
}
.kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid rgba(21,50,74,0.12);
  background: rgba(255,255,255,0.65);
  color:var(--muted);
  font-size:12px;
}
.h1{
  font-size:44px;
  letter-spacing:-0.6px;
  margin:14px 0 10px;
}
@media (max-width: 520px){ .h1{font-size:36px} }

.lead{
  color:var(--muted);
  font-size:15px;
  line-height:1.7;
  margin:0 0 18px;
  max-width: 60ch;
}

.actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top: 10px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 14px;
  border-radius: 999px;
  border:1px solid rgba(21,50,74,0.14);
  background: rgba(255,255,255,0.78);
  box-shadow: 0 10px 26px rgba(16,40,64,0.10);
  font-weight:650;
  font-size:13px;
}
.btn.primary{
  background: linear-gradient(135deg, rgba(122,183,255,0.85), rgba(255,211,234,0.62));
  border-color: rgba(21,50,74,0.10);
}
.btn:active{transform: translateY(1px)}

.hero-photo{
  display:grid;
  place-items:stretch;
}
.hero-photo .img{
  height: 100%;
  min-height: 280px;
  background:
    radial-gradient(500px 240px at 20% 20%, rgba(255,255,255,0.78), transparent 70%),
    radial-gradient(420px 220px at 80% 30%, rgba(255,255,255,0.72), transparent 72%),
    linear-gradient(135deg, rgba(122,183,255,0.35), rgba(255,211,234,0.28)),
    url("./../assets/photos/cloudlight-portrait.svg");
  background-size: cover;
  background-position:center;
  border-radius: var(--radius);
  border:1px solid rgba(21,50,74,0.10);
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
}
.hero-photo .img::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(500px 340px at 40% 20%, rgba(255,255,255,0.36), transparent 60%);
}

/* Sections */
.section{
  padding: 18px 0 54px;
}

.section h2{
  font-size:18px;
  margin:0 0 14px;
  letter-spacing:-0.2px;
}

.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}
@media (max-width: 900px){ .grid-3{grid-template-columns:1fr} }

.mini{
  padding:18px;
  border-radius: var(--radius2);
  background: rgba(255,255,255,0.62);
  border:1px solid rgba(21,50,74,0.10);
  box-shadow: 0 10px 26px rgba(16,40,64,0.08);
  min-height: 120px;
}
.mini p{margin:8px 0 0; color:var(--muted); line-height:1.7; font-size:13px}
.mini b{font-size:14px}

/* Gallery */
.gallery{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
}

.tile{
  grid-column: span 4;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.7);
  border:1px solid rgba(21,50,74,0.12);
  box-shadow: var(--shadow2);
  overflow:hidden;
  position:relative;
}
@media (max-width: 900px){ .tile{grid-column: span 6} }
@media (max-width: 520px){ .tile{grid-column: span 12} }

.tile .photo{
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
}

.tile .cap{
  padding:12px 14px 14px;
}
.tile .cap b{display:block; font-size:14px; margin-bottom:6px}
.tile .cap span{display:block; color:var(--muted); font-size:13px; line-height:1.6}

.tile .tilebtn{
  all: unset;
  display:block;
  width:100%;
  cursor:pointer;
}

.tile:hover{
  transform: translateY(-1px);
}
.tile:active{
  transform: translateY(0px);
}

/* Footer */
.footer{
  padding: 26px 0 40px;
  color: var(--muted);
  font-size: 13px;
  border-top:1px solid rgba(21,50,74,0.10);
  background: rgba(255,255,255,0.38);
  backdrop-filter: blur(10px);
}
.footer a{color:var(--ink); font-weight:650}

/* Page head */
.pagehead{
  padding: 36px 0 16px;
}
.pagehead h1{
  margin:0 0 8px;
  font-size: 28px;
  letter-spacing:-0.3px;
}
.pagehead p{
  margin:0;
  color:var(--muted);
  line-height:1.7;
}

/* Forms */
.form{
  padding:18px;
}
label{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin: 12px 0 6px;
}
input, textarea{
  width:100%;
  border-radius: 14px;
  border:1px solid rgba(21,50,74,0.14);
  background: rgba(255,255,255,0.78);
  padding: 12px 12px;
  font: inherit;
  color: var(--ink);
  outline:none;
}
textarea{min-height: 120px; resize: vertical}
input:focus, textarea:focus{
  border-color: rgba(122,183,255,0.7);
  box-shadow: 0 0 0 5px rgba(122,183,255,0.16);
}

.row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
@media (max-width: 700px){ .row{grid-template-columns:1fr} }

/* Notices */
.notice{
  padding:12px 14px;
  border-radius: 16px;
  border:1px solid rgba(21,50,74,0.12);
  background: rgba(255,255,255,0.62);
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
}

/* Toast */
.toast{
  position:fixed;
  left:50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.86);
  border:1px solid rgba(21,50,74,0.12);
  box-shadow: var(--shadow2);
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 13px;
  opacity:0;
  pointer-events:none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show{
  opacity:1;
  transform: translateX(-50%) translateY(-6px);
}

/* Lock screen and utility lists */
.lock{
  padding: 18px;
  display:grid;
  gap:12px;
}
.lock h1{margin:6px 0 0; font-size:22px}
.small{font-size:12px; color:var(--muted); line-height:1.6}
.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
@media (max-width: 900px){ .split{grid-template-columns:1fr} }

.list{
  display:grid;
  gap:10px;
}
.item{
  display:grid;
  grid-template-columns: 1fr auto;
  gap:10px;
  align-items:center;
  padding: 12px;
  border-radius: 16px;
  border:1px solid rgba(21,50,74,0.12);
  background: rgba(255,255,255,0.62);
}
.item code{
  display:block;
  font-size:12px;
  color:var(--muted);
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.badge{
  font-size:12px;
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid rgba(21,50,74,0.12);
  background: rgba(255,255,255,0.75);
  color: var(--muted);
}
.danger{color:#7a2b4a; border-color: rgba(122,43,74,0.22); background: rgba(255,235,243,0.8)}

.hr{
  height:1px;
  background: rgba(21,50,74,0.10);
  margin: 12px 0;
}

/* Lightbox */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.lightbox.show{ display:flex; }

.lightbox-backdrop{
  position:absolute;
  inset:0;
  background: rgba(16,40,64,0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lightbox-shell{
  position: relative;
  width: min(1100px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.74));
  border: 1px solid rgba(255,255,255,0.45);
  box-shadow: 0 30px 120px rgba(0,0,0,0.28);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.lightbox-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(21,50,74,0.10);
  background: rgba(255,255,255,0.55);
}

.lightbox-top b{
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 70%;
}

.lightbox-close{
  border:1px solid rgba(21,50,74,0.14);
  background: rgba(255,255,255,0.78);
  border-radius: 999px;
  padding: 8px 12px;
  cursor:pointer;
  font: inherit;
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(16,40,64,0.08);
}
.lightbox-close:hover{ opacity:0.92; }

.lightbox-stage{
  position: relative;
  display:grid;
  place-items:center;
  padding: 10px 10px 0;
  min-height: 260px;
}

.lightbox-img{
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 190px);
  object-fit: contain;
  border-radius: 18px;
  border:1px solid rgba(21,50,74,0.10);
  box-shadow: var(--shadow2);
  background: rgba(255,255,255,0.55);
}

.lightbox-cap{
  padding: 10px 14px 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.lb-arrow{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border:1px solid rgba(21,50,74,0.14);
  background: rgba(255,255,255,0.78);
  display:grid;
  place-items:center;
  cursor:pointer;
  box-shadow: 0 10px 26px rgba(16,40,64,0.10);
  color: var(--ink);
  user-select:none;
}
.lb-arrow:hover{ opacity:0.92; }
.lb-arrow:active{ transform: translateY(-50%) translateY(1px); }

.lb-prev{ left: 12px; }
.lb-next{ right: 12px; }

@media (max-width: 520px){
  .lb-prev{ left: 8px; }
  .lb-next{ right: 8px; }
  .lb-arrow{ width: 40px; height: 40px; }
}
/* ===========================
   MOBILE MODE (LESS CLAUSTROPHOBIC)
   =========================== */

@media (max-width: 720px){

  /* More breathing room + prevent tight header crowding */
  .container{
    width: min(1120px, calc(100% - 24px));
  }

  /* Stack the nav nicely */
  .nav{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 0;
  }

  .brand{
    min-width: 0;
  }

  .menu{
    justify-content: flex-start;
    gap: 8px;
  }

  /* Make pills smaller and wrap clean */
  .pill{
    padding: 9px 11px;
    font-size: 12.5px;
  }

  /* Hero becomes one column, with bigger spacing */
  .hero{
    padding: 26px 0 14px;
  }
  .hero-grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Make the main heading less huge + avoid awkward wraps */
  .h1{
    font-size: 32px;
    line-height: 1.12;
  }

  .hero-card{
    padding: 18px;
  }

  /* Buttons full width so they don’t feel cramped */
  .actions{
    gap: 10px;
  }
  .btn{
    width: 100%;
  }

  /* Grid cards stack and have space */
  .grid-3{
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Gallery tiles become single column (big thumbs) */
  .gallery{
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .tile{
    grid-column: auto;
  }
}

/* Optional: ultra small phones */
@media (max-width: 420px){
  .container{ width: calc(100% - 18px); }
  .h1{ font-size: 28px; }
  .pill{ padding: 8px 10px; }
}
/* Floating tiny clouds layer */
#cloud-float-layer{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1; /* keep behind cards; use 0 if you want it above */
  overflow: hidden;
}

.cloudlet{
  position: absolute;
  width: var(--w);
  height: auto;
  opacity: var(--o);
  transform: translate3d(-20vw, 0, 0);
  filter: blur(var(--b));
  will-change: transform;
}

/* optional: soft blend */
.cloudlet svg{
  display:block;
}

/* If you want clouds BEHIND everything no matter what: */
body{ isolation:isolate; }
