:root {
  --brown: #5f4b3c;
  --orange: #e2821d;
  --cream: #f5f3ea;
  --blue: #228cc0;
}



html {
    font-size: 14px;
}

@media screen and (min-width: 700px) {
  html {
    font-size: calc(14px + 3 * ((100vw - 700px) / 500));
  }
}
@media screen and (min-width: 1200px) {
  html {
    font-size: 17px;
  }
}

.row {
    max-width: 1280px;
    padding-left: 4.5%;
    padding-right:4.5%;
}


p, li, button, html, body {
    font-family: "FibraOneRegular", sans-serif;
}

h1, h2, h3, h4 {
    font-family: "FibraOneUltraBold", sans-serif;
}

a {
    -webkit-transition: all .25s ease-in-out;
    transition: all .25s ease-in-out;
}

.map-area {
    position:relative;
}

.cursor-tooltip {
    position: fixed;
    background-color: white;
    color: rgb(100, 83, 166);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-family: sans-serif;
    pointer-events: none; /* Prevents the tooltip from interfering with mouse events */
    opacity: 0;
    transition: opacity 0.2s ease;
    transform: translate(15px, 15px); /* Offsets the tooltip slightly from the exact cursor tip */
    z-index: 1000;
    font-family:"FibraOneBold", sans-serif;
    font-weight:700;
}

/* Utility class to show the tooltip */
.cursor-tooltip.visible {
    opacity: 1;
}

.add-memory-button, .add-memory-button:focus {
    background: rgb(206, 220, 0);
    color: rgb(55, 41, 123);
    border-width: medium;
    border-style: none;
    border-color: currentcolor;
    border-image: none;
    border-radius: 999px;
    padding: 14px 40px;
    font-size: 16px;
    font-family:"FibraOneBold";
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 4px 16px;
    transition: background 150ms, box-shadow 150ms, transform 100ms;
    outline: none;
    position: absolute; 
    bottom: 7%; 
    left: 50%; 
    transform: translateX(-50%); 
    z-index: 1000;
}

.add-memory-button:hover {
    background: rgb(217, 234, 26);
    box-shadow: rgba(0, 0, 0, 0.4) 0px 6px 20px;
    color: rgb(55, 41, 123);
}

#add-memory-popup {
    width: 100%; 
    max-width: 1100px; 
    max-height: 94%; 
    display: flex; 
    flex-direction: column; 
    background: white; 
    border-radius: 16px; 
    box-shadow: rgba(0, 0, 0, 0.28) 0px 24px 64px; 
    overflow: hidden; 
    pointer-events: all; 
}

.add-memory-form {
    display: flex; 
    flex-direction: column; 
    overflow: hidden; 
}

.add-memory-popup-header {
    background:linear-gradient(145deg, rgb(121, 101, 178) 0%, rgb(133, 115, 184) 38%, rgb(107, 89, 168) 68%, rgb(112, 96, 181) 100%);
    position: relative; 
    flex-shrink: 0; 
    overflow: hidden;
}

.add-memory-popup-header img {
    width:56px; 
    height: 73px; 
    flex-shrink: 0; 
    margin-top: 2px;
}

.add-memory-popup-header-inner {
    background: rgba(90, 70, 160, 0.35); 
    padding: 28px 32px 28px 36px; 
    display: flex; 
    align-items: flex-start; 
    gap: 20px;
}

.add-memory-popup-main-area-inner {
    padding:52px;
}

.selected-spot-area {
    background: rgb(121, 101, 178); 
    border-radius: 12px; 
    padding: 20px 24px; 
    display: flex; 
    align-items: flex-start; 
    gap: 16px;
}

.public-or-private {
    display: flex; 
    gap: 24px; 
    margin-top: 12px; 
    flex-wrap: wrap;
}

.animated {
    animation-timing-function: linear, ease-in-out; 
    animation-iteration-count: infinite, infinite;
    will-change: transform;
    animation-play-state: running, running;
}

.animated-paused {
    animation-play-state: paused, paused;
}

.toggle-animation {
    background-color:rgba(255, 255, 255, 0.1);
    background-image:url("../img/animation-pause-button.svg");
    background-repeat: no-repeat;
    background-size: 13px;
    background-position: 13px center;
    padding: 8px 18px 8px 35px;
    display: flex; 
    align-items: center; 
    gap: 8px; 
    border: 1.5px solid rgba(255, 255, 255, 0.42); 
    border-radius: 999px; 
    color: white; 
    font-size: 13px; 
    cursor: pointer; 
    font-family: "FibraOneRegular"; 
    transition: background 150ms; 
    outline: none;
}

.toggle-animation:hover {
    background-color:rgba(255, 255, 255, 0.2);
}

.toggle-animation.paused {
    background-image:url("../img/animation-play-button.svg");
}

.toggle-animation::before {
    content:"Pause animation";
}

.toggle-animation.paused::before {
    content:"Play animation";
}

@keyframes driftLeft  { from { transform: translateX(0) } to { transform: translateX(-300vw) } }
@keyframes driftRight { from { transform: translateX(0) } to { transform: translateX(300vw)  } }
@keyframes starGlow {
    0%,100% { filter: drop-shadow(0 0 6px rgba(206,220,0,0.35)) }
    50%     { filter: drop-shadow(0 0 22px rgba(206,220,0,0.75)) }
}

.footer-links a {
    font-family:"FibraOneRegular";
    color:rgba(255, 255, 255, 0.68);
    font-size: 13px; 
    text-decoration: none; 
    transition: color 150ms;
}

