.memorial-page {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  /* Reduced left/right paddings to 0 so the container flush-fits the screen boundaries */
  padding: 0 0 3.5rem 0; 
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Arial", sans-serif;
  color: #1a1a1a;
  background: linear-gradient(180deg, #f5f7fa 0%, #eef2f6 100%);
}


.hero {
  position: relative;
  overflow: hidden;
  border-radius: 0; /* Changed from 1.2rem to bleed completely off-screen edge */
  box-shadow: 0 24px 60px rgba(15, 27, 51, 0.2);
  margin-bottom: 3rem;
  background: #000;
  min-height: 880px;
  width: 100%;
}


.hero-image {
  width: 100%;
  height: 880px;
  object-fit: cover;
  object-position: center top;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem;
  color: #ffffff;
  text-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  background: linear-gradient(180deg, rgba(5, 13, 29, 0.28) 0%, rgba(5, 13, 29, 0.82) 100%);
  z-index: 10;
}

.hero-content h2 {
  margin: 0.25rem 0 1rem;
  font-size: clamp(2rem, 3vw, 3.4rem);
  font-weight: 500;
  line-height: 1.1;
  max-width: 16ch;
  color: burlywood;
}

.hero-content h1 {
  margin: 0.25rem 0 1rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  max-width: 16ch;
}



.hero-content .eyebrow {
  margin-bottom: -20rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1.3rem;
  font-weight: 700;
  color: #c46b5a;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.hero-content .eyebrow.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.25rem;
}

.hero-links a {
  display: inline-block;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-image-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  padding: 0;
  overflow: hidden;
  border-radius: 999px;
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

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

.hero-links a:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.hero-description {
  max-width: 62ch;
  font-size: 1.02rem;
  line-height: 1.85;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.project-links {
  margin-bottom: 1.1rem;
  position: relative;
  z-index: 1;
  background: #ffffff;
  border: 1px solid #e4e8ee;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(20, 35, 60, 0.07);
}

.project-links {
  margin-left: clamp(0.75rem, 2vw, 1.25rem);
  margin-right: clamp(0.75rem, 2vw, 1.25rem);
  margin-bottom: 1.1rem;
  /* Rest of your existing project-links layout stays unchanged */
}

.section .h1{
    opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.section-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.1rem;
}

.section-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 84px;
  text-decoration: none;
  color: #223047;
  transition: transform 0.2s ease;
}

.section-icon:hover,
.section-icon:focus-visible {
  transform: translateY(-3px);
}

.section-icon__glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f4e2d5 0%, #f4e2d5 100%);
  box-shadow: 0 6px 16px rgba(21, 61, 117, 0.12);
  font-size: 1.4rem;
}

.section-icon__label {
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

.section-lead {
  margin: 0 0 1.3rem;
  color: #556173;
  line-height: 1.7;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
}

.project-card {
  padding: 1rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, #f4e2d5 0%, #f4e2d5 100%);
  border: 1px solid #d9e3ef;
  box-shadow: 0 8px 22px rgba(13, 38, 76, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(13, 38, 76, 0.12);
}

.project-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.project-card p {
  margin-bottom: 1.2rem;
  line-height: 1.8;
  color: #516073;
}

.project-card a {
  color: #0a4cc4;
  text-decoration: none;
  font-weight: 600;
}

.featured-video-shell {
  position: relative;
  width: 100%;
}

.video-omri {
  display: block;
  width: 100%;
  margin: 0 0 1.6rem;
  position: relative;
  z-index: 0;
}

.featured-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
}

.featured-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-fullscreen-button {
  min-height: 44px;
  margin-top: 0.75rem;
  padding: 0.55rem 1rem;
  border: 1px solid #cfdbe9;
  border-radius: 999px;
  background: #fff;
  color: #1e4d9a;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.video-fullscreen-button:hover,
.video-fullscreen-button:focus-visible {
  background: #eaf2ff;
}

.featured-video-shell:fullscreen {
  width: 100%;
  height: 100%;
  background: #000;
}

.featured-video-shell:fullscreen .featured-video-frame {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
}

.featured-video-shell:fullscreen .video-fullscreen-button {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  z-index: 1;
  margin: 0;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
}

.mitzpe-info {
  display: none;
}

.mitzpe-info.is-visible {
  display: block;
}

.mitzpe-dir {
  display: none;
}

.mitzpe-dir.is-visible {
  display: block;
}

.tlamim-info {
  display: none;
}

.tlamim-info.is-visible {
  display: block;
}

.sucar-info {
  display: none;
}

.sucar-info.is-visible {
  display: block;
}

.upcoming-events-card {
  margin: 1.4rem 0 1.6rem;
  background: linear-gradient(180deg, #f9fcff 0%, #eef6ff 100%);
  border-color: #c9dff4;
}

.upcoming-events-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.upcoming-events-list {
  display: grid;
  gap: 0.9rem;
}

.upcoming-event {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 1.1rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #dce8f6;
}

.upcoming-event__date {
  font-weight: 800;
  color: #1e4d9a;
  font-size: 0.95rem;
  background: #f4e2d5;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  text-align: center;
}

.store-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
  align-items: start;
  margin-top: 1rem;
}

.store-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.store-photo-button {
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.store-photo {
  display: block;
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(20, 35, 60, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-photo-button:hover .store-photo,
.store-photo-button:focus-visible .store-photo {
  transform: scale(1.03);
  box-shadow: 0 10px 24px rgba(20, 35, 60, 0.14);
}

.store-photo--large {
  width: 100%;
  max-width: 220px;
  height: 140px;
  border-radius: 14px;
}

.store-photo--small {
  width: 100px;
  height: 100px;
  border-radius: 12px;
}

.store-item .cta-button {
  margin-top: 0;
  white-space: nowrap;
  text-align: center;
}

.gallery-grid {
  column-count: 2;
  column-gap: 12px;
  margin-top: 1rem;
}

.gallery-photo-button {
  display: block;
  width: 100%;
  padding: 0;
  margin-bottom: 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  break-inside: avoid;
}

.gallery-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(20, 35, 60, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-photo-button:hover .gallery-photo,
.gallery-photo-button:focus-visible .gallery-photo {
  transform: scale(1.03);
  box-shadow: 0 10px 24px rgba(20, 35, 60, 0.14);
}

@media (min-width: 560px) {
  .gallery-grid {
    column-count: 3;
  }
}

@media (min-width: 900px) {
  .gallery-grid {
    column-count: 4;
  }
}

.store-photo-modal {
  position: fixed;
  inset: 0;
  background: rgba(12, 19, 31, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 9999;
}

.store-photo-modal.is-visible {
  display: flex;
}

.store-photo-modal img {
  max-width: min(90vw, 620px);
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  object-fit: contain;
  background: #fff;
}

.store-photo-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: rgba(255, 255, 255, 0.18);
  color: white;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}


.upcoming-event h3 {
  margin: 0 0 0.35rem;
}

.upcoming-event p {
  margin: 0;
  color: #516073;
}

.add-to-calendar-button {
  margin-top: 0.7rem;
  min-height: 44px;
  padding: 0.6rem 1rem;
  border: 1px solid #cfdbe9;
  border-radius: 999px;
  background: #fff;
  color: #1e4d9a;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.add-to-calendar-button:hover {
  background: #eaf2ff;
  transform: translateY(-1px);
}

.home-slideshow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.home-slideshow__viewport {
  position: relative;
  flex: 1;
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-slideshow__image {
  display: none;
  /*width: 240px;*/
  height: 370px;
  object-fit: cover;
  border-radius: 0.8rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-bottom-left-radius: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.home-slideshow__image.active {
  display: block;
}

.home-slideshow__button {
  border: none;
  /*background: #2c3e50;*/
  color: white;
  /*width: 2rem;*/
  height: 2rem;
  border-radius: 999px;
  cursor: pointer;
  /*font-size: 1rem;*/
  line-height: 1;
}

.details-intro {
  margin: 2rem 0 1rem;
  padding: 1.1rem 0.25rem;
  border-top: 1px solid #d8dfe8;
}

.details-intro h2 {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
  color: #223047;
}

.details-intro p {
  margin: 0;
  color: #5f6c7d;
}

.story-section {
  margin-bottom: 1rem;
  padding: 1.9rem 2rem;
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid #dfe5ee;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
}

.detail-card {
  border-right: 5px solid #133a72;
}

.story-section p {
  line-height: 1.8;
  color: #484848;
  margin: 0.8rem 0;
}

.share-memory-highlight {
  margin-top: 1.35rem;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  border-color: #c8d7f1;
}

.cta-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1.3rem;
  background: #2c3e50;
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
  background: #1a252f;
  transform: translateY(-2px);
}

.cta-clean {
  background: #ffffff;
  color: #1a3760;
  border: 1px solid #9cb3d4;
  border-radius: 999px;
  letter-spacing: 0.01em;
}

.cta-clean:hover {
  background: #eaf2ff;
  color: #102a4d;
  border-color: #6f90bf;
}

.spotify-section {
  margin-top: 1.5rem;
}

.spotify-embed {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  margin: 1rem 0;
  max-width: 100%;
}

.spotify-embed__player {
  flex: 0 1 400px;
  min-width: 280px;
  overflow: hidden;
  border: 1px solid #1db954;
  border-right: 0;
  border-radius: 8px 0 0 8px;
}

.spotify-embed__header {
  background: #1db954;
  color: #fff;
  padding: 0.75rem 1rem;
  font-weight: 600;
}

.spotify-embed__frame {
  height: 100px;
  overflow: hidden;
  background: #fff;
}

.spotify-embed__iframe {
  display: block;
  border: 0;
}

.spotify-embed__cover {
  flex: 0 0 auto;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border: 1px solid #1db954;
  border-left: 0;
  border-radius: 0 8px 8px 0;
  padding: 0;
}

.spotify-embed__cover-img {
  display: block;
  height: 104px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  background: transparent;
  margin-top: auto;
  margin-bottom: -2px;
}

.project-card .instagram-media {
  width: 100% !important;
  max-width: 400px !important;
  min-width: 0 !important;
  margin: 0 auto !important;
}

#farm {
  background-color: #f3f0f0; /* Replace with your hex or color variable */
  padding: 40px 20px;  
  /*font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif*/
}


.project-card:has(.instagram-media) {
  overflow: hidden;
  display: flex;
  justify-content: center;
  padding: 1rem;
}

@media (max-width: 720px) {
  .hero {
    border-radius: 0.9rem;
  }

  .project-card:has(.instagram-media) {
    padding: 0.6rem;
  }

  .hero-content {
    padding: 1.4rem;
  }

  .hero-links {
    gap: 0.55rem;
  }

  .hero-links a {
    padding: 0.5rem 1rem;
  }

  .project-links {
    padding: 1.1rem;
  }

  .story-section {
    padding: 1.35rem 1.2rem;
  }
}


