/* ==========================================================================
   GTApt v2.8.1 - Homepage sections outside the coded homepage
   (GTApt Elementor widgets, [gtapt_*] shortcodes, Elementor homepage,
   GTApt Full Width / Canvas templates). Every rule is scoped to those
   wrappers, so the coded homepage and normal pages are not affected.
   ========================================================================== */

/* Elementor's generic `.elementor img { height: auto }` would squash the
   cover images of the theme cards; restore the theme sizing. */
.elementor .gtapt-el .fp-media img,
.elementor .gtapt-el .forum-feed-thumb img,
.elementor .gtapt-el .post-card-image img,
.elementor .gtapt-el .video-thumb img {
  height: 100%;
  max-width: 100%;
}
.gtapt-el a { box-shadow: none; }

/* Blocks placed in narrow columns: no sticky sidebar. */
.gtapt-el .gtapt-forum-block { position: static; top: auto; }

/* Stand-alone countdown panel. */
.gtapt-cdp-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}
.gtapt-cdp-wrap .gtapt-cdp {
  width: 100%;
  max-width: var(--gtapt-cdp-max, 420px);
}

/* Post grid columns (GTApt Grelha de Artigos). */
.gtapt-post-grid[data-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gtapt-post-grid[data-cols="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gtapt-post-grid[data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1024px) {
  .gtapt-post-grid[data-cols="3"],
  .gtapt-post-grid[data-cols="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .gtapt-post-grid[data-cols] { grid-template-columns: minmax(0, 1fr); }
}
.gtapt-post-grid-block .section-header { margin-bottom: 20px; }

/* Elementor homepage + GTApt templates: content runs edge to edge. */
.gtapt-elementor-home,
.gtapt-template-full-width,
.gtapt-template-canvas__main {
  width: 100%;
  max-width: none;
  padding: 0;
}
.gtapt-elementor-home > .elementor,
.gtapt-template-full-width > .elementor,
.gtapt-template-canvas__main > .elementor { width: 100%; }
.gtapt-elementor-home__content { padding-top: 40px; padding-bottom: 60px; }
