.ry-page {
  --ry-plum: #321d32;
  --ry-ink: #342b35;
  --ry-muted: #68636c;
  --ry-gold: #a66b1e;
  color: var(--ry-ink);
  background: #fff;
}

.ry-page * { box-sizing: border-box; }

.ry-wrap {
    width: min(100% - 3rem, 92rem);
    margin-inline: auto;
}

.ry-page h1,
.ry-page h2,
.ry-page h3 {
  font-family: "Source Serif 4", Georgia, serif;
  color: var(--ry-plum);
  line-height: 1.12;
}

.ry-page h1 {
  font-size: clamp(3.4rem, 7vw, 6rem);
  margin: .12em 0;
}

.ry-page h2 {
  font-size: clamp(2rem, 3.3vw, 3.3rem);
  margin: .1em 0;
}

.ry-page p { line-height: 1.55; }
.ry-page a { color: #63234d; }

.ry-kicker {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .73rem;
  font-weight: 700;
  color: var(--ry-gold);
  margin: 0;
}

/* HERO */

/* HERO */

.ry-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: center;
    min-height: 330px;
    gap: 24px;
    overflow: hidden;
}

.ry-hero__content {
    position: relative;
    z-index: 2;
}

.ry-hero h1 {
    font-size: clamp(3.5rem, 5.2vw, 5rem);
    white-space: nowrap;
}

.ry-hero__content > p:last-child {
    max-width: 470px;
    color: var(--ry-muted);
    font-size: 1.16rem;
}

.ry-hero__art {
    position: relative;
    height: 330px;
    min-width: 0;
    overflow: hidden;

-webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, .5) 16%,
    #000 36%
);

mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, .5) 16%,
    #000 36%
);
}

.ry-hero__art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 65% center;
}
.ry-hero__species {
  width: 100%;
  max-width: none;
  height: 330px;
}

.ry-hero__species .ry-photo {
  height: 100%;
  aspect-ratio: auto;
}
.ry-hero__species .ry-species__name { display: none; }

/* BIOLOGICKÝ ROK */

.ry-year {
  text-align: center;
  border-top: 1px solid #e7e2e3;
  border-bottom: 1px solid #e7e2e3;
  padding: 32px 0 0;
}

.ry-year__intro {
  max-width: 740px;
  margin: 8px auto 24px;
  color: var(--ry-muted);
}

.ry-timeline {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-color: #d4c8cc transparent;
}



.ry-timeline__inner {
  min-width: 950px;
  position: relative;
  overflow: hidden;
}

.ry-months {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  list-style: none;
  padding: 0;
  margin: 0 0 -105px;
  position: relative;
  z-index: 1;
}

.ry-months li {
  height: 105px;
  position: relative;
  color: #88818a;
  font-size: .8rem;
}


.ry-months li::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 36px;
  width: 1px;
  height: 65px;
  background: #d7d3d6;
}

.ry-months li span,
.ry-months li a {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  min-height: 36px;
}

.ry-months .is-active span,
.ry-months .is-active a {
  border-radius: 50%;
  background: var(--ry-plum);
  color: #fff;
}

.ry-months .is-active::after { background: var(--ry-gold); }


.ry-branch {
  display: block;
  width: 100%;
  height: auto;
transform: translateY(-45px);
margin-bottom: -140px;
}

.ry-seasons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  color: #77717c;
  font-size: .8rem;
  margin-top: -25px;
  position: relative;
  padding-bottom: 12px;
}

.ry-seasons span + span {
  border-left: 1px solid #ddd5d9;
}

.ry-timeline__note {
  display: flex;
  justify-content: space-between;
  color: #827b84;
  font-size: .8rem;
  margin: 0;
}

/* DRUHY A FOTOGRAFIE */

.ry-section {
  padding: 44px 0;
  border-bottom: 1px solid #e7e2e3;
}

.ry-section__heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 22px;
  margin-bottom: 20px;
}

