:root {
    --zamok-orange-brand: #f28a18;
    --zamok-orange: #f28a18;
    --zamok-orange-deep: #db7609;
    --zamok-orange-soft: #fff0df;
    --zamok-orange-glow: rgba(242, 138, 24, .22);
    --zamok-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --zamok-text: #1f1f22;
    --zamok-muted: #6b6b73;
    --zamok-border: #ece4da;
    --zamok-panel: #fffaf4;
    --zamok-shadow: 0 18px 48px rgba(31, 31, 34, .08);
    --zamok-shadow-strong: 0 26px 70px rgba(31, 31, 34, .13);
}

.zamok-page {
    font-family: var(--zamok-font-sans);
    font-size: 16px;
    line-height: 1.55;
    color: var(--zamok-text);
    background: #fff;
}

body:has(.zamok-page),
body:has(.zamok-page-hero),
body:has(.zamok-story-hero),
body:has(.zamok-tpl-hero),
body:has(.zamok-archive-hero) {
    font-family: var(--zamok-font-sans);
    font-size: 16px;
    line-height: 1.55;
}

body:has(.zamok-page) header,
body:has(.zamok-page-hero) header,
body:has(.zamok-story-hero) header,
body:has(.zamok-tpl-hero) header,
body:has(.zamok-archive-hero) header {
    font-family: var(--zamok-font-sans);
}

body:has(.zamok-page) header a,
body:has(.zamok-page-hero) header a,
body:has(.zamok-story-hero) header a,
body:has(.zamok-tpl-hero) header a,
body:has(.zamok-archive-hero) header a {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0;
}

.zamok-container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.zamok-section {
    padding: clamp(46px, 6vw, 84px) 0;
}

.zamok-section + .zamok-section {
    padding-top: clamp(10px, 2vw, 24px);
}

.zamok-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.zamok-section-heading h2,
.zamok-archive-header h1,
.zamok-hero h1,
.zamok-section h2 {
    margin: 0;
    color: var(--zamok-text);
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.03;
}

.zamok-section-heading h2,
.zamok-section h2 {
    font-size: clamp(30px, 3.4vw, 48px);
}

.zamok-section-heading a,
.zamok-card__more {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    padding-block: 4px;
    color: var(--zamok-text);
    font-weight: 750;
    text-decoration: none;
}

.zamok-section-heading a:hover,
.zamok-card__more:hover {
    color: var(--zamok-orange);
}

.zamok-eyebrow {
    margin: 0 0 12px;
    color: var(--zamok-orange);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.zamok-hero {
    position: relative;
    display: grid;
    min-height: clamp(360px, 46vw, 560px);
    align-items: center;
    overflow: hidden;
    background-color: #2b221a;
    background-position: center;
    background-size: cover;
}

.site-main > .zamok-page-hero,
body .zamok-hero,
body .zamok-tpl-hero {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

body.page .site-main > .zamok-page-hero {
    display: grid !important;
}

.site-main > .zamok-page-hero + article .zamok-content > .zamok-hero:first-child,
.site-main > .zamok-page-hero + .zamok-section .zamok-content > .zamok-hero:first-child,
.site-main > .zamok-page-hero + article .zamok-content > .zamok-tpl-hero:first-child,
.site-main > .zamok-page-hero + .zamok-section .zamok-content > .zamok-tpl-hero:first-child {
    display: none !important;
}

.site-main > .zamok-page-hero {
    position: relative;
    min-height: clamp(320px, 34vw, 460px);
    align-items: center;
    overflow: hidden;
    background-color: #2b221a;
    background-image: linear-gradient(90deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .34)), var(--hero-image);
    background-position: center;
    background-size: cover;
}

.site-main > .zamok-page-hero .zamok-page-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .12);
}

.site-main > .zamok-page-hero .zamok-page-hero__inner {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: clamp(78px, 9vw, 118px) 0;
    color: #fff;
}

.site-main > .zamok-page-hero h1 {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-size: clamp(42px, 5.6vw, 72px);
    font-weight: 850;
    line-height: 1.04;
}

.site-main > .zamok-page-hero .zamok-kicker {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.zamok-hero--short {
    min-height: clamp(320px, 34vw, 440px);
}

.zamok-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .32)), rgba(0, 0, 0, .18);
}

.zamok-hero__content {
    position: relative;
    z-index: 1;
    justify-self: center;
    width: min(1180px, calc(100% - 48px));
    max-width: 820px;
    margin: 0 auto;
    padding: clamp(78px, 9vw, 118px) 0;
    color: #fff;
}

.zamok-hero h1 {
    max-width: 760px;
    color: #fff;
    font-size: clamp(42px, 5.6vw, 72px);
    font-weight: 850;
    line-height: 1.04;
}

.zamok-hero p {
    max-width: 680px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, .88);
    font-size: clamp(16px, 1.5vw, 21px);
    font-weight: 550;
    line-height: 1.6;
}

.zamok-slider__button {
    margin-top: 32px;
}

.zamok-archive-header {
    padding: clamp(56px, 8vw, 96px) 0 clamp(36px, 6vw, 68px);
    background: var(--zamok-panel);
}

.zamok-archive-header h1 {
    font-size: clamp(40px, 5.6vw, 68px);
    font-weight: 850;
    line-height: 1.04;
}

.zamok-archive-header p:not(.zamok-eyebrow) {
    max-width: 720px;
    margin: 20px 0 0;
    color: var(--zamok-muted);
    font-size: clamp(16px, 1.6vw, 20px);
    line-height: 1.65;
}

.zamok-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: clamp(32px, 5vw, 76px);
    align-items: start;
}

.zamok-detail-grid--event .zamok-content {
    display: grid;
    gap: clamp(24px, 3vw, 36px);
}

.zamok-event-detail-poster {
    margin: 0 0 6px;
    overflow: hidden;
    border: 1px solid var(--zamok-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--zamok-shadow);
}

.zamok-event-detail-poster img {
    display: block;
    width: 100%;
    max-height: min(680px, 72vh);
    object-fit: cover;
}

.zamok-content {
    color: var(--zamok-text);
    font-size: clamp(16px, 1.2vw, 18px);
    line-height: 1.65;
}

.zamok-content--narrow {
    max-width: 820px;
}

.zamok-content > *:first-child {
    margin-top: 0;
}

.zamok-content h2,
.zamok-content h3 {
    line-height: 1.1;
}

.zamok-content h2 {
    font-size: clamp(28px, 3vw, 42px);
}

.zamok-content h3 {
    font-size: clamp(21px, 2vw, 28px);
}

.zamok-meta-panel {
    position: sticky;
    top: 112px;
    display: grid;
    gap: 18px;
    padding: 28px;
    border: 1px solid var(--zamok-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--zamok-shadow);
}

