/* ========================
   ANIMATIONS
   ======================== */
.scroll-down-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 48px;
}
.scroll-down-arrow .fa-chevron-down {
  animation: bounce-down 1.5s infinite cubic-bezier(.4,0,.6,1);
}
@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(12px); }
}
/* ========================
   CUSTOM CSS VARIABLES
   (Bootstrap-compatible)
   ======================== */
:root {
  /* Brand tokens */
  /* Brand Colors */
  --sm-red: #AF272F;
  --sm-gray: #6D6861;
  --sm-gold: #CDB36E;
  --sm-cream: #EDEAE6;
  --sm-black: #000000;
  --sm-white: #FFFFFF;

  /* Override Bootstrap variables */
  --bs-body-font-family: 'Commissioner', sans-serif;
  --bs-body-color: var(--sm-black);
  --bs-body-bg: var(--sm-white);
  --bs-heading-color: var(--sm-black);

  --bs-primary: var(--sm-red);
  --bs-secondary: var(--sm-gray);
  --bs-warning: var(--sm-gold);
  --bs-dark: var(--sm-black);
  --bs-light: var(--sm-cream);

  --bs-link-color: var(--sm-red);
  --bs-link-hover-color: var(--sm-gold);
  --bs-border-color: var(--sm-gold);

  --sm-card-radius: 1rem;
}

/* ========================
   TYPOGRAPHY
   ======================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Gambetta', serif;
  color: var(--sm-black);
}

h1 {
  font-size: 3.75rem;
  font-weight: 500;
}
h2 {
  font-size: 36px;
  font-weight: 500;
}

h3 {
  font-size: 19px;
  font-weight: 500;
}

/*h3 {
  font-family: 'Commissioner', sans-serif;
  font-size: 1rem;
  color: var(--sm-gray);
}*/

p.text-body-md,
.text-body-md {
  font-size: 1.1rem;
  color: #555;
}

p {
    font-family: 'Commissioner', sans-serif;
    font-size: 18px;
    margin-bottom: 1.2rem;
    font-weight: 300;
    color: #555;
}

ul {
    
    font-family: 'Commissioner', sans-serif;
    font-size: 18px;
    margin-bottom: 1.2rem;
    font-weight: 300;
    color: #555;
}

ol {
    
    font-family: 'Commissioner', sans-serif;
    font-size: 18px;
    margin-bottom: 1.2rem;
    font-weight: 300;
    color: #555;
}

.footer-list {
  color: #FFFFFF;
}

.alignLeft {
    float: left;
    margin-right: 12px;
    margin-bottom: 10px;
}

.alignRight {
    float: right;
    margin-left: 12px;
    margin-bottom: 10px;
}

.intro {
  font-family: 'Gambetta', serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}
.welcome {
    font-size: 20px;
    font-weight: 300;
}
.section-heading {
    letter-spacing: 2px;
    text-transform: uppercase
}
.font-size-18 {
    font-size: 18px !important;
}

strong {
    font-weight: 700 !important;
}

/* ========================
   LINKS
   ======================== */
