﻿ * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f5f3ff; /* pale purple */
  }

.gallery-title{
  
 color: #5b3a8e;
}

@media (min-width: 800px) {
    .gallery-title {
        font-size: 2.5em;
        line-height: 1.4em;
        padding: 5px;
    }
}
.flxcon{display:-webkit-flex;display:flex;-webkit-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;flex-wrap:wrap;}
.flxcol-12{flex:1 1 100%;}

 /* Force masonry layout */
/* Default: mobile */
#photo-gallery {
    display: block !important;
    column-count: 2;
    column-gap: 16px;
    max-width: 1200px;
    margin: 30px auto;
}

#photo-gallery a {
    display: inline-block;
    width: 100%;
    margin-bottom: 16px;
    break-inside: avoid;
}

#photo-gallery img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

@media (min-width: 600px) {
    #photo-gallery {
        column-count: 3;
    }
}

@media (min-width: 800px) {
    #photo-gallery {
        column-count: 4;
    }
}

.jjsub-mem{
max-width:1000px; 
margin:auto;
font-family:Arial, sans-serif;
font-size:1.2em;
line-height:1.6; 
color:#333;
background:#f6f0fb;
padding:25px; 
border-radius:10px;
border:1px solid #e2d6f3;
box-shadow:0 2px 6px rgba(0,0,0,0.08);
padding-top:20px;
margin-top:20px;
}

.page-poems {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  grid-template-areas: "i1" "fi" "t1" "t2";
}
.page-poems .imagebells {
  display: none;
}
@media (min-width: 768px) {
  .page-poems {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas: "t1 i1 t2" "fi fi fi";
  }
  .page-poems .imagebells {
    display: block;
  }
}

.poemcontainer {
  /*max-width: 800px;*/
  margin: 0 100px;
  padding: 30px 20px;
}
@media (max-width: 600px) {
  /*  .container {
      padding: 20px 10px;
  */
  .poemcontainer {
    margin: 0 8px;
    padding: 30px 10px;
  }
  h1 {
    font-size: 2em;
  }
  .section-title {
    font-size: 1.5em;
  }
}

.section-title {
  font-size: 1.8em;
  color: #5b3a8e;
  margin-top: 50px;
  margin-bottom: 20px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 5px;
}

/* Accordion styles */
.accordion {
  margin-bottom: 20px;
}

.accordion-btn {
  background-color: #fff6f0;
  color: #5b3a8e;
  cursor: pointer;
  padding: 18px 20px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 1.1em;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease;
}

.accordion-btn:hover {
  background-color: #fbeee7;
}

.accordion-content {
  background-color: #fff6f0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  border-radius: 8px;
  padding: 0 20px;
  margin-top: 5px;
}

.accordion-content p {
  margin: 15px 0;
  white-space: pre-line;
  font-size: 1.2em;
}

.accordion.active + .accordion-content {
  max-height: 1000px; /* adjust as needed */
  padding: 15px 20px;
}

.copyright {
  font-size: 0.8em;
  color: #999;
  text-align: right;
  margin-top: 10px;
}

/* original working  -----------------------
.memory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
    margin: 0 auto;
   
}

.memory-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #ccc; /* subtle but visible border */
/*    box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* slightly stronger shadow */
/*    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 0; /* media/content already padded */
/*    margin:10px;
}
*/------------------------------------
/* new */
.memory-grid {
    column-count: 3;
    column-gap: 20px;
}

.memory-card {
    width: 100%;
    display: block;
    margin-bottom: 20px;
    break-inside: avoid;

    background: #fff;
    border-radius: 12px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    overflow: hidden;
}



.memory-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.memory-card:hover {
    transform: scale(1.02);
}

.memory-media img,
.memory-media video {
    width: 100%;
    height: auto;
    display: block;
}

.memory-text {
    padding: 20px;
}

.memory-text h2 {
    margin: 0 0 5px 0;
    font-family: "Georgia", serif;
    color: #4B4B4B;
    font-size: 1.3em;
}

.memory-text .email {
    font-size: 0.85em;
    color: #888;
    margin-bottom: 10px;
}

.memory-text .message {
    font-size: 1.05em;
    line-height: 1.6;
}

.memory-date {
    padding: 0 20px 20px 20px;
    font-size: 0.8em;
    color: #aaa;
    text-align: right;
}

/* Responsive adjustments */
@media (max-width: 599px) {
    .memory-text h2 { font-size: 1.1em; }
    .memory-text .message { font-size: 1.1em; }
     .memory-grid {grid-template-columns: 1fr;}
}

/* Tablet: 600-767px */
@media (min-width: 600px) and (max-width: 767px) {
    .memory-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}

