/* Responsive layout using the original GLS notebook artwork. */
.gls-mobile,
.gls-mobile-slider,
.gls-price-board,
.gls-contact-board,
.gls-contact-map-link,
.gls-contact-legal,
.gls-company-slot,
.gls-company-section {
  display: none;
}

.gls-news-board {
  display: contents;
}

.gls-header-messengers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 12px;
  font-size: 16px;
}

.gls-header-messengers > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  white-space: nowrap;
}

.gls-header-messengers img {
  flex: none;
  object-fit: contain;
}

.gls-header-messengers > a > span {
  display: inline;
  padding: 0;
  font: inherit;
}

.gls-header-messengers > a > .gls-channel-short {
  display: none;
}

@media screen and (min-width: 1280px) {
  .phone-top > span {
    padding-block: 0;
    line-height: 34px;
  }

  .phone-top > span + br {
    display: none;
  }

  .phone-top > .gls-header-messengers {
    margin-top: 4px;
  }
}

@media screen and (max-width: 1279px) {
  body {
    padding: clamp(7px, 2.05vw, 26px) 0 35px;
    font-size: 16px;
    line-height: 1.5;
    background: #d5b38c url(img/bg.jpg) repeat center top / 500px auto;
  }

  #container {
    --gls-ink: #01047b;
    --gls-heading: #333694;
    --gls-red: #aa2029;
    --gls-paper: #eef2f6;
    --gls-rule: #c6cfdf;
    --gls-gutter: clamp(12px, 3.25vw, 36px);
    --gls-binding: clamp(18px, 5vw, 43px);
    --gls-serif: Georgia, "Times New Roman", serif;
    --gls-rule-image: url(img/footer-line.png);
    --gls-board-gap: clamp(10px, 2vw, 18px);

    width: calc(100% - clamp(10px, 4vw, 66px));
    max-width: 1165px;
    margin-inline: auto;
    color: var(--gls-ink);
    background: url(img/content-bg-left.png) left top / var(--gls-binding) auto repeat-y;
  }

  #container .container-wrapper {
    margin-inline-start: var(--gls-binding);
    background: var(--gls-paper) url(img/content-bg-right_SUMMER.jpg)
      right -93px top / max(1120px, calc(100% + 93px)) auto repeat-y;
    box-shadow: 4px 5px 13px rgb(84 51 20 / 21%);
  }

  #container .bg-footer {
    background: url(img/footer-bg_SUMMER.png) right bottom / clamp(130px, 24vw, 245px) auto no-repeat;
  }

  #container *,
  #container *::before,
  #container *::after {
    box-sizing: border-box;
  }

  #container a:focus-visible,
  #container button:focus-visible,
  #container summary:focus-visible,
  #container input:focus-visible,
  #container textarea:focus-visible,
  #container .gls-table-scroll:focus-visible {
    outline: 2px solid var(--gls-red);
    outline-offset: 3px;
  }

  #container :where(img, video, svg) {
    max-width: 100%;
  }

  #container img {
    height: auto;
  }

  #container :where(h1, h2, h3, p, li, td) {
    overflow-wrap: anywhere;
  }

  #container h1 {
    font: 700 clamp(25px, 4.7vw, 36px) / 1.15 var(--gls-serif);
  }

  #container h2,
  #container h3 {
    font-family: var(--gls-serif);
    line-height: 1.25;
  }

  #container #content {
    background: none;
  }

  #header {
    height: auto;
    padding: clamp(16px, 4vw, 29px) var(--gls-gutter) 9px;
  }

  #header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 18px;
    max-width: 100%;
  }

  #header-inner::after {
    display: none;
  }

  #logo {
    float: none;
    flex: 1 1 100%;
    min-width: 0;
    padding: 0;
  }

  #logo a {
    display: block;
    line-height: 1.25;
  }

  #logo img {
    display: block;
    width: min(100%, 545px);
    margin-inline: auto;
  }

  .phone-top {
    float: none;
    margin: 0;
    font: 15px/1.4 var(--gls-serif);
    text-align: center;
    line-height: 1.4;
  }

  .phone-top > span {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: clamp(6px, 3vw, 16px);
    padding: 0;
    font-size: 17px;
  }

  .phone-top > br,
  .phone-top > span > br {
    display: none;
  }

  .phone-top .gls-number-wrapper {
    display: inline;
    padding: 0;
    font-size: inherit;
  }

  .phone-top > img {
    float: none !important;
    width: 21px !important;
    height: 21px !important;
    vertical-align: middle;
  }

  .phone-top a {
    display: inline-block;
    min-height: 32px;
    padding-block: 6px;
    vertical-align: middle;
  }

  .phone-top .gls-phone-link {
    min-height: 30px;
    padding-block: 3px;
    color: var(--gls-ink);
    font-size: clamp(14px, 3.7vw, 17px);
  }

  #primary-nav {
    z-index: auto;
    height: auto;
    padding: clamp(7px, 2vw, 18px) var(--gls-gutter) 3px;
  }

  #primary-nav > img {
    display: block;
    width: 100%;
    margin-bottom: 3px;
  }

  .gls-responsive-ready #primary-nav > img {
    margin-top: 7px;
    margin-bottom: 0;
  }

  #primary-nav ul.menu,
  #primary-nav .gls-primary-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0 clamp(2px, 1.2vw, 16px);
  }

  /* Desktop navigation places oversized graphic hit areas on these IDs. */
  #primary-nav ul.menu li[id],
  #primary-nav .gls-primary-links li {
    float: none;
    z-index: auto;
    margin: 0 !important;
  }

  #primary-nav ul.menu li[id] > a,
  #primary-nav .gls-primary-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 7px clamp(2px, .9vw, 12px) !important;
    background: none !important;
    font: 700 clamp(14px, 3.6vw, 20px) / 1.2 var(--gls-serif);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  #primary-nav .gls-primary-links a[aria-current="page"] {
    color: var(--gls-red);
  }

  #primary-nav .gls-primary-links a {
    justify-content: center;
    font-size: clamp(14px, 3.5vw, 20px);
  }

  .gls-responsive-ready #primary-nav > .menu-55-container {
    display: none;
  }

  #primary-nav .gls-mobile {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    align-items: start;
    column-gap: 8px;
  }

  .gls-mobile-menu {
    grid-area: 1 / 1 / 2 / -1;
  }

  .gls-mobile-menu > summary,
  #primary-nav .gls-quick-links > a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 6px clamp(6px, 1.9vw, 16px);
    color: var(--gls-heading);
    font: 700 clamp(15px, 3.9vw, 18px) / 1.2 var(--gls-serif);
    text-decoration: none;
  }

  .gls-mobile-menu > summary {
    width: max-content;
    padding-inline: 2px;
    color: var(--gls-ink);
    cursor: pointer;
    list-style: none;
  }

  .gls-mobile-menu[open] > summary {
    color: var(--gls-red);
  }

  .gls-mobile-menu > summary::-webkit-details-marker {
    display: none;
  }

  .gls-mobile-menu > summary::before {
    width: 17px;
    height: 12px;
    border-block: 2px solid currentColor;
    border-radius: 1px;
    background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
    content: "";
  }

  .gls-mobile-menu[open] > summary::before {
    width: 10px;
    height: 10px;
    margin-inline: 3px 4px;
    rotate: 45deg;
    translate: 0 -2px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    background: transparent;
  }

  .gls-mobile-channels {
    position: relative;
    grid-area: 1 / 2;
    justify-self: end;
  }

  .gls-mobile-channels .gls-header-messengers {
    justify-content: flex-end;
    gap: 0 clamp(9px, 2.4vw, 16px);
    font: 700 clamp(14px, 3.8vw, 17px) / 1.2 var(--gls-serif);
  }

  .gls-mobile-channels .gls-header-messengers > a {
    gap: 5px;
    min-height: 44px;
    color: var(--gls-ink);
    text-decoration: none;
  }

  .gls-mobile-channels .gls-header-messengers > a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .gls-mobile-channels img {
    width: 22px;
    height: auto;
  }

  .gls-mobile-channels .gls-channel-full {
    display: none;
  }

  .gls-mobile-channels .gls-header-messengers > a > .gls-channel-short {
    display: inline;
  }

  #primary-nav .gls-quick-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0 10px;
  }

  #primary-nav .gls-quick-links > a {
    color: var(--gls-red);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .gls-mobile-menu-panel {
    margin-top: 10px;
    padding: 12px 14px;
    background: rgb(248 249 250 / 78%);
    border-block: 1px solid #9ca6c1;
  }

  .gls-mobile-menu:not([open]) > .gls-mobile-menu-panel {
    display: none;
  }

  #primary-nav .gls-mobile-header #header {
    padding: 2px 0 0;
  }

  #primary-nav .gls-page-nav {
    padding-top: 4px;
    background: var(--gls-rule-image) center top / 100% 4px no-repeat;
  }

  #primary-nav .gls-mobile-menu-panel h2 {
    margin-top: 16px;
    padding: 0 0 4px;
    color: var(--gls-red);
    font-size: 19px;
  }

  #primary-nav .gls-mobile-menu-panel ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 0 14px;
  }

  #primary-nav .gls-mobile-menu-panel ul li {
    float: none;
    min-width: 0;
    margin: 0;
    z-index: auto;
  }

  #primary-nav .gls-mobile-menu-panel ul a {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid var(--gls-rule);
    font: 700 16px/1.35 var(--gls-serif);
    text-decoration: none;
  }

  #primary-nav .gls-mobile-menu-panel a[aria-current="page"] {
    color: var(--gls-red);
    font-weight: 700;
  }

  #primary-nav .gls-mobile-menu-panel .gls-primary-links {
    display: flex;
    gap: 0 9px;
  }

  #primary-nav .gls-mobile-menu-panel .gls-primary-links a {
    padding-inline: 5px !important;
    border: 0;
    text-decoration: underline;
  }

  #content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "main" "sidebar";
    reading-flow: grid-rows;
    gap: 24px;
    margin: 0;
    padding: 16px var(--gls-gutter) 0;
  }

  #content::after {
    display: none;
  }

  #content #primary,
  .page #content #primary,
  .single #content #primary {
    grid-area: main;
    height: auto;
    min-width: 0;
    padding: 0 !important;
    overflow: visible;
    background: none;
    container: gls-main / inline-size;
  }

  .gls-home-intro {
    margin-bottom: 14px;
    text-align: center;
  }

  #container .gls-home-intro h1 {
    max-width: 32ch;
    margin: 0 auto;
    padding-bottom: 0;
    color: var(--gls-heading);
    text-wrap: balance;
  }

  #primary > h1,
  #primary > .entry-content > h1,
  #primary .gls-section-heading {
    margin-inline: auto;
    text-align: center;
    text-wrap: balance;
  }

  #primary .gls-home-price {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 4px 7px;
    color: var(--gls-red);
    font: 700 17px/1.25 var(--gls-serif);
    text-underline-offset: 3px;
  }

  .gls-channel {
    max-width: 580px;
    padding: 18px clamp(10px, 3vw, 20px) 8px;
    margin: 20px auto 24px;
    background: var(--gls-rule-image) center top / 100% 4px no-repeat;
    text-align: center;
  }

  #primary .gls-legacy-gap {
    display: none;
  }

  #content #sidebar {
    grid-area: sidebar;
    float: none;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 20px 0 0;
    background: var(--gls-rule-image) center top / 100% 4px no-repeat;
  }

  #sidebar > ul,
  #sidebar .widget ul {
    margin: 0;
    padding: 0;
  }

  #sidebar .widget {
    margin-bottom: 18px;
    padding-bottom: 16px;
    background: url(img/line.png) left bottom / min(100%, 231px) 4px no-repeat;
  }

  #sidebar .widget li {
    margin: 0;
    padding: 0 0 0 12px;
    background: url(img/marker.gif) left 18px no-repeat;
  }

  #sidebar .widget li a {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding-block: 6px;
  }

  .gls-responsive-ready #sidebar #linkcat-2 {
    display: none;
  }

  #sidebar img[width="237"][height="524"] {
    display: block;
    width: 162px;
  }

  .gls-company-slot:not(:empty) {
    display: block;
    width: 100%;
  }

  #content .gls-company-original {
    display: none;
  }

  .gls-company-section {
    display: block;
    width: min(100%, 410px);
    margin-inline: auto;
    text-align: center;
  }

  #content > .gls-company-section {
    grid-column: 1 / -1;
    padding-block: 14px 5px;
    background: var(--gls-rule-image) center top / 100% 4px no-repeat;
  }

  .gls-company-section h3 {
    margin: 0 0 9px;
    text-wrap: balance;
  }

  .gls-company-logos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(7px, 2vw, 14px);
    align-items: start;
  }

  /* The 237 × 604 logo sheet has a blank strip at row 288. */
  .gls-company-logos span {
    aspect-ratio: 237 / 288;
    background: url(img/logotypes.gif) center top / 100% auto no-repeat;
  }

  .gls-company-logos span + span {
    aspect-ratio: 237 / 316;
    background-position: center bottom;
  }

  #footer {
    height: auto;
    margin: 24px 0 0;
    padding: 22px 0 clamp(56px, 15vw, 104px);
    margin-inline: var(--gls-gutter);
    overflow: visible;
    background: var(--gls-rule-image) left top / 100% 4px no-repeat;
  }

  #footer-notes {
    line-height: 1.5;
  }

  #footer-notes .copyright {
    float: none;
  }

  #primary .entry-title,
  #primary .entry-title a {
    font: 700 clamp(19px, 3.8vw, 25px) / 1.2 var(--gls-serif);
    text-underline-offset: 3px;
  }

  .page #primary .entry-title {
    z-index: auto;
    margin: 0;
  }

  #primary .entry-content,
  #primary .entry-summary {
    padding-right: 0;
  }

  .entry-content p[align="justify"] {
    text-align: start;
  }

  #primary .hentry:has(> .published) {
    display: grid;
    grid-template-columns: clamp(49px, 12vw, 67px) minmax(0, 1fr);
    align-items: center;
    gap: 9px clamp(9px, 2.6vw, 17px);
    margin-bottom: 15px;
    padding: 0 0 13px;
    background: var(--gls-rule-image) left bottom / 100% 4px no-repeat;
  }

  #primary .gls-news-board,
  #primary .gls-price-board,
  #primary .gls-contact-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--gls-board-gap);
    margin-block: 5px 16px;
  }

  #primary .gls-news-board > .hentry,
  .gls-price-course,
  .gls-contact-item,
  #primary form[name="adminForm"] {
    min-width: 0;
    margin: 0;
    padding: clamp(11px, 2.8vw, 22px);
  }

  #primary .gls-news-board > .hentry {
    grid-template-columns: clamp(45px, 9vw, 52px) minmax(0, 1fr);
    align-content: start;
    align-items: start;
    column-gap: clamp(9px, 1.6vw, 13px);
  }

  #primary .gls-news-board :is(.entry-title, .entry-title a) {
    font-size: clamp(18px, 3.6vw, 22px);
    overflow-wrap: break-word;
    hyphens: auto;
    text-wrap: balance;
  }

  #primary .gls-news-board .entry-summary {
    line-height: 1.45;
  }

  #primary .gls-news-board .entry-summary p {
    line-height: inherit;
  }

  #primary .gls-price-source,
  #primary .gls-contact-source,
  #primary .gls-price-notes img,
  #primary .gls-price-notes br:first-of-type {
    display: none;
  }

  #primary .gls-price-course h3,
  #primary .gls-contact-item h2 {
    margin: 0;
    padding-bottom: 4px;
    font-size: clamp(17px, 4vw, 21px);
    text-wrap: balance;
  }

  .gls-price-course {
    background: var(--gls-rule-image) left bottom / 100% 4px no-repeat;
  }

  .gls-price-course p,
  .gls-contact-item p {
    margin: 0;
    font-size: 15px;
  }

  #primary .gls-price-rate {
    padding-block: 4px 3px;
    color: var(--gls-heading);
    font: 700 19px/1.35 var(--gls-serif);
  }

  .gls-price-rate a {
    display: block;
    width: fit-content;
    margin-top: 3px;
  }

  #primary .gls-price-notes {
    margin: 0 0 22px;
    font-size: 14px;
    text-align: center;
  }

  #primary .gls-contact-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #primary .gls-contact-board .gls-contact-address {
    grid-column: 1 / -1;
  }

  .gls-contact-item {
    padding-inline: clamp(6px, 2.1vw, 17px);
    text-align: center;
  }

  .gls-contact-item a {
    overflow-wrap: anywhere;
    text-underline-offset: 3px;
  }

  .gls-contact-item :is(a[href^="tel:"], a[href^="mailto:"]) {
    font-size: clamp(12px, 3.45vw, 15px);
  }

  #primary .gls-contact-channels {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 9px;
  }

  .gls-contact-item:not(.gls-contact-address) p > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  #primary:has(.gls-contact-board) .entry-content > h1 > br {
    display: none;
  }

  #primary:has(.gls-contact-board) #map {
    background: url(img/map.jpg) center / auto 100% no-repeat;
  }

  .gls-contact-map-link {
    display: flex;
    width: fit-content;
    min-height: 44px;
    align-items: center;
    margin: 3px auto 8px;
    text-underline-offset: 3px;
  }

  .gls-contact-legal {
    display: block;
    margin-bottom: 0;
    text-align: center;
  }

  #primary .hentry:has(> .published) > :not(.published, .entry-title) {
    grid-column: 1 / -1;
    clear: both;
  }

  #primary .hentry .entry-summary p:last-child {
    margin-bottom: 0;
  }

  #primary .hentry .alignright2 {
    float: right;
    max-width: min(40%, 171px);
    margin: 0 0 5px 10px;
  }

  #primary .published {
    display: flex;
    float: none;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: auto;
    aspect-ratio: 67 / 85;
    align-items: center;
    margin: 0;
    padding-bottom: 3px;
    background: url(img/date.png) center / 100% 100% no-repeat;
    color: #fff;
    text-shadow: 0 1px 2px #6d1117;
    font: 700 clamp(14px, 3.8vw, 20px) / 1 var(--gls-serif);
  }

  #primary .published span {
    margin: 0;
    padding: 0;
    font: 700 clamp(25px, 7vw, 35px) / 1 var(--gls-serif);
  }

  .arhiv {
    padding-right: 0;
  }

  #primary .columns .column-left,
  #primary .columns .column-right,
  #primary .list-left,
  #primary .navigation .nav-next,
  #primary .navigation .nav-previous,
  #primary .full-width {
    float: none;
    width: 100% !important;
    margin-left: 0;
  }

  #primary :is(.alignleft, .alignright, .alignright2, .img-indent) {
    float: none;
    display: block;
    margin: 0 0 12px;
  }

  #primary :is(.wp-caption, .post-thumb, .post-thumb-single, #related-posts, #related-posts .widget-title) {
    max-width: 100%;
    margin-inline: 0;
  }

  #primary .pagination ul li a {
    min-width: 44px;
    min-height: 44px;
    align-content: center;
  }

  #primary :is(iframe, object, embed) {
    max-width: 100%;
  }

  #primary #preview {
    display: block;
    width: min(100%, 500px) !important;
    margin-inline: auto !important;
  }

  #map {
    max-width: 100%;
    height: clamp(280px, 60vw, 400px);
  }

  .gls-table-scroll {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .gls-table-scroll table {
    margin-bottom: 0;
  }

  #primary table {
    max-width: 100%;
  }

  #primary .table-video {
    width: 100%;
  }

  #primary .table-video td {
    min-width: 0;
  }

  #primary .table-video a.iframe {
    display: block;
  }

  #primary form {
    max-width: 100%;
  }

  #primary form[name="adminForm"] {
    width: min(100%, 580px);
    margin: 8px auto 20px;
  }

  #primary form[name="adminForm"] p:has(input[type="submit"]) {
    margin-bottom: 0;
    text-align: center;
  }

  #primary form :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), textarea, select) {
    max-width: 100%;
    min-height: 44px;
    font-size: 16px;
  }

  #primary form :is(input[type="text"], input[type="email"], input[type="tel"], textarea, select) {
    width: min(100%, 540px);
    padding: 9px 10px;
    border: 1px solid var(--gls-heading);
    border-radius: 4px;
    color: var(--gls-ink);
  }

  #primary form :is([name="f_NoBot"], [name="sys_captcha_code"]) {
    display: block;
    width: min(100%, 180px);
    margin-block: 6px 0;
  }

  #primary form textarea {
    display: block;
    min-height: 120px;
    resize: vertical;
  }

  #primary form :is(button, input[type="submit"]) {
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid var(--gls-heading);
    border-radius: 4px;
    background: var(--gls-heading);
    color: #fff;
    font: 700 16px/1.25 Arial, sans-serif;
  }

  #primary form [id^="sys_captcha_container"] {
    max-width: 100%;
    vertical-align: middle;
  }

  #primary form [id^="sys_captcha_refresh_button"] {
    margin: 4px 0;
    background: var(--gls-paper);
    color: var(--gls-heading);
    vertical-align: middle;
  }

  #primary :is(.ngg-albumoverview, .ngg-galleryoverview) {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
    gap: 12px;
    overflow: visible;
  }

  #primary .ngg-albumoverview {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  }

  #primary :is(.ngg-album, .ngg-thumbnail, .ngg-gallery-thumbnail, .ngg-gallery-thumbnail-box) {
    float: none;
    width: auto;
    height: auto;
    min-width: 0;
    padding: 0;
    margin: 0;
  }

  #primary .ngg-albumtitle {
    font-size: 18px;
    line-height: 1.25;
  }

  #primary :is(.ngg-thumbnail, .ngg-gallery-thumbnail) img {
    width: 100%;
    margin: 0;
  }

  div#fancy_overlay {
    z-index: 1100;
  }

  div#fancy_outer {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    z-index: 1101;
    max-width: calc(100% - 40px);
    max-height: calc(100% - 56px);
    transform: translate(-50%, -50%);
  }

  div#fancy_content {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  #fancy_img {
    object-fit: contain;
  }

  #fancy_outer iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0;
  }

  div#fancy_close {
    min-width: 44px;
    min-height: 44px;
  }

  .gls-media-viewer {
    box-sizing: border-box;
    width: min(720px, calc(100% - 24px));
    max-width: none;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding: clamp(12px, 3vw, 20px);
    overflow: auto;
    border: 1px solid #e1d1b7;
    border-radius: 6px;
    background: #fffcf5;
    color: #333694;
    box-shadow: 0 12px 42px rgb(28 24 44 / 26%);
  }

  .gls-media-viewer::backdrop {
    background: rgb(20 19 35 / 75%);
  }

  .gls-media-title {
    margin: 0 0 10px;
    font: 700 20px/1.25 "Times New Roman", serif;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .gls-media-content > img {
    display: block;
    max-width: 100%;
    max-height: min(62vh, 540px);
    max-height: min(62dvh, 540px);
    margin-inline: auto;
    object-fit: contain;
  }

  .gls-media-content > iframe {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(62dvh, 540px);
    aspect-ratio: 16 / 9;
    border: 0;
    background: #181824;
  }

  .gls-media-toolbar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
  }

  .gls-media-toolbar button {
    min-width: 44px;
    min-height: 44px;
    padding: 7px 14px;
    border: 1px solid #333694;
    border-radius: 4px;
    background: #fffcf5;
    color: #333694;
    font: 700 16px/1.2 Arial, sans-serif;
  }

  .gls-media-toolbar button[hidden] {
    display: none;
  }

  .gls-media-toolbar button:focus-visible {
    outline: 2px solid #aa2029;
    outline-offset: 3px;
  }

  .gls-media-toolbar .gls-media-close {
    background: #333694;
    color: #fff;
  }

  .gls-responsive-ready .gls-mobile-slider {
    display: block;
  }

  .gls-responsive-ready .gls-mobile-slider + #loopedSlider {
    display: none;
  }

  .gls-mobile-slider,
  #loopedSlider {
    width: min(100%, 634px);
    margin: 0 auto 22px;
    background: none;
  }

  .gls-mobile-slides {
    display: grid;
    align-items: center;
    width: 100%;
    min-height: 174px;
    aspect-ratio: 634 / 402;
    padding: clamp(31px, 9%, 66px) 9% clamp(45px, 17%, 100px);
    background: url(img/slider-bg.png) center / 100% 100% no-repeat;
  }

  .gls-mobile-slide,
  #loopedSlider .slides div {
    color: var(--gls-red);
    font: 400 clamp(17px, 5vw, 29px) / 1.2 var(--gls-serif);
    text-align: center;
  }

  .gls-mobile-slide[hidden] {
    display: none;
  }

  .gls-mobile-slide p,
  #loopedSlider .slides div p {
    margin: 0 0 5px;
  }

  .gls-mobile-slide p:last-child,
  #loopedSlider .slides div p:last-child {
    margin-bottom: 0;
  }

  .gls-mobile-slide p:has(br) {
    margin-top: .6em;
  }

  .gls-mobile-slide p br {
    display: none;
  }

  .gls-mobile-slide a,
  #loopedSlider .slides div a {
    color: var(--gls-heading);
    text-underline-offset: 3px;
  }

  .gls-slider-controls {
    display: flex;
    justify-content: center;
    margin: -2px auto 0;
  }

  .gls-slider-controls button {
    display: grid;
    place-items: center;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--gls-heading);
    font: 700 25px/1 var(--gls-serif);
  }

  .gls-slider-controls .gls-slider-page {
    font-size: 0;
  }

  .gls-slider-page::before {
    width: 12px;
    height: 13px;
    border-radius: 50%;
    background: url(img/pg.png) right top no-repeat;
    box-shadow: 0 0 0 1px rgb(51 54 148 / 20%);
    content: "";
  }

  .gls-slider-page:is([aria-current="true"], :hover)::before {
    background-position: left top;
  }

  /* The legacy carousel remains readable when mobile enhancement is unavailable. */
  #loopedSlider {
    position: static;
    height: auto;
    padding: 32px 9%;
    background: url(img/slider-bg.png) center / 100% 100% no-repeat;
  }

  #loopedSlider .container {
    position: static;
    width: auto;
    height: auto;
    left: auto;
  }

  #loopedSlider .slides {
    position: static;
    display: grid;
    grid-auto-columns: 100%;
    grid-auto-flow: column;
    gap: 10px;
    width: auto !important;
    overflow-x: auto;
    scroll-snap-type: inline mandatory;
  }

  #loopedSlider .slides div {
    position: static !important;
    display: block !important;
    width: auto !important;
    height: auto;
    padding: 0;
    scroll-snap-align: center;
  }

  #loopedSlider .pagination-container {
    display: none;
  }
}