a {
  color: var(--sm-red);
  text-decoration: underline;
  text-decoration-color: rgba(175, 39, 47, 0.35);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
a.link-md {
  font-size: 1.1rem;
}
a:hover,
a:focus {
  color: var(--sm-gold);
  text-decoration-color: rgba(205, 179, 110, 0.8);
}

/* ========================
   BUTTONS
   ======================== */
.btn {
  font-family: 'Commissioner', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  border-radius: 40px;
  padding: 0.75rem 2.5rem;
  box-shadow: 0 4px 16px rgba(175, 39, 47, 0.08);
  transition: background 0.2s, color 0.2s, border 0.2s;
}

.btn-small {
  padding: 5;
}

.btn-primary {
  background-color: var(--sm-red);
  border-color: var(--sm-red);
}

.btn.primary {
  background-color: var(--sm-red);
  border-color: var(--sm-red);
  color: white;
}

.btn.primary:hover {
  background-color: var(--sm-gold);
  border-color: var(--sm-gold);
  color: var(--sm-black);
}

.btn-primary:hover {
  background-color: var(--sm-gold);
  border-color: var(--sm-gold);
  color: var(--sm-black);
}
.btn-gold {
  background-color: var(--sm-gold);
  border-color: var(--sm-gold);
}
.btn-gold:hover {
  background-color: var(--sm-red);
  border-color: var(--sm-red);
  color: var(--sm-white);
}
.btn-outline-primary {
  color: var(--sm-red);
  border-color: var(--sm-red);
}
.btn-outline-primary:hover {
  background-color: var(--sm-red);
  color: var(--sm-white);
}
/* ========================
   BACKGROUNDS & UTILITIES
   ======================== */
.bg-cream { background-color: var(--sm-cream) !important; }
.bg-gray { background-color: var(--sm-gray) !important; color: var(--sm-white); }
.bg-gold { background-color: var(--sm-gold) !important; color: var(--sm-black); }
.bg-black { background-color: var(--sm-black) !important; color: var(--sm-white); }
.bg-transparent { background-color: transparent !important; }

.text-red { color: var(--sm-red) !important; }
.text-gold { color: var(--sm-gold) !important; }
.text-gray { color: var(--sm-gray) !important; }
.text-cream { color: var(--sm-cream) !important; }

.gold-overlay {
  background-color: rgba(205, 179, 110, 0.9);
}
.red-overlay {
  background-color: rgba(175, 39, 47, 0.85);
}

.rounded-1 { border-radius: 1rem !important; }

.gray-overlay {
  background-color: rgba(109, 104, 97, 0.85);
}

form.umbraco-forms-form input[type="submit"] {
    background: #000 !important;
    color: #fff !important;
}

.umbraco-forms-form .umbraco-forms-indicator {
    color: #af272f !important;
}

input.btn.next {
    background-color: #af272f;
    color: #fff;
    border-color: #af272f;
}
/* ========================
   DIVIDERS & DECORATION
   ======================== */
hr {
  border: none;
  border-top: 1px solid var(--sm-gold);
  opacity: 1;
  width: 80%;
  margin: 2rem auto;
}

/* ========================
   IMAGERY OVERLAYS
   ======================== */
.overlay-red { background-color: rgba(175, 39, 47, 0.5); }
.overlay-black { background-color: rgba(0, 0, 0, 0.5); }
.overlay-white { background-color: rgba(255, 255, 255, 0.3); }



.form-overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0,0,0,0.5);
  transition: opacity 500ms;
  visibility: hidden;
  opacity: 0;
  z-index: 2;
}
.form-popup {
  margin: 70px auto;
  padding: 20px;
  border-radius: 5px;
  width: 100px;
  position: relative;
  transition: all 5s ease-in-out;
}

/* ========================
   NAVBAR MENU ITEM STYLES
   ======================== */
.brand-logo {
  height: 48px;
  max-width: 220px;
  width: auto;
}
.navbar-nav .nav-link {
  border-right: 1px solid #cdb36e;
  padding: 0 15px !important;
}
.navbar-nav .nav-item:last-child .nav-link {
  border-right: none;
}
.navbar-nav.flex-row .nav-link {
  border-right: none;
  padding: 0 10px !important;
}
/* ========================
   FOOTER LINK STYLES
   ======================== */
.footer-link {
  text-decoration: none;
  transition: text-decoration 0.2s;
}
.footer-link:hover, .footer-link:focus {
  text-decoration: underline;
}
/* ========================
   FOOTER SOCIAL ICONS
   ======================== */
.footer-social {
  display: inline-block;
  color: var(--sm-gold);
  background: transparent;
  font-size: 1.35rem;
  margin-right: 0.5rem;
  margin-left: 0.5rem;
  transition: color 0.2s, transform 0.2s;
  text-decoration: none;
}
.footer-social:hover, .footer-social:focus {
  color: var(--sm-red);
  transform: scale(1.15);
  text-decoration: none;
}
/* ========================
   BACKGROUND LINES EFFECT
   ======================== */
.bg-lines {
  position: relative;
  z-index: 1;
}
.bg-lines::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255, 0.05) 0,
    rgba(255, 255, 255, 0.05) 1px,
    transparent 1px,
    transparent 15px
  );
  z-index: -1;
}
/* ========================
   WATERMARK EFFECT
   ======================== */