.zamok-meta-panel__row {
    display: grid;
    gap: 5px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--zamok-border);
}

.zamok-meta-panel__row span {
    color: var(--zamok-muted);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.zamok-meta-panel__row strong {
    color: var(--zamok-text);
    font-size: 18px;
}

.zamok-meta-panel__button {
    width: 100%;
    margin-top: 4px;
}

.zamok-event-terms {
    margin-top: 34px;
    padding-top: 30px;
    border-top: 1px solid var(--zamok-border);
}

.zamok-event-terms h2 {
    margin: 0 0 18px;
    color: var(--zamok-text);
    font-size: clamp(26px, 2.4vw, 34px);
}

.zamok-event-terms__list {
    display: grid;
    gap: 12px;
}

.zamok-event-term {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(242, 138, 24, .24);
    border-radius: 8px;
    background: linear-gradient(135deg, #fff, var(--zamok-orange-soft));
}

.zamok-event-term__date,
.zamok-event-term__place,
.zamok-event-term__price {
    margin: 0;
}

.zamok-event-term__date {
    color: var(--zamok-text);
    font-size: 18px;
    font-weight: 850;
    line-height: 1.25;
}

.zamok-event-term__place,
.zamok-event-term__price {
    color: var(--zamok-muted);
    font-size: 15px;
    line-height: 1.45;
}

.zamok-event-term__price {
    color: var(--zamok-orange-deep);
    font-weight: 800;
}

.zamok-event-term__free {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 8px;
    background: #fff;
    color: var(--zamok-orange-deep);
    font-size: 14px;
    font-weight: 850;
    white-space: nowrap;
}

.zamok-event-term__button {
    min-width: 124px;
}

.zamok-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.zamok-gallery__item {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    background: var(--zamok-orange-soft);
}

.zamok-gallery__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zamok-gallery-events {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.zamok-gallery-events__group + .zamok-gallery-events__group {
    margin-top: clamp(46px, 6vw, 76px);
}

.zamok-gallery-event-card {
    min-width: 0;
}

.zamok-gallery-event-card__button {
    display: grid;
    overflow: hidden;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 1px solid var(--zamok-border);
    border-radius: 8px;
    background: #fff;
    color: var(--zamok-text);
    text-align: left;
    cursor: pointer;
    box-shadow: var(--zamok-shadow);
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.zamok-gallery-event-card__button:hover,
.zamok-gallery-event-card__button:focus-visible {
    border-color: rgba(242, 138, 24, .55);
    box-shadow: var(--zamok-shadow-strong), 0 0 0 6px var(--zamok-orange-glow);
    transform: translateY(-3px);
}

.zamok-gallery-event-card__image {
    display: block;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: var(--zamok-orange-soft);
}

.zamok-gallery-event-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .32s ease;
}

.zamok-gallery-event-card__button:hover .zamok-gallery-event-card__image img {
    transform: scale(1.04);
}

.zamok-gallery-event-card__body {
    display: grid;
    gap: 8px;
    padding: 18px;
}

.zamok-gallery-event-card__body strong {
    font-size: 20px;
    line-height: 1.12;
}

.zamok-gallery-event-card__body span {
    color: var(--zamok-muted);
    font-size: 14px;
    line-height: 1.45;
}

.zamok-gallery-event-card__date {
    color: var(--zamok-orange-deep) !important;
    font-weight: 800;
}

.zamok-modal-open {
    overflow: hidden;
}

.zamok-photo-open {
    overflow: hidden;
}

.zamok-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    padding: 32px;
}

.zamok-gallery-modal[aria-hidden="false"] {
    display: grid;
    place-items: center;
}

.zamok-gallery-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(31, 31, 34, .72);
    backdrop-filter: blur(6px);
}

.zamok-gallery-modal__panel {
    position: relative;
    z-index: 1;
    overflow: auto;
    width: min(100%, 1040px);
    max-height: min(860px, calc(100vh - 64px));
    padding: 32px;
    border: 1px solid rgba(242, 138, 24, .28);
    border-radius: 8px;
    background: #fffaf4;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .28);
}

.zamok-gallery-modal__close {
    position: sticky;
    top: 0;
    float: right;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: var(--zamok-text);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.zamok-gallery-modal__header {
    max-width: 760px;
    margin-bottom: 22px;
}

.zamok-gallery-modal__header h3 {
    margin: 0 0 10px;
    font-size: clamp(32px, 4.4vw, 50px);
    font-weight: 850;
    line-height: 1.06;
}

.zamok-gallery-modal__header p:not(.zamok-eyebrow) {
    margin: 0;
    color: var(--zamok-muted);
}

.zamok-gallery-modal__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    margin: 20px 0 0;
}

.zamok-gallery-modal__meta p {
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid var(--zamok-border);
    color: var(--zamok-muted);
    font-size: 15px;
    line-height: 1.4;
}

.zamok-gallery-modal__meta strong {
    color: var(--zamok-text);
    font-weight: 800;
}

.zamok-gallery-modal__content {
    max-width: 780px;
    color: var(--zamok-text);
}

.zamok-gallery-modal__content p {
    color: var(--zamok-muted);
    font-size: 16px;
    line-height: 1.72;
}

.zamok-gallery-modal__photos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.zamok-gallery-modal__photo {
    display: block;
    overflow: hidden;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: var(--zamok-orange-soft);
    cursor: zoom-in;
}

.zamok-gallery-modal__photo img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    transition: transform .25s ease, filter .25s ease;
}

.zamok-gallery-modal__photo:hover img,
.zamok-gallery-modal__photo:focus-visible img {
    filter: saturate(1.05);
    transform: scale(1.035);
}

.zamok-photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: none;
    padding: 28px;
    overflow: hidden;
}

.zamok-photo-lightbox[aria-hidden="false"] {
    display: grid;
    place-items: center;
}

.zamok-photo-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 13, 15, .88);
    backdrop-filter: blur(8px);
}

.zamok-photo-lightbox__stage {
    position: fixed;
    inset: 28px;
    z-index: 1;
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
}

.zamok-photo-lightbox__stage img {
    display: block;
    max-width: min(1180px, calc(100vw - 56px));
    max-height: calc(100dvh - 56px);
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 32px 90px rgba(0, 0, 0, .45);
}

.zamok-photo-lightbox__close,
.zamok-photo-lightbox__nav {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 250, 244, .96);
    color: var(--zamok-text);
    cursor: pointer;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .25);
}

.zamok-photo-lightbox__close {
    top: 0;
    right: 0;
    width: 46px;
    height: 46px;
    font-size: 28px;
    line-height: 1;
}

