#clean-grid-header .clean-grid-head-content {
  overflow: visible;
}

#clean-grid-header .clean-grid-header-inside {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  overflow: visible;
}

#clean-grid-header .clean-grid-logo {
  float: none !important;
  width: auto !important;
  max-width: 420px;
  margin: 4px 0 !important;
  text-align: left !important;
  flex: 0 0 auto;
}

#clean-grid-header .site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
}

.myp2-logo-link {
  flex: 0 0 auto;
  display: block;
  line-height: 0;
}

.myp2-logo-img {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  background: #111;
}

.myp2-logo-text {
  min-width: 0;
}

#clean-grid-header .clean-grid-site-title {
  margin: 0 0 6px 0 !important;
  line-height: 1.25 !important;
}

#clean-grid-header p.clean-grid-site-title {
  font: inherit;
}

#clean-grid-header .clean-grid-site-description {
  margin: 0;
  line-height: 1.25 !important;
}

#clean-grid-header .clean-grid-header-banner {
  float: none !important;
  width: auto !important;
  flex: 1 1 auto;
  min-width: 0;
  text-align: left !important;
}

.myp2-ad-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 728 / 90;
  min-height: 72px;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
}

.myp2-ad-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.myp2-ad-slide.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.myp2-ad-slide img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover;
  object-position: center;
  border: 0;
}

.myp2-ad-dots {
  position: absolute;
  left: 12px;
  bottom: 7px;
  z-index: 2;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  width: auto;
}

.myp2-ad-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  flex: 0 0 8px;
  display: block;
}

.myp2-ad-dot.is-active {
  background: #eeee22;
}

@media only screen and (max-width: 700px) {
  #clean-grid-header .clean-grid-header-inside {
    flex-direction: column !important;
    align-items: stretch;
    gap: 10px;
  }

  #clean-grid-header .clean-grid-logo {
    max-width: none;
    width: 100% !important;
    text-align: left !important;
  }

  .myp2-logo-img {
    width: 52px;
    height: 52px;
  }

  #clean-grid-header .clean-grid-header-banner {
    width: 100% !important;
    flex: 0 0 auto;
  }

  .myp2-ad-carousel {
    min-height: 64px;
  }
}
