@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Playfair+Display:wght@600&display=swap');

:root {
    --gh-bg: #efd1ad;
    --gh-surface: #fdf3dd;
    --gh-card-bg-image: url('../images/card-bg-figma-from-figma.png');
    --gh-button-bg-image: url('../images/button-bg-figma.png');
    --gh-button-back-bg-image: url('../images/button-back-bg-figma.png');
    --gh-border: #ac8e6d;
    --gh-title: #831618;
    --gh-body: #1f1711;
    --gh-button-border: #9f7454;
    --gh-button-text: #53341e;
    --gh-gap: 32px;
    --gh-card-width: 389px;
    --gh-container-max: 1328px;
    --gh-page-padding: clamp(12px, 4vw, 56px);
    --gh-level-card-width: var(--gh-card-width);
}

* {
    box-sizing: border-box;
}

html {
    background-color: #efd1ad;
    background-image:
        linear-gradient(rgba(239, 209, 173, 0.9), rgba(239, 209, 173, 0.9)),
        url('../images/paper-texture.png');
    background-size: cover, cover;
    background-repeat: no-repeat, no-repeat;
    background-position: center top, center top;
    background-attachment: fixed, fixed;
}

body {
    margin: 0;
    background: transparent;
    color: var(--gh-body);
    font-family: 'Open Sans', Arial, sans-serif;
}

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

.gh-main {
    padding: 56px 0;
}

.gh-container {
    width: min(var(--gh-container-max), calc(100% - (var(--gh-page-padding) * 2)));
    margin: 0 auto;
}

.gh-hero {
    min-height: 683px;
    border: 4px solid var(--gh-border);
    border-radius: 16px;
    box-shadow: 0 2px 5px rgba(83, 41, 0, 0.9);
    background-size: cover;
    background-position: center;
    padding: 28px 24px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.gh-hero__badge {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    padding: 8px;
    background: rgba(213, 165, 97, 0.9);
    border-radius: 8.23px;
    box-shadow: 0 3.601px 7.202px rgba(0, 0, 0, 0.35);
    margin-top: 4px;
}

.gh-hero__badge::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image: var(--gh-badge-pattern-image);
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    pointer-events: none;
}

.gh-hero__badge > * {
    position: relative;
    z-index: 1;
}

.gh-hero__badge--align-left {
    align-self: flex-start;
    text-align: left;
    margin-left: 11px;
    margin-right: 0;
}

.gh-hero__badge--align-center {
    align-self: center;
    text-align: center;
    margin-left: 0;
    margin-right: 0;
}

.gh-hero__badge--align-right {
    align-self: flex-end;
    text-align: right;
    margin-left: 0;
    margin-right: 11px;
}

.gh-hero__logo {
    flex-shrink: 0;
    object-fit: contain;
    object-position: left center;
}

.gh-hero__badge-title {
    color: #5a351e;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 20px;
    line-height: 24.177px;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 600;
    white-space: nowrap;
    margin: 0;
}

.gh-hero__text-panel {
    background: rgba(238, 216, 191, 0.7);
    border-radius: 16px;
    text-align: center;
    color: #4e2f14;
    width: min(960px, 100%);
    padding: 14px 48px 12px;
    margin-bottom: 2px;
}

.gh-hero__text-panel h1 {
    margin: 0 0 8px;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    font-size: 72px;
    line-height: 0.95;
    letter-spacing: -0.01em;
}

.gh-hero__text-panel p {
    margin: 0;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.45;
}

.gh-intro {
    text-align: center;
    padding: 16px 136px 24px;
}

.gh-intro h2 {
    margin: 0 0 8px;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    font-size: 36px;
    line-height: 1.2;
}

.gh-intro p {
    margin: 0 auto;
    max-width: 638px;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;
}

.gh-cards {
    padding-bottom: 56px;
}

.gh-cards__grid {
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(3, minmax(0, var(--gh-card-width)));
    gap: var(--gh-gap);
}

.gh-card {
    margin: 0;
}

.gh-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
    background-color: transparent;
    border: 3px solid var(--gh-border);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(113, 78, 43, 0.9);
    overflow: hidden;
    transition: transform 120ms ease, box-shadow 120ms ease;
}

.gh-card__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(113, 78, 43, 0.95);
}

.gh-card__link:focus-visible {
    outline: 3px solid rgba(159, 116, 84, 0.55);
    outline-offset: 2px;
}

.gh-card__image {
    height: 200px;
    background: #d8c0a2;
}

.gh-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gh-card__image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #c8aa88, #e0cab0);
}

.gh-card__content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-height: 210px;
    position: relative;
    overflow: hidden;
    background-color: var(--gh-surface);
}