.zamok-photo-lightbox__nav {
    top: 50%;
    width: 54px;
    height: 54px;
    font-size: 0;
    line-height: 0;
    transform: translateY(-50%);
}

.zamok-photo-lightbox__nav::before {
    content: "";
    display: block;
    width: 14px;
    height: 14px;
    border-top: 3px solid currentColor;
    border-right: 3px solid currentColor;
}

.zamok-photo-lightbox__nav--prev {
    left: 0;
}

.zamok-photo-lightbox__nav--prev::before {
    transform: translateX(2px) rotate(225deg);
}

.zamok-photo-lightbox__nav--next {
    right: 0;
}

.zamok-photo-lightbox__nav--next::before {
    transform: translateX(-2px) rotate(45deg);
}

.zamok-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 20px;
    border-radius: 8px;
    border: 0;
    background: var(--zamok-orange);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(242, 138, 24, .2);
    transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.zamok-button:hover,
.zamok-button:focus-visible {
    background: var(--zamok-orange-deep);
    color: #fff;
    box-shadow: 0 16px 34px rgba(242, 138, 24, .28);
    transform: translateY(-1px);
}

.zamok-bottom-bar {
    padding: 28px 0;
    background: var(--zamok-text);
    color: #fff;
}

.zamok-bottom-bar__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
}

.zamok-bottom-bar h2 {
    margin: 0 0 6px;
    font-size: clamp(1.4rem, 2vw, 2rem);
    color: #fff;
}

.zamok-bottom-bar p {
    margin: 0;
    color: rgba(255, 255, 255, .72);
}

.zamok-bottom-bar__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.zamok-bottom-bar__links a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
}

.zamok-bottom-bar__links a:hover,
.zamok-bottom-bar__links a:focus-visible {
    border-color: var(--zamok-orange);
    background: var(--zamok-orange);
    color: #fff;
}

.zamok-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.zamok-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 100%;
    border: 1px solid var(--zamok-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--zamok-shadow);
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.zamok-card:hover,
.zamok-card:focus-within {
    border-color: rgba(242, 138, 24, .55);
    box-shadow: var(--zamok-shadow-strong), 0 0 0 6px var(--zamok-orange-glow);
    transform: translateY(-3px);
}

.zamok-card__image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--zamok-orange-soft);
}

.zamok-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .28s ease;
}

.zamok-card:hover .zamok-card__image img {
    transform: scale(1.04);
}

.zamok-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
}

.zamok-card__body h3 {
    margin: 0;
    color: var(--zamok-text);
    font-size: clamp(21px, 1.55vw, 24px);
    font-weight: 850;
    line-height: 1.16;
}

.zamok-card__body h3 a {
    color: inherit;
    text-decoration: none;
}

.zamok-card__date {
    margin: 0;
    color: var(--zamok-orange);
    font-weight: 850;
    font-size: 12px;
    line-height: 1.35;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.zamok-card__place,
.zamok-card__price,
.zamok-empty {
    margin: 0;
    color: var(--zamok-muted);
    font-size: 16px;
    line-height: 1.6;
}

.zamok-card .zamok-button {
    margin-top: auto;
}

.zamok-link-grid,
.zamok-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.zamok-contact-map {
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(360px, 1.12fr);
    gap: clamp(22px, 3vw, 36px);
    align-items: stretch;
    padding: clamp(22px, 3vw, 32px);
    border: 1px solid var(--zamok-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--zamok-shadow);
}

.zamok-contact-map__content {
    align-self: center;
}

.zamok-contact-map__content h2 {
    margin: 0 0 14px;
    font-size: clamp(26px, 2.5vw, 38px);
    line-height: 1.08;
}

.zamok-contact-map__content p {
    margin: 0 0 18px;
    color: var(--zamok-muted);
    font-size: 17px;
    line-height: 1.65;
}

.zamok-contact-map iframe {
    display: block;
    width: 100%;
    min-height: 360px;
    border: 0;
    border-radius: 8px;
}

.zamok-link-card,
.zamok-info-card {
    border: 1px solid var(--zamok-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--zamok-shadow);
}

.zamok-link-card {
    display: grid;
    min-height: 116px;
    align-content: space-between;
    padding: 22px 24px;
    color: var(--zamok-text);
    text-decoration: none;
    transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.zamok-link-card:hover,
.zamok-link-card:focus-visible {
    border-color: rgba(242, 138, 24, .65);
    background: linear-gradient(135deg, #fff, var(--zamok-orange-soft));
    color: var(--zamok-text);
    box-shadow: var(--zamok-shadow-strong);
    transform: translateY(-3px);
}

.zamok-link-card span {
    font-size: clamp(20px, 1.5vw, 26px);
    font-weight: 900;
    line-height: 1.08;
}

.zamok-link-card strong {
    color: var(--zamok-orange);
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

body.page .zamok-story-page .zamok-link-grid {
    display: grid !important;
}

.zamok-info-card {
    padding: 24px;
}

.zamok-info-card h3 {
    margin: 0 0 12px;
    color: var(--zamok-text);
    font-size: clamp(20px, 1.6vw, 25px);
    line-height: 1.1;
}

.zamok-info-card p {
    margin: 0;
    color: var(--zamok-muted);
    font-size: 16px;
    line-height: 1.55;
}

.zamok-info-card a {
    color: var(--zamok-orange-deep);
    font-weight: 800;
    text-decoration: none;
}

.zamok-info-card .zamok-info-card__button {
    display: inline-flex;
    margin-top: 18px;
    color: #fff;
}

.zamok-tour-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.zamok-tour-card {
    padding: 24px;
    border: 1px solid var(--zamok-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--zamok-shadow);
}

.zamok-tour-card h3 {
    margin: 0 0 10px;
    font-size: clamp(20px, 1.7vw, 26px);
    line-height: 1.15;
}

.zamok-tour-card p {
    margin: 0 0 12px;
    color: var(--zamok-muted);
    font-size: 16px;
    line-height: 1.55;
}

.zamok-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 28px;
}

.zamok-content-block {
    padding: 24px;
    border: 1px solid var(--zamok-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--zamok-shadow);
}

.zamok-content-block h3 {
    margin: 0 0 12px;
    color: var(--zamok-text);
    font-size: clamp(20px, 1.7vw, 27px);
    line-height: 1.12;
}

.zamok-content-block p,
.zamok-content-block li {
    color: var(--zamok-muted);
    font-size: 16px;
    line-height: 1.58;
}

.zamok-content-block ul {
    margin: 0;
    padding-left: 20px;
}

.zamok-story-hero {
    position: relative;
    display: grid;
    min-height: clamp(520px, 58vw, 760px);
    align-items: end;
    overflow: hidden;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background-color: #211b15;
    background-image: linear-gradient(90deg, rgba(18, 16, 13, .74) 0%, rgba(18, 16, 13, .46) 48%, rgba(18, 16, 13, .2) 100%), linear-gradient(180deg, rgba(18, 16, 13, .04), rgba(18, 16, 13, .54)), var(--story-hero);
    background-position: center 38%;
    background-size: cover;
}

.zamok-story-hero__shade {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 76% 16%, rgba(242, 138, 24, .2), transparent 34%);
    pointer-events: none;
}

.zamok-story-hero__content {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 48px));
    padding: clamp(96px, 14vw, 168px) 0 clamp(64px, 8vw, 104px);
    color: #fff;
}