.bg-watermark {
  position: relative;
  z-index: 0;
}
.bg-watermark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('/media/s0fhweho/sma_pattern_ravens_black.png');
  background-repeat: repeat;
  background-position: center;
  opacity: 0.03; /* adjust for subtlety */
  z-index: -1;
}
/* ========================
   ICON HOVER EFFECTS
   ======================== */
.connect-link .connect-icon-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.connect-link .connect-icon {
  transition: transform 0.5s cubic-bezier(.4,2,.6,1);
  will-change: transform;
  display: inline-block;
}
.connect-link:hover .connect-icon,
.connect-link:focus .connect-icon {
  transform: scale(1.25);
}

/* ========================
   INNER PAGE & SIDEBAR
   ======================== */
.inner-hero {
  height: 450px;
  min-height: 300px;
  background-color: #333;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}
.inner-hero .container {
  position: relative;
  z-index: 2;
}

.inner-hero-title {
  font-family: 'Commissioner', sans-serif;
  letter-spacing: 2px;
  font-weight: 400;
  font-size: 3rem;
}

.sidebar-nav .nav-link {
  color: #333;
  padding: .5em 1.5em;
  font-family: 'Commissioner', sans-serif;
  font-size: 1.1rem;
  background-color: #fff;
}
.sidebar-nav .nav-link:hover {
  color: var(--sm-red);
  padding-left: 15px;
  transition: all 0.3s ease;
}
.sidebar-nav {
  border: 1px solid #e6e6e6;
  border-radius: var(--sm-card-radius);
  background-color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}
.sidebar-heading {
  margin: 0;
  padding: 1rem 1.5rem;
  background-color: #fff;
  font-family: 'Gambetta', serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--sm-red);
  border-bottom: 1px solid #e6e6e6;
  border-top-left-radius: var(--sm-card-radius);
  border-top-right-radius: var(--sm-card-radius);
}

.widget-header {
  background-color: var(--sm-red);
  color: #fff;
  padding: 15px;
  font-family: 'Commissioner', sans-serif;
}
.widget-content {
  background-color: #fff;
  padding: 0;
}

.page-heading {
  font-family: 'Gambetta', serif;
  font-weight: 600;
  color: #333;
}

h1.page-heading {
  font-size: 36px;
}

.sidebar-left {
  background-color: #fff;
}
.sidebar-left .nav-link {
  border-bottom: 1px solid #f1f1f1;
  border-radius: 0;
}
.sidebar-left .nav-item:first-child .nav-link {
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}
.sidebar-left .nav-item:last-child .nav-link {
  border-bottom: 0;
  border-bottom-left-radius: var(--sm-card-radius);
  border-bottom-right-radius: var(--sm-card-radius);
}
.sidebar-subnav .nav-link {
  padding-left: 1.75rem;
  font-size: 1rem;
}
.sidebar-subnav {
  background-color: #faf8f4;
  padding: 0.25rem 0 0.5rem;
  border-top: 1px solid #f1ece3;
}

