@charset "utf-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*:focus {
    outline: none;
}

html,
body {
    min-height: 100%;
}

:root {
    --bg-site-start: #eaf4fb;
    --bg-surface: #f8fbfe;
    --bg-surface-soft: #e2eff8;
    --bg-surface-hover: #d3e7f4;
    --text-base: #243d56;
    --text-title: #2c638b;
    --text-accent-hover: #17496e;
    --text-muted: #60798e;
    --border-soft: rgba(58, 112, 150, 0.22);
    --border-strong: #bfd4e3;
    --surface-shadow: 0 2px 10px rgba(31, 74, 104, 0.12);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--bg-site-start);
    background-image: none;
    color: var(--text-base);
    font: 13px/1.45 "Segoe UI", Calibri, "Myriad Pro", Myriad, "Trebuchet MS", Helvetica, Arial, sans-serif;
}

a {
    color: var(--text-title);
    text-decoration: none;
}

a:hover {
    color: var(--text-accent-hover);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 0;
}

#header,
#page {
    width: 100%;
}

.page-layout {
    width: 100%;
    max-width: 1532px;
    margin: 0 auto;
    padding: 0 12px;
    position: relative;
    box-sizing: border-box;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    text-align: center;
}

#header {
    width: 100%;
    max-width: 1532px;
    margin: 0 auto;
    background: transparent;
}

#header .header1 {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    max-width: none;
    padding: 12px 18px;
    margin: 0 auto;
    background: transparent;
    border-bottom: 0;
    border-radius: 0;
    box-shadow: none;
    color: var(--text-base);
}

.logo-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    flex: 0 0 auto;
    color: #214f73;
    font-size: 52px;
    font-weight: 700;
    font-variant: small-caps;
    line-height: 1;
    text-decoration: none;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

.logo-text:hover {
    color: var(--text-accent-hover);
}

#search-box.header-search {
    width: 340px;
    max-width: 42%;
    min-width: 220px;
    margin: 0 0 0 auto;
    flex: 0 1 340px;
}

#search-box.header-search form {
    display: grid;
    gap: 6px;
    width: 100%;
}

.gbp-search-field {
    position: relative;
    width: 100%;
}

#search-box.header-search .searchform {
    width: 100%;
    height: 42px;
    padding: 0 48px 0 12px;
    border: 1px solid var(--border-soft);
    border-radius: 7px;
    background: var(--bg-surface);
    color: var(--text-base);
    font-size: 14px;
    line-height: 42px;
}

#search-box.header-search .searchform::placeholder {
    color: var(--text-muted);
}

#search-box.header-search .searchbut {
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
}

#search-box.header-search .searchbut:hover {
    background: var(--bg-surface-hover);
}

#search-box.header-search .searchbut svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: var(--text-title);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header-note {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 0 0 16px;
    padding: 0 0 0 14px;
    overflow: hidden;
    border-left: 1px solid var(--border-strong);
    color: #355c79;
    font-size: 18px;
    line-height: 1.3;
    letter-spacing: 0.4em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.main-nav-bar {
    width: 100%;
    background: rgba(222, 238, 248, 0.96);
    border-bottom: 1px solid var(--border-strong);
}

.main-nav-inner {
    width: 100%;
    max-width: 1532px;
    min-width: 0;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 56px;
    flex-wrap: nowrap;
    background: transparent;
    border-top: 0;
    border-radius: 0;
    box-shadow: none;
}

.main-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    border-radius: 7px;
    background: var(--bg-surface);
}

.main-nav-list li {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
}

.main-nav-list .main-nav-home-item {
    flex: 0 0 42px;
}

.main-nav-list li+li {
    border-left: 1px solid var(--border-strong);
}

.main-nav-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 9px 16px;
    background: transparent;
    color: var(--text-title);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.main-nav-list .main-nav-home {
    min-width: 40px;
    padding: 8px;
}

.main-nav-home svg {
    display: block;
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.main-nav-list a:hover {
    color: #173e5d;
    background: var(--bg-surface-hover);
}

.main-nav-list a.is-active,
.main-nav-list a.is-active:hover {
    background: #c5dfef;
    color: #173e5d;
}

#page {
    display: flex;
    flex-direction: column;
    background: transparent;
    font-family: inherit;
    padding-top: 0;
    padding-bottom: 0;
    flex: 1 0 auto;
}