.footer-links a:hover {
    color:rgba(255,255,255,1);
}

.header-link {
    color: rgb(0, 78, 180); 
    font-family:"FibraOneRegular";
    font-size: 14px; 
    line-height: 18px; 
    text-decoration: none; 
    white-space: nowrap;
    border-bottom: 1px solid #CEDC00;
}

.header-link:hover {
    border-bottom: 1px solid rgb(0, 78, 180);
    color: rgb(0, 78, 180); 
}

.memories-header {
    display: flex; 
    align-items: flex-start; 
    justify-content: space-between; 
    flex-wrap: wrap; 
    gap: 24px; 
    margin-bottom: 36px;
}

.memories-header h2 {
    margin: 0px 0px 10px; 
    font-size: clamp(28px, 3.8vw, 42px); 
    font-weight: 800; 
    color: rgb(100, 83, 166); 
    line-height: 1.12;
}

.memories-header p {
    margin: 0px; 
    font-size: 16px; 
    color: rgb(88, 85, 98); 
    line-height: 1.55;
}

.memory-page-intro {
    background:linear-gradient(145deg, rgb(121, 101, 178) 0%, rgb(133, 115, 184) 38%, rgb(107, 89, 168) 68%, rgb(112, 96, 181) 100%);
}

.donate-button, .donate-button:focus {
    background: #1C57A5; 
    color: white; 
    font-family: "FibraOneUltraBold"; 
    font-size: 14px; 
    letter-spacing: 0.07em; 
    padding: 10px 24px; 
    border-radius: 999px; 
    text-decoration: none; 
    white-space: nowrap; 
    display: inline-block; 
    transition: background 150ms;
}

.donate-button:hover {
    background: rgb(0, 64, 160); 
    color:white;
}

.thank-you-donate-button, .thank-you-donate-button:focus {
    display: inline-flex; 
    align-items: center; 
    gap: 10px; 
    background: rgb(28, 87, 165); 
    color: white; 
    border-width: medium; 
    border-style: none; 
    border-color: currentcolor; 
    border-image: none; 
    border-radius: 999px; 
    padding: 0px 36px; 
    height: 58px; 
    font-size: 17px; 
    font-weight: 700; 
    font-family: "FibraOneBold"; 
    text-decoration: none; 
    box-shadow: rgba(28, 87, 165, 0.28) 0px 4px 16px; 
    transition: background 150ms; 
    flex-shrink: 0;
}

.thank-you-donate-button:hover {
    background: rgb(0, 64, 160); 
    color:white;
}

.return-to-map-button {
    background: none; 
    border-width: medium; 
    border-style: none; 
    border-color: currentcolor; 
    border-image: none; 
    cursor: pointer; 
    padding: 0px; 
    color: rgb(55, 41, 123); 
    font-size: 15px; 
    font-weight: 500; 
    font-family: "FibraOneSemiBold"; 
    text-decoration: underline; 
    text-underline-offset: 3px;
}

.return-to-map-button:hover {
    color: rgb(121, 101, 178);
    border-color: rgb(121, 101, 178);
}

.enter-map-button, .enter-map-button:focus {
    background: rgb(206, 220, 0); 
    color: rgb(55, 41, 123); 
    border-width: medium; 
    border-style: none; 
    border-color: currentcolor; 
    border-image: none; 
    border-radius: 999px; 
    padding: 0px 48px; 
    height: 60px; 
    font-size: 18px; 
    font-weight: 700; 
    font-family:"FibraOneBold";
    cursor: pointer; 
    display: inline-flex; 
    align-items: center; 
    gap: 12px; 
    white-space: nowrap; 
    box-shadow: rgba(0, 0, 0, 0.3) 0px 4px 16px; 
    outline: none; 
    letter-spacing: 0.01em;
}

.enter-map-button:hover {
    background:rgb(217,234,26);
    color:rgb(55, 41, 123);
}

.standard-footer {
    background: #CEDC00; 
    position: relative; 
    overflow: hidden; 
    margin-top: auto;
}

.footer-navigation {
    display: flex; 
    align-items: center; 
    gap: 28px; 
    flex-wrap: wrap;
}

.footer-navigation a {
    color: rgb(0, 78, 180); 
    font-size: 14px; 
    line-height:18px;
    text-decoration: none; 
    font-family:"FibraOneRegular";
    border-bottom: 1px solid #CEDC00;
}

.footer-navigation a:hover {
    border-bottom: 1px solid rgb(0, 78, 180);
    color: rgb(0, 78, 180);
}

#map {
    height:80vh;
    width:100%;
}

.standard-content-area {
    background:linear-gradient(145deg, rgb(121, 101, 178) 0%, rgb(133, 115, 184) 38%, rgb(107, 89, 168) 68%, rgb(112, 96, 181) 100%);
    min-height: 100vh;
    padding-top:3rem;
    padding-bottom:3rem;
}

.standard-content-area p, .standard-content-area li {
    font-size:1rem;
    color:white;
}

.standard-content-area li {
    margin-bottom:0;
}

.standard-content-area p, .standard-content-area ul {
    margin-bottom:0.5rem;
    line-height:1.5;
}

.standard-content-area p a, .standard-content-area li a {
    color:white;
    border-bottom:1px solid white;
}

.standard-content-area p a:hover, .standard-content-area li a:hover {
    color:#CEDC00;
    border-bottom:1px solid #CEDC00;
}

.standard-content-area h1 {
    font-size:3rem;
    color:#CEDC00;
    font-family:"FibraOneUltraBold";
    line-height:1.3;
}