.zamok-story-hero h1 {
    max-width: 880px;
    margin: 0;
    color: #fff;
    font-size: clamp(46px, 6vw, 82px);
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.02;
}

.zamok-story-hero p:not(.zamok-eyebrow) {
    max-width: 720px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, .9);
    font-size: clamp(18px, 1.8vw, 24px);
    font-weight: 550;
    line-height: 1.58;
}

.zamok-story-intro,
.zamok-story-split,
.zamok-photo-showcase,
.zamok-story-gallery,
.zamok-story-cta {
    padding: clamp(44px, 5.4vw, 74px) 0;
}

.zamok-story-split + .zamok-story-split {
    padding-top: clamp(16px, 2.2vw, 30px);
}

.zamok-photo-showcase__grid {
    display: grid;
    gap: clamp(28px, 5vw, 70px);
}

.zamok-photo-showcase figure {
    width: min(84%, 980px);
    margin: 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    background: var(--zamok-orange-soft);
    box-shadow: var(--zamok-shadow-strong);
}

.zamok-photo-showcase figure:nth-child(even) {
    margin-left: auto;
}

.zamok-photo-showcase a,
.zamok-photo-showcase img {
    display: block;
    width: 100%;
    height: 100%;
}

.zamok-photo-showcase a {
    cursor: zoom-in;
}

.zamok-photo-showcase img {
    object-fit: cover;
}

.zamok-source-gallery {
    padding: clamp(44px, 5.4vw, 74px) 0;
}

.zamok-source-gallery h2 {
    margin: 0 0 26px;
    color: var(--zamok-text);
    font-size: clamp(31px, 3.35vw, 46px);
    font-weight: 850;
    line-height: 1.08;
}

.zamok-source-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.zamok-source-gallery figure {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    background: var(--zamok-orange-soft);
}

.zamok-source-gallery a,
.zamok-source-gallery img {
    display: block;
    width: 100%;
    height: 100%;
}

.zamok-source-gallery a {
    cursor: zoom-in;
}

.zamok-source-gallery img {
    object-fit: cover;
    transition: filter .22s ease, transform .22s ease;
}

.zamok-source-gallery a:hover img,
.zamok-source-gallery a:focus-visible img {
    filter: saturate(1.05);
    transform: scale(1.025);
}

.zamok-space-showcase {
    padding: clamp(44px, 5.4vw, 74px) 0;
}

.zamok-space-showcase h2 {
    margin: 0 0 26px;
    color: var(--zamok-text);
    font-size: clamp(31px, 3.35vw, 46px);
    font-weight: 850;
    line-height: 1.08;
}

.zamok-space-showcase__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.zamok-space-card {
    overflow: hidden;
    border: 1px solid var(--zamok-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--zamok-shadow);
}

.zamok-space-card__image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--zamok-orange-soft);
    cursor: zoom-in;
}

.zamok-space-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zamok-space-card__body {
    padding: 20px 22px 22px;
}

.zamok-space-card__body h3 {
    margin: 0;
    color: var(--zamok-text);
    font-size: clamp(19px, 1.7vw, 24px);
    font-weight: 850;
    line-height: 1.2;
}

.zamok-space-card__body p {
    margin: 8px 0 0;
    color: var(--zamok-orange);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.45;
}

.zamok-story-intro__grid {
    display: grid;
    grid-template-columns: minmax(260px, 400px) minmax(0, 1fr);
    gap: clamp(30px, 5vw, 72px);
    align-items: start;
}

.zamok-story-intro h2,
.zamok-story-split h2,
.zamok-story-highlight h2,
.zamok-story-cta h2 {
    margin: 0;
    color: var(--zamok-text);
    font-size: clamp(31px, 3.35vw, 46px);
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.08;
}

.zamok-story-intro__text {
    display: grid;
    gap: 18px;
}

.zamok-story-intro__text p,
.zamok-story-split__content p,
.zamok-story-highlight p,
.zamok-story-cta p {
    margin: 0;
    color: var(--zamok-muted);
    font-size: clamp(16px, 1.12vw, 18px);
    line-height: 1.66;
}

.zamok-story-split__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
    gap: clamp(30px, 5vw, 64px);
    align-items: center;
}

.zamok-story-split--reverse .zamok-story-split__grid {
    grid-template-columns: minmax(340px, .88fr) minmax(0, 1.12fr);
}

.zamok-story-split--reverse figure {
    order: 2;
}

.zamok-story-split figure,
.zamok-story-gallery__item {
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    background: var(--zamok-orange-soft);
    box-shadow: var(--zamok-shadow-strong);
}

.zamok-story-split figure {
    aspect-ratio: 16 / 10;
}

.zamok-story-split figure::after,
.zamok-story-gallery__item::after,
.zamok-card__image::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px rgba(31, 31, 34, .08);
    pointer-events: none;
}

.zamok-story-split figure,
.zamok-story-gallery__item,
.zamok-card__image {
    position: relative;
}

.zamok-story-split img,
.zamok-story-gallery img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zamok-story-split figure > a,
.zamok-story-gallery__item > a {
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}

.zamok-source-copy .zamok-content {
    display: grid;
    gap: 18px;
}

.zamok-source-copy .zamok-content h2,
.zamok-source-copy .zamok-story-split__content h2 {
    text-wrap: balance;
}

.zamok-source-copy .zamok-content p,
.zamok-source-copy .zamok-content li,
.zamok-source-copy .zamok-story-split__content p,
.zamok-source-copy .zamok-story-split__content li {
    color: var(--zamok-muted);
    font-size: clamp(16px, 1.12vw, 18px);
    line-height: 1.66;
}

.zamok-source-copy .zamok-content ul,
.zamok-source-copy .zamok-story-split__content ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 1.2em;
}

.zamok-source-note {
    padding: 0 0 clamp(44px, 5.4vw, 74px);
}

.zamok-source-note__inner {
    display: grid;
    gap: 10px;
    padding: clamp(22px, 3vw, 32px);
    border: 1px solid rgba(242, 138, 24, .28);
    border-radius: 8px;
    background: var(--zamok-orange-soft);
}