#page>.page-layout {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    padding-bottom: 24px;
}

#page .container {
    padding: 6px 7px 2px;
    background: rgba(248, 251, 254, 0.96);
    border: 1px solid var(--border-strong);
    border-top: 0;
    border-bottom: 0;
    border-radius: 0;
    box-shadow: var(--surface-shadow);
    flex: 1 0 auto;
}

.title-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0;
    padding: 10px 0;
}

.title-box-title {
    margin: 0;
    color: var(--text-title);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
}

.title-box>span {
    margin: 0;
    padding: 0;
    width: 100%;
    float: none;
    background: none;
    color: var(--text-title);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    text-align: right;
}

.title-box-nav {
    display: inline-flex;
    align-items: center;
    gap: 0;
    flex: 0 0 auto;
    margin-left: auto;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
}

.title-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    height: 34px;
    padding: 0 12px;
    border: none;
    border-radius: 0;
    background: var(--bg-surface);
    color: var(--text-title);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: none;
}

.title-filter-btn+.title-filter-btn {
    border-left: 1px solid var(--border-strong);
}

.title-filter-btn:hover {
    color: #173e5d;
    background: var(--bg-surface-hover);
}

.title-filter-btn.is-active {
    color: #173e5d;
    background: #b9d9ed;
    box-shadow: none;
}

.thumbs-grid {
    position: relative;
    min-height: 220px;
}

.thumbs-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(234, 244, 251, 0.9);
    z-index: 20;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.page-loader-spinner,
.thumbs-loader .page-loader-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid rgba(44, 99, 139, 0.2);
    border-top-color: var(--text-title);
    border-radius: 50%;
    animation: page-loader-spin 0.8s linear infinite;
}

.thumbs-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes page-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

.th_container {
    list-style-type: none;
    position: relative;
    margin: 10px 0 0;
    padding: 0;
    visibility: hidden;
}

.th_container.mosaic-ready {
    visibility: visible;
}

.video-page .thumbs-grid {
    min-height: 0;
}

.video-th-container {
    list-style-type: none;
    position: relative;
    margin: 10px 0 0;
    padding: 0;
    visibility: visible;
}

.video-page .video-th-container {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    visibility: visible;
}

.video-page .video-th-container li {
    width: auto;
}

.video-page .video-th-container li img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.th_container li,
.video-th-container li {
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(31, 74, 104, 0.1);
}

.th_container li:hover,
.video-th-container li:hover {
    border-color: var(--text-title);
}

.th_container li img,
.video-th-container li img {
    display: block;
    width: 100%;
    height: auto;
}

.th_container li p,
.video-th-container li p {
    color: var(--text-base);
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    font-weight: 400;
    margin: 8px;
}

.th_container a,
.video-th-container a {
    position: relative;
    display: block;
}

.category-badge {
    position: absolute;
    right: 0;
    bottom: 0px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 8px 0 0 0;
    background: rgba(23, 62, 93, 0.88);
    color: #eaf4fb;
    border-right: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-transform: capitalize;
}

.category-badge span {
    opacity: 1;
}

.duration-badge {
    right: 6px;
    bottom: 6px;
    padding: 4px 7px;
    font-size: 12px;
    font-weight: 300;
    border-radius: 4px;
}


@media only screen and (max-width: 1200px) {
    .video-page .video-th-container {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 920px) {
    .video-page .video-th-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 640px) {
    .video-page .video-th-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 420px) {
    .video-page .video-th-container {
        grid-template-columns: 1fr;
    }
}

.archive {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    float: none !important;
    clear: both;
    box-sizing: border-box;
    padding: 12px 0;
    margin: 20px 0 15px;
}

.archive a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    background: var(--bg-surface);
    color: var(--text-title);
    font-size: 18px;
    font-weight: 700;
}

.archive a:hover {
    border-color: var(--text-title);
    background: var(--bg-surface-hover);
    color: #173e5d;
}

.archive a svg {
    display: block;
}

#footer {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 1532px;
    margin-right: auto;
    margin-left: auto;
    flex: 0 0 auto;
    margin-top: auto;
    padding-bottom: 0;
    background: transparent;
    color: var(--text-base);
}

