/* =========================================================
   ACCESSIBILITY UTILITIES
   ========================================================= */

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* =========================================================
   MEMORY TYPE ICONS
   ========================================================= */

/* Base icon styling - stable for table rendering */
.memory-type-icon {
  display: inline-block;
  font-size: 1.35rem;
  line-height: 1;
  vertical-align: middle;
  color: currentColor;
}

/* Desktop table: icon only, label hidden accessibly */
@media (min-width: 769px) {

  .views-table td.memory-type-col,
  .view-display-desktop td.memory-type-col {
    text-align: center;
  }

  .views-table td.memory-type-col .memory-type-label,
  .view-display-desktop td.memory-type-col .memory-type-label,
  .memory-table .memory-type-label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }
}

/* Mobile cards: show icon + label */
.view-display-mobile .memory-type-label {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  overflow: visible;
  white-space: normal;
}

.view-display-mobile .memory-type-icon {
  font-size: 1.3rem;
  margin-right: 0.5rem;
}

@media (max-width: 768px) {
  .view-display-mobile .views-field-title .memory-type-icon {
    display: inline-flex !important;
    font-size: 1.4rem !important;
    line-height: 1 !important;
    flex-shrink: 0;
  }
}

/* =========================================================
   NODE PAGE TITLE
   ========================================================= */

.region-content .block-page-title-block,
#block-s-subtheme-page-title,
.block-page-title-block {
  margin-bottom: 1.5rem;
}

.region-content .block-page-title-block h1,
#block-s-subtheme-page-title h1,
.block-page-title-block h1,
h1.page-title-text {
  margin: 0 !important;
  padding: 0.85rem 1.15rem !important;
  font-size: 1.4rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  color: #1f2937 !important;
  background: #f8f9fa !important;
  border-left: 4px solid #3b82f6 !important;
  border-radius: 8px !important;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 768px) {

  .region-content .block-page-title-block,
  #block-s-subtheme-page-title,
  .block-page-title-block {
    display: block !important;
    visibility: visible !important;
  }

  .region-content .block-page-title-block h1,
  #block-s-subtheme-page-title h1,
  .block-page-title-block h1,
  h1.page-title-text {
    display: block !important;
    visibility: visible !important;
    font-size: 1.2rem !important;
    padding: 0.75rem 1rem !important;
  }
}

/* =========================================================
   NODE BACK BUTTON
   ========================================================= */

.node-back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  margin-bottom: 0.5rem;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
}

.node-back-button:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
}

.node-back-button:active {
  background: #d1d5db;
}

@media (max-width: 768px) {
  .node-back-button {
    font-size: 1rem;
    padding: 0.6rem 1.1rem;
  }
}

/* =========================================================
   VISUAL PROCEDURE – HOTSPOT DISPLAY
   ========================================================= */

.vs-hotspot-wrapper {
  margin: 2rem auto;
  max-width: 700px;
  width: 100%;
  overflow: visible !important;
}

.vs-hotspot-image-box {
  position: relative;
  display: inline-block;
  width: 100%;
  overflow: visible !important;
}

.vs-hotspot-image-box img {
  display: block;
  width: 100%;
  height: auto;
}

.vs-hotspot-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible !important;
}

.vs-hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.vs-hotspot-dot {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e60000;
  border: 3px solid #fff;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
  z-index: 21;
}

.vs-hotspot-callout {
  position: absolute;
  left: 40px;
  top: 0;
  transform: translateY(-50%);
  z-index: 20;
  max-width: 220px;
  min-width: 120px;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
}

.vs-hotspot-callout::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 2px;
  background: #e60000;
}

.vs-hotspot-label {
  background: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.35;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  max-width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (max-width: 768px) {

  .vs-hotspot-callout,
  .vs-hotspot-label {
    max-width: 180px;
    font-size: 0.85rem;
  }
}

/* =========================================================
   AI PROCESSING UI
   ========================================================= */

.ai-processing-box {
  padding: 1.5rem;
  background: #f3f4f6;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.3s ease-out;
}

.loader-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 1rem;
}