.zamok-source-note__inner p {
    margin: 0;
    color: var(--zamok-muted);
    font-size: clamp(16px, 1.12vw, 18px);
    line-height: 1.66;
}

body.has-open-photo {
    overflow: hidden;
}

.zamok-story-split__content {
    display: grid;
    gap: 18px;
}

.zamok-story-highlight {
    padding: clamp(56px, 7vw, 92px) 0;
    background: linear-gradient(135deg, #211b15, #332414);
}

.zamok-story-highlight__inner {
    max-width: 920px;
}

.zamok-story-highlight h2 {
    max-width: 820px;
    color: #fff;
}

.zamok-story-highlight p {
    max-width: 740px;
    margin-top: 20px;
    color: rgba(255, 255, 255, .82);
}

.zamok-story-gallery {
    background: var(--zamok-panel);
}

.zamok-story-gallery__grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr .85fr;
    gap: 22px;
}

.zamok-story-gallery__item {
    aspect-ratio: 4 / 3;
}

.zamok-story-gallery__item:first-child {
    grid-row: span 2;
    aspect-ratio: auto;
}

.zamok-story-cta__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(28px, 6vw, 78px);
    align-items: center;
    padding: clamp(30px, 5vw, 58px);
    border: 1px solid rgba(242, 138, 24, .28);
    border-radius: 8px;
    background: linear-gradient(135deg, #fff, #fff8ef 62%, var(--zamok-orange-soft));
    box-shadow: var(--zamok-shadow);
}

.zamok-story-cta p {
    max-width: 760px;
    margin-top: 18px;
}

.zamok-story-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.zamok-button--ghost {
    border: 1px solid rgba(242, 138, 24, .45);
    background: #fff;
    color: var(--zamok-orange-deep);
    box-shadow: none;
}

.zamok-button--ghost:hover,
.zamok-button--ghost:focus-visible {
    background: var(--zamok-orange);
    color: #fff;
}

.zamok-story-page {
    overflow: hidden;
}

/* Legacy page blocks kept in a few imported pages. Keep their scale aligned
   with the current visual system so older content does not look oversized. */
.zamok-tpl-hero {
    position: relative;
    display: grid;
    min-height: clamp(300px, 40vw, 520px);
    align-items: center;
    overflow: hidden;
    background-color: #2b221a;
    background-image: linear-gradient(90deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .32)), var(--hero);
    background-position: center;
    background-size: cover;
}

.zamok-tpl-hero > div,
.zamok-tpl-section {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.zamok-tpl-hero > div {
    justify-self: center;
    max-width: 820px;
    padding: clamp(64px, 8vw, 108px) 0;
    color: #fff;
}

.zamok-tpl-hero h1 {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-size: clamp(42px, 5.6vw, 72px);
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.04;
}

.zamok-tpl-hero p {
    max-width: 680px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, .88);
    font-size: clamp(16px, 1.5vw, 21px);
    font-weight: 550;
    line-height: 1.6;
}

.zamok-tpl-section {
    padding: clamp(46px, 6vw, 84px) 0;
}

.zamok-tpl-section + .zamok-tpl-section {
    padding-top: clamp(10px, 2vw, 24px);
}