#footer::before {
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: #dcebf5;
    border-top: 1px solid var(--border-strong);
    content: "";
}

#footer-bottom {
    padding: 14px 16px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

#footer p {
    margin: 14px 0;
    color: var(--text-base);
    font-size: 14px;
    text-align: center;
    line-height: 1.5;
}

#footer p.copy {
    color: var(--text-muted);
    font-size: 13px;
}

#footer .gbp-footer-links a,
#footer p.copy a {
    color: var(--text-title);
    font-weight: 700;
}

#footer .gbp-footer-links a:hover,
#footer p.copy a:hover {
    color: var(--text-accent-hover);
}

@media only screen and (max-width: 1000px) {
    #header .header1 {
        justify-content: space-between;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    #header .header1,
    .main-nav-inner,
    #page .container,
    #footer-bottom {
        padding-left: 12px;
        padding-right: 12px;
    }

    #page .container {
        padding-left: 6px;
        padding-right: 6px;
    }

    .logo-text {
        width: auto;
        flex: 0 0 auto;
        justify-content: center;
        font-size: 46px;
    }

    .header-note {
        display: none;
    }
}

@media only screen and (max-width: 640px) {
    #header .header1 {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .logo-text {
        justify-content: center;
        font-size: 42px;
    }

    #search-box.header-search {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        flex: 0 0 100%;
        margin: 0;
    }
}

.gbp-gallery-page {
    padding: 12px 0 0;
}

.gbp-gallery-shell {
    width: 100%;
    max-width: 1508px;
    margin: 0 auto;
    padding: 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    box-shadow: var(--surface-shadow);
}

.gbp-gallery-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--border-strong);
}

.gbp-gallery-breadcrumb {
    grid-column: 1 / -1;
    color: var(--text-muted);
    font-size: 13px;
}

.gbp-gallery-breadcrumb a {
    color: var(--text-title);
}

.gbp-gallery-title {
    min-width: 0;
    color: #214765;
    font-size: 24px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.gbp-gallery-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    align-items: start;
    gap: 16px;
    padding-top: 16px;
}

.gbp-gallery-main {
    min-width: 0;
}

.gbp-gallery-images {
    columns: 4 190px;
    column-gap: 8px;
}

.gbp-gallery-image {
    display: block;
    width: 100%;
    margin: 0 0 8px;
    break-inside: avoid;
    overflow: hidden;
    background: var(--bg-surface-soft);
    border: 1px solid var(--border-strong);
}

.gbp-gallery-image img {
    display: block;
    width: 100%;
    height: auto;
}

.gbp-gallery-image:hover {
    border-color: var(--text-title);
}

.gbp-gallery-ad {
    width: 100%;
    margin: 0 auto 8px;
    break-inside: avoid;
}

.gbp-gallery-ad__unit {
    position: relative;
    width: 100%;
    aspect-ratio: 6 / 5;
    overflow: hidden;
    background: var(--bg-surface-soft);
}

.gbp-gallery-ad__unit::before {
    position: absolute;
    z-index: 2;
    top: 4px;
    left: 4px;
    padding: 2px 5px;
    border-radius: 2px;
    background: rgba(23, 62, 93, .88);
    color: #eaf4fb;
    content: "Ad";
    font-size: 9px;
    font-weight: 600;
    line-height: 1.2;
    pointer-events: none;
}

.gbp-gallery-ad__unit--mobile {
    display: none;
}

.gbp-gallery-ad__slot {
    position: absolute !important;
    top: 0;
    left: 50%;
    display: block !important;
    width: 300px !important;
    height: 250px !important;
    transform: translateX(-50%);
    transform-origin: top center;
}

.gbp-gallery-ad ins {
    position: absolute !important;
    inset: 0;
    display: block !important;
    width: 300px !important;
    height: 250px !important;
}

.gbp-gallery-ad iframe {
    display: block;
    width: 300px !important;
    max-width: none !important;
    height: 250px !important;
    border: 0;
}

.gbp-gallery-ad--sidebar {
    max-width: 100%;
}

.gbp-gallery-channel-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    margin-top: 12px;
    padding: 10px 14px;
    background: #b9d9ed;
    color: #173e5d;
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    overflow-wrap: anywhere;
    transition: background-color .18s ease;
}

