/* Keep the original card groups on wide screens and use the space between them. */
body .container.custom_container_class {
  width: min(100% - 32px, 1320px);
  min-width: 0;
  max-width: none !important;
}

.custom_container_class .row.rectangle_width {
  max-width: none;
  margin-inline: 0;
}

.custom_container_class .rectangle_width > .col-sm-3 {
  min-width: 0;
  padding-inline: 7px;
}

.custom_container_class .rectangle_width .item_wrap {
  width: 100%;
  min-width: 0;
  margin: 0 0 14px;
  border-width: 1px;
  border-radius: 10px;
  scroll-margin-top: 12px;
}

.custom_container_class .item_title h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  height: auto;
  margin: 0;
  padding: 9px 12px;
  border-radius: 9px 9px 0 0;
  font-size: 16px !important;
  line-height: 1.25;
  text-align: left;
  background-color: #19151a !important;
  color: #fff6ee !important;
}

.custom_container_class .item_title h2 .title-ico {
  flex: none;
  width: 32px;
  height: 32px;
  margin: 0;
  object-fit: contain;
}

.custom_container_class .item_wrap .markfav {
  min-height: 0;
  height: auto;
  max-height: none;
  padding: 9px 12px;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}

.custom_container_class .item_wrap ol.visit-tracking-list {
  margin: 0;
  padding: 0 0 4px;
}

.custom_container_class ol li.individualLiMagnigying {
  min-height: 36px;
}

.custom_container_class ol li.individualLiMagnigying .bookmark-title {
  font-size: 15px;
  line-height: 1.4;
  max-height: none;
}

.custom_container_class .bookmark-link:focus-visible {
  outline: 2px solid #a54700;
  outline-offset: -2px;
  border-radius: 3px;
}

@media (min-width: 768px) {
  #category_2 .visit-tracking-list {
    max-height: 28rem;
    overflow-y: auto;
    scrollbar-gutter: stable;
  }
}

@media (min-width: 768px) and (max-width: 1099px) {
  .custom_container_class .row.rectangle_width {
    display: block !important;
    columns: 2;
    column-gap: 14px;
  }

  .custom_container_class .rectangle_width > .col-sm-3 {
    display: contents !important;
  }

  .custom_container_class .rectangle_width .item_wrap {
    break-inside: avoid;
  }
}

@media (max-width: 767px) {
  body .container.custom_container_class {
    width: calc(100% - 24px);
    padding-inline: 0;
    padding-top: 55px !important;
  }

  body .custom_container_class .row.rectangle_width {
    gap: 12px !important;
    margin-top: 0 !important;
  }

  .custom_container_class .rectangle_width .item_wrap {
    width: 100% !important;
    margin-bottom: 0;
  }

  .custom_container_class ol li.individualLiMagnigying {
    min-height: 44px;
  }

  body .custom_container_class ol li.individualLiMagnigying a.bookmark-link,
  body .custom_container_class ol li.individualLiMagnigying a.bookmark-link .bookmark-title {
    white-space: normal !important;
    overflow: visible !important;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 360px) {
  body .custom_container_class ol li.individualLiMagnigying {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
}

/* Improve the header hierarchy within the existing fixed header. */
@media (min-width: 1100px) {
  .header_container .header .custom_logo {
    position: fixed;
    inset: 36px max(18px, calc((100vw - 1100px) / 2)) auto auto;
    width: 232px;
  }

  .header_container .header .custom_logo img {
    display: block;
    width: 100%;
    margin: 0;
  }


  .header_container .mobile-text-info {
    width: 540px !important;
    transform: translateX(-90px);
  }

  .header_container .mobile-text-info h1 {
    font-size: 18px !important;
    line-height: 1.25;
    text-wrap: balance;
  }

  .header_container .header .about .default {
    font-size: 14px;
    line-height: 1.45;
  }
}

@media (max-width: 767px) {
  .header_container .mobile-text-info h1 {
    font-size: clamp(12px, 3.4vw, 14px) !important;
    line-height: 1.25;
    text-wrap: balance;
  }
}

body .container.custom_container_class {
  padding-bottom: 24px;
}
