/* Tusubira Global Ministries - Resources library.
   A dynamic, access-gated grid. No native Elementor widget can render a
   per-item access check plus a nonce-protected download link, so this one
   component is a shortcode. Everything around it on the page is native. */

.tgm-res-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -14px;
}
.tgm-res {
  display: flex;
  flex-direction: column;
  width: 33.333%;
  padding: 0 14px 28px;
  box-sizing: border-box;
}
@media (max-width: 1024px) { .tgm-res { width: 50%; } }
@media (max-width: 640px)  { .tgm-res { width: 100%; } }

.tgm-res-thumb {
  overflow: hidden;
  border: 1px solid #E2E0D8;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}
.tgm-res-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.tgm-res:hover .tgm-res-thumb img { transform: scale(1.05); }

.tgm-res-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #FFFFFF;
  border: 1px solid #E2E0D8;
  border-radius: 6px;
  padding: 26px 24px 28px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.tgm-res-thumb + .tgm-res-body {
  border-radius: 0 0 6px 6px;
  border-top: 0;
}
.tgm-res:hover .tgm-res-body {
  transform: translateY(-5px);
  box-shadow: 0 10px 26px -14px rgba(12, 46, 92, .30);
  border-color: #C9A227;
}

.tgm-res-badge {
  align-self: flex-start;
  font-family: "Inter", Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #8A6D0B;
  background: rgba(201, 162, 39, .18);
  padding: 5px 11px;
  border-radius: 3px;
  margin: 0 0 14px;
}
.tgm-res-badge.is-gated {
  background: rgba(27, 79, 156, .12);
  color: #1B4F9C;
}

.tgm-res-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
  color: #0C2E5C;
  margin: 0 0 10px;
}
.tgm-res-desc {
  font-family: "Inter", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #414B5A;
  margin: 0 0 14px;
}
.tgm-res-meta {
  font-family: "Inter", Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #6B7688;
  margin: 0 0 18px;
}
.tgm-res-note {
  font-family: "Inter", Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: #6B7688;
  margin: 10px 0 0;
}

.tgm-res-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: auto;
  font-family: "Inter", Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #0C2E5C;
  background: #C9A227;
  border: 2px solid #C9A227;
  border-radius: 3px;
  padding: 14px 26px;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.tgm-res-btn:hover,
.tgm-res-btn:focus {
  background: #E3C458;
  border-color: #E3C458;
  color: #0C2E5C;
  transform: translateY(-2px);
}
.tgm-res-btn.is-disabled {
  background: transparent;
  border-color: #E2E0D8;
  color: #6B7688;
  cursor: not-allowed;
  transform: none;
}

/* empty library */
.tgm-empty {
  text-align: center;
  background: #F5F2EA;
  border: 1px solid #EDE8DB;
  border-radius: 6px;
  padding: 56px 32px;
}
.tgm-empty p {
  font-family: "Inter", Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: #414B5A;
  margin: 0 0 10px;
}
/* must out-rank the .tgm-empty p rule above, which is more specific than a
   bare .tgm-empty-title class selector */