.custom-accordion {
  border-radius: var(--sm-card-radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

  .sidebar-left .nav-link.indent-menu {
    padding-left: 2.25rem;
  }

@media (min-width: 992px) {
  .sidebar-left .nav-link {
    border-left: 3px solid transparent;
    transition: border-color 0.2s ease, background-color 0.2s ease, padding-left 0.2s ease;
    padding-left: 1.25rem;
  }
  .sidebar-left .nav-link.indent-menu {
    padding-left: 2.25rem;
  }


  .sidebar-left .nav-link:hover,
  .sidebar-left .nav-link:focus,
  .sidebar-left .nav-link.active {
    border-left-color: var(--sm-gold);
    background-color: #fffaf2;
    padding-left: 1.5rem;
  }
}

@media (max-width: 768px) {
  .inner-hero-title {
    font-size: 2.25rem;
    letter-spacing: 1px;
  }
}

@media (max-width: 576px) {
  .inner-hero-title {
    font-size: 2rem;
    letter-spacing: 0.5px;
  }
}

.custom-accordion .accordion-item {
  border: none;
  border-radius: 0;
  margin: 0;
}

.custom-accordion .accordion-button {
  background-color: var(--sm-red);
  color: #fff;
  border-radius: 0;
  font-family: 'Commissioner', sans-serif;
  font-size: 1.1rem;
  box-shadow: none;
}

.custom-accordion .accordion-button:not(.collapsed) {
  background-color: var(--sm-gold);
  color: #000;
  box-shadow: none;
}

.custom-accordion .accordion-button:not(.collapsed):after {
  filter: brightness(0);
}

.custom-accordion .accordion-button::after {
  filter: invert(1);
}

.custom-accordion .accordion-body {
  border: 1px solid #e0e0e0;
  border-top: none;
  padding: 1.5rem;
  background: #fff;
}
.custom-accordion .accordion-item:first-child .accordion-button {
  border-radius: var(--sm-card-radius) var(--sm-card-radius) 0 0;
}
.custom-accordion .accordion-item:last-child .accordion-body {
  border-radius: 0 0 var(--sm-card-radius) var(--sm-card-radius);
  border-bottom-left-radius: var(--sm-card-radius);
  border-bottom-right-radius: var(--sm-card-radius);
}

.sidebar-toggle-btn {
  background-color: var(--sm-red);
  color: #fff;
  font-family: 'Commissioner', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  border: none;
  padding: 1rem 1.25rem;
  box-shadow: none !important;
  transition: all 0.2s ease;
  border-radius: var(--sm-card-radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}

.sidebar-toggle-btn:hover {
  background-color: var(--sm-red);
  color: #fff;
}

.sidebar-toggle-btn::after {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: auto;
  content: "";
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23212529' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath stroke-width='1.25' d='M2 5L8 11L14 5'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-size: 1.25rem;
  transition: transform 0.2s ease-in-out;
  filter: invert(1);
}

.sidebar-toggle-btn[aria-expanded="true"] {
  background-color: var(--sm-gold);
  color: #000;
}

.sidebar-toggle-btn[aria-expanded="true"]::after {
  transform: rotate(-180deg);
  filter: brightness(0);
}

/* ========================
   GALLERY TEMPLATE
   ======================== */

/* --- Section headings --- */
.gallery-section-title {
  font-family: 'Gambetta', serif;
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--sm-black);
  margin-bottom: 0.5rem;
}

.gallery-section-desc {
  font-size: 1rem;
  color: #766a5a;
  margin-bottom: 1.5rem;
}

/* --- Base card & grid --- */
.gallery-grid {
  margin-top: 0.5rem;
}

.gallery-card {
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e7e0d4;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover,
.gallery-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.12);
}

.gallery-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.gallery-link:hover,
.gallery-link:focus {
  color: inherit;
  text-decoration: none;
}

.gallery-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-card:hover .gallery-media img,
.gallery-card:focus-within .gallery-media img {
  transform: scale(1.06);
}

.gallery-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent 52%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-card:hover .gallery-media::after,
.gallery-card:focus-within .gallery-media::after {
  opacity: 1;
}

/* --- Gallery 1: Square grid --- */
.gallery-card--square .gallery-media {
  aspect-ratio: 1 / 1;
}

/* --- Text (used by directory template) --- */
.gallery-body {
  padding: 1rem 1rem 1.1rem;
}

.gallery-title {
  font-family: 'Gambetta', serif;
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: #292929;
}

.gallery-meta {
  margin: 0;
  font-size: 14px;
  color: #766a5a;
  font-family: 'Commissioner', sans-serif;
}

/* --- Lightbox modal --- */
.gallery-modal-caption {
  font-family: 'Commissioner', sans-serif;
  color: #fff;
  font-size: 1rem;
  margin: 0;
}

.gallery-modal-counter {
  font-family: 'Commissioner', sans-serif;
  font-size: 0.85rem;
  opacity: 0.8;
}

.gallery-modal-prev,
.gallery-modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-75%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.gallery-modal-prev:hover,
.gallery-modal-next:hover {
  background: rgba(175, 39, 47, 0.8);
}

.gallery-modal-prev:focus,
.gallery-modal-next:focus {
  outline: 2px solid var(--sm-gold);
  outline-offset: 2px;
}

.gallery-modal-prev { left: 1rem; }
.gallery-modal-next { right: 1rem; }

#galleryModalImage {
  transition: opacity 0.15s ease;
  min-height: 200px;
  max-height: 75vh;
  object-fit: contain;
}