.gbp-gallery-channel-cta:hover,
.gbp-gallery-channel-cta:focus-visible {
    background: #9fc7df;
    color: #173e5d;
}

.gbp-gallery-side {
    display: grid;
    gap: 12px;
}

.gbp-gallery-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
}

.gbp-gallery-card__title {
    padding: 10px 12px;
    background: #d5e8f4;
    color: #173e5d;
    font-size: 15px;
    font-weight: 700;
}

.gbp-gallery-card__body {
    padding: 12px;
}

.gbp-gallery-stats {
    display: grid;
    gap: 8px;
    color: var(--text-base);
    font-size: 14px;
}

.gbp-gallery-stat {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.gbp-gallery-like-slot {
    margin-top: 12px;
}

.gbp-gallery-like-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    width: 100%;
    padding: 0 12px;
    background: #d6eaf6;
    border: 1px solid #9fc5de;
    border-radius: 4px;
    color: #173e5d;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease;
}

.gbp-gallery-like-button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gbp-gallery-like-button:hover {
    color: #173e5d;
    background-color: #b9d9ed;
    border-color: #8db8d3;
}

.gbp-gallery-like-button:disabled {
    cursor: wait;
    opacity: .75;
}

.gbp-gallery-liked {
    color: #347356;
    font-weight: 700;
}

.gbp-gallery-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.gbp-gallery-meta-list a {
    display: inline-flex;
    padding: 5px 8px;
    background: #edf5fa;
    border: 1px solid var(--border-strong);
    color: var(--text-base);
    font-size: 12px;
}

.gbp-gallery-meta-list a:hover {
    color: var(--text-title);
    border-color: var(--text-title);
}

.gbp-gallery-empty {
    padding: 32px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    color: var(--text-base);
    text-align: center;
}

.gbp-directory-section {
    padding: 0;
}

.gbp-category-index {
    padding: 14px 0 28px;
}

.gbp-category-index__section {
    width: 100%;
}

.gbp-category-index__heading {
    margin-bottom: 16px;
}

.gbp-category-index__heading h1 {
    color: #214765;
    font-size: 23px;
    line-height: 1.25;
}

.gbp-category-index__card {
    position: relative;
    display: block;
    overflow: hidden;
}

.gbp-category-index__card:hover img,
.gbp-category-index__card:focus-visible img {
    opacity: .9;
}

.gbp-category-index__label {
    position: absolute;
    top: 0;
    left: 0;
    max-width: calc(100% - 12px);
    padding: 7px 10px;
    overflow: hidden;
    border-radius: 5px 0 0 0;
    background: rgba(0, 0, 0, .62);
    color: rgba(255, 255, 255, .94);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gbp-category-index__card:focus-visible {
    outline: 2px solid var(--text-title);
    outline-offset: 2px;
}

.gbp-category-index__empty {
    width: 100%;
    padding: 24px;
    color: var(--text-base);
    text-align: center;
}

.gbp-directory-heading {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-soft);
}

.gbp-directory-heading h1 {
    color: #214765;
    font-size: 23px;
    line-height: 1.25;
}

.gbp-directory-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-bottom: 22px;
}

.gbp-category-directory-nav {
    width: calc(100% + 24px);
    margin: 0 -12px 22px;
    padding: 7px 12px;
    background: #dcebf5;
    border-block: 1px solid var(--border-strong);
}

.gbp-directory-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 3px;
    color: var(--text-title);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.gbp-directory-nav__link--all {
    min-width: 52px;
}

.gbp-directory-nav__link:hover,
.gbp-directory-nav__link:focus-visible,
.gbp-directory-nav__link.is-active {
    background: #cfe3f0;
    color: #173e5d;
}

.gbp-directory-group {
    margin: 0;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--border-strong);
}

.gbp-directory-group+.gbp-directory-group {
    margin-top: 16px;
}

.gbp-directory-group:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.gbp-directory-letter {
    margin-bottom: 12px;
    color: #214765;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.gbp-directory-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px 12px;
}

.gbp-directory-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid rgba(58, 112, 150, .18);
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.gbp-directory-link__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-title);
    text-decoration: none;
}