.ry-section__heading > p {
  max-width: 460px;
  color: var(--ry-muted);
  font-size: .87rem;
}



.ry-featured,
.ry-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.ry-species {
  display: block;
  text-decoration: none;
  min-width: 0;
}

.ry-species:hover .ry-species__name i {
  text-decoration: underline;
}

.ry-photo {
  display: flex;
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #f3efe9;
  border-radius: 2px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  color: #8b8181;
  text-align: center;
  font-size: .78rem;
}

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

.ry-photo__empty {
  display: none;
  padding: 10px;
}

.ry-photo:not(:has(img:not([hidden]))) .ry-photo__empty {
  display: block;
}

.ry-species__name {
  display: block;
  padding-top: 8px;
  color: var(--ry-plum);
}

.ry-species__name i {
  display: block;
  font: italic 1.05rem "Source Serif 4", Georgia, serif;
}

.ry-species__name small {
  display: block;
  color: var(--ry-muted);
  font-size: .77rem;
}

.ry-gallery .ry-species__plants {
  display: flex;
  align-items: flex-start;
  gap: .3rem;
  margin-top: 5px;
  color: #827b84;
  font-size: .72rem;
  line-height: 1.45;
}

.ry-gallery .ry-species__leaf {
  flex: 0 0 .85rem;
  width: .85rem;
  height: .85rem;
  margin-top: .08rem;
  opacity: .7;
  color: #78836f;
}

.ry-gallery .ry-species__plants > span {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  font-weight: 600;
}

.ry-gallery .ry-species__plants-more {
  font-style: italic;
  font-weight: 400;
  white-space: nowrap;
  color: #918a93;
  margin-left: .25em;
}
/* SKRYTÝ MOTÝLÍ ROK */

.ry-stories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.ry-story {
  border-right: 1px solid #e8e2e5;
  padding-right: 16px;
  display: flex;
  flex-direction: column;
}

.ry-story:last-child { border: 0; }

.ry-story__text {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.ry-story h3 {
  font-size: 1.36rem;
  margin: 16px 0 0;
}

.ry-story p {
  color: var(--ry-muted);
  font-size: .86rem;
}

.ry-story__link {
  margin-top: 16px;
  align-self: flex-start;
  border: 1px solid #b991a9;
  border-radius: 3px;
  padding: 9px 12px;
  text-decoration: none;
  font-size: .8rem;
}

.ry-story__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.ry-story__detail {
  min-width: 0;
  margin: 0;
}

.ry-story__detail .ry-photo {
  aspect-ratio: 3 / 2;
}

.ry-story__detail figcaption {
  padding-top: 6px;
  line-height: 1.3;
}

.ry-story__detail strong,
.ry-story__detail small {
  display: block;
}

.ry-story__detail strong {
  font-size: .8rem;
  color: var(--ry-plum);
}

.ry-story__detail small {
  margin-top: 2px;
  font-size: .73rem;
  color: var(--ry-muted);
}

.ry-gallery { row-gap: 24px; }

/* ZÁVER */

/* ZÁVER – DUB */

/* ZÁVER – DUB */

.ry-oak {
    background: #faf9f7;
    overflow: hidden;
}

.ry-oak__inner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 390px;
padding-block: 0;
}

.ry-oak__content {
    position: relative;
    z-index: 2;
    width: 54%;
    max-width: 580px;
}

.ry-oak__content h2 {
    max-width: 550px;
}

.ry-oak p:not(.ry-kicker) {
    color: var(--ry-muted);
}

.ry-oak__image {
    position: absolute;
    z-index: 1;
    right: 0;
   top: 0;
bottom: 0;
width: 53%;
height: 100%;
    overflow: hidden;
   
}

.ry-oak__image img {
    display: block;
    width: 110%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    transform: translateX(0);
}