/* ========================
   MONK DIRECTORY TEMPLATE
   ======================== */
.directory-card .gallery-media {
  aspect-ratio: 3 / 4;
}

.directory-card .gallery-title {
  font-size: 17px;
  line-height: 1.25;
  margin-bottom: 0.45rem;
}

.directory-card .gallery-meta {
  line-height: 1.45;
}

.directory-card .gallery-meta span {
  display: block;
}

.directory-grid > [class*="col-"] {
  display: flex;
}

.directory-grid .directory-card {
  width: 100%;
  height: 100%;
}

.directory-card,
.directory-card:hover,
.directory-card:focus-within {
  transform: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.directory-card .gallery-link {
  cursor: default;
}

.directory-card:hover .gallery-media img,
.directory-card:focus-within .gallery-media img {
  transform: none;
}

.directory-card:hover .gallery-media::after,
.directory-card:focus-within .gallery-media::after {
  opacity: 0;
}

/* ========================
   NECROLOGY TEMPLATE
   ======================== */
.necrology-main {
  max-width: 960px;
}

.necrology-title {
  margin-bottom: 1rem;
}

.necrology-profile-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.75rem;
  align-items: start;
  margin-bottom: 1.25rem;
}

.necrology-portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 0.35rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.necrology-facts {
  margin: 0;
  padding: 0.2rem 0 0;
  display: grid;
  grid-template-columns: minmax(140px, auto) 1fr;
  column-gap: 0.75rem;
  row-gap: 0.55rem;
}

.necrology-facts dt {
  font-family: 'Commissioner', sans-serif;
  font-size: 1.12rem;
  font-weight: 600;
  color: #444;
  margin: 0;
}

.necrology-facts dd {
  margin: 0;
  font-size: 1.12rem;
  color: #5f5a54;
}

.necrology-tab-shell {
  background: transparent;
  border: 1px solid #e7e0d4;
  border-top: 0;
  border-radius: var(--sm-card-radius);
  overflow: hidden;
  box-shadow: none;
}

.necrology-tabs {
  border-bottom: 1px solid #e7e0d4;
  margin-bottom: 0;
  padding: 0;
  background: transparent;
}

.necrology-tabs .nav-link {
  font-family: 'Commissioner', sans-serif;
  font-weight: 600;
  color: #2f3a4b;
  border: 1px solid #e7e0d4;
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
  text-decoration: none;
  margin-bottom: -1px;
  background: #f8f5ef;
}

.necrology-tabs .nav-link:hover,
.necrology-tabs .nav-link:focus {
  color: #2f3a4b;
  border-color: #e1d9cc #e1d9cc #e7e0d4;
  background: #fbf9f5;
}

.necrology-tabs .nav-link.active {
  color: var(--sm-red);
  border-color: #e7e0d4 #e7e0d4 #ffffff;
  background: #ffffff;
}

.necrology-content {
  background: #ffffff;
  border: 0;
  border-radius: 0;
}

.necrology-tab-pane {
  padding-top: 1.2rem;
}

.necrology-back-link {
  display: inline-block;
  margin-top: 1.25rem;
  text-decoration: none;
}