.zamok-tpl-eyebrow {
    margin: 0 0 12px;
    color: var(--zamok-orange);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.zamok-tpl-section h2 {
    max-width: 820px;
    margin: 0 0 18px;
    color: var(--zamok-text);
    font-size: clamp(30px, 3.1vw, 44px);
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.08;
}

.zamok-tpl-section p {
    max-width: 820px;
    margin: 0;
    color: var(--zamok-muted);
    font-size: clamp(16px, 1.2vw, 18px);
    line-height: 1.72;
}

.zamok-tpl-tables {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
    gap: 20px;
}

.zamok-tpl-tables__title {
    grid-column: 1 / -1;
    margin: 0 0 4px;
    color: var(--zamok-text);
    font-size: clamp(30px, 3.1vw, 44px);
    font-weight: 850;
    line-height: 1.08;
}

.zamok-tpl-table {
    overflow: hidden;
    border: 1px solid var(--zamok-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(31, 31, 34, .07);
    transition: border-color .22s ease, box-shadow .22s ease;
}

.zamok-tpl-table:hover {
    border-color: rgba(242, 138, 24, .5);
    box-shadow: 0 18px 42px rgba(31, 31, 34, .1);
}

.zamok-tpl-table h3 {
    margin: 0;
    padding: 18px 20px;
    color: var(--zamok-text);
    font-size: clamp(18px, 1.5vw, 22px);
    font-weight: 850;
    line-height: 1.2;
}

.zamok-tpl-table table {
    width: 100%;
    border-collapse: collapse;
    color: var(--zamok-text);
    font-size: 15px;
    table-layout: auto;
}

.zamok-tpl-table th,
.zamok-tpl-table td {
    padding: 13px 20px;
    border-top: 1px solid var(--zamok-border);
    text-align: left;
    vertical-align: top;
}

.zamok-tpl-table th {
    width: auto;
    color: var(--zamok-text);
    font-size: 14px;
    font-weight: 760;
    line-height: 1.35;
    letter-spacing: 0;
    text-transform: none;
}

.zamok-tpl-table td {
    width: 1%;
    text-align: right;
    white-space: nowrap;
    color: var(--zamok-orange);
    font-weight: 850;
}

.zamok-tpl-table thead th {
    background: var(--zamok-orange-soft);
    color: var(--zamok-text);
    font-size: 13px;
    font-weight: 850;
}

.zamok-tpl-table thead th:last-child {
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .zamok-detail-grid {
        grid-template-columns: 1fr;
    }

    .zamok-meta-panel {
        position: static;
    }

    .zamok-event-term {
        grid-template-columns: 1fr;
    }

    .zamok-event-term__button,
    .zamok-event-term__free {
        width: 100%;
    }

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

    .zamok-tour-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .zamok-link-grid,
    .zamok-info-grid,
    .zamok-contact-map,
    .zamok-content-grid,
    .zamok-tpl-tables {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .zamok-story-intro__grid,
    .zamok-story-split__grid,
    .zamok-story-split--reverse .zamok-story-split__grid,
    .zamok-story-cta__inner {
        grid-template-columns: 1fr;
    }

    .zamok-story-split--reverse figure {
        order: 0;
    }

    .zamok-photo-showcase figure {
        width: 100%;
    }

    .zamok-space-showcase__grid {
        grid-template-columns: 1fr;
    }

    .zamok-story-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .zamok-source-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .zamok-gallery-events {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .zamok-story-gallery__item:first-child {
        grid-row: auto;
    }

    .zamok-story-cta__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .zamok-container {
        width: min(100% - 32px, 1180px);
    }

    .zamok-source-gallery__grid {
        gap: 12px;
    }

    .zamok-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .zamok-hero {
        min-height: 360px;
    }

    .zamok-hero h1 {
        font-size: clamp(38px, 13vw, 56px);
    }

    .zamok-hero p {
        font-size: 16px;
    }

    .zamok-story-hero {
        min-height: 460px;
    }

    .zamok-story-hero__content {
        width: min(100% - 32px, 1180px);
        padding: 92px 0 52px;
    }

    .zamok-story-hero h1 {
        font-size: clamp(42px, 14vw, 60px);
        line-height: 1;
    }

    .zamok-story-intro,
    .zamok-story-split,
    .zamok-story-gallery,
    .zamok-story-cta {
        padding: 48px 0;
    }

    .zamok-story-intro h2,
    .zamok-story-split h2,
    .zamok-story-highlight h2,
    .zamok-story-cta h2 {
        font-size: clamp(30px, 10vw, 42px);
    }

    .zamok-story-split figure {
        aspect-ratio: 16 / 11;
    }

    .zamok-story-gallery__grid {
        grid-template-columns: 1fr;
    }

    .zamok-story-cta__inner {
        padding: 24px;
    }

    .zamok-bottom-bar__inner {
        grid-template-columns: 1fr;
    }

    .zamok-bottom-bar__links {
        justify-content: flex-start;
    }

    .zamok-story-cta__actions {
        display: grid;
    }

    .zamok-hero__content {
        width: min(100% - 32px, 1180px);
        padding: 64px 0;
    }

    .site-main > .zamok-page-hero .zamok-page-hero__inner {
        width: min(100% - 32px, 1180px);
        padding: 64px 0;
    }

    .site-main > .zamok-page-hero h1 {
        font-size: clamp(38px, 13vw, 56px);
    }

    .zamok-section-heading h2,
    .zamok-section h2,
    .zamok-tpl-section h2 {
        font-size: clamp(30px, 10vw, 42px);
        line-height: 1.02;
    }

    .zamok-card {
        max-width: 420px;
        margin: 0 auto;
    }

    .zamok-card__body {
        padding: 20px;
    }

    .zamok-link-card {
        min-height: 104px;
    }

    .zamok-gallery {
        grid-template-columns: 1fr;
    }

    .zamok-card-grid,
    .zamok-gallery-events,
    .zamok-tour-list,
    .zamok-link-grid,
    .zamok-info-grid,
    .zamok-contact-map,
    .zamok-content-grid,
    .zamok-tpl-tables {
        grid-template-columns: 1fr;
    }

    .zamok-tpl-hero > div,
    .zamok-tpl-section {
        width: min(100% - 32px, 1180px);
    }

    .zamok-gallery-modal {
        padding: 14px;
    }

    .zamok-gallery-modal__panel {
        max-height: calc(100vh - 28px);
        padding: 22px;
    }

    .zamok-gallery-modal__photos {
        grid-template-columns: 1fr;
    }

    .zamok-gallery-modal__meta {
        grid-template-columns: 1fr;
    }

    .zamok-photo-lightbox {
        padding: 14px;
    }

    .zamok-photo-lightbox__stage {
        inset: 14px;
    }

    .zamok-photo-lightbox__close {
        top: 8px;
        right: 8px;
    }

    .zamok-photo-lightbox__nav {
        width: 46px;
        height: 46px;
    }

    .zamok-photo-lightbox__nav::before {
        width: 12px;
        height: 12px;
        border-width: 2.5px 2.5px 0 0;
    }

    .zamok-photo-lightbox__nav--prev {
        left: 8px;
    }

    .zamok-photo-lightbox__nav--next {
        right: 8px;
    }
}

/* Culture-style event loops adapted to the castle palette. */
.zamok-card-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 30px 28px;
}

.zamok-card-grid > .zamok-card,
.zamok-card-grid > .zamok-loop-event {
    flex: 0 1 calc((100% - 84px) / 4);
    min-width: 0;
    max-width: none;
    min-height: 100%;
    margin: 0;
    border: 1px solid #ededed;
    border-radius: 0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .035);
    display: flex;
    flex-direction: column;
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.zamok-card-grid > .zamok-card:hover,
.zamok-card-grid > .zamok-card:focus-within,
.zamok-card-grid > .zamok-loop-event:hover,
.zamok-card-grid > .zamok-loop-event:focus-within {
    border-color: rgba(242, 138, 24, .42);
    box-shadow: 0 16px 36px rgba(31, 31, 34, .075);
    transform: translateY(-1px);
}

.zamok-card-grid .zamok-card__image,
.zamok-card-grid .zamok-loop-event__media {
    display: block;
    position: relative;
    aspect-ratio: 1.42 / 1;
    overflow: hidden;
    border-radius: 0 !important;
    background: #f3f3f3;
}

.zamok-card-grid .zamok-card__image img,
.zamok-card-grid .zamok-loop-event__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.zamok-card-grid > .zamok-card:hover .zamok-card__image img,
.zamok-card-grid > .zamok-loop-event:hover .zamok-loop-event__media img {
    transform: scale(1.035);
}

.zamok-card-grid .zamok-card__body,
.zamok-card-grid .zamok-loop-event__body {
    position: relative;
    display: grid;
    flex: 1 1 auto;
    grid-template-rows: minmax(70px, auto) minmax(22px, auto) minmax(44px, auto);
    align-items: start;
    gap: 8px;
    padding: 28px 24px 22px;
    overflow: hidden;
    border-radius: 0 !important;
    background: #fff;
}

.zamok-card-grid .zamok-card__body::before,
.zamok-card-grid .zamok-loop-event__body::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(95% 70% at 26% 0%, rgba(242, 138, 24, .30) 0%, rgba(242, 138, 24, .17) 24%, rgba(242, 138, 24, .06) 47%, rgba(255, 255, 255, 0) 74%);
    opacity: 0;
    transition: opacity .25s ease;
}

.zamok-card-grid > .zamok-card:hover .zamok-card__body::before,
.zamok-card-grid > .zamok-loop-event:hover .zamok-loop-event__body::before {
    opacity: 1;
}

.zamok-card-grid .zamok-card__body > *,
.zamok-card-grid .zamok-loop-event__body > * {
    position: relative;
    z-index: 1;
}

.zamok-card-grid .zamok-card__body h2,
.zamok-card-grid .zamok-card__body h3,
.zamok-card-grid .zamok-loop-event__title {
    margin: 0;
    min-height: 2.26em;
    color: #1b1b1d;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.13;
    letter-spacing: 0;
}

.zamok-card-grid .zamok-card__body h2 a,
.zamok-card-grid .zamok-card__body h3 a,
.zamok-card-grid .zamok-loop-event__title a {
    color: inherit;
    text-decoration: none;
}

.zamok-card-grid .zamok-card__date,
.zamok-card-grid .zamok-loop-event__date {
    margin: 0;
    color: var(--zamok-orange);
    font-size: 12px;
    font-weight: 950;
    line-height: 1.2;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.zamok-card-grid .zamok-loop-event__date {
    position: absolute;
    left: 14px;
    top: 14px;
    z-index: 2;
    max-width: calc(100% - 28px);
    padding: 8px 10px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 8px 20px rgba(31, 31, 34, .12);
}

.zamok-card-grid .zamok-card__place,
.zamok-card-grid .zamok-card__price,
.zamok-card-grid .zamok-loop-event__place {
    margin: 0;
    min-height: 22px;
    color: #62646a;
    font-size: 16px;
    line-height: 1.32;
}

.zamok-card-grid .zamok-card__more,
.zamok-card-grid .zamok-card .zamok-button,
.zamok-card-grid .zamok-loop-event__ticket {
    align-self: end;
    justify-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    width: auto;
    margin-top: 0;
    padding: 0 30px;
    border: 0;
    border-radius: 999px;
    background: var(--zamok-orange);
    color: #fff;
    font-family: -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 19px;
    font-weight: 900;
    line-height: 1;
    gap: 9px;
    text-decoration: none !important;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.zamok-card-grid .zamok-card__more:hover,
.zamok-card-grid .zamok-card .zamok-button:hover,
.zamok-card-grid .zamok-loop-event__ticket:hover,
.zamok-card-grid .zamok-card__more:focus-visible,
.zamok-card-grid .zamok-card .zamok-button:focus-visible,
.zamok-card-grid .zamok-loop-event__ticket:focus-visible {
    background: var(--zamok-orange-deep);
    color: #fff;
    transform: translateY(-1px);
    text-decoration: none !important;
}

.zamok-card-grid .zamok-loop-event__ticket span {
    color: inherit;
}

.zamok-card-grid .zamok-card__more::before,
.zamok-card-grid .zamok-card .zamok-button::before,
.zamok-card-grid .zamok-loop-event__ticket::before {
    content: none !important;
    display: none !important;
}

.zamok-card-grid .zamok-card__more svg,
.zamok-card-grid .zamok-card .zamok-button svg,
.zamok-card-grid .zamok-loop-event__ticket svg {
    display: none !important;
}

@media (max-width: 1024px) {
    .zamok-card-grid > .zamok-card,
    .zamok-card-grid > .zamok-loop-event {
        flex-basis: calc((100% - 28px) / 2);
    }
}

@media (max-width: 767px) {
    .zamok-card-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        gap: 22px;
    }

    .zamok-card-grid > .zamok-card,
    .zamok-card-grid > .zamok-loop-event {
        width: 100%;
        max-width: 420px;
        flex: none;
    }

    .zamok-card-grid .zamok-card__body,
    .zamok-card-grid .zamok-loop-event__body {
        grid-template-rows: auto auto auto;
        gap: 8px;
        padding: 24px 20px 20px;
    }

    .zamok-card-grid .zamok-card__body h3,
    .zamok-card-grid .zamok-loop-event__title {
        min-height: 0;
        font-size: 25px;
    }

    .zamok-card-grid .zamok-card__place,
    .zamok-card-grid .zamok-card__price,
    .zamok-card-grid .zamok-loop-event__place {
        font-size: 18px;
    }
}

/* Final spacing and balance pass for the homepage reservation and Services pages. */
.zamok-home-reservation__content .zamok-button {
    margin-top: clamp(22px, 2vw, 28px);
}

body.page-id-19 .zamok-link-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: stretch;
    justify-content: normal;
}

body.page-id-19 .zamok-link-grid > .zamok-link-card {
    grid-column: span 2;
    width: auto;
    max-width: none;
    flex: none;
}

body.page-id-19 .zamok-link-grid > .zamok-link-card:nth-child(4) {
    grid-column: 2 / span 2;
}

body.page-id-19 .zamok-link-grid > .zamok-link-card:nth-child(5) {
    grid-column: 4 / span 2;
}

body.parent-pageid-19 .zamok-story-split__grid {
    align-items: start;
}

body.parent-pageid-19 .zamok-story-split__content {
    padding-top: clamp(6px, 1vw, 14px);
}

body.page-id-19 .zamok-button::before,
body.parent-pageid-19 .zamok-button::before {
    display: none;
}

body.parent-pageid-19 .zamok-tpl-tables:has(> .zamok-tpl-table:nth-child(4):last-child) > .zamok-tpl-table:first-of-type {
    grid-column: 1 / -1;
}

.zamok-gallery-events__heading {
    margin-bottom: clamp(24px, 3vw, 36px);
}

@media (max-width: 980px) {
    body.page-id-19 .zamok-link-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.page-id-19 .zamok-link-grid > .zamok-link-card,
    body.page-id-19 .zamok-link-grid > .zamok-link-card:nth-child(4),
    body.page-id-19 .zamok-link-grid > .zamok-link-card:nth-child(5) {
        grid-column: auto;
    }

    body.page-id-19 .zamok-link-grid > .zamok-link-card:nth-child(5) {
        grid-column: 1 / -1;
        width: calc(50% - 9px);
        justify-self: center;
    }
}

@media (max-width: 640px) {
    body.page-id-19 .zamok-link-grid {
        grid-template-columns: 1fr;
    }

    body.page-id-19 .zamok-link-grid > .zamok-link-card,
    body.page-id-19 .zamok-link-grid > .zamok-link-card:nth-child(4),
    body.page-id-19 .zamok-link-grid > .zamok-link-card:nth-child(5) {
        grid-column: auto;
        width: auto;
        justify-self: stretch;
    }

    body.parent-pageid-19 .zamok-story-split__content {
        padding-top: 0;
    }
}

/* Event details mirror the MKC reading rhythm while keeping the castle palette. */
body.single-zamok_event .zamok-hero {
    min-height: 430px;
    height: 430px;
}

body.single-zamok_event .zamok-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 430px;
    padding-top: 96px;
    padding-bottom: 64px;
    text-align: center;
}

body.single-zamok_event .zamok-hero h1 {
    width: min(1050px, 100%);
    margin: 0 auto;
    font-size: clamp(42px, 5.6vw, 72px);
    font-weight: 900;
    line-height: 1.04;
}

body.single-zamok_event .zamok-hero p {
    display: none;
}

.zamok-event-layout {
    display: grid;
    gap: clamp(40px, 6vw, 86px);
    align-items: start;
}

.zamok-event-layout.has-poster {
    grid-template-columns: minmax(300px, 486px) minmax(0, 1fr);
}

.zamok-event-layout__content {
    min-width: 0;
}

.zamok-event-layout__content > h2 {
    margin: 0 0 22px;
    color: var(--zamok-text);
    font-size: clamp(32px, 3.2vw, 44px);
    font-weight: 900;
    line-height: 1.08;
}

.zamok-event-layout__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
}

