/* Samudaripen page — scoped under body.samudaripen-redesign */

body.samudaripen-redesign {
  background-color: #F3F6FA;
  color: #26221d;
}

/* Header overlay */
body.samudaripen-redesign #firmly-header,
body.samudaripen-redesign .guten-element.guten-WtRO6p {
  background: #0A2540 !important;
  background-color: #0A2540 !important;
  background-image: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* Hero uses event photograph */
body.samudaripen-redesign .guten-4dZ7c2:not(.background-animated),
body.samudaripen-redesign .guten-4dZ7c2.background-animated>.guten-background-animated .animated-layer {
  background-color: var(--color-bg-alt, #F3F6FA) !important;
  background-image: url('/assets/images/15-carousel-images/blog/1.webp') !important;
  background-position: center 30% !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

body.samudaripen-redesign .guten-4dZ7c2>.guten-background-overlay {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.1) 60%, rgba(255, 255, 255, 0) 100%) !important;
  opacity: 1 !important;
}

body.samudaripen-redesign .guten-element.guten-4dZ7c2 {
  margin-top: -111.3px !important;
  min-height: 600px !important;
  padding-top: 260px !important;
  padding-bottom: 130px !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  overflow: hidden;
  box-sizing: border-box;
}

@media (max-width: 991px) {
  body.samudaripen-redesign .guten-element.guten-4dZ7c2 {
    margin-top: -91.3px !important;
    padding-top: 200px !important;
    padding-bottom: 100px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

@media (max-width: 640px) {
  body.samudaripen-redesign .guten-element.guten-4dZ7c2 {
    padding-top: 180px !important;
    padding-bottom: 72px !important;
  }
}

/* Content sections */
body.samudaripen-redesign .samu-section {
  background-color: #ffffff;
  padding: 72px clamp(16px, 2.5vw, 36px) 80px;
}

body.samudaripen-redesign .samu-section--alt {
  background-color: #F3F6FA;
}

body.samudaripen-redesign .samu-section--intro {
  background-color: #ffffff;
}

body.samudaripen-redesign .samu-section--intro .samu-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

body.samudaripen-redesign .samu-container {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}

body.samudaripen-redesign .samu-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
}

body.samudaripen-redesign .samu-grid--reverse {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

body.samudaripen-redesign .samu-grid--reverse .samu-media {
  order: 2;
}

body.samudaripen-redesign .samu-grid--reverse .samu-content {
  order: 1;
}

body.samudaripen-redesign .samu-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.samudaripen-redesign .samu-media {
  position: relative;
  overflow: hidden;
  background: #F3F6FA;
  border: 1px solid #D0D8E4;
  width: 100%;
  height: 100%;
  min-height: 280px;
}

body.samudaripen-redesign .samu-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

body.samudaripen-redesign .samu-title {
  margin: 0 0 20px;
  font-family: var(--reg-font-display, "Fraunces", serif);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--reg-ink, #1F1B14) !important;
}

body.samudaripen-redesign .samu-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.samudaripen-redesign .samu-text p {
  margin: 0;
  font-family: var(--reg-font-body, "Figtree", sans-serif);
  font-size: 1.05rem;
  line-height: 1.7;
  color: #3a342c;
}

/* Photo strip — auto-scrolling infinite loop (Samudaripen only) */
body.samudaripen-redesign .samu-photos {
  background-color: #F3F6FA;
  padding: 0;
  overflow: hidden;
  position: relative;
  width: 100%;
}

body.samudaripen-redesign .samu-photos__marquee {
  display: flex;
  width: 100%;
  overflow: hidden;
  position: relative;
  user-select: none;
}

body.samudaripen-redesign .samu-photos__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: samuMarqueeLoop 32s linear infinite;
}

/* Pause animation only when hovering on photo items */
body.samudaripen-redesign .samu-photos__track:has(.samu-photos__item:hover) {
  animation-play-state: paused;
}

@media (hover: hover) {
  body.samudaripen-redesign .samu-photos__track:hover {
    animation-play-state: paused;
  }
}

body.samudaripen-redesign .samu-photos__group {
  display: flex;
  flex-shrink: 0;
  gap: 0;
}

body.samudaripen-redesign .samu-photos__item {
  margin: 0;
  overflow: hidden;
  flex: 0 0 clamp(240px, 20vw, 360px);
  aspect-ratio: 3 / 4;
  position: relative;
  cursor: pointer;
}

body.samudaripen-redesign .samu-photos__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s cubic-bezier(0.2, 0, 0.2, 1);
}

body.samudaripen-redesign .samu-photos__item:hover img {
  transform: scale(1.04);
}

@keyframes samuMarqueeLoop {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Closing */
body.samudaripen-redesign .samu-closing {
  background-color: #F3F6FA;
  padding: 72px clamp(16px, 2.5vw, 36px) 88px;
}

body.samudaripen-redesign .samu-closing__inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

body.samudaripen-redesign .samu-closing__lead {
  margin: 0 0 24px;
  font-family: var(--reg-font-display, "Fraunces", serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--reg-ink, #1F1B14) !important;
}

body.samudaripen-redesign .samu-closing__final {
  margin: 0;
  font-family: var(--reg-font-body, "Figtree", sans-serif);
  font-size: 1.1rem;
  line-height: 1.7;
  color: #3a342c;
}

@media (max-width: 900px) {

  body.samudaripen-redesign .samu-grid,
  body.samudaripen-redesign .samu-grid--reverse {
    grid-template-columns: 1fr;
  }

  body.samudaripen-redesign .samu-grid--reverse .samu-media,
  body.samudaripen-redesign .samu-grid--reverse .samu-content {
    order: initial;
  }

  body.samudaripen-redesign .samu-media {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  body.samudaripen-redesign .samu-photos__item {
    flex: 0 0 clamp(200px, 32vw, 260px);
  }
}

@media (max-width: 767px) {
  /* Force single column — intro grid is more specific than the shared .samu-grid rule */
  body.samudaripen-redesign .samu-grid,
  body.samudaripen-redesign .samu-grid--reverse,
  body.samudaripen-redesign .samu-section--intro .samu-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  body.samudaripen-redesign .samu-grid--reverse .samu-media,
  body.samudaripen-redesign .samu-grid--reverse .samu-content {
    order: initial;
  }

  body.samudaripen-redesign .samu-section {
    padding: 40px 16px 48px;
    overflow-x: clip;
  }

  body.samudaripen-redesign .samu-container {
    max-width: 100%;
    width: 100%;
    padding: 0;
  }

  /* Section photos: full-width, clear aspect ratio, no collapsed absolute fill */
  body.samudaripen-redesign .samu-media {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 4 / 5;
    overflow: hidden;
  }

  body.samudaripen-redesign .samu-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
  }

  body.samudaripen-redesign .samu-title {
    font-size: clamp(1.35rem, 5.5vw, 1.7rem);
    line-height: 1.25;
    margin-bottom: 14px;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
  }

  body.samudaripen-redesign .samu-text p {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  body.samudaripen-redesign .samu-closing {
    padding: 44px 16px 56px;
  }

  body.samudaripen-redesign .samu-closing__lead {
    font-size: clamp(1.25rem, 5vw, 1.6rem);
    line-height: 1.35;
  }

  body.samudaripen-redesign .samu-closing__final {
    font-size: 1rem;
    line-height: 1.65;
  }

  /* Photo marquee — larger cards so images read clearly on phones */
  body.samudaripen-redesign .samu-photos {
    padding: 0 !important;
    overflow: hidden;
    width: 100%;
  }

  body.samudaripen-redesign .samu-photos__marquee {
    width: 100%;
    overflow: hidden;
  }

  body.samudaripen-redesign .samu-photos__item {
    flex: 0 0 78vw !important;
    max-width: 320px;
    aspect-ratio: 3 / 4 !important;
  }

  body.samudaripen-redesign .samu-photos__item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
  }

  /* Hero: long title + lead readable on small screens (this page only) */
  body.samudaripen-redesign .inner-split {
    height: 800px;
    min-height: 800px;
    max-height: 800px;
    aspect-ratio: auto;
    overflow-x: clip;
  }

  body.samudaripen-redesign .inner-split-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  body.samudaripen-redesign .inner-split-media > img {
    object-fit: cover;
    object-position: center 36%;
  }

  body.samudaripen-redesign .inner-split-copy {
    padding: 72px 16px 24px;
  }

  body.samudaripen-redesign .inner-split-hero .contact-hero-copy .about-hero-main-title {
    font-size: clamp(1.45rem, 6vw, 1.75rem) !important;
    line-height: 1.25 !important;
    max-width: none !important;
    overflow-wrap: break-word;
  }

  body.samudaripen-redesign .inner-split-hero .contact-hero-copy .about-hero-lead-text {
    font-size: 0.98rem !important;
    line-height: 1.6 !important;
  }
}