/*
Theme Name: SmartMag Child
Theme URI: https://smartmag.theme-sphere.com/
Description: A child theme of SmartMag
Author: ThemeSphere
Author URI: https://theme-sphere.com
Template: smart-mag
Version: 1.1
*/
.smart-head-top.s-dark, .s-dark .smart-head-top {
  --c-bg: #798e99;
}
/* 0) Default - paragrafe vrati na normalno */
.entry-content p {
    display: block;
}

/* 1) "Galerijski" paragrafi: imaju BAREM 2 linka sa slikama i NEMAJU iframe */
.entry-content p:has(> a:nth-of-type(2) > img):not(:has(> iframe)) {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

/* 2) Svaki <a> sa slikom zauzme pola širine (2 u redu) */
.entry-content p:has(> a:nth-of-type(2) > img):not(:has(> iframe)) > a {
    flex: 1 1 calc(50% - 10px);
}

/* 3) Slike unutar tih linkova - pune širine svog stupca */
.entry-content p:has(> a:nth-of-type(2) > img):not(:has(> iframe)) > a > img {
    width: 100% !important;
    height: auto;
    display: block;
}

/* Sve slike u WP sadržaju automatski centriraj */
.entry-content img,
.post-content img,
.page-content img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.entry-content img,
.entry-content img.alignleft,
.entry-content img.alignright {
    display: block !important;
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.smart-head-main .smart-head-bot{ box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;}
.post-meta .sponsor-info .name {font-weight: 500!important;}

.block-head .heading {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  background: linear-gradient(156deg,#788d98 30%,#8d8b28 80%) !important;
  background-clip: border-box;
  background-clip: border-box;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent;
  font-size: 32px;
  font-weight: bold;
  letter-spacing: -1px;
  line-height: 1.5;
  text-align: center;
  overflow: hidden;
  text-transform: lowercase !important;
  margin-top: 0;
}
.topbutton {height:41px;width:41px;position:fixed;right:10px;bottom:5px;Z-index:1000000; background-image:url("/images/top.png");background-repeat:no-repeat;display:none;}
.post-author {font-weight: 500 !important; color: var(--c-contrast-900);}
.post-meta .sponsor-info .name { margin-left: 0!important; }

/*.g-1{ box-shadow: 1px 1px 5px 1px rgba(0,0,0,0.5);max-width:1250px!important;}
.g-2{ box-shadow: 1px 1px 5px 1px rgba(0,0,0,0.5);max-width:1250px!important;}
.g-7{ box-shadow: 1px 1px 5px 1px rgba(0,0,0,0.5);max-width:1250px!important;}
.g-8{ box-shadow: 1px 1px 5px 1px rgba(0,0,0,0.5);max-width:1250px!important;}
.g-9{ box-shadow: 1px 1px 5px 1px rgba(0,0,0,0.5);max-width:1250px!important;}
.g-10{ box-shadow: 1px 1px 5px 1px rgba(0,0,0,0.5);max-width:728px!important; max-height:90px!important;}
.g-11{ box-shadow: 1px 1px 5px 1px rgba(0,0,0,0.5);max-height:200px!important;}
.g-12{ box-shadow: 1px 1px 5px 1px rgba(0,0,0,0.5);max-height:200px!important;}
.g-13{ box-shadow: 1px 1px 5px 1px rgba(0,0,0,0.5);max-width:300px!important; max-height:250px!important;}
.g-14{ box-shadow: 1px 1px 5px 1px rgba(0,0,0,0.5);max-width:300px!important; max-height:250px!important;}
.g-16{ box-shadow: 1px 1px 5px 1px rgba(0,0,0,0.5);max-height:598px!important;}
.g-17{ box-shadow: 1px 1px 5px 1px rgba(0,0,0,0.5);max-height:600px!important;}
.g-19{ box-shadow: 1px 1px 5px 1px rgba(0,0,0,0.5);max-height:200px!important;}
.g-20{ box-shadow: 1px 1px 5px 1px rgba(0,0,0,0.5);max-height:200px!important;}
.g-21{ box-shadow: 1px 1px 5px 1px rgba(0,0,0,0.5);max-width:300px!important; max-height:250px!important;}*/

.post-share-bot .info {display: none!important;}
.post-share-bot .share-links {justify-content: center!important;}

.content-spacious > p img.alignnone, .content-spacious .wp-caption.alignnone, .content-spacious figure.alignnone, .content-spacious .alignwide, .content-spacious .alignfull, .content-spacious .gallery, .content-spacious .review-box, .content-spacious .fluid-width-video-wrapper { max-width: 100%!important;}

.dd-ad-wrap {
    display: block;
    width: 100%;
    max-width: 970px;      /* ili 800px, po želji */
    margin: 20px auto;
    text-align: center;
}

.dd-ad-wrap ins.adsbygoogle {
    display: block !important;
    width: 100% !important;
}
/* SVI AdSense slotovi */
ins.adsbygoogle {
    display: block !important;
    width: 100% !important;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Tvoj zajednički wrapper */
.dd-ad-wrap {
    display: block;
    width: 100%;
    max-width: 970px;      /* po želji */
    margin: 20px auto;
    text-align: center;
}

/* Gridovi koji unutar sebe imaju oglas – da ne ostanu 0 širine */
.g:has(.adsbygoogle),
.g-single:has(.adsbygoogle),
.a-wrap:has(.adsbygoogle) {
    width: 100% !important;
    max-width: 100%;
}

.interscroller-caption {!important; color:#a8a8a8 !important; font-size: 10px !important; font-weight: 400 !important; text-transform: uppercase !important; display: block; text-align: center!important; margin-bottom:10px;}


.wp-polls-ul{ background-color: #a7b8bd !important; padding: 20px!important; border-radius: 10px; margin: 0px 0px 20px 0px!important;}
.wp-polls ul, .wp-polls-ul, .wp-polls-ans ul {color: #000!important;}
.wp-polls .Buttons {padding: 5px!important; border-radius: 10px; color: #798e98;}
.wp-polls{ background: linear-gradient(135deg, #798e98, #a7b8bd)!important; padding: 20px!important; border-radius: 10px; box-shadow: 1px 1px 10px 1px rgba(0,0,0,0.5); border: 2px #1a3665; border-style: solid;}
.the-post-tags {display: none!important;}
.wp-polls .pollbar{border: 0px !important;}
.wp-polls h3 {color:#ffffff!important;}
.wp-polls p {color:#000!important;}