@media (max-width: 992px) {
  .necrology-profile-head {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .necrology-portrait {
    max-width: 260px;
  }

  .necrology-facts dt {
    font-size: 1.12rem;
  }

  .necrology-facts dd {
    font-size: 1.12rem;
  }
}

/* ========================
   RESPONSIVE TWEAKS
   ======================== */
.bg-fixed-lg {
  background-attachment: scroll !important;
}
@media (min-width: 992px) {
  .bg-fixed-lg {
    background-attachment: fixed !important;
  }
  .visit-pad {
    padding-bottom: 250px;
  }
  .home-video-shift {
    margin-top: -300px;
    max-width: 960px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2,
  h1.page-heading { font-size: 1.75rem; }
  .welcome { font-size: 16px; }
  .font-size-18 { font-size: 16px !important; }
}
@media (max-width: 992px) {
  .navbar-nav .nav-link {
    border-right: none;
    padding: 5px 0 !important;
    font-size: 20px;
  }
  .home-video-shift {
    margin-top: -50px;
  }
  .hero-section {
    border-bottom: 5px solid var(--sm-gray);
  }
}

.video-container iframe {
  z-index: 1;
}

.connect-form-topper {
  border-top-right-radius: 1rem;
  border-top-left-radius: 1rem;
  font-size: 22px;
  font-weight: 600;
}

.connect-form {
  border-bottom-right-radius: 1rem;
  border-bottom-left-radius: 1rem;
  height: 450px;
}
 
.connect-form form {
  padding-left: 100px;
  padding-right: 100px;
  height: 75%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.connect-input {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
 
.connect-input label {
  margin-bottom: 5px;
}

.connect-input input {
  width: 350px;
  height: 40px;
  max-width: 100%;
}

.connect-button {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.connect-grid-outer {
  display: flex;
  align-items: center;
}

.connect-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    height: 85%;
}

.connect-grid-item {
  width: 40%;
  height: 40%;
  min-height: 170px;
  margin: auto;
  border-width: 1px !important;
  border-radius: 1em !important;
}

.connect-grid-item > div{
  flex-direction: column-reverse;
  align-items: center;
  height: 100%;
}

.connect-grid-item p {
  text-align: center;
}

@media(max-width: 1200px) {
  .connect-section {
    height: 615px;
  }

  .connect-form {
    padding-left: 40px !important;
    padding-right: 40px !important;
  }
}

@media(max-width: 992px) {

  .connect-section {
    height: 900px;
  }
  .connect-form {
    height: 500px;
  }
  .connect-input input {
    max-width: 80%;
    margin: 0 auto; 
  }
  .connect-input label {
    text-align: center;
  }
  .mobile-img-margin { 
    margin-top: 50px;
  }
}

@media(max-width: 512px) {

  .connect-icon {
    font-size: 3rem !important;
  }
}

.connect-grid-item:hover {
  background: #000 !important;
}

.connect-grid-item:hover p {
  color: #CDB36E !important;
}

/* ========================
   NEWS PAGES (Archive & Post)
   ======================== */

/* News hero variant */
.inner-hero--news {
  background: url('../media/news_2.jpg') center center/cover no-repeat;
}
.inner-hero--news .hero-overlay {
  background: rgba(0, 0, 0, 0.25);
}

/* Archive hero — shorter height */
.archive-hero.inner-hero {
  height: 320px;
}
@media (max-width: 768px) {
  .archive-hero.inner-hero { height: 240px; }
}
.archive-hero .inner-hero-title {
  font-weight: 300;
  letter-spacing: 4px;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
  font-size: 48px;
}
@media (max-width: 768px) {
  .archive-hero .inner-hero-title { font-size: 2.2rem; }
}

/* Archive list layout */
.archive-main {
  margin-left: auto;
  margin-right: auto;
}
.archive-card {
  background: transparent;
  padding: 0;
  box-shadow: none;
}
.archive-row {
  display: grid;
  grid-template-columns: 44px 140px 1fr;
  gap: 18px;
  padding: 20px 0;
  align-items: center;
  border-top: 1px solid var(--sm-gold);
}
.archive-row:first-child {
  border-top: none;
  padding-top: 0;
}
.archive-date {
  font-family: 'Commissioner', sans-serif;
  color: var(--sm-gray);
  font-size: 0.95rem;
  line-height: 1.2;
}
.archive-name {
  font-family: 'Commissioner', sans-serif;
  color: #333;
  margin: 0;
}
.archive-name a {
  color: #333;
  text-decoration: none;
}
.archive-name a:hover {
  color: var(--sm-red);
}
.archive-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
}
.archive-icon i {
  color: var(--sm-red);
  font-size: 18px;
}
.btn-archive {
  background-color: var(--sm-gray);
  color: #fff;
}
.btn-archive:hover {
  background-color: var(--sm-gold);
  color: #000;
}
@media (max-width: 768px) {
  .archive-row {
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
    gap: 2px 14px;
  }
  .archive-icon {
    grid-row: 1 / 3;
    align-self: center;
  }
  .archive-date {
    font-size: 0.85rem;
  }
}

/* News post article intro */
.lead.article-intro {
  border-radius: 15px;
  font-weight: 600;
  font-size: 18px;
}

.umbraco-forms-fieldset .row-fluid {
  display: flex;
  flex-wrap: wrap;
}
        