.standard-content-area h2 {
    font-family:"FibraOneUltraBold";
    color:white;
    font-size:1.5rem;
    margin-bottom:0;
    margin-top:1rem;
    line-height:1.3;
}

.carousel-slide {
    padding-right: .9375rem;
    padding-left: .9375rem;
}

.carousel-slide-inner {
    background: rgb(215, 209, 232); 
    border-width: 3px 1.5px 1.5px; 
    border-style: solid; 
    border-color: rgb(100, 83, 166) rgb(224, 221, 240) rgb(224, 221, 240); 
    border-image: none; 
    border-radius: 8px; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    cursor: pointer; 
    transition: transform 175ms, box-shadow 175ms; 
    transform: translateY(0px); 
    box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 4px; 
    outline: none;
    margin-top:13px;
    margin-bottom:3rem;
}

.carousel-slide-inner:hover {
    transform: translateY(-13px); 
    box-shadow: rgba(100, 83, 166, 0.15) 0px 8px 24px;
}

.view-memory-arrow {
    color: rgb(88, 85, 98); 
    transition: transform 175ms; 
    transform: translateX(0px); 
    display: inline-block; 
    font-size: 15px;
}

.carousel-slide-inner:hover .view-memory-arrow {
    transform: translateX(4px); 
}

.reveal-overlay {
    background-color: rgba(28, 18, 54, 0.62);
}

.reveal {
    padding: 0;
    border: none;
    background-color: white;
    top:5vh !important;
    max-height:90vh;
    width: 90% !important;
}

.modal-header {
    background:linear-gradient(145deg, rgb(121, 101, 178) 0%, rgb(133, 115, 184) 38%, rgb(107, 89, 168) 68%, rgb(112, 96, 181) 100%);
    border-radius: 12px 12px 0px 0px; 
    padding: 40px 48px; 
    display: flex; 
    align-items: flex-start; 
    gap: 24px; 
    position: relative; 
    overflow: hidden;
}

.modal-close-btn {
    position: absolute; 
    top: 20px; 
    right: 20px; 
    width: 44px; 
    height: 44px; 
    border-radius: 50%; 
    border: 2px solid rgba(255, 255, 255, 0.7); 
    background: rgba(255, 255, 255, 0.1); 
    color: white; 
    font-size: 20px; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    flex-shrink: 0; 
    transition: background 150ms; 
    font-family: "FibraOneRegular"; 
    z-index: 2; 
    outline: none;
}

.close-button:focus, .close-button:hover {
    color: white;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.modal-carousel img, .modal-slick-carousel img {
    border-radius:8px;
}

.modal-carousel-slide {
    height:358px;
    background-color:#f1edf9;
    text-align:center;
}

.modal-carousel-slide img {
    margin-left:auto;
    margin-right:auto;
}

.share-buttons-wrapper {
    display: flex; 
    flex-direction: row; 
    gap: 12px;
}

.slick-arrow-left {
    position:absolute;
    bottom:24%;
    left:-11%;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1.5px solid rgb(121, 101, 178);
    background: white;
    color: rgb(121, 101, 178);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    transition: background 150ms, color 150ms;
    font-family: "FibraOneRegular";
}

.carousel .slick-arrow-left {
    bottom: 50%;
    left: -5%;
}

.modal-carousel-nav-two-slides .slick-arrow-left {
    left:-36%;    
}

.slick-arrow-right {
    position: absolute;
    bottom: 24%;
    right: -11%;
    border: 1px solid black;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1.5px solid rgb(121, 101, 178);
    background: white;
    color: rgb(121, 101, 178);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    transition: background 150ms, color 150ms;
    font-family: "FibraOneRegular";
}

.carousel .slick-arrow-right {
    bottom: 50%;
    right: -5%;
}

.modal-carousel-nav-two-slides .slick-arrow-right {
    right:-36%;    
}

.slick-arrow-left:hover, .slick-arrow-right:hover {
    background: rgb(121, 101, 178);
    color:white;
}

.memory-popup-single-image {
    border-radius:6px;
}

.modal-carousel-nav {
    margin-top:20px;
    width:82%;
    margin-left:auto;
    margin-right:auto;
}

.modal-carousel-nav-two-slides {
    margin-top:20px;
    width:58%;
    margin-left:auto;
    margin-right:auto;
}

.modal-carousel-nav img, .modal-carousel-nav-two-slides img {
    border-radius:6px;
    margin-left:5px;
    margin-right:5px;
    border:3px solid rgb(241, 237, 249);
}

.modal-carousel-nav .slick-current, .modal-carousel-nav-two-slides .slick-current {
    border:3px solid rgb(121, 101, 178);
    border-radius:6px;
}

.watch-video-link, .watch-video-link:focus {
    font-size: 14px; 
    color: rgb(100, 83, 166); 
    text-decoration: underline; 
    text-underline-offset: 3px; 
    font-weight: 600; 
    display: flex; 
    align-items: center; 
    gap: 4px; 
    white-space: nowrap;
}

.watch-video-link:hover {
    color: rgb(55, 41, 123); 
}

.input-container {
  position: relative;
}

.form-error {
  display: none;
  position: absolute;
  top: -35px;
  left: 10px;
  background-color: rgb(185, 28, 28);
  color: white;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  z-index: 10;
}

.form-error::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 15px;
  border-width: 5px;
  border-style: solid;
  border-color: rgb(185, 28, 28) transparent transparent transparent;
}

