/* ============================================================
   Historic Rivermill — site.css
   Single stylesheet replacing all WordPress/Elementor CSS.
   ============================================================ */

/* ----- Design Tokens ----- */
:root {
  --rm-bg:        #FBF7F4;
  --rm-bg-footer: #F9EEE5;
  --rm-border:    #E3D7CC;
  --rm-text:      #0E0D0E;
  --rm-text-light:#96999F;
  --rm-link:      #E74923;
  --rm-link-hover:#C9320E;
  --rm-gold:      #AF791B;
  --rm-gold-hover:#a6702a;
  --rm-cta-bg:    #af791b;
  --rm-white:     #fff;
  --rm-black:     #000;
  --rm-max-width: 1320px;
  --rm-font-body: 'Gentium Plus', Georgia, serif;
  --rm-font-heading: 'Cormorant Garamond', 'Gentium Plus', serif;
  --rm-font-nav:  span, serif;
  --rm-font-ui:   'Roboto', 'DM Sans', sans-serif;
}

/* ----- @font-face: Blackford (local) ----- */
@font-face {
  font-family: 'Blackford';
  src: url('/wp-content/themes/twentynineteen/fonts/Blackford.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ----- Reset / Base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  font-family: var(--rm-font-body);
  font-size: 18px;
  line-height: 1.75;
  color: var(--rm-text);
  background: var(--rm-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rm-link); text-decoration: none; }
a:hover { color: var(--rm-link-hover); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--rm-font-body);
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 0.5em;
}
h1 { font-size: 42px; }
h2 { font-size: 42px; }
h3 { font-size: 34px; }
h4 { font-size: 24px; }
h5 { font-size: 20px; }
h6 { font-size: 16px; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.5em; }

/* ----- Skip Links ----- */
.rm-skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 100000;
}
.rm-skip-link:focus {
  left: 10px;
  top: 10px;
  width: auto;
  height: auto;
  padding: 8px 16px;
  background: var(--rm-white);
  color: var(--rm-text);
  font-size: 14px;
}

/* ----- Container ----- */
.rm-container {
  max-width: var(--rm-max-width);
  margin: 0 auto;
  padding: 0 30px;
}
.rm-container--narrow { max-width: 45em; }

/* ============================================================
   HEADER / NAV (position: absolute — overlays hero, scrolls away)
   Fixes #6: not fixed, not sticky.
   ============================================================ */
.rm-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 28px 55px;
}
/* Gradient overlay: ensures white text readable on any hero (fixes #5) */
.rm-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 70%, transparent 100%);
  z-index: -1;
  pointer-events: none;
}
.rm-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.rm-logo { display: block; flex-shrink: 0; }
.rm-logo img {
  max-height: 70px;
  width: auto;
  height: auto;
}

/* Desktop Nav */
.rm-nav { display: flex; align-items: center; gap: 0; }
.rm-nav__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}
.rm-nav__item a {
  display: inline-block;
  padding: 0.8em;
  font-family: var(--rm-font-nav);
  font-size: 21px;
  font-weight: 600;
  color: var(--rm-white);
  text-decoration: none;
  white-space: nowrap;
}
.rm-nav__item a:hover { color: var(--rm-gold-hover); }
.rm-nav__item--active a { color: var(--rm-white); }

/* Social icons in nav */
.rm-social { display: flex; gap: 12px; margin-left: 16px; }
.rm-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--rm-white);
  width: 24px;
  height: 24px;
}
.rm-social a:hover { color: var(--rm-gold-hover); }
.rm-social svg { width: 18px; height: 18px; fill: currentColor; }

/* Mobile menu toggle (details/summary, no JS) */
.rm-menu-toggle { display: none; }
.rm-menu-toggle__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  list-style: none;
  color: var(--rm-white);
  background: none;
  border: none;
  padding: 8px;
}
.rm-menu-toggle__btn::-webkit-details-marker { display: none; }
.rm-menu-toggle__btn::marker { display: none; content: ''; }
.rm-menu-toggle__btn svg { width: 28px; height: 28px; fill: currentColor; }
.rm-menu-toggle[open] .rm-nav__list {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  background: rgba(0,0,0,0.92);
  padding: 20px;
  gap: 0;
}
.rm-menu-toggle[open] .rm-nav__item a {
  display: block;
  padding: 12px 20px;
  font-size: 18px;
}

