/* Theme Name: Ng-Topgear 
* Theme URI: https://www.topgearhk.com/

* Author: Falcon
* Description: new topgearhk theme 2022
* Version: 1.0.0
* License: Private
* Text Domain: ng
* Tags: one-column, two-columns, right-sidebar, full-width-template, rtl-language-support, theme-options, translation-ready, fixed-layout, responsive-layout, featured-images
*/
.screen-reader-text{
  display:none;
}
.card .cover img {
  height: auto;
}
.nav-links {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.center,.alm-btn-wrap{
  text-align:center;
}
.inlineblock-div,#alm-load-more-btn{
  display:inline-block;
}
.search-bar{
  z-index:-1;
}
.expand.search .search-bar {
  z-index:1;
}

.youtube_embed_iframe_container{
  position:relative;
  padding-bottom:56.25%;
  padding-top:30px;
  height:0;
  overflow:hidden;
}

iframe.youtube_embed_iframe{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
}

.alm-reveal{
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: stretch;
}

.alm-btn-wrap{
  clear: both;
}
#load-more.done{
  display: none;
}
figure {
  margin: 0;
}
.content-wrapper .content img {
  cursor: zoom-in;
}
.wp-caption img[class*=wp-image-] {
  display: block;
  margin: 0 auto;
}
.content-wrapper .content img {
  height: auto;
  max-width: 100%;
  border: 0;
}
.wp-caption .wp-caption-text {
  margin-top: 20px;
  margin-bottom: 30px;
}

.is_video .cover::before{
  content: "";
  width: 120px;
  height: 120px;
  background: url('images/ico-video.svg') no-repeat;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-top: -60px;
  margin-left: -60px;
  z-index: 10;
}

.hide{
  display: none;
}

/** 修正大图比例问题 **/
article .cover img {
  height: auto;
}

.content .apb-slide p {
  max-width: 100%;
}

.gallery-wrapper img{
  max-width: 100%;
  height: auto;
}

/**修正top-banner广告**/
#div-gpt-ad-1689131760901-0 >div{
  text-align: center;
  
}
/* #div-gpt-ad-1689131760901-0 >div >iframe{
  height: 290px;
} */

.mobile-superbanner >div {
  margin: 0 auto;
}

.content p {
  max-width: 44.5em;
  line-height: 1.8em;
}

div[id^="div-gpt-ad-"] {
  text-align:center;
}
#div-gpt-ad-1695368211481-0{
  margin-bottom: 1rem;
}


.psgal .row{
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  /* margin-right: -15px;
  margin-left: -15px; */
  max-width: 44.5em;
}

.psgal .row > figure {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.2;
    padding: 0.3rem 0.3rem;
}

.psgal .col-xs-6 {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
}
.psgal .col-xs-4 {
  -webkit-box-flex: 0;
  -ms-flex: 0 0 33.333333%;
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}


.psgal .row > figure > a {
  display: block;
  position: relative;
}
.psgal .row a .more {
  top: 0;
  left: 0;
  color: #fff;
  width: 100%;
  height: 100%;
  font-size: 3rem;
  position: absolute;
  font-family: system-ui, sans-serif;
  background: rgba(0, 0, 0, 0.5);

  display: flex;
  justify-content: center;
  align-items: center;
}

#wpadminbar{
  z-index: 11;
}

.single-post .content-wrapper >.container  {
  position: relative;
}
.single-post .content-wrapper >.container > .col-ad{
  position: sticky;
  top: 2rem;
  z-index: 11;
}


.tooltip {
  position: relative;
  display: inline-block;
  /* border-bottom: 1px dotted black; */
}
/* .tooltip:hover {
  border-bottom: 1px dotted black;
  text-decoration: none;
} */


.tooltip .tooltiptext {
  visibility: hidden;
  width: 186px;
  background-color: black;
  color: #fff;
  text-align: justify;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 100%;
  left: -6%;
  margin-left: -60px;
  
  /* Fade in tooltip - takes 1 second to go from 0% to 100% opac: */
  opacity: 0;
  transition: opacity 1s;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
  
}
.tooltip .tooltiptext::after {
  content: " ";
  position: absolute;
  top: 100%; /* At the bottom of the tooltip */
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: black transparent transparent transparent;
}