/*
Theme Name:   GeneratePress Child
Theme URI:    https://ytapi.alpha2a.online
Description:  Child theme for GeneratePress — Instagram Downloader site.
Author:       Wexify
Template:     generatepress
Version:      1.0.1
Text Domain:  generatepress-child
*/

/* Your custom CSS goes below this line.
   Anything written here overrides the parent theme's styles. */


/* =========================================================
IG Downloader — base styles (moved from the [ig_downloader] shortcode <style> tag)
Dynamic color overrides (admin settings) remain inline in ig-downloader.php.
========================================================= */
.idl{
   --idl-radius: 999px;
   --idl-grad:   linear-gradient(135deg,#6A2BD9 0%,#E1306C 55%,#F77737 100%);
   --idl-text:   #1A1A1A;
   --idl-muted:  #8A8A8A;
   --idl-card:   #FFFFFF;
   --idl-shadow: 0 12px 36px rgba(20,20,40,.08);
   --idl-error:  #C92A2A;
   width:100%;margin:0 auto;font-family:inherit;
}
@keyframes idl-spin{to{transform:rotate(360deg)}}
.idl .idl-result{margin-top:18px;width:100%}
.idl .idl-result:empty{display:none}
.idl .idl-tpl-primer{position:absolute !important;left:-99999px !important;top:-99999px !important;width:1px !important;height:1px !important;overflow:hidden !important;visibility:hidden !important;pointer-events:none !important;opacity:0 !important;}
.idl .idl-msg{font-size:14px;padding:14px 16px;border-radius:14px;background:#FFF3F3;color:var(--idl-error);border:1px solid #F1C0C0;box-shadow:var(--idl-shadow);text-align:center;letter-spacing:normal;}
.idl .idl-msg-title{font-weight:700;font-size:15px;color:var(--idl-error);}
.idl .idl-msg-sub{margin-top:5px;font-size:13px;font-weight:400;color:#8E8E8E;line-height:1.5;}
.idl .idl-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:28px 24px;background:transparent;color:#262626;text-align:center;}
.idl .idl-ig-loader{position:relative;width:56px;height:56px;}
.idl .idl-ig-ring{position:absolute;inset:0;border-radius:50%;background:linear-gradient(135deg,#feda75 0%,#fa7e1e 25%,#d62976 50%,#962fbf 75%,#4f5bd5 100%);opacity:.92;-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 5px),#000 calc(100% - 4.5px));mask:radial-gradient(farthest-side,transparent calc(100% - 5px),#000 calc(100% - 4.5px));}
.idl .idl-ig-spin{position:absolute;inset:0;animation:idl-spin .85s linear infinite;}
.idl .idl-ig-spin .idl-ig-spark{position:absolute;top:-2px;left:50%;width:9px;height:9px;margin-left:-4.5px;border-radius:50%;background:#fff;box-shadow:0 0 8px 2px rgba(255,255,255,.85);}
.idl .idl-ig-text{font-weight:800;font-size:16px;letter-spacing:-.01em;color:#262626;margin-top:4px;}
.idl .idl-brand-loader{width:104px;height:104px;display:grid;place-items:center;}
.idl .idl-brand-svg{width:104px;height:104px;overflow:visible;animation:idl-brand-spin 7s linear infinite;}
@keyframes idl-brand-spin{to{transform:rotate(360deg);}}
.idl a.idl-dl-loading{position:relative !important;color:transparent !important;pointer-events:none !important;cursor:wait !important;}
.idl a.idl-dl-loading *{color:transparent !important;visibility:hidden !important;}
.idl a.idl-dl-loading::after{content:'';position:absolute !important;top:50% !important;left:50% !important;width:18px;height:18px;margin:-9px 0 0 -9px;border:2px solid #fff;border-top-color:transparent;border-radius:50%;animation:idl-spin .8s linear infinite;visibility:visible !important;display:block !important;}
.idl a[data-fetch-action].idl-dl-loading::after{display:none !important;}
.idl a.idl-dl-loading .idl-icon-loading,
.idl a.idl-dl-loading .idl-icon-loading *{visibility:visible !important;}
.idl a.idl-loadmore-disabled,
.idl a.idl-loadmore-disabled:hover,
.idl a.idl-loadmore-disabled:focus{opacity:.5 !important;cursor:not-allowed !important;pointer-events:none !important;box-shadow:none !important;transform:none !important;}
.idl .idl-profile-link{cursor:pointer !important;}
.idl .idl-caption-wrap{display:inline;}
.idl .idl-caption-more{
   background:none !important;border:0 !important;padding:0 !important;margin:0 0 0 2px !important;
   color:#6A2BD9 !important;cursor:pointer !important;font:inherit !important;
   font-weight:600 !important;text-decoration:underline !important;
   -webkit-appearance:none !important;appearance:none !important;
}
.idl .idl-caption-more:hover,.idl .idl-caption-more:focus{filter:brightness(1.1) !important;outline:0 !important;}
.idl .idl-caption-extra[hidden],.idl .idl-caption-ellipsis[hidden]{display:none !important;}
.idl .idl-post-thumb-slot:not(img),
.idl .idl-reel-thumb-slot:not(img),
.idl .idl-stories-thumb-slot:not(img),
.idl .idl-highlight-cover-slot:not(img),
.idl .idl-preview-slot{position:relative !important;}
.idl .idl-post-thumb-slot img,
.idl .idl-reel-thumb-slot img,
.idl .idl-stories-thumb-slot img,
.idl .idl-highlight-cover-slot img,
.idl img.idl-post-thumb-slot,
.idl img.idl-reel-thumb-slot,
.idl img.idl-stories-thumb-slot,
.idl img.idl-highlight-cover-slot,
.idl .idl-preview-slot img,
.idl .idl-card-media{opacity:0;}
.idl .idl-loaded > img,
.idl .idl-loaded.idl-post-thumb-slot img,
.idl .idl-loaded.idl-reel-thumb-slot img,
.idl .idl-loaded.idl-stories-thumb-slot img,
.idl .idl-loaded.idl-highlight-cover-slot img,
.idl img.idl-post-thumb-slot.idl-loaded,
.idl img.idl-reel-thumb-slot.idl-loaded,
.idl img.idl-stories-thumb-slot.idl-loaded,
.idl img.idl-highlight-cover-slot.idl-loaded,
.idl .idl-preview-slot.idl-loaded img,
.idl .idl-preview-slot.idl-loaded .idl-card-media,
.idl .idl-loaded > .idl-card-media,
.idl .idl-card-media.idl-loaded{opacity:1 !important;}
.idl .idl-thumb-spinner{
   position:absolute;top:50%;left:50%;
   width:32px;height:32px;margin:-16px 0 0 -16px;
   z-index:1;pointer-events:none;
}
.idl .idl-thumb-spinner .idl-ig-ring{-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 2.5px));mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 2.5px));}
.idl .idl-thumb-spinner .idl-ig-spark{top:-1px;width:6px;height:6px;margin-left:-3px;box-shadow:0 0 6px 1.5px rgba(255,255,255,.85);}
.idl .idl-icon-loading{position:absolute;top:50%;left:50%;width:32px;height:32px;margin:-16px 0 0 -16px;z-index:2;pointer-events:none;}
.idl .idl-icon-loading .idl-ig-ring{-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 2.5px));mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 2.5px));background:#262626 !important;}
.idl .idl-icon-loading .idl-ig-spark{top:-1px;width:6px;height:6px;margin-left:-3px;box-shadow:0 0 6px 1.5px rgba(255,255,255,.85);}
.idl .idl-loaded > .idl-thumb-spinner{display:none !important;}
.idl .idl-is-video .idl-icon-image{display:none !important;}
.idl .idl-is-image .idl-icon-play{display:none !important;}
.idl .idl-view-link{cursor:pointer !important;}
.idl .idl-is-video .idl-view-link{display:none !important;}
.idl .idl-mention,.idl a.idl-mention,
.idl .idl-comment-user,.idl .idl-comment-user a{
   background:linear-gradient(135deg, #feda75 0%, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5 100%) !important;
   -webkit-background-clip:text !important;background-clip:text !important;
   -webkit-text-fill-color:transparent !important;color:transparent !important;
   text-decoration:none !important;cursor:pointer !important;font-weight:600 !important;
   border:0 !important;padding:0 !important;
}
.idl .idl-mention:hover,.idl a.idl-mention:hover,
.idl .idl-mention:focus,.idl a.idl-mention:focus,
.idl .idl-comment-user a:hover,.idl .idl-comment-user a:focus{
   filter:brightness(1.08) !important;text-decoration:none !important;outline:0 !important;
}
.idl .idl-user-link,.idl a.idl-user-link{
   color:#0095F6 !important;text-decoration:none !important;
   cursor:pointer !important;font-weight:500 !important;
   background:transparent !important;border:0 !important;padding:0 !important;
}
.idl .idl-user-link:hover,.idl a.idl-user-link:hover,
.idl .idl-user-link:focus,.idl a.idl-user-link:focus{
   text-decoration:underline !important;color:#0080D8 !important;outline:0 !important;
}
@media (max-width: 768px) {
   .inside-article{
      padding: 0 !important;
   }
}
.idl .idl-post-caption{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* ---------------------------------------------------------------------------
   Responsive card tuning (added 2026-07-20)

   The content cards (how-it-works steps, feature cards, use-case cards) are
   GenerateBlocks blocks whose padding and icon sizes are tuned for the 3-column
   desktop grid. Below 480px the grid collapses to one column but those desktop
   values stay, so a 320px screen loses ~64px of its width to card padding alone
   and each icon badge eats 48-56px of vertical space above its heading.

   These rules only shrink spacing at small widths. Text stays LEFT-ALIGNED on
   purpose: centring multi-line body copy measurably hurts readability, because
   every line starts at a different x-position and the eye loses the return point.
   Only the sizing is wrong on mobile, not the alignment.
   --------------------------------------------------------------------------- */

@media (max-width:480px){
  /* cards: reclaim horizontal space */
.gb-element-hw06,
.gb-element-hw10,
.gb-element-hw14,
.gb-element-ft06,
.gb-element-ft10,
.gb-element-ft14,
.gb-element-ft18,
.gb-element-uc06,
.gb-element-uc10,
.gb-element-uc14,
.gb-element-uc18,
.gb-element-uc22,
.gb-element-uc26,
.gb-element-rlf08,
.gb-element-rlf13,
.gb-element-rlf18,
.gb-element-rlf23,
.gb-element-rlt19,
.gb-element-rlt23,
.gb-element-rlt27,
.gb-element-rlp08,
.gb-element-rlp12,
.gb-element-rlp16,
.gb-element-rlp20,
.gb-element-tl06,
.gb-element-tl11,
.gb-element-tl16,
.gb-element-tl21,
.gb-element-cm05,
.gb-element-cm06,
.gb-element-cm27,
.gb-element-pp06,
.gb-element-pp10,
.gb-element-pp14{
    padding:20px !important;
    border-radius:14px !important;
  }

  /* icon badges: smaller, tighter to their heading */
.gb-text-hw07,
.gb-text-hw11,
.gb-text-hw15,
.gb-text-ft07,
.gb-text-ft11,
.gb-text-ft15,
.gb-text-ft19,
.gb-text-uc07,
.gb-text-uc11,
.gb-text-uc15,
.gb-text-uc19,
.gb-text-uc23,
.gb-text-uc27,
.gb-text-wy07,
.gb-text-wy11,
.gb-text-wy15,
.gb-text-wy19,
.gb-text-wy23,
.gb-text-wy27,
.gb-text-rs06,
.gb-text-rs11,
.gb-text-rs16,
.gb-text-rs21,
.gb-text-rs26,
.gb-text-lg03,
.gb-text-rlt20,
.gb-text-rlt24,
.gb-text-rlt28,
.gb-text-tl07,
.gb-text-tl12,
.gb-text-tl17,
.gb-text-tl22,
.gb-text-il07,
.gb-text-il12,
.gb-text-il17,
.gb-text-il22,
.gb-text-il27{
    width:40px !important;
    height:40px !important;
    font-size:17px !important;
    margin-bottom:12px !important;
    border-radius:12px !important;
  }
}

@media (max-width:360px){
  /* very small phones: trim once more */
.gb-element-hw06,
.gb-element-hw10,
.gb-element-hw14,
.gb-element-ft06,
.gb-element-ft10,
.gb-element-ft14,
.gb-element-ft18,
.gb-element-uc06,
.gb-element-uc10,
.gb-element-uc14,
.gb-element-uc18,
.gb-element-uc22,
.gb-element-uc26,
.gb-element-rlf08,
.gb-element-rlf13,
.gb-element-rlf18,
.gb-element-rlf23,
.gb-element-rlt19,
.gb-element-rlt23,
.gb-element-rlt27,
.gb-element-rlp08,
.gb-element-rlp12,
.gb-element-rlp16,
.gb-element-rlp20,
.gb-element-tl06,
.gb-element-tl11,
.gb-element-tl16,
.gb-element-tl21,
.gb-element-cm05,
.gb-element-cm06,
.gb-element-cm27,
.gb-element-pp06,
.gb-element-pp10,
.gb-element-pp14{
    padding:16px !important;
  }
.gb-text-hw07,
.gb-text-hw11,
.gb-text-hw15,
.gb-text-ft07,
.gb-text-ft11,
.gb-text-ft15,
.gb-text-ft19,
.gb-text-uc07,
.gb-text-uc11,
.gb-text-uc15,
.gb-text-uc19,
.gb-text-uc23,
.gb-text-uc27,
.gb-text-wy07,
.gb-text-wy11,
.gb-text-wy15,
.gb-text-wy19,
.gb-text-wy23,
.gb-text-wy27,
.gb-text-rs06,
.gb-text-rs11,
.gb-text-rs16,
.gb-text-rs21,
.gb-text-rs26,
.gb-text-lg03,
.gb-text-rlt20,
.gb-text-rlt24,
.gb-text-rlt28,
.gb-text-tl07,
.gb-text-tl12,
.gb-text-tl17,
.gb-text-tl22,
.gb-text-il07,
.gb-text-il12,
.gb-text-il17,
.gb-text-il22,
.gb-text-il27{
    width:36px !important;
    height:36px !important;
    margin-bottom:10px !important;
  }
}

/* ---------------------------------------------------------------------------
   Story pages: heading size hierarchy fix (2026-07-20)

   Three H3s in the "anonymous viewing" section rendered at 28px while the H2
   introducing them is 24px — the visual hierarchy contradicted the semantic one.
   Not an SEO issue (crawlers read the tag, not the CSS) but it misleads readers.
   Dropped to 22px so H1 32 > H2 24 > H3 22 holds.

   !important is required: GenerateBlocks' per-page stylesheet
   (uploads/generateblocks/style-*.css) is enqueued AFTER this file.
   --------------------------------------------------------------------------- */
.gb-text-al08,
.gb-text-al17,
.gb-text-al22{
  font-size:22px !important;
}