/* ============================================================
   HERO
   ============================================================ */
.rm-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
.rm-hero img,
.rm-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.rm-hero--slideshow img {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.rm-hero--slideshow img.active { opacity: 1; }

/* Hero CTA button */
.rm-hero__cta {
  position: absolute;
  bottom: 100px;
  right: 60px;
  z-index: 10;
  display: inline-block;
  padding: 12px 59px;
  background-color: var(--rm-cta-bg);
  color: var(--rm-black);
  font-family: var(--rm-font-ui);
  font-size: 28px;
  line-height: 1.5;
  font-weight: 500;
  text-decoration: none;
  border-radius: 16px;
}
.rm-hero__cta:hover { background-color: var(--rm-black); color: var(--rm-white); }
.rm-hero__cta--slide { display: none; }
.rm-hero__cta--slide.active { display: inline-block; }
.rm-hero__cta--slide[data-slide="0"] {
  right: auto;
  left: 50%;
  transform: translateX(-50%);
  bottom: 25%;
}

/* Hero dots (slideshow navigation) */
.rm-hero__dots {
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rm-hero__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--rm-white);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s;
}
.rm-hero__dot.active { background: #da1f2c; border-color: #da1f2c; }

/* OpenTable widget */
.rm-hero__opentable {
  position: absolute;
  bottom: 80px;
  right: 350px;
  z-index: 10;
  background: var(--rm-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  width: 320px;
  height: 400px;
}
.rm-hero__opentable iframe {
  position: absolute;
  top: -15px;
  left: -20px;
  width: 380px;
  height: 460px;
  border: 0;
  transform: scale(1.15);
  transform-origin: top left;
}

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */
.rm-section {
  padding: 40px 0;
}
.rm-section--full { max-width: none; padding-left: 0; padding-right: 0; }
.rm-section--boxed .rm-container { max-width: var(--rm-max-width); }

/* Spacer */
.rm-spacer { display: block; }

/* Divider */
.rm-divider {
  border: none;
  border-top-style: solid;
  border-top-width: 1px;
  border-top-color: var(--rm-black);
  margin: 15px auto;
  width: 100%;
}

/* Text section */
.rm-text { text-align: center; }
.rm-text--left { text-align: left; }

/* CTA button */
.rm-btn {
  display: inline-block;
  padding: 10px 28px;
  border: 1px solid var(--rm-text);
  color: var(--rm-text);
  font-family: var(--rm-font-ui);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: background 0.2s, color 0.2s;
}
.rm-btn:hover { background: var(--rm-text); color: var(--rm-white); }
.rm-btn--gold { border-color: var(--rm-gold); color: var(--rm-gold); }
.rm-btn--gold:hover { background: var(--rm-gold); color: var(--rm-white); }
.rm-btn--filled { background: var(--rm-gold); border-color: var(--rm-gold); color: var(--rm-white); }
.rm-btn--filled:hover { background: var(--rm-gold-hover); }
.rm-btn-wrap { text-align: center; margin-top: 20px; }

/* ============================================================
   CARDS / GRIDS
   ============================================================ */
.rm-grid {
  display: grid;
  gap: 30px;
}
.rm-grid--2col { grid-template-columns: repeat(2, 1fr); }
.rm-grid--3col { grid-template-columns: repeat(3, 1fr); }
.rm-grid--4col { grid-template-columns: repeat(4, 1fr); }

.rm-card { text-align: center; }
.rm-card img { width: 100%; height: auto; margin-bottom: 15px; }
.rm-card h3, .rm-card h4, .rm-card h5 { margin-top: 10px; }

/* Pricing card */
.rm-pricing { text-align: center; padding-top: 50px; }
.rm-pricing__price {
  font-size: 20px;
  font-weight: 700;
  margin: 10px 0;
}
.rm-pricing__text { text-align: left; }

/* Image + text 2-col */
.rm-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}
.rm-split img { width: 100%; }

/* Titled texts (values/mission/vision) */
.rm-titled-text { text-align: center; margin-bottom: 30px; }
.rm-titled-text h3 { margin-bottom: 0.5em; }

/* About section (2-col with image carousel + text) */
.rm-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}
.rm-about__text { margin-left: 18%; }
.rm-about__subtitle {
  display: block;
  font-family: var(--rm-font-ui);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: var(--rm-text-light);
}
.rm-about__carousel { position: relative; overflow: hidden; }
.rm-about__carousel img { width: 100%; display: none; }
.rm-about__carousel img.active { display: block; }
.rm-about__prev, .rm-about__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.4);
  color: #fff;
  border: none;
  font-size: 28px;
  padding: 8px 14px;
  cursor: pointer;
  line-height: 1;
  z-index: 2;
}
.rm-about__prev { left: 8px; }
.rm-about__next { right: 8px; }
.rm-about__prev:hover, .rm-about__next:hover { background: rgba(0,0,0,.7); }