.gbp-directory-link__counts {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.gbp-directory-link__count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-title);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.gbp-directory-link__count+.gbp-directory-link__count::before {
    content: "|";
    margin-right: 4px;
    color: var(--text-muted);
    font-weight: 400;
}

.gbp-directory-link__count svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--text-title);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.gbp-directory-link:hover,
.gbp-directory-link:focus-visible {
    background: #e0eef7;
    border-color: rgba(58, 112, 150, .38);
}

.gbp-directory-link__name:hover,
.gbp-directory-link:focus-within .gbp-directory-link__name {
    color: var(--text-accent-hover);
    text-decoration: underline;
}

.gbp-directory-link__count:hover,
.gbp-directory-link:focus-within .gbp-directory-link__count {
    color: #173e5d;
    text-decoration: underline;
}

.gbp-directory-empty {
    padding: 18px 0;
    color: var(--text-base);
    text-align: center;
}

.gbp-directory-pagination {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
}

.gbp-directory-pagination a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--border-strong);
    border-radius: 3px;
    background: var(--bg-surface);
    color: var(--text-title);
    font-size: 14px;
    font-weight: 700;
}

.gbp-directory-pagination a:hover {
    border-color: #9fc5de;
    background: #d5e8f4;
    color: #173e5d;
}

.gbp-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
}

@media only screen and (max-width: 900px) {
    .gbp-gallery-content {
        grid-template-columns: minmax(0, 1fr) 220px;
    }

    .gbp-gallery-images {
        columns: 3 170px;
    }

    .gbp-directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media only screen and (max-width: 640px) {
    .gbp-gallery-shell {
        padding: 10px;
    }

    .gbp-gallery-heading {
        grid-template-columns: minmax(0, 1fr);
    }

    .gbp-gallery-breadcrumb {
        grid-column: auto;
    }

    .gbp-gallery-title {
        font-size: 21px;
    }

    .gbp-gallery-content {
        grid-template-columns: minmax(0, 1fr);
    }

    .gbp-gallery-ad--sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .gbp-gallery-ad__unit--mobile {
        display: block;
    }

    .gbp-gallery-images {
        columns: 2 130px;
    }

    .gbp-directory-section {
        padding: 0;
    }

    .gbp-category-index__label {
        padding: 6px 8px;
        font-size: 14px;
    }

    .gbp-directory-heading h1 {
        font-size: 20px;
    }

    .gbp-directory-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .gbp-directory-link {
        padding: 10px 12px;
    }

    .gbp-directory-link__counts {
        gap: 12px;
    }

    .gbp-directory-link__count {
        gap: 5px;
        font-size: 18px;
    }

    .gbp-directory-link__count svg {
        width: 22px;
        height: 22px;
    }

}

@media only screen and (max-width: 360px) {
    .gbp-gallery-images {
        columns: 1;
    }
}

@media only screen and (min-width: 601px) and (max-width: 960px) {
    .main-nav-inner {
        flex-wrap: wrap;
        gap: 8px;
    }

    .main-nav-list {
        flex: 1 0 100%;
        gap: 0;
    }

    .main-nav-list a {
        font-size: 14px;
        padding: 9px 12px;
    }

}

@media only screen and (max-width: 760px) {
    #header .header1 {
        flex-direction: column;
        justify-content: center;
        gap: 12px;
        padding: 16px 12px 14px;
    }

    #header .logo-text {
        width: 100%;
        justify-content: center;
    }

    #search-box.header-search {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        flex: 0 0 100%;
    }
}

@media only screen and (max-width: 600px) {
    .main-nav-inner {
        min-width: 0;
        padding: 6px 8px;
        flex-wrap: wrap;
        gap: 6px 12px;
        min-height: 0;
    }

    .main-nav-list {
        display: flex;
        flex: 1 0 100%;
        gap: 0;
        order: 1;
    }

    .main-nav-list a {
        min-height: 40px;
        padding: 8px 5px;
        font-size: 13px;
    }

    #search-box.header-search .searchform {
        height: 44px;
        line-height: 44px;
    }

    #search-box.header-search .searchbut {
        width: 36px;
        height: 36px;
    }
}

@media only screen and (max-width: 360px) {
    .main-nav-list a {
        padding-right: 2px;
        padding-left: 2px;
        font-size: 11px;
    }
}
