/* =========================================================
   GALLERY / PORTFOLIO (Samantha-inspired square portfolio)
   FULL FILE – replace ENTIRE /styles/gallery.css
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Libre+Caslon+Display&family=Inter:wght@300;400;500&display=swap');

:root{
  --lux-serif: "Libre Caslon Display", "Didot", "Bodoni MT", serif;
  --lux-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --ink: #111111;
  --muted: rgba(17,17,17,.40);
  --bg: #ffffff;

  --paper: #f7f5f1; /* Samantha-like warm off-white */
  --line: rgba(17,17,17,.12);
}

/* ==================== BASE ==================== */
.gallery-page{
  overflow-x: hidden;
  padding-top: 110px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--lux-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.gallery-page a{
  text-decoration: none;
}

/* =========================================================
   ✅ TOP / HEADER FIX (remove blue boxes + luxury nav)
   ========================================================= */

.gallery-page #header{
  background: rgba(255,255,255,0.96) !important;
  border-bottom: 1px solid rgba(17,17,17,0.08) !important;
  backdrop-filter: blur(10px);
}

/* Remove any “button” styling coming from style.css */
.gallery-page #header a,
.gallery-page #nav a,
.gallery-page .logo,
.gallery-page .logo *{
  background: transparent !important;
  box-shadow: none !important;
}

/* Make sure nav links are NOT boxed */
.gallery-page #nav a{
  color: #111 !important;
  font-family: var(--lux-sans) !important;
  font-size: 12px !important;
  letter-spacing: .22em !important;
  text-transform: uppercase !important;

  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
}

/* Elegant underline hover */
.gallery-page #nav a:hover{
  text-decoration: underline !important;
  text-underline-offset: 8px;
  text-decoration-thickness: 1px;
}

/* Active page style (underline only) */
.gallery-page #nav a.active,
.gallery-page #nav a[aria-current="page"]{
  text-decoration: underline !important;
  text-underline-offset: 8px;
  text-decoration-thickness: 1px;
}

/* Logo typography (luxury) */
.gallery-page .logo-name{
  font-family: var(--lux-serif) !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
  color: #111 !important;
}

.gallery-page .logo-tagline{
  font-family: var(--lux-sans) !important;
  letter-spacing: .22em !important;
  text-transform: uppercase !important;
  color: rgba(17,17,17,.55) !important;
}

/* Focus styles (keyboard accessibility) */
.gallery-page #nav a:focus-visible,
.gallery-page .logo:focus-visible{
  outline: 2px solid rgba(17,17,17,.25);
  outline-offset: 6px;
}

/* ==================== HERO ==================== */
.gallery-page .portfolio-hero{
  position: relative;
  height: 62vh;
  min-height: 420px;
  max-height: 640px;
}

/* Make hero image always display properly */
.gallery-page .portfolio-hero-bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.02);
}

/* Darker overlay = easier to read PORTFOLIO */
.gallery-page .portfolio-hero-bg::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.38);
}

.gallery-page .portfolio-hero-inner{
  position: relative;
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
}

.gallery-page .portfolio-hero-inner h1{
  margin: 0;
  color: #fff;
  font-family: var(--lux-serif);
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  text-shadow: 0 12px 30px rgba(0,0,0,.38);
}

/* ==================== GRID ==================== */
.gallery-page .portfolio-main{
  padding: 70px 22px 92px;
}

.gallery-page .portfolio-grid{
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 70px 56px;
}

@media (max-width: 980px){
  .gallery-page .portfolio-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 40px;
  }
}

@media (max-width: 640px){
  .gallery-page .portfolio-grid{
    grid-template-columns: 1fr;
    gap: 54px;
  }
}

/* ==================== CARD ==================== */
.gallery-page .portfolio-card{
  display: block;
  color: inherit;
}

/* SQUARE IMAGE */
.gallery-page .portfolio-media{
  position: relative;
  overflow: hidden;
  background: #f2f2f2;
  aspect-ratio: 1 / 1;
  border-radius: 0;
}

.gallery-page .portfolio-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform .6s ease;
}

.gallery-page .portfolio-card:hover .portfolio-media img{
  transform: scale(1.03);
}

/* ==================== HOVER OVERLAY ==================== */
.gallery-page .portfolio-overlay{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity .25s ease;
}