/* Blog grid */
.rm-blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.rm-blog-card { overflow: hidden; }
.rm-blog-card img { width: 100%; height: auto; }
.rm-blog-card__meta {
  font-size: 14px;
  color: var(--rm-text-light);
  margin: 8px 0;
}
.rm-blog-card__meta a { color: var(--rm-text-light); }
.rm-blog-card h4 a { color: var(--rm-text); text-decoration: none; }
.rm-blog-card h4 a:hover { color: var(--rm-link); }

/* Activity card */
.rm-activity { text-align: center; }
.rm-activity img { max-width: 100%; margin: 0 auto 25px; }
.rm-activity__details {
  font-family: var(--rm-font-body);
  font-size: 18px;
}
.rm-activity__note { font-size: 12px; }

/* Amenities 4-col list */
.rm-amenities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.rm-amenities ul {
  list-style: disc;
  padding-left: 1.5em;
  font-family: var(--rm-font-body);
}

/* ============================================================
   FOOTER (default)
   ============================================================ */
.rm-footer {
  background-color: var(--rm-white);
  padding: 0;
}
.rm-footer__main {
  background-color: var(--rm-white);
  padding: 45px 0 0;
}
.rm-footer__cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
}
.rm-footer h6 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}
.rm-footer p { margin: 0 0 6px; }
.rm-footer a { color: var(--rm-text); text-decoration: none; }
.rm-footer a:hover { text-decoration: underline; }
.rm-footer__phone {
  font-family: var(--rm-font-body);
  font-weight: 700;
}
.rm-footer__badge img { width: 125px; height: 125px; }
.rm-footer__contact-btn {
  position: fixed;
  top: 600px;
  right: -10px;
  z-index: 9999;
}

/* Footer bottom bar */
.rm-footer__bottom {
  padding: 10px 0;
  border-top: 1px solid var(--rm-border);
  margin-top: 50px;
  text-align: center;
  font-size: 16px;
  color: var(--rm-text-light);
}

/* ============================================================
   WEDDINGS — Header / Nav
   ============================================================ */
.rm-header--wed {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 40px;
}
.rm-header--wed::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 70%, transparent 100%);
  z-index: -1;
  pointer-events: none;
}
.rm-header--wed .rm-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rm-header--wed .rm-logo img { max-height: 60px; }
.rm-header--wed .rm-nav__item a {
  font-family: var(--rm-font-ui);
  font-size: 16px;
  font-weight: 400;
  color: var(--rm-white);
  padding: 0.6em 1em;
}
.rm-header--wed .rm-nav__item a:hover {
  color: var(--rm-gold);
}
.rm-header--wed .rm-nav__item--active a {
  border-bottom: 2px solid var(--rm-gold);
}

/* ============================================================
   WEDDINGS — Content Sections
   ============================================================ */
/* Hero - YouTube video background */
.rm-wed-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rm-wed-hero__video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.rm-wed-hero__video iframe {
  width: 100vw;
  height: 56.25vw;
  min-height: 100%;
  min-width: 177.77vh;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.rm-wed-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--rm-white);
  padding: 40px;
}
.rm-wed-hero__content h2 {
  color: var(--rm-white);
  font-family: 'Blackford', serif;
  font-size: 60px;
  font-weight: 400;
}

/* Weddings subheading */
.rm-wed-subheading {
  text-align: center;
  padding: 60px 30px;
  background: var(--rm-white);
}
.rm-wed-subheading h2 {
  font-family: 'Blackford', serif;
  font-weight: 400;
}