.input-container textarea.is-invalid-input ~ .form-error,
.input-container textarea[data-invalid] ~ .form-error {
  display: block !important;
}


#from-name, #to-name, #email, #memory-title {
    width: 100%; 
    height: 52px; 
    padding: 0px 16px; 
    border: 1.5px solid rgb(221, 218, 240); 
    border-radius: 10px; 
    background: white; 
    font-size: 15px; 
    color: rgb(26, 18, 32); 
    font-family: "FibraOneRegular"; 
    outline: none; 
    box-sizing: border-box; 
    transition: border-color 150ms, box-shadow 150ms;
    margin-bottom:0;
}

#memory, .report {
    width: 100%; 
    min-height: 180px; 
    padding: 14px 16px; 
    resize: vertical; 
    border: 1.5px solid rgb(221, 218, 240); 
    border-radius: 10px; 
    background: white; 
    font-size: 15px; 
    color: rgb(26, 18, 32); 
    font-family: "FibraOneRegular"; 
    outline: none; 
    box-sizing: border-box; 
    line-height: 1.6; 
    transition: border-color 150ms, box-shadow 150ms;
    margin-bottom:0;
}

.report {
    margin-bottom:2rem;
}

#from-name.is-invalid-input:not(:focus), #to-name.is-invalid-input:not(:focus), #email.is-invalid-input:not(:focus), #memory.is-invalid-input:not(:focus), .report.is-invalid-input:not(:focus) {
    border:1.5px solid rgb(185, 28, 28);
    box-shadow: rgba(185, 28, 28, 0.15) 0px 0px 0px 3px;
}

.is-invalid-input:not(:focus)::placeholder {
    color: #8c898e;
}

input::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  color: #8c898e;
}
input::-moz-placeholder { /* Firefox 19+ */
  color: #8c898e;
}
input:-ms-input-placeholder { /* IE 10+ */
  color: #8c898e;
}
input:-moz-placeholder { /* Firefox 18- */
  color: #8c898e;
}

textarea::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  color: #8c898e;
}
textarea::-moz-placeholder { /* Firefox 19+ */
  color: #8c898e;
}
textarea:-ms-input-placeholder { /* IE 10+ */
  color: #8c898e;
}
textarea:-moz-placeholder { /* Firefox 18- */
  color: #8c898e;
}

.filepond--panel-root {
    background: rgb(241, 237, 249) !important;
    border-radius: 12px !important;
}

.filepond--drop-label.filepond--drop-label label {
    color: rgb(121, 101, 178);
    font-weight: 700;
    font-size: 16px;
    margin: 0px 0px 6px;
}

.upload-requirements {
    display:block;
    color: rgb(88, 85, 98);
    font-size: 13px !important;
    font-weight:400;
    margin: 6px 0px 20px;
}

.filepond--label-action {
    background: white;
    color: rgb(55, 41, 123);
    border: 1.5px solid rgb(100, 83, 166);
    border-radius: 999px;
    padding: 10px 28px;
    font-size: 15px;
    font-weight: 700;
    font-family: "FibraOneUltraBold";
    cursor: pointer;
    outline: none;
    transition: background 150ms;
    text-decoration:none !important;
    display:inline-block;
}

.filepond--label-action:hover {
    background:transparent;
}

.filepond--root .filepond--drop-label {
    min-height: 242px !important;
}

.filepond--drop-label img {
    width: 40px;
    height: 40px;
    opacity: 0.7;
    display: block;
    margin: 0 auto 16px;
}

.leaflet-marker-icon {
    -webkit-transition: all .15s ease-in-out;
    transition: all .15s ease-in-out;
    filter: drop-shadow(rgba(0, 0, 0, 0.22) 0px 2px 4px);
}

.leaflet-marker-icon:hover {
    width:55px !important;
    height: 75px !important;
    margin-left:-28px !important;
    margin-top:-75px !important;
    filter: drop-shadow(rgba(55, 41, 123, 0.55) 0px 5px 10px);
    background-size:55px 75px;
}

.leaflet-marker-icon.new-marker:hover, .leaflet-marker-icon.is-highlighted:hover {
    width:55px !important;
    height: 75px !important;
    margin-left:-28px !important;
    margin-top:-75px !important;
    filter:none;
    background-size:55px 75px;
}

.leaflet-bar a {
    color: rgb(68, 68, 68) !important;
}

.leaflet-touch .leaflet-bar a:first-child {
    border-top-left-radius: 6px !important;
    border-top-right-radius: 6px !important;
}

.leaflet-touch .leaflet-bar a:last-child {
    border-bottom-left-radius: 6px !important;
    border-bottom-right-radius: 6px !important;
}

.leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar {
    border: 0 !important;
}

.leaflet-left .leaflet-control {
    margin-left: 2rem !important;
}
.leaflet-top .leaflet-control {
    margin-top: 2rem !important;
}

.leaflet-touch .leaflet-bar a {
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
}

.leaflet-geosearch-bar {
    margin: 2rem auto 0 !important;
}

.leaflet-touch .leaflet-geosearch-bar form input {
    height: 40px !important;
    font-size: 17px !important;
    font-family: "FibraOneRegular", sans-serif !important;
    border-radius: 20px !important;
    background-image: url(../img/search-icon.svg);
    background-size: 16px;
    background-repeat: no-repeat;
    background-position: 15px 12px;
    padding: 8px 10px 10px 45px !important;
}

.leaflet-touch .leaflet-geosearch-bar form {
    border: none !important;
    background-color:transparent !important;
}