@media screen and (min-width: 850px) and (max-width: 1279px) {
  #container {
    --gls-column-gap: clamp(34px, 5.3vw, 72px);
  }

  #container .container-wrapper {
    padding-inline-end: 22px;
    background-position: right -82px top;
  }

  #header-inner {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  #logo {
    flex: 0 1 650px;
  }

  #logo img {
    width: min(100%, 650px);
    margin-inline-start: 0;
  }

  .phone-top {
    flex: none;
    text-align: start;
  }

  .phone-top > span {
    flex-direction: column;
  }

  #content {
    grid-template-columns: clamp(184px, 21vw, 245px) minmax(0, 1fr);
    grid-template-areas: "sidebar main";
    column-gap: var(--gls-column-gap);
    padding-top: 23px;
  }

  #content #sidebar {
    position: relative;
    padding: 0;
    background: none;
  }

  #content #sidebar::after {
    position: absolute;
    inset-block: 0;
    inset-inline-end: calc(var(--gls-column-gap) / -2);
    width: 3px;
    background: url(img/ver.gif) left top repeat-y;
    content: "";
  }

  .gls-responsive-ready #sidebar #linkcat-2 {
    display: list-item;
  }

}

@container gls-main (min-width: 565px) {
  #primary .gls-news-board,
  #primary .gls-price-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #primary .gls-news-board:has(> :nth-child(odd):last-child) > :first-child,
  #primary .gls-price-board:has(> :nth-child(odd):last-child) > :first-child {
    grid-column: 1 / -1;
  }
}