/* Desktop: 768px+ */
@media (min-width: 768px) {
   .memory-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
     max-width: 1200px;  /* Only limit container width on desktop */
   }   
}

/*this to be added 21-5-26 on final*/
/*
/* Desktop: 768px+ */

@media (min-width: 768px) {
   .memory-grid {
    column-count: 2;
    column-gap: 20px; 
    }   
}
@media (min-width: 900px) {
   .memory-grid {
    column-count: 3;
    column-gap: 20px; 
    }   
}



/* Labels */
label {
  display: block;
  margin-top: 15px;
  color: #560357;
  font-weight: 500;
}

/* Inputs */
.inpbox {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    border-radius: 8px;
    border: 1px solid #b589db;
    font-size: 14px;
    transition: 0.2s;
}

/* Focus effect */
.inpbox:focus {
    border-color: #d8a7b1;
    outline: none;
    box-shadow: 0 0 5px rgba(216,167,177,0.3);
}


.button{
  border:none;
  padding:10px;
  text-align:center;
  display:inline-block;
  font-size:1em;
}

/* Button */
.button2 {
  width: 100%;
  padding: 14px;
  background: #b589db;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.button2:hover {
  background: #c48c99;
}




  /* NAVBAR */
  .navbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(87, 5, 113, 0.84);
  color: #ffffff;
  padding: 1rem 1.5rem;
  position: relative;
  top: 0;
  z-index: 1000;
    width: 100%;  /*full screen width */

}
.navbar .left {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.navbar .logo {
  font-size: 1.4rem;
  font-weight: 600;
}

/* new for full screen */
/* Links inside 1200px container */
/*
nav .nav-container {
margin: 0 auto;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
*/
.menu-toggle {
/*margin-left: auto; *//* push hamburger to right if you want */

  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}
.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background: white;
  transition: 0.3s;
}
.menu-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 1rem;
}
.nav-list li {
  position: relative;
}
.nav-list a {
  text-decoration: none;
  color: #ffffff;
  padding: 0.5rem;
  display: block;
  font-size: 1.25rem;
}
.nav-list a:hover {
  color: #38bdf8;
}

.dropdown:hover .dropdown-menu {
  display: block;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  color: black;
  min-width: 180px;
  display: none;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.dropdown-menu li a {
  color: black;
  padding: 0.75rem 1rem;
}

@media (max-width: 768px) {
 .menu-toggle {
    display: flex;
  }

.nav-container {
    justify-content: flex-start; /* hamburger aligned left */
}
  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #2a0f26;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .nav-list.active {
    max-height: 500px;
  }
  .nav-list li {
    width: 100%;
    text-align: left;
  }
  .dropdown.active .dropdown-menu {
    display: block;
  }
  .dropdown-menu {
    position: static;
    background: #1e293b;
    display: none;
    width: 100%;
    box-shadow: none;
  }
  .dropdown-menu li a {
    color: white;
  }
}
.content {
  padding: 2rem;
}
/*===== Image =====*/
.image {
  max-width: 100%;
  height: auto;
}
.rounded-img {border-radius: 16px;}

.memorial-photo {
    width: 90%;               /* scales with parent container */
    max-width: 300px;         /* don’t get too huge on large screens */
    height: auto;             /* keeps aspect ratio */
    object-fit: cover;        /* crop edges if needed */
    border-radius: 50%;       /* keeps circular shape */
    margin: 25px auto;
    display: block;
    border: 4px solid #e6d9f7;
}

.headimg {
  text-align: center;
  display: block;
  margin: auto;
}

/* Text */
.left{text-align:left;}
.mid{text-align:center;}
.ital{font-style: italic;}
.marg{margin-left:10px;margin-right:10px;
}

.memorial-quote {
    font-family: 'Great Vibes', cursive;   /* Elegant script font */
    font-size: 2.2em;
    font-weight: 400;
    color: #6b4c8b;                         /* Soft pastel purple */
    text-align: center;
    margin: 20px 0 20px 0;
    letter-spacing: 1px;
    line-height: 2;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.15);
    position: relative;
}
.memorial-quote::before {
    content: "♥";           /* Decorative flourish */
    display: block;
    text-align: center;
    font-size: 5rem;
    margin-bottom: 10px;
	color: #6b4c8b;  /* gentle, warm red */
}