.zamok-event-layout__tags span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid rgba(242, 138, 24, .32);
    border-radius: 8px;
    background: var(--zamok-orange-soft);
    color: var(--zamok-orange-deep);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}

.zamok-event-layout .zamok-event-detail-poster {
    margin: 0;
    box-shadow: 0 20px 55px rgba(38, 24, 17, .15);
}

.zamok-event-layout .zamok-event-detail-poster img {
    width: 100%;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
}

.zamok-event-layout .zamok-meta-panel {
    position: static;
    margin-top: 34px;
}

@media (max-width: 900px) {
    .zamok-event-layout.has-poster {
        grid-template-columns: minmax(240px, 38vw) minmax(0, 1fr);
        gap: 34px;
    }
}

@media (max-width: 767px) {
    body.single-zamok_event .zamok-hero,
    body.single-zamok_event .zamok-hero__content {
        min-height: 380px;
        height: 380px;
    }

    body.single-zamok_event .zamok-hero__content {
        padding-top: 82px;
        padding-bottom: 42px;
    }

    body.single-zamok_event .zamok-hero h1 {
        font-size: clamp(32px, 10.2vw, 40px);
    }

    .zamok-event-layout.has-poster {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .zamok-event-layout__content > h2 {
        font-size: 30px;
    }
}

.zamok-site-popup[hidden] {
    display: none;
}

.zamok-site-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}