/* Weddings about */
.rm-wed-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 60px 30px;
}
.rm-wed-about--mobile { display: none; }

/* Weddings location cards */
.rm-wed-locations {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.rm-wed-location-card { text-align: center; }
.rm-wed-location-card img { width: 100%; border-radius: 4px; margin-bottom: 12px; }
.rm-wed-location-card h3 { font-size: 18px; margin-bottom: 4px; }
.rm-wed-location-card p { font-size: 14px; color: var(--rm-text-light); }

/* Weddings offers/features */
.rm-wed-offers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding: 60px 30px;
}
.rm-wed-feature h3 { font-size: 18px; margin-bottom: 4px; }
.rm-wed-feature p { font-size: 14px; }

/* Weddings packages */
.rm-wed-packages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.rm-wed-package { text-align: center; }
.rm-wed-package img { width: 100%; margin-bottom: 12px; }
.rm-wed-package h2 { font-family: 'Blackford', serif; font-size: 24px; font-weight: 400; }

/* Weddings accordion (details/summary) */
.rm-wed-accordion details { border-bottom: 1px solid var(--rm-border); }
.rm-wed-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
}
.rm-wed-accordion summary::-webkit-details-marker { display: none; }
.rm-wed-accordion summary::marker { display: none; content: ''; }
.rm-wed-accordion summary .rm-wed-icon--open { display: none; }
.rm-wed-accordion details[open] summary .rm-wed-icon--open { display: block; }
.rm-wed-accordion details[open] summary .rm-wed-icon--closed { display: none; }
.rm-wed-accordion .rm-wed-accordion__body { padding: 0 0 16px; }

/* Check icon list */
.rm-check-list { list-style: none; padding: 0; }
.rm-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
}
.rm-check-list li svg { flex-shrink: 0; width: 16px; height: 16px; fill: var(--rm-gold); margin-top: 4px; }

/* Weddings accommodation */
.rm-wed-accommodation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 60px 30px;
}
.rm-wed-accommodation--mobile { display: none; }

/* Weddings gallery */
.rm-wed-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 35px;
}
.rm-wed-gallery a {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
}
.rm-wed-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Weddings blog posts */
.rm-wed-blogs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.rm-wed-blog-card img { width: 100%; height: 350px; object-fit: cover; }
.rm-wed-blog-card h1 {
  font-family: 'Blackford', serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 31px;
  margin-top: 10px;
}
.rm-wed-blog-card__meta {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--rm-text-light);
}
.rm-wed-blog-card__meta svg { fill: var(--rm-gold); width: 23px; height: 23px; vertical-align: middle; }
.rm-wed-blog-card__excerpt {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--rm-text-light);
}
.rm-wed-blog-card__more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--rm-text);
  text-decoration: none;
}
.rm-wed-blog-card__more svg { width: 12px; height: 12px; fill: currentColor; }

/* Weddings brochure download */
.rm-wed-brochure { text-align: center; padding: 60px 30px; }

/* Weddings location map */
.rm-wed-location-map { padding: 40px 30px; }

/* Weddings FAQ */
.rm-wed-faq { padding: 60px 30px; }
.rm-wed-faq__header { text-align: center; margin-bottom: 30px; }

/* Weddings footer */
.rm-footer--wed {
  text-align: center;
  padding: 40px 30px;
  background: var(--rm-white);
}
.rm-footer--wed img { margin: 0 auto 16px; max-height: 95px; }
.rm-footer--wed .rm-social { justify-content: center; margin: 16px 0; }
.rm-footer--wed .rm-social a { color: var(--rm-text); }
.rm-footer--wed .rm-social a:hover { color: var(--rm-gold); }
.rm-footer--wed p { font-size: 14px; color: var(--rm-text-light); }
.rm-footer--wed__login a { color: var(--rm-text-light); text-decoration: underline; }
.rm-footer--wed .rm-btn {
  position: fixed;
  bottom: auto;
  top: 600px;
  right: -10px;
  z-index: 9999;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1279px) {
  .rm-header { padding: 20px 30px; }
  .rm-logo img { max-height: 50px; }
  .rm-nav__item a { font-size: 18px; padding: 0.6em; }
}