.leaflet-bar {
    border-radius: 20px !important;
}

.leaflet-geosearch-bar form {
    border-radius: 20px !important;
}

.leaflet-control-geosearch .reset {
    display: none;
}

.leaflet-geosearch-bar form input {
    min-width: 90% !important;
    width: 100% !important;
    display:inline-block !important;
    text-indent: 0 !important;
    box-shadow: none !important;
}

.leaflet-geosearch-bar form input:focus {
    border:none !important;
}

.leaflet-control-geosearch .results.active {
    padding: 8px 0;
    border-top: none;
    margin-top: 7px;
    border-radius: 10px;
}

.leaflet-touch .leaflet-control-geosearch .results.active:after {
    border-left: none;
}

.thank-you-share-button, .thank-you-share-button:focus {
    background: rgb(206, 220, 0); 
    color: rgb(55, 41, 123); 
    border: 2px solid rgb(55, 41, 123); 
    border-radius: 999px; 
    padding: 12px 24px; 
    font-size: 15px; 
    font-weight: 600; 
    font-family: "FibraOneBold"; 
    cursor: pointer; 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    white-space: nowrap; 
    text-decoration: none; 
    transition: background 150ms; 
    outline: none; 
    flex-shrink: 0;
    position:relative;
}

.thank-you-share-button:hover {
    background: rgb(184,200,0);
    color: rgb(55, 41, 123);
}

.modal-body .thank-you-share-button {
    margin-bottom:15px;
}

.copy-link-tooltip {
    position: absolute;
    display: none;
    background-color: #1C57A5;
    color: white;
    padding: 6px 12px 6px 12px;
    border-radius: 19px;
    width: max-content;
    left: 50%;
    bottom: -34px;
    translate: -50%;
    z-index:9999;
}

.modal-body h3 {
    margin: 0px 0px 16px;
    font-size: 22px;
    font-weight: 800;
    color: rgb(100, 83, 166);
    line-height: 1.2;
}

/* Maintain container layout stability during transitions */
#migx-results {
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
}

/* Class to smoothly fade-in your results once they load */
#migx-results.show-results {
    opacity: 1;
}

/* Smoothly hide the carousel without breaking its slider engine or layout */
.hide-carousel-safe {
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: opacity 0.25s ease-in-out, visibility 0.25s;
}

/* Active carousel styling to support smooth transitions */
#recent-memories-carousel {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s ease-in-out, visibility 0.25s;
}

/* Match the approximate height of your carousel container */
.migx-results-empty {
    min-height: 450px; /* Adjust this number to match the actual height of your carousel */
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-results {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
}

.loading {
    padding: 20px 0;
    text-align: center;
}

.template3 #main-content {
    margin-bottom:3rem;
}

.use-this-location {
    width: 100%; 
    background: rgb(206, 220, 0); 
    color: rgb(55, 41, 123); 
    border-width: medium; 
    border-style: none; 
    border-image: none; 
    border-radius: 999px; 
    padding: 7px 24px; 
    font-size: 15px; 
    font-weight: 700; 
    font-family: "FibraOneUltraBold"; 
    cursor: pointer; 
    margin-bottom: 10px; 
    transition: background 150ms, box-shadow 150ms; 
    box-shadow: none;
    font-family: "FibraOneUltraBold";
}

.use-this-location:hover {
    background:rgb(217,234,26);
    box-shadow:rgba(0,0,0,0.2) 0px 4px 16px;
}

.leaflet-popup {
    background: white; 
    border-radius: 16px; 
    overflow: hidden; 
    box-shadow: rgba(0, 0, 0, 0.25) 0px 8px 32px; 
    z-index: 20;
    margin:0 !important;
    padding-bottom:24px;
}

.leaflet-popup-content-wrapper, .leaflet-popup-tip {
    background: transparent !important;
    box-shadow: none !important;
}

.leaflet-container a.leaflet-popup-close-button {
    position:relative !important;
    font-family:"FibraOneRegular" !important;
}

.leaflet-container a.leaflet-popup-close-button::after {
    content:"Cancel";
    padding: 6px 0px;
    font-size: 14px;
    color: rgb(88, 85, 98);
    font-family: "FibraOneRegular", sans-serif;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.leaflet-container a.leaflet-popup-close-button span {
    display:none;
}

.leaflet-popup-content {
    margin: 0 !important;
}

.leaflet-popup-content-wrapper {
    padding: 0 !important;
}

.map-active .leaflet-marker-icon {
    opacity:0.5;
}

.map-active .leaflet-marker-icon.new-marker {
    opacity:1;
}

.existing-marker {
    width: 47px;
    height: 64px;
    background-image:url('../img/luam-map-marker-94x128.png');
    background-size:47px 64px;
}

.new-marker, .is-highlighted {
    width: 47px;
    height: 64px;
    background-image:url('../img/luam-map-marker-94x128.png');
    background-size:47px 64px;
    filter:drop-shadow(rgba(206, 220, 0, 0.85) 0px 0px 10px) drop-shadow(rgba(55, 41, 123, 0.65) 0px 4px 14px);
}

.new-marker::after, .is-highlighted::after {
    content: "";
    display: block;
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgb(206, 220, 0);
    animation: 1.8s ease-in-out 0s infinite normal none running tempPinPulse;
    pointer-events: none;
}

@keyframes tempPinPulse {
  0% {
    transform: translateX(-50%) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translateX(-50%) scale(1.8);
    opacity: 0;
  }
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.4;
  }
}