.gallery-page .portfolio-card:hover .portfolio-overlay{
  opacity: 1;
}

.gallery-page .portfolio-overlay-text{
  width: min(78%, 340px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 1px solid rgba(17,17,17,.10);
  font-family: var(--lux-sans);
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #111;
  position: relative;
  transform: translateY(8px);
  transition: transform .25s ease;
}

.gallery-page .portfolio-overlay-text::after{
  content:"";
  position:absolute;
  top: 56%;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 1px;
  background: rgba(17,17,17,.55);
}

.gallery-page .portfolio-card:hover .portfolio-overlay-text{
  transform: translateY(0);
}

/* ==================== TEXT ==================== */
.gallery-page .portfolio-kicker{
  margin-top: 18px;
  font-size: 0;
  text-align: center;
}

.gallery-page .portfolio-kicker::before{
  content:"WEDDINGS";
  font-family: var(--lux-sans);
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
}

.gallery-page .portfolio-title{
  margin: 14px auto 0;
  font-family: var(--lux-serif);
  font-size: clamp(18px, 1.25vw, 22px);
  line-height: 1.22;
  text-align: center;
  max-width: 28ch;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================================================
   ✅ SAMANTHA-STYLE DOWN PART
   Quote band + 3-column footer (Contact / Logo / Explore)
   ========================================================= */

/* Hide your old CTA + dark footer on the gallery page */
.gallery-page .cta-section,
.gallery-page footer{
  display: none !important;
}

/* Quote band */
.gallery-page .sb-quote{
  background: var(--paper);
  padding: 95px 22px 85px;
  text-align: center;
}

.gallery-page .sb-quote__line1{
  margin: 0 0 14px;
  font-family: var(--lux-serif);
  font-size: 28px;
  line-height: 1.25;
  color: #111;
}

.gallery-page .sb-quote__line2{
  margin: 0;
  font-family: var(--lux-serif);
  font-size: 18px;
  line-height: 1.4;
  font-style: italic;
  color: rgba(17,17,17,.70);
}

/* Footer band */
.gallery-page .sb-footer{
  background: #fff;
  padding: 70px 22px 78px;
  border-top: 1px solid rgba(17,17,17,.08);
}

.gallery-page .sb-footer__inner{
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 0;
  align-items: center;
}

.gallery-page .sb-footer__col{
  padding: 0 34px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gallery-page .sb-footer__col--center,
.gallery-page .sb-footer__col--right{
  border-left: 1px solid var(--line);
}

/* Titles */
.gallery-page .sb-footer__title{
  font-family: var(--lux-serif);
  font-size: 20px;
  color: #111;
  margin: 0 0 18px;
}

/* Contact button */
.gallery-page .sb-footer__btn{
  display: inline-block;
  padding: 16px 22px;
  background: var(--paper);
  border: 1px solid rgba(17,17,17,.12);
  color: #111;
  text-decoration: none;
  text-align: center;

  font-family: var(--lux-sans);
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  max-width: 280px;
}

.gallery-page .sb-footer__btn:hover{
  background: #f1eee8;
}

/* Center logo + tagline */
.gallery-page .sb-footer__col--center{
  text-align: center;
  align-items: center;
}

.gallery-page .sb-footer__logo{
  width: 220px;
  max-width: 70%;
  height: auto;
  display: block;
  margin: 0 auto 14px;
}

.gallery-page .sb-footer__centerline{
  margin: 0;
  font-family: var(--lux-serif);
  font-size: 14px;
  font-style: italic;
  color: rgba(17,17,17,.55);
  line-height: 1.5;
}

/* Explore links */
.gallery-page .sb-footer__links{
  display: grid;
  gap: 10px;
}

.gallery-page .sb-footer__links a{
  font-family: var(--lux-sans);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #111;
  text-decoration: none;
  line-height: 1.55;
}

.gallery-page .sb-footer__links a:hover{
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

/* Responsive */
@media (max-width: 980px){
  .gallery-page .sb-footer__inner{
    grid-template-columns: 1fr;
  }

  .gallery-page .sb-footer__col{
    padding: 26px 0;
    min-height: auto;
    text-align: center;
    align-items: center;
  }

  .gallery-page .sb-footer__col--center,
  .gallery-page .sb-footer__col--right{
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .gallery-page .sb-footer__btn{
    width: 100%;
    max-width: 340px;
  }
}
