@charset "utf-8";
/* CSS Document */
/* General Reset */
html, body {
    height: auto;           /* allow full document height */
    overflow-y: auto;       /* enable vertical scrolling */
    overflow-x: hidden;     /* prevent horizontal scrollbars if not needed */
}
/* Global Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    padding: 8px;
    text-align: left;
}
table td:nth-child(1) {
    width: 40px;
}
th {
    background-color: #f2f2f2;
}
tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Links */
a {
    text-decoration: none;
    color: #007bff;
}
a:hover {
    text-decoration: underline;
}

/* Scaled Images */
.scaled-image {
    display: block;
    width: 100%;
    height: auto;
}

/* Page Content */

/* ===== Header ===== */
#header {
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
}

/* Optional: adjust font sizes for mobile */
.headerLogo, .headerSection {
    font-size: 1rem;
}
@media (max-width: 768px) {
    .headerLogo, .headerSection {
        font-size: 0.9rem;
        text-align: center;
    }
}

/* Right side */
.headerRight p {
    margin: 0;
}
#emailIcon img {
    height: 30px;
}

/* ===== Menu ===== */
#headerMenu {
    top: 70px; /* height of header */
    left: 0;
    width: 100%;
    background-color: #000;
    z-index: 1040;
}

/* Menu items */
#headerMenu > ul > li {
    position: relative; /* required for dropdown */
}
#headerMenu > ul > li > a {
    display: block;
    padding: 10px 15px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}
#headerMenu > ul > li > a:hover {
    color: #ccc;
}

/* ===== Dropdowns ===== */
#headerMenu ul.child {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #000;
    min-width: 220px;
    z-index: 1055; /* above everything else */
}
#headerMenu ul.child li a {
    padding: 8px 12px;
    color: #fff;
    font-size: 13px;
}
#headerMenu ul.parent:hover > ul.child {
    display: block;
}

/* Hover feedback */
#headerMenu li:hover {
    background-color: #222;
}

/* ===== Page content offset ===== */
#pageContent {
        padding-top: 140px;
        padding-bottom: 60px;
        padding-left: 2%;
        padding-right: 2%;
    position: relative;
    z-index: 0;
}
:target {
  scroll-margin-top: 160px; /* match your header height */
}
#pageContent.container {
  padding-left: 2% !important;
  padding-right: 2% !important;
}
/* Medium and up (≥768px) */
@media (min-width: 768px) {
    #pageContent {
        padding-left: 2%;
        padding-right: 2%;
    }
}

/* Large and up (≥1200px) */
@media (min-width: 1200px) {
    #pageContent {
        padding-left: 2%;
        padding-right: 2%;
    }
}
/* ===== Clearfix ===== */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}
/* Submenu positioning */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -1px;
}

/* Optional: visual cue for submenu arrow */
.dropdown-submenu > a::after {
  content: "›";
  float: right;
  margin-left: .5em;
}

/* ===== Responsive adjustments ===== */
@media (max-width: 768px) {
    #headerMenu > ul {
        flex-direction: column;
    }
    #headerMenu ul.child {
        position: relative;
        top: 0;
        left: 0;
    }
}
/* Footer */
 
#footer {
    background-color: #000 !important;
    color: blue;
    height: 40px;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
     font-size: 0.9rem;
      text-align: center;
      padding: 1rem 0;
      margin-top: 2rem;
      border-top: 1px solid #ddd;
}
#footerLeft,
#footerCenter,
#footerRight {
	color: white;
}

.thumbnail-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    justify-content: start; /* ensures left alignment even with gaps */
}

.thumbnail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 140px;        /* smaller than before (was 200px) */
    text-align: center;
}

.thumbnail-item img {
    width: 100%;             /* scales within max-width */
    height: 100px;           /* fixed thumbnail height */
    object-fit: cover;       /* crops instead of distorting */
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 2px;
    background-color: #f8f8f8;
    display: block;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s;
}

.thumbnail-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
}

.caption {
    margin-top: 4px;
    font-size: 0.8em;
    color: #333;
}
.thick-divider {
    border: none;              /* Remove the default styling */
    height: 4px;               /* Make it thicker */
    background-color: #007BFF; /* Change the color (this is Bootstrap blue) */
    margin: 2rem 0;            /* Optional: spacing above and below */
}
.transcription-body {
  margin-left: 2rem;
  margin-right: 2rem;
  padding-left: 1rem;
  padding-right: 1rem;
  border-left: 3px solid #ccc; /* Optional: subtle visual cue */
  background-color: #f9f9f9;   /* Optional: slightly different background */
}
/* Reuse existing style for overall layout */
.mainContent {
    text-align: center;
    margin-top: 2em;
}

/* Styling for memorials auto generated pages */