.leaflet-popup-tip-container {
    display: none;
}

.search-for-a-place {
    background: none; 
    border: 1.5px solid rgb(100, 83, 166); 
    border-radius: 999px; 
    padding: 8px 18px; 
    font-size: 13px; 
    color: rgb(100, 83, 166); 
    font-family: "FibraOneUltraBold"; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    transition: background 150ms;
}

.search-for-a-place:hover {
    background:rgb(245,243,255);
}

.radio-button-label {
    display: flex; 
    align-items: center; 
    gap: 8px; 
    cursor: pointer; 
    font-size: 14px; 
    color: rgb(88, 85, 98); 
    user-select: none;
}

.radio-button {
    accent-color: rgb(100, 83, 166); 
    cursor: pointer;
    margin:0;
}

.report-memory-button {
    font-size: 13px; 
    color: rgb(88, 85, 98); 
    text-decoration: underline; 
    text-underline-offset: 3px; 
    opacity: 0.7;
}

.report-memory-button:hover {
    color:#585562;
    opacity:1;
    cursor:pointer;
}

.report-memory-modal {
    border-radius:12px;
}

.report-memory-modal-header {
    background-color:#7965b2;
    padding:40px;
}

.report-memory-modal-header h2 {
    color: white;
    font-size: clamp(26px, 3.5vw, 42px);
    font-weight: 700;
    line-height:1.2;
}

.report-memory-modal-body {
    padding:40px;
}

#migx-search {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border-radius: 6px;
    border: 1.5px solid rgb(221, 218, 240);
    background: white;
    font-size: 15px;
    color: rgb(34, 34, 34);
    outline: none;
    font-family: "FibraOneRegular";
    transition: border-color 150ms, box-shadow 150ms;
    box-shadow:none;
}

#migx-search:focus {
    border:1.5px solid rgb(100,83,166);
    box-shadow:rgba(100,83,166,0.18) 0px 0px 0px 3px;
}

.js-locate-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    border-radius: 999px;
    font-size: 16px;
    font-family: "FibraOneBold";
    cursor: pointer;
    transition: background 150ms, box-shadow 150ms, transform 100ms;
    outline: none;
    background: white;
    color: rgb(100, 83, 166);
    border: 2px solid rgb(100, 83, 166);
}

.js-locate-marker:hover {
    background:rgb(241,237,249);
    box-shadow: rgba(121,101,178,0.2) 0px 2px 12px;
}

.submit-report, #submitFormBtn  {
    background: rgb(206, 220, 0); 
    color: rgb(55, 41, 123); 
    border-width: medium; 
    border-style: none; 
    border-color: currentcolor; 
    border-image: none; 
    border-radius: 999px; 
    padding: 0px 36px; 
    height: 56px; 
    font-size: 16px; 
    font-weight: 700; 
    font-family: "FibraOneBold"; 
    cursor: pointer; 
    display: inline-flex; 
    align-items: center; 
    gap: 10px; 
    white-space: nowrap; 
    box-shadow: rgba(0, 0, 0, 0.18) 0px 4px 16px; 
    transition: background 150ms; 
    outline: none; 
    flex-shrink: 0;
}

.submit-report:hover, #submitFormBtn:hover {
    background-color:rgb(217, 234, 26);
}

.freeprivacypolicy-com---nb .cc-nb-text {
    font-weight: 300 !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
    color: rgb(55, 41, 123) !important;
    margin-bottom: 10px !important;
    font-family: FibraOneLight, Helvetica, sans-serif !important;
    font-weight:normal !important;
}

.freeprivacypolicy-com---nb .cc-nb-title {
    font-size: 15px !important;
    line-height: 1.1 !important;
    font-family: FibraOneSemibold, Helvetica, sans-serif !important;
    margin-bottom: 10px !important;
    color: rgb(55, 41, 123) !important;
    margin-bottom: 0.25rem !important;
    font-weight:normal !important;
}

.freeprivacypolicy-com---nb .cc-nb-main-container {
    padding: 0.75rem !important;
    background-color: rgb(215, 209, 232) !important;
}

.freeprivacypolicy-com---palette-light .cc-nb-okagree, .freeprivacypolicy-com---palette-light .cc-cp-foot-save {
    background-color: #1C57A5 !important;
    border: 1px solid #1C57A5 !important;
    border-radius: 20px !important;
    padding: 0.1rem 0.5rem;
    margin-right: 0.25rem !important;
    font-family: FibraOneSemibold, Helvetica, sans-serif !important;
    color:white !important;
    font-weight:normal !important;
    font-size:13px !important
}

.freeprivacypolicy-com---palette-light.freeprivacypolicy-com---nb {
    -webkit-box-shadow: 0px 5px 20px -12px rgb(0 0 0 / 75%) !important;
    box-shadow: 0px 5px 20px -12px rgb(0 0 0 / 75%) !important;
}

.freeprivacypolicy-com---palette-light .cc-nb-reject, .freeprivacypolicy-com---palette-light .cc-nb-changep {
    color: #1C57A5 !important;
    background-color: white !important;
    border: 1px solid #1C57A5 !important;
    border-radius: 20px !important;
    padding: 0.1rem 0.5rem;
    margin-right: 0.25rem !important;
    font-family: FibraOneSemibold, Helvetica, sans-serif !important;
    font-weight:normal !important;
    font-size:13px !important;
}