.overlay {
  text-align: center;
  font-size: 1.25rem;
  max-width: 800px;
  margin: auto;
  padding: 10px;
  color:purple;
  font-style: italic;
}
.overlay h3 {
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.overlay p {
  font-weight: 300;
  line-height: 1.6;
}
.quote {
  font-family: "Great Vibes", cursive;
  font-size: clamp(28px, 4vw, 44px);
  color: #8206ff;
  text-align: center;
  margin-bottom: 30px;
}
.verse {
	text-align:center;
    background: #faf7fc;
    border-radius: 12px;
    padding-top:10px;
}

.verse-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: #6e4fa3;
    margin-bottom: 25px;
    margin-top:20px
}
.verse-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    color: #444;
}
.verse p {
    margin-bottom: 22px;
}

/*===== Memorial title =====*/
.mem-title {
  text-align: center;
  /*font-family: "Playfair Display", Georgia, serif;  color: #5b3a8e;*/
  font-family: "Cormorant Upright", serif;
  font-size: clamp(40px, 5vw, 64px);
  margin: 20px 0;
  color: #7a4fd0;
}

.mem-title span {
  display: block;
}

/* Header styling */
.site-header {
    justify-content: space-between;
    align-items: center;
    padding: 15px 15px;
    background: #f9f6fc; /* soft background */
    position: relative;
  /*  box-shadow: 0 2px 5px rgba(155, 110, 200, 0.1); /* soft purple shadow */
}

  /* MAIN LAYOUT */
  main {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
   /* padding: 2rem;*/
  }
  .page-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  background-color: #f9f6fc;
 /* padding: 0 1rem; /* prevents edge touching on mobile */
}
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;

  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;

  grid-template-areas:
    "t1"
    "i1"
    "fi"
    "t2";
}

  /* TEXT SECTION */
  .text-section {
    max-width: 900px;
    margin-left: auto;
  margin-right: auto;
    text-align: center;
    padding: 10px;
  }

  .sunset-title {
  text-align: center;
  /*font-family: "Playfair Display", Georgia, serif;  color: #5b3a8e;*/
  font-family: "Cormorant Upright", serif;
  font-size: clamp(40px, 5vw, 64px);
  margin: 20px 0;
}
  /* IMAGE SECTION */
  .image-section img {
    width: 100%;
    border-radius: 10px;
  }
  
  /* Photo */
.photo-container {
    display: flex;
    justify-content: center; /* horizontal */
    align-items: center;     /* vertical */
    margin: 25px 0;
    
            /* fills container */
}
/* Video */
.candle-video {
    display: block;
    margin: 30px auto;
    border-radius: 10px; /* optional, keeps soft edges */
    opacity: 0.9;

    /* Soft purple glow */
    box-shadow: 0 0 20px rgba(155, 110, 200, 0.25);

    /* Auto size to video dimensions */
    width: auto;
    height: auto;
    max-width: 200px;  /* responsive: won’t overflow container */
}
.divider-line {
    margin: 35px auto;
    width: 60px;
    height: 2px;
    background-color: #d8c8ec;
}

.subtle-credit {
    color: rgba(0, 0, 0, 0.219); /* very light, almost transparent */
    font-size: 24px;           /* small, unobtrusive */
    text-align: center;          /* or center, or left depending on preference */
    margin-top: 20px;
    font-family: 'Georgia', serif; /* matches memorial elegance */
    pointer-events: none;       /* prevents accidental clicks */
}

.drop-cap::first-letter {
  float: left;             /* makes the letter sit to the left */
  font-size: 4rem;         /* big enough to stand out */
  line-height: 1;           /* tight line height for vertical alignment */
  margin-right: 0.15em;    /* spacing between the letter and text */
  font-weight: bold;
  font-family: 'Georgia', serif;  /* elegant, reflective font */
  color: #712b88;        /* warm accent color for emphasis */
}

/* Homepage Intro Section */
.homepage-intro {
  /*background-color: #fdfaf6;*/  /* soft, warm neutral */
  background: #faf7fc;
  color: #4b4b4b;             /* gentle dark text */
  padding: 3rem 2rem;
  max-width: 900px;
  margin: 30px auto;
  font-family: 'Georgia', serif; /* elegant, reflective font */
  line-height: 1.8;
  font-size: 1.15rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* subtle, comforting shadow */
}

.homepage-intro p {
  margin-bottom: 1.8rem;
}