.zamok-site-popup.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.zamok-site-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(24, 19, 16, .58);
    backdrop-filter: blur(8px);
}

.zamok-site-popup__dialog {
    position: relative;
    width: min(620px, 100%);
    overflow: hidden;
    border: 1px solid rgba(242, 138, 24, .28);
    border-radius: 14px;
    background: #fffaf3;
    box-shadow: 0 28px 80px rgba(24, 19, 16, .28);
    transform: translateY(14px) scale(.985);
    transition: transform .22s ease;
}

.zamok-site-popup.is-visible .zamok-site-popup__dialog {
    transform: translateY(0) scale(1);
}

.zamok-site-popup__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    color: #241916;
    background: rgba(255, 255, 255, .88);
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(24, 19, 16, .14);
}

.zamok-site-popup__close:hover {
    color: #fff;
    background: #241916;
}

.zamok-site-popup__media {
    aspect-ratio: 16 / 7;
    background: #e8dccd;
}

.zamok-site-popup__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zamok-site-popup__content {
    padding: 34px;
}

.zamok-site-popup__eyebrow {
    margin: 0 0 8px;
    color: var(--zamok-orange-deep);
    font-size: 12px;
    line-height: 1.1;
    font-weight: 900;
    text-transform: uppercase;
}

.zamok-site-popup h2 {
    margin: 0;
    color: #241916;
    font-family: inherit;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.05;
    font-weight: 850;
}

.zamok-site-popup__text {
    margin-top: 16px;
    color: #493d35;
    font-size: 17px;
    line-height: 1.62;
}

.zamok-site-popup__text p {
    margin: 0 0 12px;
}

.zamok-site-popup__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: 10px;
    padding: 0 22px;
    border-radius: 999px;
    color: #fff !important;
    background: var(--zamok-orange);
    text-decoration: none !important;
    font-size: 14px;
    line-height: 1;
    font-weight: 900;
}

.zamok-site-popup__button:hover {
    background: #241916;
}

.zamok-more-actions {
    display: flex;
    justify-content: center;
    margin-top: clamp(24px, 4vw, 42px);
}

@media (max-width: 640px) {
    .zamok-site-popup {
        padding: 16px;
    }

    .zamok-site-popup__content {
        padding: 28px 22px 24px;
    }

    .zamok-site-popup__media {
        aspect-ratio: 16 / 9;
    }
}

/* Match the full-width subpage header height used on kultura.mkchlohovec.sk. */
body:not(.home) .site-main > .zamok-page-hero,
body:not(.home) .zamok-tpl-hero,
body:not(.home) .zamok-story-hero,
body:not(.home) .zamok-archive-header {
    min-height: 500px !important;
    height: 500px !important;
}

body:not(.home) .site-main > .zamok-page-hero .zamok-page-hero__inner,
body:not(.home) .zamok-story-hero__content {
    padding-top: clamp(72px, 6.5vw, 96px) !important;
    padding-bottom: clamp(44px, 4.5vw, 66px) !important;
    text-align: center;
}

body:not(.home) .zamok-tpl-hero {
    padding: clamp(88px, 7.5vw, 108px) 24px clamp(46px, 4.5vw, 64px) !important;
}

body:not(.home) .site-main > .zamok-page-hero h1,
body:not(.home) .zamok-tpl-hero h1,
body:not(.home) .zamok-story-hero h1,
body:not(.home) .zamok-archive-header h1 {
    font-size: clamp(34px, 4.5vw, 58px) !important;
    line-height: 1.04 !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

body:not(.home) .zamok-tpl-hero p,
body:not(.home) .zamok-story-hero p:not(.zamok-eyebrow),
body:not(.home) .zamok-archive-header p:not(.zamok-eyebrow) {
    margin-top: 14px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    font-size: clamp(16px, 1.35vw, 19px) !important;
    line-height: 1.52 !important;
}

@media (max-width: 767px) {
    body:not(.home) .site-main > .zamok-page-hero,
    body:not(.home) .zamok-tpl-hero,
    body:not(.home) .zamok-story-hero,
    body:not(.home) .zamok-archive-header {
        min-height: 380px !important;
        height: 380px !important;
    }

    body:not(.home) .site-main > .zamok-page-hero .zamok-page-hero__inner,
    body:not(.home) .zamok-story-hero__content {
        padding-top: 82px !important;
        padding-bottom: 42px !important;
    }

    body:not(.home) .zamok-tpl-hero {
        padding: 86px 18px 44px !important;
    }

    body:not(.home) .site-main > .zamok-page-hero h1,
    body:not(.home) .zamok-tpl-hero h1,
    body:not(.home) .zamok-story-hero h1,
    body:not(.home) .zamok-archive-header h1 {
        font-size: clamp(31px, 9vw, 42px) !important;
    }
}