.freeprivacypolicy-com---palette-light .cc-nb-okagree:focus, .freeprivacypolicy-com---palette-light .cc-nb-okagree:hover, .freeprivacypolicy-com---palette-light .cc-nb-reject:focus, .freeprivacypolicy-com---palette-light .cc-nb-reject:hover, .freeprivacypolicy-com---palette-light .cc-nb-changep:focus, .freeprivacypolicy-com---palette-light .cc-nb-changep:hover {
    box-shadow: none !important;
    background-color: #0E69E2 !important;
    border-color: #0E69E2 !important;
    color:white !important;
}

.freeprivacypolicy-com---nb-simple {
    max-width: 520px !important;
}

@media screen and (max-width: 1000px) {
    .freeprivacypolicy-com---nb-simple {
        max-width: 100% !important;
    }
}

.donate-block h2 {
    font-size: clamp(24px, 3.2vw, 44px); 
    font-weight: 800; 
    color: rgb(28, 87, 165); 
    line-height: 1.1; 
    margin: 0px 0px 24px;
}

.donate-block p {
    color: rgb(28, 87, 165); 
    font-size: clamp(15px, 1.5vw, 17px); 
    line-height: 1.7; 
    margin: 0px 0px 32px;
}

.share-luam-block h2 {
    font-size: clamp(22px, 2.8vw, 34px); 
    font-weight: 800; 
    color: rgb(55, 41, 123); 
    margin: 0px 0px 14px;
}

.share-luam-block p {
    color: rgb(55, 41, 123); 
    font-size: clamp(14px, 1.5vw, 17px); 
    line-height: 1.6; 
    margin: 0px 0px 32px;
}

.search-by-name-area {
    min-width: 200px;
}

.modal-body {
    padding: 48px;
}

.modal-left-hand-side {
    width: 48%;
    float: left;
    display: block;
    margin-right:3%;
}
.modal-left-hand-side>div {
    margin-bottom:48px;
}
.modal-right-hand-side {
    display: block;
    width: 48%;
    float: left;
    margin-bottom: 48px;
}

iframe {
    margin-bottom:1rem;
}

.video-panel {
    margin-bottom:1rem;
}

.right-spot-heading {
    font-size: 17px; 
    color: rgb(206, 220, 0); 
    margin-bottom: 10px; 
    font-family: "FibraOneUltraBold";
}

#right-spot {
    font-size: 13px; 
    color: white; 
    line-height: 1.4; 
    padding-top: 10px; 
    font-family:"FibraOneRegular", sans-serif;
}