/* Poem Snippet Styling */
.homepage-intro .poem-snippet {
  font-style: italic;
  font-family: 'Palatino Linotype', 'Georgia', serif;
  background-color: #fff8f0;
  padding: 1.5rem 2rem;
  border-left: 6px solid #f2c1a1; /* soft warm highlight */
  margin: 2rem 0;
  line-height: 1.7;
  font-size: 1.1rem;
  border-radius: 8px;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  .homepage-intro {
    padding: 2rem 1rem;
    font-size: 1.15rem;
    margin: 10px;
  }

  .homepage-intro .poem-snippet {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}

.divider {
  text-align: center;
  font-size: 3rem;
  line-height: 1;
  color: #b0b0b0;
  margin: 3rem 0;
  opacity: 0.8;
}
  /* FULL WIDTH IMAGE */
  .full-image {
    width: 100%;
  }

  .full-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
  }

  /* CARDS */
  .cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .card {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .card img {
    width: 100%;
    border-radius: 8px;
  }

  .invite {
    background: #ece1f8;
    padding: 20px;
    border-radius: 12px;
    margin: 10px;
    font-size: 1.0rem;
    text-align: center;
    line-height: 1.5;
}

  /* FOOTER */
  footer {
    background: rgba(87, 5, 113, 0.84);
    color: white;
    text-align: center;
   /* padding: 1rem;*/
    margin-top: auto; /* Sticky footer */
padding: 30px 20px; /* more vertical padding */
font-family: "Georgia", serif; /* elegant font */
  font-size: 1.25rem;
  line-height: 1.8; /* adds space between lines */

  }

/* Footer links */
footer a {
  color: #fff; /* white links */
  text-decoration: underline; /* remove underline */
  margin: 0 10px; /* spacing between links */
}

  /* MOBILE NAV */
  @media (max-width: 600px) {
    .nav-container {
      flex-direction: column;
      align-items: flex-start;
    }

    .nav-links {
      flex-direction: column;
      width: 100%;
    }
   }
  
 

.t1 { grid-area: t1; }
.i1 { grid-area: i1; }
.t2 { grid-area: t2; }
.fi { grid-area: fi; }

@media (min-width: 768px) {
  .page {
    grid-template-columns: 1fr 1fr 1fr;

    grid-template-areas:
      "t1 i1 t2"
      "fi fi fi";
  }
}

.memorial-section {
  position: relative;
  padding: 40px 20px;
  background:url("/images/judith-sunset-faded.jpg") center/cover no-repeat;
   border-radius: 20px;
  overflow: hidden; /* 👈 essential */
  display: flex;
  justify-content: center;
   width: 90%;           /* 90% of the parent container */
    max-width: 900px;    /* caps the width on large screens */
    margin-left: auto;    
    margin-right: auto;   /* auto centers the container horizontally */
    box-sizing: border-box;


}

.memorial-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.memorial-section .content {
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  gap: 30px;
  max-width: 900px;
  width: 100%;
}

.memorial-para{
    white-space: pre-line;   /* 👈 THIS is the key */
    line-height: 1.7;
    margin-bottom: 18px;
    font-size: clamp(20px, 2.2vw, 18px);
 
}

/* candle */
.video-wrap {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5),
              0 0 25px rgba(255, 200, 150, 0.3);
}
/*
.candle-video {
  width: 180px;
  display: block;
}
*/

/* poem */
.poem {
  color: rgba(255,255,255,0.9);
  line-height: 1.7;
  font-size: 1.1rem;
  text-shadow: 0 0 8px rgba(0,0,0,0.6);
}

.poem p {
  margin-bottom: 14px;
}

.signature {
  margin-top: 20px;
  font-style: italic;
  font-size: clamp(24px, 2.2vw, 18px);
}




    .image-wrapper {
      float: left;
      width: 300px;
      /*height: 200px;*/
      margin: 0 20px 20px 0;
      shape-outside: inset(0 round 15px); 
      clip-path: inset(0 round 15px);     
      overflow: hidden;
      border-radius: 15px;  /* ensures rounding even on mobile */
    }

    .image-wrapper img {
      width: 100%;
      height: 100%;
      object-fit: cover;       
      display: block;
      border-radius: 15px;   /* ensures image itself is rounded */
    }



   .clearfix::after {
      content: "";
      display: table;
      clear: both;
    }
    /* ===== RESPONSIVE STYLES ===== */
    @media (max-width: 700px) {
      .image-wrapper {
        float: none;            
        width: 100%;            
        height: auto;           
        shape-outside: none;    
        /* Keep rounding for mobile */
        clip-path: inset(0 round 15px);  
        border-radius: 15px;
        margin: 0 0 20px 0;     
      }

      .image-wrapper img {
        height: auto;
        border-radius: 15px;   /* ensure corners stay rounded */
      }

      .drop-cap:first-letter {
        float: none;            
        font-size: 2.5em;
        margin-right: 5px;
      }
    }

    /* desktop spacing */
@media (min-width: 1024px) {
  .poem {
    font-size: 1.25rem;
    line-height: 1.9;
    letter-spacing: 0.04em;
  }

  .candle-video {
    width: 270px;
  }
}