@media (max-width: 1024px) {
  :root { --rm-max-width: 1024px; }
  .rm-grid--4col { grid-template-columns: repeat(2, 1fr); }
  .rm-blog-grid { grid-template-columns: repeat(2, 1fr); }
  .rm-amenities { grid-template-columns: repeat(2, 1fr); }
  .rm-wed-locations { grid-template-columns: repeat(2, 1fr); }
  .rm-wed-packages { grid-template-columns: repeat(2, 1fr); }
  .rm-wed-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .rm-wed-blogs { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  :root { --rm-max-width: 100%; }

  /* Header: show hamburger, hide desktop nav */
  .rm-nav--desktop { display: none; }
  .rm-menu-toggle { display: block; }
  .rm-header { padding: 10px 16px; }
  .rm-header--wed { padding: 10px 16px; }
  .rm-logo img { max-height: 40px; }

  /* Stacked layouts */
  .rm-grid--2col,
  .rm-grid--3col,
  .rm-grid--4col { grid-template-columns: 1fr; }
  .rm-split { grid-template-columns: 1fr; }
  .rm-about { grid-template-columns: 1fr; }
  .rm-about__text { margin-left: 0; }
  .rm-blog-grid { grid-template-columns: 1fr; }
  .rm-amenities { grid-template-columns: 1fr; }

  /* Footer */
  .rm-footer__cols { grid-template-columns: 1fr; }
  .rm-footer__bottom { font-size: 15px; line-height: 1.4; }

  /* Hero adjustments */
  .rm-hero__cta { bottom: 40px; right: 20px; font-size: 20px; padding: 10px 30px; }
  .rm-hero__dots { right: 20px; }
  .rm-hero__opentable { display: none; }

  /* Weddings mobile */
  .rm-wed-about--desktop { display: none; }
  .rm-wed-about--mobile { display: block; }
  .rm-wed-about--mobile .rm-wed-about { grid-template-columns: 1fr; }
  .rm-wed-accommodation--desktop { display: none; }
  .rm-wed-accommodation--mobile { display: block; }
  .rm-wed-accommodation--mobile .rm-wed-accommodation { grid-template-columns: 1fr; }
  .rm-wed-locations { grid-template-columns: 1fr; }
  .rm-wed-packages { grid-template-columns: 1fr; }
  .rm-wed-gallery { grid-template-columns: 1fr; }
  .rm-wed-blogs { grid-template-columns: 1fr; }
  .rm-wed-offers { grid-template-columns: 1fr; }

  .rm-wed-hero__content h2 { font-size: 36px; }
}

/* Narrow content pages (text-heavy) */
.rm-page--narrow .rm-section .rm-container { max-width: 45em; }

/* Emoji image styles */
img.wp-smiley, img.emoji {
  display: inline !important;
  border: none !important;
  box-shadow: none !important;
  height: 1em !important;
  width: 1em !important;
  margin: 0 0.07em !important;
  vertical-align: -0.1em !important;
  background: none !important;
  padding: 0 !important;
}

/* ----- Event Popup ----- */
.rm-popup { display: none; position: fixed; inset: 0; z-index: 9999; }
.rm-popup.active { display: flex; align-items: center; justify-content: center; }
.rm-popup__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.rm-popup__box {
  position: relative;
  max-width: 520px;
  width: 90%;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  animation: rm-popup-in .3s ease;
}
@keyframes rm-popup-in {
  from { opacity: 0; transform: scale(.92); }
  to { opacity: 1; transform: scale(1); }
}
.rm-popup__box img { width: 100%; display: block; }
.rm-popup__close {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(0,0,0,.5);
  color: #fff;
  border: none;
  font-size: 24px;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  z-index: 2;
}
.rm-popup__close:hover { background: rgba(0,0,0,.8); }
.rm-popup__footer { padding: 16px; text-align: center; }
.rm-popup__btn {
  display: inline-block;
  padding: 10px 32px;
  background: var(--rm-cta-bg);
  color: var(--rm-black);
  font-family: var(--rm-font-ui);
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
}
.rm-popup__btn:hover { background: var(--rm-black); color: var(--rm-white); }
