.roamoz-article-grid,
.roamoz-article-grid * {
  box-sizing: border-box;
}

.roamoz-article-grid {
  width: 100%;
  max-width: var(--roamoz-ag-max-width, 1800px);
  margin: var(--roamoz-ag-top-margin, 0) auto var(--roamoz-ag-bottom-margin, 40px);
}

.roamoz-article-grid__items {
  display: grid;
  grid-template-columns: repeat(var(--roamoz-ag-desktop-cols, 3), minmax(0, 1fr));
  gap: var(--roamoz-ag-gap, 28px);
}

.roamoz-article-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--roamoz-ag-card-bg, #fff);
  border-radius: var(--roamoz-ag-radius, 14px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.08);
}

/* Joomla Featured articles stand out without changing the normal card styling. */
.roamoz-article-card--featured {
  background: var(--roamoz-ag-featured-card-bg, #ffe2bf);
  border-color: color-mix(in srgb, var(--roamoz-ag-accent, #f47a10) 55%, transparent);
  box-shadow: 0 14px 32px rgba(127, 58, 0, 0.18);
}

.roamoz-article-card__inner {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.roamoz-article-card__image-link {
  display: block;
  height: var(--roamoz-ag-image-height, 220px);
  overflow: hidden;
  background: #ddd;
}

.roamoz-article-card__featured-banner {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  right: 0;
  display: block;
  padding: 7px 12px 6px;
  color: #fff;
  background: var(--roamoz-ag-accent, #f47a10);
  text-align: center;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 1px 1px rgba(0,0,0,0.18);
  pointer-events: none;
}

.roamoz-article-card__featured-banner--no-image {
  position: relative;
  z-index: 1;
}

.roamoz-article-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.roamoz-article-card__picture {
  display: block;
  width: 100%;
  height: 100%;
}

.roamoz-article-card:hover .roamoz-article-card__image {
  transform: scale(1.035);
}

.roamoz-article-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 22px;
}

.roamoz-article-card__badge {
  display: inline-flex;
  align-self: flex-start;
  margin: -38px 0 14px;
  padding: 6px 10px;
  color: var(--roamoz-ag-badge-text, #fff);
  background: var(--roamoz-ag-badge-bg, #f47a10);
  border-radius: 4px;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 7px 18px rgba(0,0,0,0.18);
}

.roamoz-article-card__title {
  margin: 0 0 12px;
  color: var(--roamoz-ag-title, #1f2428);
  font-family: 'Barlow Condensed', 'Saira Condensed', 'Arial Narrow', Arial, sans-serif;
  font-size: 27px;
  line-height: 1.06;
  font-weight: 800;
}

.roamoz-article-card__title a {
  color: inherit;
  text-decoration: none;
}

.roamoz-article-card__title a:hover,
.roamoz-article-card__title a:focus-visible {
  color: var(--roamoz-ag-accent, #f47a10);
  text-decoration: none;
}

.roamoz-article-card__excerpt {
  margin: 0 0 16px;
  color: var(--roamoz-ag-text, #5d6469);
  font-size: 16px;
  line-height: 1.55;
}

.roamoz-article-card__meta {
  margin: auto 0 16px;
  color: var(--roamoz-ag-meta, #6d7378);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}

.roamoz-article-card__button {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  color: var(--roamoz-ag-button-text, #fff);
  background: var(--roamoz-ag-accent, #f47a10);
  border: 1px solid var(--roamoz-ag-accent, #f47a10);
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.roamoz-article-card__button:hover,
.roamoz-article-card__button:focus-visible {
  color: var(--roamoz-ag-button-hover-text, #fff);
  background: var(--roamoz-ag-button-hover-bg, #1f2428);
  border-color: var(--roamoz-ag-button-hover-bg, #1f2428);
  transform: translateY(-1px);
  text-decoration: none;
}

/* Only Featured Article Grid cards use the inverse white/orange Read More button. */
.roamoz-article-card--featured .roamoz-article-card__button {
  color: var(--roamoz-ag-accent, #f47a10);
  background: #fff;
  border-color: #fff;
  box-shadow: 0 7px 18px rgba(127, 58, 0, 0.14);
}

.roamoz-article-card--featured .roamoz-article-card__button:hover,
.roamoz-article-card--featured .roamoz-article-card__button:focus-visible {
  color: var(--roamoz-ag-accent, #f47a10);
  background: #fff7ef;
  border-color: var(--roamoz-ag-accent, #f47a10);
}

/* v0.4.26: optional horizontal card layouts. */
.roamoz-article-grid--layout-image-left .roamoz-article-card__inner,
.roamoz-article-grid--layout-image-right .roamoz-article-card__inner {
  min-height: var(--roamoz-ag-image-height, 220px);
  flex-direction: row;
}

.roamoz-article-grid--layout-image-right .roamoz-article-card__inner {
  flex-direction: row-reverse;
}

.roamoz-article-grid--layout-image-left .roamoz-article-card__image-link,
.roamoz-article-grid--layout-image-right .roamoz-article-card__image-link {
  flex: 0 0 var(--roamoz-ag-horizontal-image-width, 38%);
  width: var(--roamoz-ag-horizontal-image-width, 38%);
  height: auto;
  min-height: var(--roamoz-ag-image-height, 220px);
}

.roamoz-article-grid--layout-image-left .roamoz-article-card__body,
.roamoz-article-grid--layout-image-right .roamoz-article-card__body {
  min-width: 0;
}

.roamoz-article-grid--layout-image-left .roamoz-article-card__badge,
.roamoz-article-grid--layout-image-right .roamoz-article-card__badge {
  margin-top: 0;
}

.roamoz-article-card__status-banners--card-top {
  display: block;
  flex: 0 0 auto;
}

.roamoz-article-card__status-banners--card-top .roamoz-article-card__popular-banner,
.roamoz-article-card__status-banners--card-top .roamoz-article-card__featured-banner {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
}

.roamoz-article-grid__pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.roamoz-article-grid__page,
.roamoz-article-grid__dots {
  display: inline-flex;
  min-width: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  color: var(--roamoz-ag-title, #1f2428);
  background: #fff;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 800;
  line-height: 1;
}

.roamoz-article-grid__page:hover,
.roamoz-article-grid__page:focus-visible,
.roamoz-article-grid__page--active {
  color: #fff;
  background: var(--roamoz-ag-accent, #f47a10);
  border-color: var(--roamoz-ag-accent, #f47a10);
  text-decoration: none;
}

.roamoz-article-grid__page--prev,
.roamoz-article-grid__page--next {
  min-width: 100px;
}

.roamoz-article-grid__dots {
  background: transparent;
  border-color: transparent;
}

.roamoz-article-grid__empty {
  padding: 18px 20px;
  color: var(--roamoz-ag-text, #5d6469);
  background: #fff7ef;
  border: 1px solid #ffd2ad;
  border-radius: 8px;
}

@media (max-width: 991.98px) {
  .roamoz-article-grid__items {
    grid-template-columns: repeat(var(--roamoz-ag-tablet-cols, 2), minmax(0, 1fr));
  }

  .roamoz-article-grid--layout-image-left .roamoz-article-grid__items,
  .roamoz-article-grid--layout-image-right .roamoz-article-grid__items {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .roamoz-article-grid--layout-image-left .roamoz-article-card__inner,
  .roamoz-article-grid--layout-image-right .roamoz-article-card__inner {
    min-height: 0;
    flex-direction: column;
  }

  .roamoz-article-grid--layout-image-left .roamoz-article-card__image-link,
  .roamoz-article-grid--layout-image-right .roamoz-article-card__image-link {
    flex: 0 0 auto;
    width: 100%;
    height: var(--roamoz-ag-image-height, 220px);
    min-height: 0;
  }
}

@media (max-width: 575.98px) {
  .roamoz-article-grid__items {
    grid-template-columns: repeat(var(--roamoz-ag-mobile-cols, 1), minmax(0, 1fr));
  }

  .roamoz-article-card__body {
    padding: 18px;
  }

  .roamoz-article-card__title {
    font-size: 24px;
  }

  .roamoz-article-card__excerpt {
    font-size: 15px;
  }
}



/* v0.4.25: Full Article/Header Image mode preserves the complete image.
   It uses the available width and lets the image's intrinsic aspect ratio
   calculate the height instead of applying the cropped thumbnail height. */
.roamoz-article-grid--image-source-fulltext .roamoz-article-card__image-link {
  height: auto;
  min-height: 0;
}

.roamoz-article-grid--image-source-fulltext .roamoz-article-card__image {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Do not zoom an uncropped header image, otherwise its outer edges disappear. */
.roamoz-article-grid--image-source-fulltext .roamoz-article-card:hover .roamoz-article-card__image {
  transform: none;
}

.roamoz-article-grid--image-source-fulltext.roamoz-article-grid--layout-image-left .roamoz-article-card__image-link,
.roamoz-article-grid--image-source-fulltext.roamoz-article-grid--layout-image-right .roamoz-article-card__image-link {
  align-self: flex-start;
  height: auto;
  min-height: 0;
}


/* v0.4.26: Responsive/Mobile Optimised image mode. Desktop retains the
   cropped Intro Image. Phones swap to the wide Full Article/Header Image and
   preserve its natural aspect ratio, making wide headers substantially shorter. */
@media (max-width: 767.98px) {
  .roamoz-article-grid--image-source-responsive .roamoz-article-card__image-link,
  .roamoz-article-grid--image-source-responsive.roamoz-article-grid--layout-image-left .roamoz-article-card__image-link,
  .roamoz-article-grid--image-source-responsive.roamoz-article-grid--layout-image-right .roamoz-article-card__image-link {
    height: auto;
    min-height: 0;
  }

  .roamoz-article-grid--image-source-responsive .roamoz-article-card__picture,
  .roamoz-article-grid--image-source-responsive .roamoz-article-card__image {
    width: 100%;
    height: auto;
  }

  .roamoz-article-grid--image-source-responsive .roamoz-article-card__image {
    object-fit: contain;
  }

  .roamoz-article-grid--image-source-responsive .roamoz-article-card:hover .roamoz-article-card__image {
    transform: none;
  }
}



/* =========================================================
   Roaming-Oz safe image shine sweep v0.1.6
   Adds shine to the image wrapper only. Does not alter IMG display/size.
   ========================================================= */

.roamoz-article-card__image-link {
  position: relative !important;
  overflow: hidden !important;
}

/* Keep shine behind any text/play overlays but above the image. */
.roamoz-article-card__image-link::after {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: -85% !important;
  width: 52% !important;
  height: 100% !important;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.28), transparent) !important;
  transform: skewX(-20deg) !important;
  transition: left 0.65s ease !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

.roamoz-article-card:hover .roamoz-article-card__image-link::after,
.roamoz-article-card__image-link:hover::after {
  left: 135% !important;
}

@media (prefers-reduced-motion: reduce) {
  .roamoz-article-card__image-link::after {
    transition: none !important;
  }
}


/* Useful-content badges */
.roamoz-article-card__feature-badges { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 10px; }
.roamoz-article-card__feature-badge { display:inline-flex; align-items:center; padding:4px 8px; border-radius:999px; background:#eef1f3; color:#394047; font-size:11px; line-height:1; font-weight:800; text-transform:uppercase; letter-spacing:.035em; }
.roamoz-article-card__feature-badge--updated { background:#e7f7eb; color:#216c35; }
.roamoz-article-card__feature-badge--video { background:#fff0f0; color:#9c2020; }
.roamoz-article-card__feature-badge--gallery { background:#f4efff; color:#57368a; }
.roamoz-article-card__feature-badge--map { background:#e9f4ff; color:#1e5d8f; }

/* v0.4.5: category/town filter navigation was retired permanently.
   This guard also suppresses markup from an old template override or stale cached layout. */
.roamoz-article-grid .roamoz-article-grid__filters,
.roamoz-article-grid .roamoz-article-grid__category-filters {
    display: none !important;
}

/* v0.4.13: optional Article Read Reports popularity marker. */
.roamoz-article-card__popular-banner {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  display: block;
  min-height: 24px;
  padding: 6px 12px 5px;
  color: #fff;
  background: var(--roamoz-ag-accent, #f47a10);
  text-align: center;
  font-size: 11px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-shadow: 0 1px 1px rgba(0,0,0,0.18);
  pointer-events: none;
}

.roamoz-article-card__featured-banner--below-popular {
  top: 24px;
  background: #1f2428;
}

.roamoz-article-card__status-banners--no-image {
  display: block;
}

.roamoz-article-card__status-banners--no-image .roamoz-article-card__popular-banner,
.roamoz-article-card__status-banners--no-image .roamoz-article-card__featured-banner {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
}