.loader-dots span {
  width: 10px;
  height: 10px;
  background: #3b82f6;
  border-radius: 50%;
  animation: pulse 1.2s infinite ease-in-out;
}

.loader-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.loader-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes pulse {
  0% {
    opacity: 0.3;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }

  100% {
    opacity: 0.3;
    transform: scale(0.9);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.processing-steps .step {
  font-size: 1rem;
  margin: 0.2rem 0;
}

.step-dim {
  opacity: 0.5;
}

/* =========================================================
   MEETING AUDIO + STATUS
   ========================================================= */

.meeting-audio-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 10px;
  border-radius: 6px;
  background: #f3f4f6;
  text-decoration: none;
  font-weight: 500;
}

.meeting-audio-link a::before {
  content: "▶";
  font-size: 0.9rem;
}

.meeting-audio-link a:hover {
  background: #e5e7eb;
}

.meeting-status p {
  font-weight: 600;
}

.status--completed {
  color: #2e7d32;
}

.status--processing {
  color: #f57c00;
}

.status--pending {
  color: #757575;
}

.status--failed {
  color: #c62828;
}

/* =========================================================
   MEETING ACTION BUTTONS
   ========================================================= */

.meeting-actions .button--primary,
.meeting-actions a.button--primary,
.meeting-actions .button--copy,
.button--download,
a.button--download {
  background: #3b82f6;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: background 0.2s ease;
}

.meeting-actions .button--primary:hover,
.meeting-actions a.button--primary:hover,
.meeting-actions .button--copy:hover,
.button--download:hover,
a.button--download:hover {
  background: #2563eb;
}

/* =========================================================
   VIEWS EXPOSED FILTERS / SEARCH BOX
   ========================================================= */

/* Add padding to entire view container */
.view-display-desktop {
  padding: 1.5rem;
}

.view-display-desktop .view-filters {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.view-display-desktop .views-exposed-form {
  margin: 0;
}

.view-display-desktop .views-exposed-form .form-item {
  margin-bottom: 0;
}

.view-display-desktop .views-exposed-form input[type="text"] {
  padding: 0.6rem 0.9rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.view-display-desktop .views-exposed-form input[type="text"]:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* =========================================================
   TABLE COLUMN WIDTHS – SINGLE SOURCE OF TRUTH
   ========================================================= */

.view-display-desktop col.col-type {
  width: 3rem;
}

.view-display-desktop col.col-title {
  width: auto;
}

.view-display-desktop col.col-memory-date {
  width: 14rem;
}

.view-display-desktop col.col-category {
  width: 14rem;
}

.view-display-desktop col.col-people {
  width: 24rem;
}

.view-display-desktop col.col-capture-date {
  width: 14rem;
}

/* =========================================================
   MEMORY TABLE – BASE & DESKTOP
   ========================================================= */

/* Base table structure with modern styling */
.view-display-desktop {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin: 1.5rem 0;
  table-layout: fixed;
}

/* Header styling */
.view-display-desktop thead th {
  background: #f8f9fa;
  color: #374151;
  font-weight: 600;
  padding: 0.85rem 1rem;
  border-bottom: 2px solid #e5e7eb;
  text-align: left;
}

/* Cell defaults */
.view-display-desktop th,
.view-display-desktop td {
  padding: 0.85rem 1rem;
  vertical-align: middle;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Row styling */
.view-display-desktop tbody tr {
  transition: background 0.2s ease;
}

.view-display-desktop tbody tr:hover {
  background: #f1f5f9;
}

.view-display-desktop tbody tr:nth-child(even) {
  background: #f9fafb;
}

.view-display-desktop tbody td {
  border-bottom: 1px solid #e5e7eb;
}

/* =========================================================
   COLUMN-SPECIFIC STYLING – ALIGNMENT & BEHAVIOR ONLY
   (Width controlled by <colgroup> above)
   ========================================================= */

/* Type column - centered */
.view-display-desktop td:nth-child(1),
.view-display-desktop th:nth-child(1) {
  text-align: center;
}

/* Title column - left aligned, wrapping enabled */
.view-display-desktop td:nth-child(2),
.view-display-desktop th:nth-child(2) {
  text-align: left;
  white-space: normal;
  word-break: break-word;
  font-weight: 500;
}

/* Memory Date - centered */
.view-display-desktop td:nth-child(3),
.view-display-desktop th:nth-child(3) {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Category - centered */
.view-display-desktop td:nth-child(4),
.view-display-desktop th:nth-child(4) {
  text-align: center;
}

/* People - centered, wrapping enabled */
.view-display-desktop td:nth-child(5),
.view-display-desktop th:nth-child(5) {
  text-align: center;
  white-space: normal;
  word-break: break-word;
  line-height: 1.4;
}

/* Capture Date - right aligned */
.view-display-desktop td:nth-child(6),
.view-display-desktop th:nth-child(6) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   DUAL-DISPLAY RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {
  .view-display-desktop {
    display: none;
  }
}

@media (min-width: 769px) {
  .view-display-mobile {
    display: none;
  }
}

/* =========================================================
   MOBILE CARD STYLING
   ========================================================= */

@media (max-width: 768px) {
  .view-display-mobile .views-row {
    background: #fff;
    border: 1px solid #e3e6ea;
    border-left: 4px solid transparent;
    border-radius: 10px;
    padding: 0.8rem;
    cursor: pointer;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  }

  .view-display-mobile .views-row:hover {
    background-color: #f5f7fa;
  }

  .view-display-mobile .views-row:active {
    background: #f6f8fa;
  }

  /* Type-based left border colors */
  .view-display-mobile .views-row:has(.type-picture) {
    border-left-color: #4da3ff;
  }

  .view-display-mobile .views-row:has(.type-video) {
    border-left-color: #9b59b6;
  }

  .view-display-mobile .views-row:has(.type-audio) {
    border-left-color: #27ae60;
  }

  .view-display-mobile .views-row:has(.type-file),
  .view-display-mobile .views-row:has(.type-document) {
    border-left-color: #f39c12;
  }

  .view-display-mobile .views-row:has(.type-meeting) {
    border-left-color: #e74c3c;
  }

  .view-display-mobile .views-row:has(.type-journal) {
    border-left-color: #34495e;
  }

  .view-display-mobile .views-row:has(.type-person) {
    border-left-color: #16a085;
  }


  .view-display-mobile .views-field-title {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.35rem;
  }

  .view-display-mobile .views-field-title a {
    text-decoration: none;
    color: inherit;
  }

  .view-display-mobile .views-field-type,
  .view-display-mobile .views-field-search-api-bundle {
    display: none !important;
  }

  .view-display-mobile .views-field:not(.views-field-title) {
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: #555;
    opacity: 0.8;
  }

  .view-display-mobile .views-field:not(.views-field-title) .field-content {
    display: inline;
    font-weight: 500;
    color: #222;
    opacity: 1;
  }

  .view-display-mobile .views-field:not(.views-field-title) .field-content::before {
    content: " ";
  }

  .view-display-mobile .views-field-memory-date,
  .view-display-mobile .views-field-created {
    font-size: 0.8rem;
    color: #777;
  }

  .view-display-mobile .views-field:has(.field-content:empty) {
    display: none;
  }

  /* Fallback for browsers without :has() */
  .view-display-mobile .views-field .field-content:empty {
    display: none;
  }
}

/* =========================================================
   AUDIO PLAYER – MOBILE OPTIMIZATION
   ========================================================= */

@media (max-width: 768px) {
  .audio-collection-player {
    padding: 1rem !important;
    border-radius: 12px !important;
    background: #f6f8fa !important;
    display: flex;
    flex-direction: column;
  }

  .audio-now-playing {
    order: -1;
    margin-bottom: 0.75rem !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
  }

  .audio-controls {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
    margin-bottom: 1rem !important;
  }

  .audio-play {
    grid-column: span 2 !important;
    font-size: 1.05rem !important;
  }

  .audio-controls button:not(.audio-play) {
    opacity: 0.85;
    font-size: 0.9rem !important;
    padding: 0.6rem 1rem !important;
  }

  .audio-prev,
  .audio-next {
    display: none !important;
  }

  audio {
    margin-bottom: 1rem !important;
  }

  .audio-playlist {
    padding: 0.75rem !important;
  }

  .audio-playlist h3 {
    font-size: 0.9rem !important;
    margin-bottom: 0.75rem !important;
  }

  .audio-playlist li {
    padding: 0.6rem !important;
    font-size: 0.9rem !important;
  }
}

/* =========================================================
   FILE CARDS – MOBILE OPTIMIZATION
   ========================================================= */

@media (max-width: 768px) {

  .document-card,
  .view-display-mobile .views-row {
    padding: 1rem;
    border-radius: 12px;
    background: #fff;
    margin-bottom: 1rem;
  }

  .document-card .views-field,
  .view-display-mobile .views-field {
    margin: 0;
  }

  .document-card .views-field-title,
  .document-card .views-field-field-acreage,
  .document-card .views-field-field-location,
  .view-display-mobile .views-field-title,
  .view-display-mobile .views-field-field-acreage,
  .view-display-mobile .views-field-field-location {
    display: inline;
    font-weight: 600;
    font-size: 0.95rem;
  }

  .document-card .views-field-title::after,
  .view-display-mobile .views-field-title::after {
    content: " – ";
  }

  .document-card .views-field-field-acreage::after,
  .view-display-mobile .views-field-field-acreage::after {
    content: ", ";
  }

  .document-card .views-field-field-document,
  .view-display-mobile .views-field-field-document {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.75rem;
  }

  .document-card .views-field-field-document img,
  .view-display-mobile .views-field-field-document img {
    width: 32px;
    height: auto;
  }

  .document-card .views-field-description,
  .document-card .pdf-action-wrapper p,
  .view-display-mobile .views-field-description,
  .view-display-mobile .pdf-action-wrapper p {
    display: none;
  }

  .document-card .views-field-field-document a,
  .document-card .pdf-action-wrapper a,
  .view-display-mobile .views-field-field-document a,
  .view-display-mobile .pdf-action-wrapper a {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 0.75rem !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    margin-top: 0.5rem !important;
  }
}

/* =========================================================
   PDF ACTION COMPONENT
   ========================================================= */

.pdf-action-wrapper {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.pdf-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.pdf-icon {
  font-size: 3rem;
  line-height: 1;
}

.pdf-text {
  flex: 1;
}

.pdf-title {
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
}

.pdf-helper {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

.pdf-open {
  padding: 0.75rem 1.5rem;
  background: #3b82f6;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
}

.pdf-open:hover {
  background: #2563eb;
}

@media (max-width: 768px) {
  .pdf-action-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem;
  }

  .pdf-meta {
    align-items: flex-start;
  }

  .pdf-icon {
    font-size: 2rem;
  }

  .pdf-helper {
    display: none;
  }

  .pdf-open {
    width: 100%;
    text-align: center;
    padding: 0.9rem;
    font-size: 1rem;
  }
}

/* =========================================================
   PICTURE GALLERY & LIGHTBOX
   ========================================================= */

.picture-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 2rem 0;
  overflow: visible !important;
}

.picture-gallery .gallery-item {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  transition: transform 0.2s ease;
}

.picture-gallery .gallery-item:hover {
  transform: scale(1.02);
}

.picture-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

@media (max-width: 768px) {
  .picture-gallery {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
  }
}

/* Annotation overlay (both page & lightbox) */
.annotation-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20 !important;
}

.annotation-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.annotation-marker::before {
  content: attr(data-seq) " · ";
  opacity: 0.7;
  font-weight: 600;
}

@media (max-width: 768px) {
  .annotation-marker {
    font-size: 0.75rem;
    padding: 0.3rem 0.5rem;
  }
}

/* Prevent clipping of annotations */
.field--name-field-image,
.field--name-field-image-annotation,
.field--name-field-image-annotation .field__item,
.paragraph--type--image-annotation,
.ginner-container,
.glightbox-container,
.glightbox-container .gslide,
.glightbox-container .ginner-container,
.field--name-field-image .field__item {
  overflow: visible !important;
}

/* =========================================================
   PICTURE NODE LAYOUT
   ========================================================= */

.node--type-picture .node__content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 720px;
  margin: 2rem auto;
  gap: 1.5rem;
}

.node--type-picture .picture-gallery {
  order: 0;
  width: 100%;
}

.node--type-picture .picture-gallery img {
  display: block;
  width: 100%;
  height: auto;
}

.node--type-picture .field {
  order: 1;
}

.node--type-picture .field--name-field-memory-date,
.node--type-picture .field--name-field-category,
.node--type-picture .field--name-field-people {
  background: #f8f9fb;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  border: 1px solid #e3e6ea;
}

.node--type-picture .field--name-field-entity-description {
  line-height: 1.6;
  margin-top: 0.5rem;
}

/* =========================================================
   PICTURE ACTION BUTTON
   ========================================================= */

.picture-action-wrapper {
  order: -1;
  margin: 0 0 2rem 0;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.picture-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.picture-icon {
  font-size: 3rem;
  line-height: 1;
}

.picture-text {
  flex: 1;
}

.picture-title {
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
}

.picture-helper {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

.picture-view {
  padding: 0.75rem 1.5rem;
  background: #3b82f6;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: background 0.2s ease;
}

.picture-view:hover {
  background: #2563eb;
}

@media (max-width: 768px) {
  .picture-action-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem;
  }

  .picture-meta {
    align-items: flex-start;
  }

  .picture-icon {
    font-size: 2rem;
  }

  .picture-helper {
    display: none;
  }

  .picture-view {
    width: 100%;
    text-align: center;
    padding: 0.9rem;
    font-size: 1rem;
  }
}

/* =========================================================
   MEETING RECORD – MOBILE & BUTTONS
   ========================================================= */

@media (max-width: 768px) {
  .node--type-meeting-record .meeting-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .node--type-meeting-record .button--generate-summary,
  .node--type-meeting-record .button--copy,
  .node--type-meeting-record .button--download {
    width: 100%;
    text-align: center;
  }

  .node--type-meeting-record .button--copy,
  .node--type-meeting-record .button--download {
    background: #3b82f6;
    color: #fff;
    border: none;
  }

  .node--type-meeting-record .button--copy:hover,
  .node--type-meeting-record .button--download:hover {
    background: #2563eb;
  }

  .node--type-meeting-record .meeting-audio-metadata {
    background: transparent !important;
    border: none !important;
    padding: 0.5rem 0 !important;
    font-size: 0.85rem !important;
  }

  .node--type-meeting-record .meeting-audio-metadata strong {
    font-weight: 500;
    color: #888;
  }

  .node--type-meeting-record .field--name-field-summary p,
  .node--type-meeting-record .field--name-field-system-summary p {
    margin-bottom: 0.75rem;
  }

  .node--type-meeting-record .meeting-participants li {
    margin-bottom: 0.35rem;
    line-height: 1.4;
  }
}

@media (min-width: 769px) {
  .node--type-meeting-record .meeting-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .node--type-meeting-record .meeting-actions .button {
    flex: 0 1 auto;
  }
}

/* Base button styles for meeting record */
.node--type-meeting-record .button {
  display: inline-block;
  padding: 8px 16px;
  background-color: #0073aa;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.node--type-meeting-record .button:hover {
  background-color: #005a87;
}

.node--type-meeting-record .meeting-actions {
  margin: 20px 0;
  display: flex;
  gap: 10px;
}

/* =========================================================
   GLIGHTBOX – MOBILE NATIVE STYLE
   ========================================================= */

body.glightbox-open .glightbox-container {
  background: #000 !important;
}

body.glightbox-open .gslide-media img {
  max-height: 100vh !important;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 6px;
}

body.glightbox-open .gslide-description.description-bottom {
  position: fixed !important;
  bottom: 24px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: auto !important;
  max-width: calc(100vw - 48px) !important;
  background: rgba(0, 0, 0, 0.65) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 18px !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
  z-index: 9999 !important;
}

body.glightbox-open .gslide-desc {
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  margin: 0 !important;
}

body.glightbox-open .gslide-desc:empty,
body.glightbox-open .gslide-description.description-bottom:has(.gslide-desc:empty) {
  display: none !important;
}

body.glightbox-open .gclose {
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(6px);
  border-radius: 50%;
  width: 40px;
  height: 40px;
}