.cards-grid {
        grid-template-columns: repeat(4, 1fr);
      }
      @media (max-width: 900px) {
        .cards-grid { grid-template-columns: repeat(2, 1fr); }
      }
      @media (max-width: 560px) {
        .cards-grid { grid-template-columns: 1fr; }
      }
      @media (max-width: 720px) {
        .modal-body {
          grid-template-columns: 1fr !important;
          gap: 32px !important;
          padding: 24px !important;
        }
      }
      
      
      /* Mobile only */
      @media (max-width: 600px) {
        .entry-cols {
          grid-template-columns: 1fr !important;
          text-align: center !important;
          gap: 32px !important;
          padding: 40px 5% 24px !important;
        }
        .entry-cols > div:first-child {
          justify-content: center !important;
          padding-right: 0 !important;
        }
        .entry-campaign-logo {
          width: min(320px, 80vw) !important;
        }
        .entry-cols > div:last-child {
          align-items: center !important;
          padding-left: 0 !important;
        }
        .entry-text-col h1 {
          font-size: clamp(28px, 7vw, 40px) !important;
        }
        .entry-text-col p {
          text-align: center !important;
        }
        .donate-button, .donate-button:focus {
            font-size: 13px;
            padding: 10px 16px;
        }
        .entry-btn-row {
          display: flex !important;
          flex-direction: column !important;
          align-items: center !important;
        }
        .footer-links a {
            display:block;
            margin-bottom:0.5rem;
        }
        .footer-links span {
            display:none;
        }
        .footer-links {
            width:100%;
            text-align:center;
        }
        .toggle-animation {
            margin-top: 1.75rem;
            margin-bottom: 1.5rem;
            margin-left:auto;
            margin-right:auto;
        }
        .standard-content-area h1 {
            font-size: 2.5rem;
        }
        .standard-content-area h2 {
            font-size:1.25rem;
        }
        .standard-footer {
            padding-top: 1rem;
            padding-bottom: 2rem;
        }
        .standard-footer div {
            display:block;
            margin-left:auto;
            margin-right:auto;
        }
        .footer-navigation {
            display: block;
            text-align:center;
            width:100%;
        }
        .footer-navigation a {
            display: block;
            margin-bottom: 0.5rem;
        }
        .search-by-name-area {
            width: 100%;
        }
        .carousel .slick-arrow-left {
            bottom: 57%;
            left: -10%;
        }
        .carousel .slick-arrow-right {
            bottom: 57%;
            right: -10%;
        }
        .leaflet-geosearch-bar {
            max-width: calc(100% - 170px) !important;
        }
        .leaflet-touch .leaflet-geosearch-bar form input {
            font-size: 14px !important;
        }
        #add-memory-popup, .reveal {
            width: 90%;
            left: 5%;
            min-height: inherit;
            overflow: auto;
            max-height: 90%;
            height:inherit;
        }
        .add-memory-popup-header img {
            display:none;
        }
        .add-memory-popup-header-inner {
            padding: 20px 60px 20px 20px;
        }
        .add-memory-popup-main-area-inner {
            padding:20px;
        }
        .selected-spot-area {
            padding: 20px 20px; 
            display: block; 
        }
        .public-or-private {
            display: block; 
        }
        .add-memory-form {
            display: block;
            overflow: auto;
        }
        .modal-header {
            padding: 20px 80px 20px 20px;
        }
        .modal-header img, .modal-header svg {
            display:none !important;
        }
        .modal-body {
            display:block !important;
        }
        .share-buttons-wrapper {
            display: block; 
        }
        .modal-body .thank-you-share-button {
            margin-bottom: 15px;
            display: inline-block;
            width: 100%;
            text-align: center;
        }
        .modal-body .thank-you-share-button svg {
            margin-right:10px;
        }
        .ty-donation-grid {
            text-align:center;
        }
        .ty-donation-grid a {
            margin-left:auto;
            margin-right:auto;
        }
        .modal-left-hand-side {
            width:100%;
            float:none;
        }
        .modal-left-hand-side>div {
            margin-bottom:20px;
        }
        .modal-right-hand-side {
            width:100%;
            float:none;
            margin-bottom:20px;
        }
        .report-memory-button {
            margin-top:1rem;
        }
        .modal-left-hand-side>div {
            padding:20px !important;
        }
        .modal-carousel-slide {
            height:200px;
        }
        .modal-carousel-nav {
            width: 75%;
        }
        .modal-carousel-nav .slick-arrow-left {
            bottom: 17%;
            left: -21%;
        }
        .modal-carousel-nav .slick-arrow-right {
            bottom: 17%;
            right: -21%;
        }
        .freeprivacypolicy-com---nb .cc-nb-main-container {
            padding: 1rem !important;
        }
        .freeprivacypolicy-com---palette-light .cc-nb-okagree, .freeprivacypolicy-com---palette-light .cc-nb-reject, .freeprivacypolicy-com---palette-light .cc-nb-changep {
            width: auto;
            display:inline-block;
        }
        .cursor-tooltip {
            display:none;
        }
        .report-memory-modal-header {
            padding: 20px 80px 20px 20px;
        }
        .report-memory-modal-header h2 br {
            display:none;
        }
        .report-memory-modal-body {
            padding: 20px;
        }
      }
      
      
      
      
      /* Hero row — collapses to single column on mobile */
      @media (max-width: 680px) {
        .hero-row {
          grid-template-columns: 1fr !important;
          gap:20px !important;
          text-align:center;
        }
        .hero-row > div:first-child {
          justify-content: center !important;
        }
      }
      /* Add memory modal layout */
      .am-name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
      .am-media-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
      .am-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
      @media (max-width: 700px) {
        .am-name-row, .am-media-row { grid-template-columns: 1fr; gap: 20px; }
      }
      @media (max-width: 600px) {
        .am-footer { flex-direction: column; align-items: stretch; }
        .am-footer button { width: 100%; justify-content: center; }
      }
      @keyframes modalFadeIn {
        from { opacity: 0 }
        to { opacity: 1 }
      }
      @keyframes modalSlideIn {
        from { opacity: 0; transform: scale(0.97) translateY(8px) }
        to { opacity: 1; transform: scale(1) translateY(0) }
      }
      @keyframes driftLeft  { from { transform: translateX(0) } to { transform: translateX(-300vw) } }
      @keyframes driftRight { from { transform: translateX(0) } to { transform: translateX(300vw)  } }
      @keyframes starGlow {
        0%,100% { filter: drop-shadow(0 0 6px rgba(206,220,0,0.35)) }
        50%      { filter: drop-shadow(0 0 22px rgba(206,220,0,0.75)) }
      }
      @media (max-width: 700px) {
        .ty-donation-grid { grid-template-columns: 1fr !important; }
        .ty-share-btns { gap: 10px !important; }
        .ty-further-actions { gap: 24px !important; flex-direction: column; align-items: center; }
      }
      .modal-close-btn:focus-visible {
        outline: 3px solid #D7E94D !important;
        outline-offset: 2px;
      }
      /* Placement cards — mobile: stack to bottom */
      @media (max-width: 680px) {
        .placement-instruction-card {
          top: auto !important;
          bottom: 12px !important;
          left: 12px !important;
          right: 12px !important;
          transform: none !important;
          width: auto !important;
        }
        .placement-confirm-card {
          top: auto !important;
          right: 12px !important;
          left: 12px !important;
          bottom: 12px !important;
          transform: none !important;
          width: auto !important;
        }
      }




/* Medium only */
@media screen and (min-width: 601px) and (max-width: 1000px) {
    .entry-cols {
        display:block !important;
        width:75% !important;
        margin-left:auto;
        margin-right:auto;
    }
    .entry-cols div {
        padding:0 !important;
    }
    .entry-text-col {
        text-align:center;
    }
    .entry-text-col h1, .entry-text-col p {
        max-width:none !important;
    }
    .carousel .slick-arrow-left {
        bottom: 54%;
        left: -10%;
    }
    .carousel .slick-arrow-right {
        bottom: 54%;
        right: -10%;
    }
    #add-memory-popup, .reveal {
        width: 90%;
        left: 0%;
        min-height: inherit;
        overflow: auto;
        max-height: 90%;
        height:inherit;
    }
    .modal-header {
        padding: 20px;
    }
    .modal-body {
        padding:20px !important;
    }
    .modal-right-hand-side {
        margin-bottom:20px;
    }
    .modal-left-hand-side>div {
        margin-bottom:20px;
    }
    .share-buttons-wrapper {
        display: block;
    }
    .report-memory-button {
        margin-top:1rem;
    }
}