.gh-card__content::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--gh-card-bg-image);
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    opacity: 0.2;
    pointer-events: none;
}

.gh-card__content > * {
    position: relative;
}

.gh-card__title {
    margin: 0;
    color: var(--gh-title);
    font-family: 'Open Sans', Arial, sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.3;
    min-height: calc(2 * 1.3em);
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gh-card__excerpt {
    margin: 0;
    color: #000;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.gh-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    margin-top: auto;
    padding: 12px 24px;
    border: 1px solid var(--gh-button-border);
    border-radius: 4px;
    box-shadow: 0 2px 3px rgba(61, 31, 9, 0.65);
    background-color: #f4d7a9;
    background-image:
        linear-gradient(rgba(244, 215, 169, 0.9), rgba(244, 215, 169, 0.9)),
        var(--gh-button-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--gh-button-text);
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 12px;
}

.gh-cards__empty {
    margin: 0;
    text-align: center;
    font-family: 'Open Sans', Arial, sans-serif;
}

.gh-archive {
    background: #ececec;
    max-width: 1440px;
    margin: 0 auto;
    box-shadow: 0 4px 44px rgba(0, 0, 0, 0.15);
}

.gh-archive-header {
    padding-top: 56px;
    padding-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.gh-archive-header__logo {
    width: min(412px, 100%);
    border-radius: 15px;
}

.gh-archive-header h1 {
    margin: 0;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    font-size: 36px;
    line-height: 1.3;
}

.gh-archive-header p {
    margin: 0;
    max-width: 638px;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

.gh-archive-rows {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-bottom: 24px;
}

.gh-archive-row {
    background: #ececec;
}

.gh-archive-row--alt {
    background: #f0d4a6;
}

.gh-archive-row__inner {
    padding-top: 16px;
    padding-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.gh-archive-row__text {
    width: min(632px, 100%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.gh-archive-row__text h2 {
    margin: 0;
    color: #932325;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 600;
}

.gh-archive-row__text p {
    margin: 0;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

.gh-archive-row__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 12px 24px;
    border: 1px solid var(--gh-button-border);
    background-color: #f4d7a9;
    background-image:
        linear-gradient(rgba(244, 215, 169, 0.9), rgba(244, 215, 169, 0.9)),
        var(--gh-button-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--gh-button-text);
    text-decoration: none;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 12px;
}

.gh-archive-row__image {
    width: 280px;
    height: 200px;
    flex: 0 0 280px;
}

.gh-archive-row__image img,
.gh-archive-row__image-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gh-archive-row__image-placeholder {
    background: linear-gradient(135deg, #c8aa88, #e0cab0);
}

.gh-single {
    max-width: 1440px;
    margin: 0 auto;
}

.gh-single-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 16px;
}

.gh-single-header__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-bottom: 8px;
    border: 1px solid #6c472c;
    border-radius: 4px;
    padding: 12px 18px;
    background-color: #8e5a36;
    background-image:
        linear-gradient(rgba(142, 90, 54, 0.95), rgba(142, 90, 54, 0.95)),
        var(--gh-button-back-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow:
        0 3px 4px rgba(61, 31, 9, 0.65),
        inset -4px -4px 2px rgba(101, 57, 28, 0.6),
        inset 4px 4px 3px rgba(197, 141, 102, 0.5);
    color: #faf7f0;
    text-decoration: none;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 16px;
}

.gh-single-header h1 {
    margin: 0;
    width: 100%;
    text-align: center;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: clamp(32px, 3.5vw, 48px);
    line-height: 1.15;
}

.gh-single-level {
    position: relative;
    padding-bottom: 48px;
}

.gh-single-level__intro {
    margin: 0 auto 20px;
    max-width: 720px;
    text-align: center;
    font-size: 16px;
    line-height: 1.68;
}

.gh-single-level__grid {
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(auto-fit, minmax(var(--gh-level-card-width), var(--gh-level-card-width)));
    gap: var(--gh-gap);
}

.gh-single-level-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
    background-color: transparent;
    border: 3px solid var(--gh-border);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(113, 78, 43, 0.9);
    overflow: hidden;
}

.gh-single-level-card__image {
    height: 200px;
    background: #d8c0a2;
}

.gh-single-level-card__image img,
.gh-single-level-card__image-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gh-single-level-card__image-placeholder {
    background: linear-gradient(135deg, #c8aa88, #e0cab0);
}

.gh-image-caption {
    display: block;
    margin: 6px 0 10px;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 12px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.35;
    color: #5f4a38;
}

.gh-image-caption:empty {
    display: none;
}

.editor-styles-wrapper .gh-image-caption:empty,
.block-editor-writing-flow .gh-image-caption:empty {
    display: block;
}

.editor-styles-wrapper .gh-image-caption:empty::before,
.block-editor-writing-flow .gh-image-caption:empty::before {
    content: attr(data-placeholder);
    color: #8a7a6b;
    font-style: italic;
}

.gh-single-level-card__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-height: 210px;
    padding: 16px;
    position: relative;
    overflow: hidden;
    background-color: var(--gh-surface);
}

.gh-single-level-card__content::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--gh-card-bg-image);
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    opacity: 0.2;
    pointer-events: none;
}

.gh-single-level-card__content > * {
    position: relative;
}

.gh-single-level-card__content h2 {
    margin: 0;
    color: var(--gh-title);
    font-size: 24px;
    line-height: 1.3;
    min-height: calc(2 * 1.3em);
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gh-single-level-card__content p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

.gh-single-level-card__button {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 12px 24px;
    border: 1px solid var(--gh-button-border);
    border-radius: 4px;
    box-shadow: 0 2px 3px rgba(61, 31, 9, 0.65);
    background-color: #f4d7a9;
    background-image:
        linear-gradient(rgba(244, 215, 169, 0.9), rgba(244, 215, 169, 0.9)),
        var(--gh-button-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--gh-button-text);
    font-size: 12px;
    font-weight: 700;
    line-height: 12px;
}

.gh-single-leaf {
    position: relative;
    min-height: 640px;
    padding: 28px 0 48px;
}

.gh-single-leaf__backdrop {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: rgba(35, 20, 12, 0.45);
}

.gh-single-leaf__overlay {
    position: relative;
    z-index: 1;
    width: min(740px, calc(100% - (var(--gh-page-padding) * 2)));
    margin: 0 auto;
    background: #f8edd7;
    border: 2px solid #b29777;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 14px;
}

.gh-single-leaf__overlay h2 {
    margin: 0 0 10px;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
    color: #3d2b1b;
}

.gh-single-leaf__image {
    height: 170px;
    margin-bottom: 12px;
}

.gh-single-leaf__image img,
.gh-single-leaf__image-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    object-fit: cover;
}

.gh-single-leaf__image-placeholder {
    background: linear-gradient(135deg, #c8aa88, #e0cab0);
}

.gh-single-leaf__content {
    font-size: 14px;
    line-height: 1.55;
    color: #2f241b;
}

.gh-single-leaf__content > :first-child {
    margin-top: 0;
}

.gh-single-leaf__content > :last-child {
    margin-bottom: 0;
}

.gh-single-leaf__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-height: 40px;
    margin-top: 14px;
    border: 1px solid #6c472c;
    border-radius: 4px;
    padding: 12px 18px;
    background-color: #8e5a36;
    background-image:
        linear-gradient(rgba(142, 90, 54, 0.95), rgba(142, 90, 54, 0.95)),
        var(--gh-button-back-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow:
        0 3px 4px rgba(61, 31, 9, 0.65),
        inset -4px -4px 2px rgba(101, 57, 28, 0.6),
        inset 4px 4px 3px rgba(197, 141, 102, 0.5);
    color: #faf7f0;
    text-decoration: none;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 16px;
}

.gh-single-level-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.gh-single-level-overlay.is-open {
    display: flex;
}

.gh-single-level-overlay__close-zone {
    position: absolute;
    inset: 0;
}

.gh-single-leaf--in-level {
    width: 100%;
    min-height: calc(100vh - 48px);
    padding: 0;
    z-index: 1;
    display: flex;
    align-items: center;
}

.gh-single-leaf--in-level .gh-single-leaf__backdrop {
    border-radius: 0;
}

.gh-single-leaf--in-level .gh-single-leaf__overlay {
    width: min(780px, calc(100vw - 48px));
    box-sizing: border-box;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 20px;
}

.gh-click-overlay-image img {
    cursor: zoom-in;
}

.gh-single-level-overlay__panel .gh-single-leaf__content img,
.gh-single-level-overlay__panel .gh-single-leaf__image img {
    cursor: zoom-in;
}

.gh-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.gh-image-lightbox[hidden] {
    display: none;
}

.gh-image-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
}

.gh-image-lightbox__figure {
    position: relative;
    z-index: 1;
    margin: 0;
    width: calc(100vw - 48px);
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gh-image-lightbox__image {
    width: 100%;
    max-height: calc(100vh - 130px);
    object-fit: contain;
    border-radius: 8px;
    background: #111;
}

.gh-image-lightbox__caption {
    margin: 0;
    padding: 8px 10px;
    border-radius: 4px;
    background: rgba(22, 22, 22, 0.74);
    color: #f2f2f2;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 13px;
    line-height: 1.45;
    font-style: italic;
}

.gh-image-lightbox__caption:empty {
    display: none;
}

.gh-image-lightbox__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

body.gh-image-overlay-open {
    overflow: hidden;
}

.gh-single-level-overlay__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.gh-single-level-overlay__header h2 {
    margin: 0;
    flex: 1 1 auto;
    padding-right: 8px;
}

.gh-single-level-overlay__kicker {
    margin: 0;
    color: #7f5a38;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.gh-single-level-overlay__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 1px solid #7f5a38;
    border-radius: 999px;
    background: #f9e8ce;
    color: #5a3c23;
    text-decoration: none;
    font-size: 30px;
    line-height: 1;
}

.gh-overlay-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
}

.gh-overlay-pagination__button {
    position: relative;
    display: inline-flex;
    height: 40px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    overflow: hidden;
    border: 1px solid #6c472c;
    border-radius: 4px;
    background-color: rgba(142, 90, 54, 0.95);
    background-image:
        linear-gradient(rgba(142, 90, 54, 0.95), rgba(142, 90, 54, 0.95)),
        url('../images/overlay-navigation-button-figma.png');
    background-size: cover;
    background-position: center;
    box-shadow:
        0 3px 4px rgba(61, 31, 9, 0.65),
        inset -4px -4px 2px rgba(101, 57, 28, 0.6),
        inset 4px 4px 3px rgba(197, 141, 102, 0.5);
    color: #faf7f0;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 16px;
    text-decoration: none;
}

.gh-overlay-pagination__button--previous {
    padding: 0 18px 0 16px;
}

.gh-overlay-pagination__button--next {
    margin-left: auto;
    padding: 0 16px 0 18px;
}

.gh-overlay-pagination__button img {
    width: 16px;
    height: 16px;
}

.gh-single-level-overlay__panel {
    display: none;
}

.gh-single-level-overlay__panel .gh-single-leaf__image {
    margin-bottom: 10px;
}

.gh-single-level-overlay__panel .gh-image-caption {
    margin: 0 0 14px;
}

.gh-single-level-overlay__panel.is-active {
    display: block;
}

body.gh-overlay-open {
    overflow: hidden;
}

.gh-single-root {
    padding-bottom: 48px;
}

.gh-single-root__content {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    background: #f8edd7;
    border: 2px solid #b29777;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.gh-single-root__image,
.gh-single-root__text {
    flex: 0 0 auto;
}

.gh-single-root__image img,
.gh-single-root__image-placeholder {
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: cover;
}

.gh-single-root__image-placeholder {
    background: linear-gradient(135deg, #c8aa88, #e0cab0);
}

.gh-single-root__text {
    display: flex;
    flex-direction: column;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 14px;
}

.gh-single-root__text h2 {
    margin: 0 0 12px;
    color: #3d2b1b;
    font-size: 28px;
    line-height: 1.2;
}

.gh-single-root__body {
    font-size: 14px;
    line-height: 1.55;
    color: #2f241b;
}

.gh-single-root__body > :first-child {
    margin-top: 0;
}

.gh-single-root__body > :last-child {
    margin-bottom: 0;
}

.gh-card__link > .gh-image-caption,
.gh-single-level-card__link > .gh-image-caption {
    margin: 6px 16px 10px;
}

.gh-archive-row__inner > .gh-image-caption {
    flex: 0 0 100%;
    margin-top: 8px;
}

.gh-single-root__back {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    width: auto;
    align-self: flex-start;
    min-height: 40px;
    border: 1px solid #6c472c;
    border-radius: 4px;
    padding: 12px 18px;
    background-color: #8e5a36;
    background-image:
        linear-gradient(rgba(142, 90, 54, 0.95), rgba(142, 90, 54, 0.95)),
        var(--gh-button-back-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow:
        0 3px 4px rgba(61, 31, 9, 0.65),
        inset -4px -4px 2px rgba(101, 57, 28, 0.6),
        inset 4px 4px 3px rgba(197, 141, 102, 0.5);
    color: #faf7f0;
    text-decoration: none;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 16px;
}

@media (max-width: 1319px) {
    .gh-main {
        padding-top: 40px;
    }

    .gh-hero__text-panel h1 {
        font-size: 56px;
        line-height: 1;
    }

    .gh-intro {
        padding-left: 32px;
        padding-right: 32px;
    }

    .gh-cards__grid {
        grid-template-columns: repeat(3, minmax(0, var(--gh-card-width)));
    }

    .gh-archive-header {
        padding-top: 40px;
    }

    .gh-archive-row__inner {
        gap: 16px;
    }

    .gh-archive-row__text {
        width: auto;
        flex: 1 1 auto;
    }

}

@media (max-width: 1040px) {
    .gh-single-level__grid {
        grid-template-columns: minmax(0, var(--gh-level-card-width));
        gap: 20px;
    }
}

@media (max-width: 839px) {
    .gh-main {
        padding-top: 24px;
    }

    .gh-hero {
        min-height: 440px;
        padding: 24px 16px;
    }

    .gh-hero__badge {
        width: auto;
        padding: 6px;
        gap: 6px;
        margin-top: 4px;
    }

    .gh-hero__badge--align-left {
        margin-left: 6px;
        margin-right: 0;
    }

    .gh-hero__badge--align-right {
        margin-left: 0;
        margin-right: 6px;
    }

    .gh-hero__logo {
        object-fit: contain;
        object-position: left center;
    }

    .gh-hero__badge-title {
        font-size: 16px;
        line-height: 19px;
        white-space: nowrap;
    }

    .gh-hero__text-panel {
        width: 100%;
        padding: 16px;
    }

    .gh-hero__text-panel h1 {
        font-size: 38px;
    }

    .gh-intro {
        padding: 24px 8px;
    }

    .gh-intro h2 {
        font-size: 30px;
    }

    .gh-cards__grid {
        grid-template-columns: repeat(2, minmax(0, var(--gh-card-width)));
        gap: 24px;
    }

    .gh-card__title {
        font-size: 30px;
    }

    .gh-single-header h1 {
        font-size: 36px;
    }

    .gh-single-leaf {
        min-height: 0;
        padding-top: 8px;
    }

    .gh-single-leaf__overlay {
        width: min(100%, calc(100% - 12px));
    }

    .gh-single-level-overlay {
        padding: 8px;
    }

    .gh-single-leaf--in-level .gh-single-leaf__overlay {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 16px);
    }

    .gh-single-root__content {
        flex-direction: column;
    }

    .gh-single-root__text h2 {
        font-size: 28px;
    }

    .gh-archive-header {
        padding-top: 24px;
        padding-bottom: 16px;
    }

    .gh-archive-header h1 {
        font-size: 30px;
    }

    .gh-archive-header p {
        font-size: 14px;
        line-height: 1.45;
    }

    .gh-archive-row__inner {
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .gh-archive-row__image {
        width: 100%;
        flex-basis: auto;
        height: 200px;
    }
}

@media (max-width: 600px) {
    .gh-cards__grid {
        grid-template-columns: minmax(0, var(--gh-card-width));
    }
}

.gh-language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    width: 66px;
}

.gh-language-switcher__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 40px;
    padding: 8px;
    border: 1px solid #bca18e;
    border-radius: 999px;
    background: rgba(244, 215, 169, 0.4);
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 3px rgba(61, 31, 9, 0.65);
    cursor: pointer;
    list-style: none;
}

.gh-language-switcher__toggle::-webkit-details-marker {
    display: none;
}

.gh-language-switcher__flag {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 50%;
}

.gh-language-switcher__chevron,
.gh-language-switcher__check {
    width: 18px;
    height: 18px;
}

.gh-language-switcher__chevron {
    transform: rotate(180deg);
}

.gh-language-switcher[open] .gh-language-switcher__chevron {
    transform: rotate(0deg);
}

.gh-language-switcher__menu {
    position: absolute;
    top: 48px;
    right: 0;
    display: grid;
    gap: 4px;
    min-width: 156px;
    padding: 4px;
    border: 1px solid #bca18e;
    border-radius: 4px;
    background: rgba(250, 239, 216, 0.5);
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 3px rgba(61, 31, 9, 0.65);
}

.gh-language-switcher__current,
.gh-language-switcher__option {
    display: flex;
    min-height: 40px;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 4px;
    color: #53341e;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 12px;
    text-decoration: none;
}

.gh-language-switcher__current {
    justify-content: space-between;
    gap: 12px;
}

.gh-language-switcher__option {
    border: 1px solid rgba(199, 172, 137, 0.4);
    background: rgba(217, 193, 161, 0.5);
}

.gh-language-switcher__divider {
    height: 1px;
    background: #bca18e;
}

@media (min-width: 601px) and (max-width: 1024px) {
    .gh-language-switcher {
        width: 78px;
    }

    .gh-language-switcher__toggle {
        height: 44px;
        gap: 12px;
        padding: 8px 12px 8px 8px;
    }

    .gh-language-switcher__flag {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 600px) {
    .gh-language-switcher {
        top: 12px;
        right: 12px;
    }
}