.memorialGrid {
  display: grid;
  grid-template-columns: 40% 30% 5% 30%;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.memorialGrid[style*="grid-template-columns: 40% 60%;"] {
  grid-template-columns: 40% 60%;  /* Override for simple layout */
}

.imageCell {
  display: flex;
  flex-direction: column;     /* Stack items vertically */
  justify-content: center;    /* Vertical alignment */
  align-items: center;        /* Horizontal alignment */
  text-align: center;         /* Center text */
}
.namesCell {
  display: flex;
  flex-direction: column;
  justify-content: center;  /* Vert center if needed */
  align-items: center;      /* Horiz center */
  text-align: center;
}
.spacerCell {
  grid-column: 3;
  text-align: center;
  overflow: visible;        /* allow overflow outside the grid cell */
  position: relative;       /* for z-index or positioning */
  white-space: nowrap;      /* keep text in one line */
  pointer-events: none;     /* optional: prevent hover/click interference */
  z-index: 1;               /* ensure it displays above adjacent columns */
  max-width: 0;             /* shrink container width so text must overflow */
  margin-left: -1rem;       /* adjust horizontal position for overlap */
  margin-right: -1rem;
}
.memorialImage img {
    max-width: 100%;
    height: auto;
}

.caption {
    margin-top: 0.5em;
    font-style: italic;
    font-size: 1.1em;
    color: #555;
}

.centeredMenu {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
  width: 100%;
}
.centeredMenu a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    font-size: 1.1em;
    margin: 0 0.5rem;
}

.centeredMenu a:hover {
    text-decoration: underline;
}

/* New styles for bottom nav */
.memorialBottomNav {
    text-align: center;
    margin-top: 0em;
}

.memorialBottomNav .bottomMenu {
    display: inline-flex;
    justify-content: center;
    gap: 3em;
    font-size: 1.25em;
}
/* */
/* Memorial Pages CSS */
/* */
.memorialBottomNav a,
.memorialBottomNav button {
    text-decoration: none;
    color: #0056b3;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: inherit;
    padding: 0.25em 0.5em;
}

.memorialBottomNav a:hover,
.memorialBottomNav button:hover {
    text-decoration: underline;
}
.centeredRow {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  width: 100%; /* Ensures it spans the page content container */
  align-items: flex-start;
}
.centeredColumn {
  flex: 0 1 45%;
  min-width: 300px;
}
/* Simple (Huntingdon-style) layout */
.simpleLayout .memorialColumns {
  display: flex;
  justify-content: center;
  align-items: center;        /* Vertically align image and names */
  flex-wrap: nowrap;
  gap: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
/* Image column - center content */
.simpleLayout .memorialFaceImage {
  display: flex;
  flex-direction: column;
  align-items: center;        /* Horizontally center image & captions */
  justify-content: center;    /* Vertically center image/caption inside column */
  text-align: center;
  flex: 0 0 auto;             /* Don't stretch image column */
}

/* Ensure image doesn't overflow */
.simpleLayout .memorialFaceImage img {
  max-width: 300px;
  height: auto;
}
/* Name column */
.simpleLayout .memorialColumn:not(.memorialFaceImage) {
  display: flex;
  flex-direction: column;
  align-items: center;        /* Horizontally center names */
  justify-content: center;    /* Vertically center names */
  text-align: center;
  flex: 1;                    /* Let it expand */
}
.structuredLayout .memorialColumn {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* Structured (Valleyfield-style) layout */
.structuredLayout .memorialColumns {
  display: flex;
  gap: 2rem;
  align-items: stretch; /* Makes name + image columns equal height */
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.structuredLayout .memorialColumns:has(.memorialColumn:nth-child(2):only-child) {
  justify-content: space-between;
}
/* Optional: Center the name column only in single-column structured sections */
.structuredLayout .memorialColumns:has(.memorialColumn:nth-child(2):only-child) .memorialColumn {
  align-items: center;
} 
/* Image column */
.memorialFaceImage {
  text-align: center;
}
.structuredLayout .memorialFaceImage img {
  align-self: flex-start;
}
/* Optional section headers styling */
.memorialSection {
  display: flex;
  justify-content: center;
}
.sectionTitle {
  font-weight: bold;
  font-size: 1.25em;
  margin-bottom: 1em;
}

/* Wrapper to align image and name columns side-by-side */
.memorialColumns {
  display: flex;
  gap: 2rem;
  align-items: stretch; /* Ensures all columns in a row are the same height */
}

/* Wrapper to align image and name columns side-by-side 
.memorialColumns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center
  gap: 2rem;
}
*/

/* Each individual column */

/* Common styling for columns */
.memorialColumn {
  padding: 0 1rem;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.memorialName {
  margin-bottom: 0.5em;
}
/* Add warning color for text fields validation checking (validateField) */
.is-warning {
    border-color: #ffc107 !important;  /* Bootstrap warning yellow */
    background-color: #fff8e1;
}
.warning-feedback {
    color: #856404;  /* dark yellow/brown text */
    font-size: 0.875em;
}
