/* TRIVISMAGZ Responsive Layer
   Non-destructive overrides for the legacy desktop theme.
   Keeps existing markup/content and adapts it to phones, tablets and desktops.
*/
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; }
body { max-width: 100%; overflow-x: hidden; }
img, video, iframe, object, embed { max-width: 100%; }
img { height: auto; }
input, select, textarea, button { max-width: 100%; }

.main-content-wrapper {
  width: min(950px, 100%);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 12px;
  padding-right: 12px;
}
.main-content { max-width: 100%; }
.main-header { width: 100%; }
.main-header .logo img { max-width: 100%; }
.main-header .iklanatas img { max-width: 100%; height: auto !important; }
.navigation {
  width: calc(100% + 24px);
  max-width: none;
  margin-left: -12px;
  height: auto;
  min-height: 40px;
}
.ddsmoothmenu { max-width: 100%; overflow: visible; }
.ddsmoothmenu ul { max-width: 100%; }
.breaking-wrapper {
  width: calc(100% + 24px);
  max-width: none;
  margin-left: -12px;
}
.horizontal-scroller { max-width: calc(100% - 190px); }
.search { max-width: 100%; }
.search .input-text { max-width: calc(100% - 40px); }
.main-column-wrapper { width: 100%; max-width: 100%; }
.main-column-left { max-width: 100%; }
.sidebar { max-width: 100%; }
.main-footer { max-width: 100%; }
.content, .entry, .post, .article, .block-content { max-width: 100%; }
table { max-width: 100%; }
pre, code { max-width: 100%; overflow-x: auto; }
iframe { border: 0; }
.video-container, .youtube, .responsive-video {
  position: relative;
  width: 100%;
  max-width: 100%;
}
.responsive-video { aspect-ratio: 16 / 9; height: auto; }
.responsive-video iframe { width: 100%; height: 100%; }

@media (max-width: 960px) {
  .main-column-left {
    width: calc(100% - 20px) !important;
    margin-right: 20px !important;
  }
  .sidebar {
    width: 100% !important;
    float: none !important;
    clear: both;
  }
  .main-column-wrapper {
    background-image: none !important;
  }
  .main-header .iklanatas {
    width: 48% !important;
    max-width: 450px;
    margin-right: 0 !important;
  }
  .main-header .logo { max-width: 48%; }
  .blog-slider-wrapper,
  .blog-slider-wrapper .blog-slider,
  .blog-slider-wrapper .image,
  .blog-slider-wrapper .thumbs {
    max-width: 100% !important;
  }
  .blog-slider-wrapper .image {
    height: auto !important;
    aspect-ratio: 569 / 281;
  }
  .blog-slider-wrapper .image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .blog-slider-wrapper .image a {
    width: calc(100% - 32px) !important;
  }
}

@media (max-width: 768px) {
  body { font-size: 13px; }

  .main-content-wrapper {
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }

  .main-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
  }
  .main-header .logo {
    float: none !important;
    width: auto !important;
    max-width: 52% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .main-header .logo img {
    max-height: 80px;
    width: auto;
  }
  .main-header .iklanatas {
    float: none !important;
    width: 100% !important;
    max-width: 100%;
    margin: 0 !important;
    padding: 5px 0 !important;
    order: 3;
    text-align: center;
  }
  .main-header .iklanatas img {
    width: auto !important;
    max-width: 100% !important;
  }

  .navigation,
  .breaking-wrapper {
    width: 100% !important;
    margin-left: 0 !important;
  }

  .ddsmoothmenu {
    width: 100%;
    padding: 0 !important;
  }
  .ddsmoothmenu > ul {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
  }
  .ddsmoothmenu ul li {
    float: none !important;
    display: block !important;
    flex: 1 1 auto;
  }
  .ddsmoothmenu ul li a {
    height: auto !important;
    min-height: 40px;
    line-height: 20px !important;
    padding: 10px 9px !important;
    text-align: center;
    white-space: normal;
  }
  .ddsmoothmenu ul li ul {
    width: 100% !important;
    position: static !important;
    display: none;
    visibility: visible !important;
  }
  .ddsmoothmenu ul li:hover > ul {
    display: block;
  }
  .ddsmoothmenu ul li ul li,
  .ddsmoothmenu ul li ul li a {
    width: 100% !important;
  }

  .breaking-wrapper {
    height: auto !important;
    min-height: 44px;
    padding: 7px 8px !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
  .breaking-wrapper p {
    float: none !important;
    padding: 0 8px 0 0 !important;
    line-height: 30px;
  }
  .horizontal-scroller {
    float: none !important;
    flex: 1 1 180px;
    width: auto !important;
    max-width: none !important;
  }
  .breaking-wrapper .search {
    float: none !important;
    width: 100% !important;
    margin: 6px 0 0 !important;
    padding: 0 !important;
  }
  .breaking-wrapper .search form {
    display: flex;
    width: 100%;
  }
  .search .input-text {
    flex: 1;
    width: auto !important;
    max-width: none !important;
  }

  .main-column-left,
  .sidebar {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
  }
  .main-column-left { margin-bottom: 20px !important; }

  .blog-slider-wrapper {
    width: 100% !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
  }
  .blog-slider-wrapper .thumbs {
    overflow-x: auto !important;
    white-space: nowrap;
  }
  .blog-slider-wrapper .thumbs div {
    display: inline-block;
    float: none !important;
  }

  .main-footer {
    width: 100% !important;
    padding-left: 0;
    padding-right: 0;
  }
  .main-footer .about,
  .main-footer .social,
  .main-footer .copyright {
    width: 100% !important;
    float: none !important;
    margin-right: 0 !important;
  }

  .main-content-wrapper .search,
  .main-content-wrapper form {
    max-width: 100%;
  }

  /* Legacy fixed-size elements frequently used by article modules. */
  [width="950"], [width="880"], [width="720"], [width="600"], [width="580"],
  [width="569"], [width="550"], [width="500"], [width="450"] {
    max-width: 100% !important;
  }
}

@media (max-width: 480px) {
  .main-content-wrapper { padding-left: 7px; padding-right: 7px; }
  .main-header .logo { max-width: 70% !important; }
  .ddsmoothmenu > ul { display: block; }
  .ddsmoothmenu ul li { width: 100%; }
  .ddsmoothmenu ul li a { text-align: left; padding-left: 14px !important; }
  .ddsmoothmenu ul li ul { display: none; }
  .ddsmoothmenu ul li:hover > ul { display: block; }

  .breaking-wrapper p { width: 100%; }
  .horizontal-scroller { width: 100% !important; flex-basis: 100%; }
  .blog-slider-wrapper .thumbs a,
  .blog-slider-wrapper .thumbs span {
    width: 88px !important;
    height: 62px !important;
  }

  h1 { font-size: 25px; }
  h2 { font-size: 20px; }
  h3 { font-size: 18px; }

  .main-footer { font-size: 12px; }
}