@media (max-width: 760px) {
    .ry-oak__inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-block: 38px;
    }

    .ry-oak__image {
        height: auto;
        aspect-ratio: 3 / 2;
    }
}
.ry-oak p:not(.ry-kicker) { color: var(--ry-muted); }

.ry-button {
  display: inline-block;
  text-decoration: none;
  background: var(--ry-plum);
  color: #fff !important;
  padding: 13px 23px;
  border-radius: 4px;
}

.ry-button--outline {
  background: transparent;
  color: #63234d !important;
  border: 1px solid #b991a9;
}

.ry-ending {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-block: 12px 28px;
    padding: 26px 32px;
    border: 1px solid #e7e2e3;
    border-radius: 5px;
    overflow: hidden;
}

.ry-ending h2 {
    font-size: clamp(1.7rem, 2.5vw, 2.5rem);
}

.ry-ending p {
    margin: 5px 0 0;
    color: var(--ry-muted);
}

.ry-ending > div,
.ry-ending > a {
    position: relative;
    z-index: 1;
}

@media (max-width: 760px) {
    .ry-ending {
        display: block;
        padding: 24px;
    }

    .ry-ending .ry-button {
        margin-top: 18px;
    }
}

/* MOBIL */

@media (max-width: 760px) {
    .ry-wrap {
        width: min(100% - 2rem, 40rem);
    }


  .ry-hero {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 38px;
  }

  .ry-hero h1 { font-size: 3.55rem; }
  .ry-hero__art { min-height: 190px; }
  .ry-hero__species .ry-photo { height: 185px; }

  .ry-year { padding-top: 28px; }

  .ry-timeline {
    margin-inline: -17px;
    padding-inline: 17px;
  }

  .ry-timeline__inner { min-width: 1100px; }
  .ry-months { margin-bottom: -95px; }
  .ry-months li { height: 125px; }
  .ry-months li::after { height: 80px; }
  .ry-timeline__note span { max-width: 130px; }

  .ry-section__heading { display: block; }

  .ry-featured,
  .ry-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .ry-stories { display: block; }

 .ry-story {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-right: 0;
  border-bottom: 1px solid #e8e2e5;
  padding: 20px 0;
}

  .ry-story .ry-photo { aspect-ratio: 1; }
  .ry-story .ry-species__name { padding-top: 5px; }

  .ry-story h3 {
    margin: 0;
    font-size: 1.25rem;
  }

  .ry-story p { margin: 8px 0; }



  .ry-ending { display: block; }
  .ry-ending .ry-button { margin-top: 12px; }
}

@media (min-width: 761px) {
    .ry-hero {
        display: grid;
        grid-template-columns: 44% 56%;
        gap: 0;
        min-height: 330px;
        overflow: visible;
    }

    .ry-hero__content {
        z-index: 2;
    }

    .ry-hero__art {
        width: 100%;
        height: 330px;
        min-height: 0;
        margin: 0;
        align-self: stretch;
        overflow: hidden;
    }

    .ry-hero__art img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 65% center;
    }
}

/* Klikateľné mesiace */
.ry-months li a {
    position: relative;
    z-index: 2;
    color: var(--ry-plum);
    text-decoration: none;
    border-radius: 50%;
}

.ry-months li a:hover {
    background: #f3efe9;
    text-decoration: none;
}

.ry-months .is-active a,
.ry-months .is-active a:hover {
    background: var(--ry-plum);
    color: #fff;
}

.ry-months li a:focus-visible {
    outline: 2px solid var(--ry-gold);
    outline-offset: 3px;
}

/* Októbrová ilustrácia trnky */
.ry-oak--trnka .ry-oak__image img {
    width: 100%;
    object-fit: contain;
}

@media (max-width: 760px) {
    .ry-oak--trnka .ry-oak__inner {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .ry-oak--trnka .ry-oak__content {
        width: 100%;
    }

    .ry-oak--trnka .ry-oak__image {
        position: relative;
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 1;
    }
}