.tgm-empty .tgm-empty-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  color: #0C2E5C;
  margin: 0 0 12px;
}
.tgm-empty-link {
  display: inline-block;
  margin-top: 12px;
  font-family: "Inter", Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #1B4F9C;
  text-decoration: none;
}
.tgm-empty-link:hover { color: #C9A227; }


/* =================================================================
   Events - same card language as the resources grid above.
   ================================================================= */
.tgm-ev-grid { display: flex; flex-wrap: wrap; margin: 0 -14px; }
.tgm-ev {
  display: flex; flex-direction: column;
  width: 33.333%; padding: 0 14px 28px; box-sizing: border-box;
}
.tgm-ev-grid[data-cols="2"] .tgm-ev { width: 50%; }
.tgm-ev-grid[data-cols="4"] .tgm-ev { width: 25%; }
@media (max-width: 1024px) { .tgm-ev-grid .tgm-ev { width: 50%; } }
@media (max-width: 640px)  { .tgm-ev-grid .tgm-ev { width: 100%; } }

.tgm-ev-thumb {
  display: block; overflow: hidden;
  border: 1px solid #E2E0D8; border-bottom: 0; border-radius: 6px 6px 0 0;
}
.tgm-ev-thumb img {
  width: 100%; height: 210px; object-fit: cover; display: block;
  transition: transform .5s ease;
}
.tgm-ev:hover .tgm-ev-thumb img { transform: scale(1.05); }

.tgm-ev-body {
  display: flex; flex-direction: column; flex: 1;
  background: #FFFFFF; border: 1px solid #E2E0D8; border-radius: 6px;
  padding: 26px 24px 28px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.tgm-ev-thumb + .tgm-ev-body { border-radius: 0 0 6px 6px; border-top: 0; }
.tgm-ev:hover .tgm-ev-body {
  transform: translateY(-5px);
  box-shadow: 0 10px 26px -14px rgba(12, 46, 92, .30);
  border-color: #C9A227;
}

.tgm-ev-when {
  font-family: "Inter", Helvetica, Arial, sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: #8A6D0B;
  margin: 0 0 12px;
}
.tgm-ev-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 22px; font-weight: 600; line-height: 1.24;
  color: #0C2E5C; margin: 0 0 10px;
}
.tgm-ev-title a { color: inherit; text-decoration: none; }
.tgm-ev-title a:hover { color: #1B4F9C; }
.tgm-ev-meta {
  font-family: "Inter", Helvetica, Arial, sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: 1.2px;
  text-transform: uppercase; color: #6B7688; margin: 0 0 14px;
}
.tgm-ev-desc {
  font-family: "Inter", Helvetica, Arial, sans-serif;
  font-size: 15px; line-height: 1.7; color: #414B5A; margin: 0 0 18px;
}
.tgm-ev-btn {
  display: inline-flex; align-items: center; justify-content: center;
  align-self: flex-start; margin-top: auto;
  font-family: "Inter", Helvetica, Arial, sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #0C2E5C; background: #C9A227;
  border: 2px solid #C9A227; border-radius: 3px;
  padding: 14px 26px; text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.tgm-ev-btn:hover, .tgm-ev-btn:focus {
  background: #E3C458; border-color: #E3C458; color: #0C2E5C;
  transform: translateY(-2px);
}

/* =================================================================
   Gallery - albums, then the photographs and videos inside one.
   ================================================================= */
.tgm-gal-albums { display: flex; flex-wrap: wrap; margin: 0 -14px; }
.tgm-gal-album {
  display: flex; flex-direction: column;
  width: 33.333%; padding: 0 14px 28px; box-sizing: border-box;
}
@media (max-width: 1024px) { .tgm-gal-album { width: 50%; } }
@media (max-width: 640px)  { .tgm-gal-album { width: 100%; } }

.tgm-gal-cover {
  display: block; overflow: hidden;
  border: 1px solid #E2E0D8; border-bottom: 0; border-radius: 6px 6px 0 0;
}
.tgm-gal-cover img {
  width: 100%; height: 220px; object-fit: cover; display: block;
  transition: transform .5s ease;
}
.tgm-gal-album:hover .tgm-gal-cover img { transform: scale(1.05); }
.tgm-gal-nocover { display: block; height: 220px; background: #F5F2EA; }

.tgm-gal-albumbody {
  flex: 1; background: #FFFFFF;
  border: 1px solid #E2E0D8; border-top: 0; border-radius: 0 0 6px 6px;
  padding: 22px 24px 24px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.tgm-gal-album:hover .tgm-gal-albumbody {
  transform: translateY(-5px);
  box-shadow: 0 10px 26px -14px rgba(12, 46, 92, .30);
  border-color: #C9A227;
}
.tgm-gal-albumtitle {
  font-family: "Fraunces", Georgia, serif;
  font-size: 21px; font-weight: 600; line-height: 1.25;
  color: #0C2E5C; margin: 0 0 8px;
}
.tgm-gal-albumtitle a { color: inherit; text-decoration: none; }
.tgm-gal-albumtitle a:hover { color: #1B4F9C; }
.tgm-gal-count {
  font-family: "Inter", Helvetica, Arial, sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: 1.2px;
  text-transform: uppercase; color: #6B7688; margin: 0;
}

/* inside an album */
.tgm-gal-grid { display: flex; flex-wrap: wrap; margin: 26px -8px 0; }
.tgm-gal-item {
  width: 25%; padding: 0 8px 16px; margin: 0; box-sizing: border-box;
}
@media (max-width: 1024px) { .tgm-gal-item { width: 33.333%; } }
@media (max-width: 640px)  { .tgm-gal-item { width: 50%; } }
.tgm-gal-item a { display: block; overflow: hidden; border-radius: 4px; }
.tgm-gal-item img {
  width: 100%; height: 180px; object-fit: cover; display: block;
  transition: transform .4s ease, opacity .2s ease;
}
.tgm-gal-item a:hover img { transform: scale(1.06); opacity: .92; }
.tgm-gal-item figcaption {
  font-family: "Inter", Helvetica, Arial, sans-serif;
  font-size: 13px; color: #6B7688; margin-top: 8px;
}

.tgm-gal-videos { margin: 26px 0 0; }
.tgm-gal-video {
  position: relative; width: 100%; padding-top: 56.25%;
  margin: 0 0 22px; border-radius: 6px; overflow: hidden;
  background: #071F3F;
}
.tgm-gal-video iframe,
.tgm-gal-video embed,
.tgm-gal-video object,
.tgm-gal-video video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}
.tgm-gal-videofallback {
  font-family: "Inter", Helvetica, Arial, sans-serif;
  font-size: 15px; margin: 0 0 16px;
}
.tgm-gal-videofallback a { color: #1B4F9C; }