@media screen and (max-width: 849px) {
  #content #primary,
  #content #sidebar {
    width: min(100%, 720px);
    justify-self: center;
  }

  #sidebar > .xoxo {
    display: grid;
    justify-items: center;
    text-align: center;
  }

  #sidebar :is(#text-3, #text-2) {
    width: min(100%, 530px);
    margin-inline: auto;
  }

  #sidebar #text-3 .textwidget {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 7px 12px;
    align-items: center;
    padding: 10px 0;
  }

  #sidebar #text-3 .textwidget > :is(br, ul) {
    grid-column: 1 / -1;
  }

  #sidebar :is(#text-3 .textwidget, .xoxo) > br {
    display: none;
  }

  #sidebar #text-3 .textwidget > a {
    grid-column: 2;
    grid-row: 1 / span 3;
    max-width: 154px;
    justify-self: center;
  }

  #sidebar #text-3 .textwidget > :is(h3, div) {
    grid-column: 1;
  }

  #sidebar #text-3 li {
    display: flex;
    justify-content: center;
    padding-inline: 0;
    background: none;
  }

  #sidebar #text-3 li a {
    border-bottom: 1px solid var(--gls-rule);
  }

  #sidebar > .xoxo > h3 {
    max-width: 30ch;
    margin-block: 0 10px;
    text-wrap: balance;
  }

  #sidebar > .xoxo > img {
    max-width: min(100%, 231px);
    margin-top: 11px;
  }

  #sidebar #text-2 .textwidget {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0 16px;
  }

  #sidebar #text-2 .textwidget p:empty {
    display: none;
  }

  #sidebar #text-2 a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }

  #footer-notes {
    max-width: 45ch;
    margin-inline: auto;
    text-align: center;
  }
}

@media screen and (min-width: 740px) and (max-width: 849px) {
  .gls-responsive-ready #sidebar > .xoxo {
    grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
    column-gap: 24px;
  }

  .gls-responsive-ready #sidebar #text-3 {
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: center;
  }

  .gls-responsive-ready #sidebar > .xoxo > :is(h3, a, img) {
    grid-column: 2;
  }

  .gls-responsive-ready #sidebar .gls-company-slot {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
  }

  .gls-responsive-ready #sidebar #text-2 {
    grid-column: 1 / -1;
  }
}

@media screen and (max-width: 335px) {
  #container {
    --gls-gutter: 11px;
  }

  .gls-slider-controls {
    margin-inline: -6px;
  }
}

@media screen and (max-width: 374px) {
  #primary-nav .gls-primary-links li {
    flex: 0 0 calc((100% - 14px) / 3);
  }

  #primary .hentry .alignright2 {
    max-width: 32%;
  }
}

@media screen and (max-width: 500px) {
  #primary-nav .gls-mobile-menu-panel .gls-primary-links li {
    flex: 0 0 calc((100% - 18px) / 3);
  }
}
