:root {
  --ts-green: #00a91b;
  --ts-green-dark: #027514;
  --ts-purple: #7d3fbd;
  --ts-red: #f10c1a;
  --ts-blue: #0648d9;
  --ts-ink: #12131a;
  --ts-muted: #626879;
  --ts-soft: #f5f7fb;
  --ts-white: #fff;
  --ts-border: rgba(18, 19, 26, 0.1);
  --ts-shadow: 0 24px 70px rgba(13, 26, 60, 0.16);
  --ts-radius: 28px;
  --ts-container: 1180px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--ts-ink);
  background: #fff;
  line-height: 1.6;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
.ts-container {
  width: min(var(--ts-container), calc(100% - 40px));
  margin: 0 auto;
}
.ts-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(135deg, var(--ts-ink), #25133e);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(18, 19, 26, 0.07);
}
.ts-header__inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.ts-brand img {
  width: 300px;
  max-height: 58px;
  object-fit: contain;
}
.ts-menu {
  display: flex;
  gap: 8px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ts-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  color: #fff;
  transition: 0.25s;
}
.ts-menu a:hover,
.ts-menu .current-menu-item a {
  background: linear-gradient(135deg, var(--ts-green), #39d95d);
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 169, 27, 0.24);
}
.ts-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 16px;
  background: #111;
  place-items: center;
  gap: 4px;
  padding: 12px;
}
.ts-menu-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  background: #fff;
  border-radius: 4px;
}
.ts-hero {
  position: relative;
  overflow: hidden;
}
.ts-hero--home {
  min-height: calc(100vh - 88px);
  display: flex;
  align-items: center;
  padding: 70px 0;
}
.ts-hero__bg,
.ts-page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}
.ts-hero__bg:after,
.ts-page-hero__bg:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      105deg,
      rgba(255, 255, 255, 0.67) 0%,
      rgba(255, 255, 255, 0.76) 43%,
      rgba(255, 255, 255, 0) 70%
    ),
    linear-gradient(180deg, rgba(0, 169, 27, 0.12), rgba(125, 63, 189, 0.14));
}
.ts-hero__wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 700px) 330px;
  align-items: end;
  gap: 60px;
}
.ts-pill,
.ts-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  border-radius: 999px;
  padding: 9px 15px;
  background: rgba(241, 12, 26, 0.1);
  color: var(--ts-red);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}
.ts-festival-logo {
  width: min(610px, 100%);
  margin: 28px 0 10px;
}
.ts-edition {
  margin: 0 0 12px;
  font-size: clamp(24px, 4vw, 46px);
  font-family: Montserrat, sans-serif;
  font-weight: 900;
  color: var(--ts-purple);
}
.ts-hero h1,
.ts-page-hero h1 {
  margin: 0;
  line-height: normal;
  font-family: Montserrat, sans-serif;
  font-size: clamp(46px, 7vw, 60px);
  max-width: 850px;
}
.ts-lead,
.ts-page-hero p {
  font-size: clamp(18px, 2vw, 25px);
  color: #353948;
  max-width: 680px;
  margin: 22px 0 0;
  font-weight: 700;
}
.ts-hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.ts-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.25s;
}
.ts-btn--primary {
  background: linear-gradient(135deg, var(--ts-green), #33d957);
  color: #fff;
  box-shadow: 0 18px 40px rgba(0, 169, 27, 0.28);
}
.ts-btn--ghost {
  background: #fff;
  color: var(--ts-ink);
  box-shadow: inset 0 0 0 1px var(--ts-border);
}
.ts-btn:hover {
  transform: translateY(-2px);
}
.ts-hero__card {
  padding: 30px;
  border-radius: var(--ts-radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--ts-shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
  text-align: center;
}
.ts-hero__card strong {
  display: block;
  font-size: 30px;
  line-height: 1;
  color: var(--ts-green);
  font-family: Montserrat, sans-serif;
  font-weight: 700;
}
.ts-hero__card span {
  display: block;
  margin-top: 6px;
  color: var(--ts-muted);
  font-weight: 800;
  font-size: 18px;
}
.ts-section {
  padding: 94px 0;
  position: relative;
}
.ts-intro {
  background: #fff;
}
.ts-intro__grid,
.ts-feature__grid,
.ts-video__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.ts-section h2 {
  font-family: Montserrat, sans-serif;
  font-size: clamp(34px, 4vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 14px 0 0;
  max-width: 800px;
}
.ts-section-head {
  margin-bottom: 34px;
}
.ts-section-head--center {
  text-align: center;
  display: grid;
  place-items: center;
}
.ts-intro p,
.ts-feature p,
.ts-video__grid p {
  font-size: 18px;
  color: var(--ts-muted);
  font-weight: 600;
}
.ts-days {
  background: linear-gradient(180deg, #f7fbf8, #fff);
}
.ts-day-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.ts-day-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 28px;
  border-radius: 32px;
  background: #fff;
  box-shadow: var(--ts-shadow);
  border: 1px solid var(--ts-border);
  transition: 0.28s;
}
.ts-day-card:before {
  content: "";
  position: absolute;
  inset: auto -20% -50% -20%;
  height: 150px;
  background: linear-gradient(135deg, var(--ts-green), var(--ts-purple));
  transform: rotate(-6deg);
  opacity: 0.12;
}
.ts-day-card:hover {
  transform: translateY(-8px);
}
.ts-day-card span {
  font-size: 24px;
  color: var(--ts-red);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ts-day-card strong {
  display: block;
  margin-top: 18px;
  font-size: 34px;
  line-height: 1.05;
  font-family: Montserrat, sans-serif;
}
.ts-day-card em {
  position: absolute;
  right: 24px;
  bottom: 24px;
  font-style: normal;
  font-size: 44px;
  font-weight: 900;
  color: rgba(18, 19, 26, 0.3);
}
.ts-feature img {
  border-radius: 36px;
  box-shadow: var(--ts-shadow);
  aspect-ratio: 1.25;
  object-fit: cover;
}
.ts-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--ts-green);
  font-weight: 900;
}
.ts-page-hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}
.ts-page-hero__bg:after {
  background: linear-gradient(
    105deg,
    rgba(18, 19, 26, 0.84),
    rgba(18, 19, 26, 0.62),
    rgba(18, 19, 26, 0.12)
  );
}
.ts-page-hero__content {
  position: relative;
  z-index: 2;
  color: #fff;
}
.ts-page-hero .ts-pill {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.ts-festival-logo--small {
  width: min(480px, 100%);
  filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.24));
}
.ts-page-hero p {
  color: rgba(255, 255, 255, 0.88);
}
.ts-anchor-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.ts-anchor-nav a {
  padding: 13px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(14px);
}
.ts-program-section {
  background: radial-gradient(
      circle at top left,
      rgba(0, 169, 27, 0.1),
      transparent 38%
    ),
    #fff;
}
.ts-program-timeline {
  display: grid;
  gap: 28px;
}
.ts-program-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  padding: 28px;
  border-radius: 34px;
  background: #fff;
  box-shadow: var(--ts-shadow);
  border: 1px solid var(--ts-border);
}
.ts-date {
  border-radius: 26px;
  background: linear-gradient(160deg, var(--ts-red), var(--ts-purple));
  color: #fff;
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 160px;
}
.ts-date span {
  font-family: Montserrat, sans-serif;
  font-size: 64px;
  line-height: 1;
  font-weight: 900;
}
.ts-date em {
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 900;
}
.ts-program-card h3 {
  font-size: 34px;
  font-family: Montserrat, sans-serif;
  margin: 0 0 10px;
  line-height: 1.05;
}
.ts-location {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ts-muted);
  font-weight: 900;
}
.ts-location img {
  width: 21px;
}
.ts-program-card p {
  margin: 6px 0;
  color: #333846;
  font-weight: 600;
}
.ts-program-card small {
  display: block;
  margin-top: 14px;
  color: var(--ts-green-dark);
  font-weight: 900;
}
.ts-press {
  background: var(--ts-soft);
}
.ts-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.ts-news-card {
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--ts-border);
  box-shadow: 0 16px 40px rgba(13, 26, 60, 0.08);
}
.ts-news-card time {
  color: var(--ts-red);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.1em;
}
.ts-news-card h3 {
  font-size: 24px;
  line-height: 1.12;
  margin: 12px 0;
  font-family: Montserrat, sans-serif;
}
.ts-news-card p {
  color: var(--ts-muted);
  font-weight: 600;
}
.ts-gallery {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
}
.ts-gallery figure {
  margin: 0;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  background: #ddd;
  min-height: 240px;
  box-shadow: 0 12px 34px rgba(13, 26, 60, 0.12);
}
.ts-gallery__large {
  grid-row: span 2;
}
.ts-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.35s;
}
.ts-gallery figure:hover img {
  transform: scale(1.04);
}
.ts-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.ts-page-hero {
  padding: 90px 0 60px;
  background: linear-gradient(135deg, #f7efe2, #ffffff);
}

.ts-eyebrow {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #b9822f;
}

.ts-page-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 46px);
  line-height: 1;
}

.ts-page-hero p {
  max-width: 640px;
  font-size: 20px;
  line-height: 1.6;
}

.ts-press-list {
  padding: 70px 0;
}

.ts-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.ts-post-card {
  overflow: hidden;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0,0,0,.09);
}

.ts-post-card__image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eee;
}

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

.ts-post-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e7d5b8, #f8efe0);
}

.ts-post-card__body {
  padding: 26px;
}

.ts-meta {
  margin: 0 0 10px;
  font-size: 13px;
  color: #b9822f;
  font-weight: 700;
}

.ts-post-card h2 {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.2;
}

.ts-post-card h2 a {
  color: inherit;
  text-decoration: none;
}

.ts-post-card p {
  color: #555;
  line-height: 1.6;
}

.ts-read-more,
.ts-back-link {
  display: inline-flex;
  margin-top: 12px;
  color: #b9822f;
  font-weight: 400;
  text-decoration: none;
}

.ts-pagination {
  margin-top: 50px;
  display: flex;
  gap: 10px;
}

.ts-pagination .page-numbers {
  padding: 10px 15px;
  border-radius: 999px;
  background: #f4eadb;
  color: #1d1d1d;
  text-decoration: none;
}

.ts-pagination .current {
  background: #b9822f;
  color: #fff;
}

.ts-single {
  padding: 70px 0;
}

.ts-single__article {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
}

.ts-single__image {
  overflow: hidden;
  border-radius: 32px;
  margin-bottom: 36px;
}

.ts-single__image img {
  width: 100%;
  height: auto;
  display: block;
}

.ts-single__content h1 {
  margin: 18px 0 24px;
  font-size: clamp(30px, 5vw, 30px);
  line-height: 1.05;
}

.ts-entry {
  font-size: 19px;
  line-height: 1.8;
}

@media (max-width: 900px) {
  .ts-post-grid {
    grid-template-columns: 1fr;
  }

  .ts-page-hero {
    padding: 60px 0 40px;
  }
}
.ts-gallery figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  font-weight: 900;
}
.ts-video-section {
  background: linear-gradient(135deg, var(--ts-ink), #25133e);
  color: #fff;
}
.ts-video__grid p {
  color: rgba(255, 255, 255, 0.72);
}
.ts-video-card {
  border-radius: 34px;
  padding: 14px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.16),
    rgba(255, 255, 255, 0.04)
  );
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.ts-video-card iframe{
    border-radius: 20px;
    display: block;
}
.ts-video-placeholder {
  aspect-ratio: 16/10;
  border-radius: 26px;
  display: grid;
  place-items: center;
  text-align: center;
  background: linear-gradient(
      135deg,
      rgba(0, 169, 27, 0.7),
      rgba(125, 63, 189, 0.85)
    ),
    url("../images/big-image-te-salut.jpg")
      center/cover;
  color: #fff;
}
.ts-video-placeholder span {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--ts-red);
  font-size: 28px;
}
.ts-video-placeholder strong {
  display: block;
  font-size: 28px;
  font-family: Montserrat, sans-serif;
}
.ts-video-placeholder em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.8);
}
.ts-content-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 44px;
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--ts-shadow);
}
.ts-footer {
  background: #090a0f;
  color: #fff;
  padding: 52px 0;
}
.ts-footer__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}
.ts-footer__logo {
  width: 320px;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.3));
}
.ts-footer p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 0;
}
.ts-footer__links {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.ts-footer__links span {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 600;
}
.ts-footer__links a {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 500;
}

/* ================================
   Festival gallery
================================ */

.ts-gallery-content {
    width: 100%;
}

.ts-gallery-content .gallery {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-template-rows: repeat(2, 310px);
    gap: 24px;

    margin: 0;
}

.ts-gallery-content .gallery-item {
    width: auto !important;
    max-width: none;
    margin: 0 !important;

    overflow: hidden;
    border-radius: 30px;

    background: #f2f2f2;
    box-shadow: 0 20px 45px rgba(15, 16, 22, 0.08);
}

/* Prima imagine ocupă două rânduri */
.ts-gallery-content .gallery-item:first-child {
    grid-row: 1 / span 2;
}

.ts-gallery-content .gallery-icon {
    width: 100%;
    height: 100%;
}

.ts-gallery-content .gallery-icon a {
    position: relative;

    display: block;
    width: 100%;
    height: 100%;

    overflow: hidden;
    cursor: zoom-in;
}

.ts-gallery-content .gallery img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
    border: 0 !important;

    transition:
        transform 0.55s ease,
        filter 0.35s ease;
}

.ts-gallery-content .gallery-icon a::after {
    content: "↗";

    position: absolute;
    top: 22px;
    right: 22px;

    display: grid;
    place-items: center;

    width: 46px;
    height: 46px;

    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #101116;

    font-size: 18px;
    font-weight: 700;

    opacity: 0;
    transform: translateY(8px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.ts-gallery-content .gallery-icon a:hover img {
    transform: scale(1.045);
    filter: brightness(0.92);
}

.ts-gallery-content .gallery-icon a:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* Caption peste imagine */
.ts-gallery-content .gallery-caption {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 2;

    padding: 18px 22px;

    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    color: #101116;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;

    text-align: left;
}

.ts-gallery-content .gallery-item {
    position: relative;
}

/* WordPress adaugă uneori clearfix-uri */
.ts-gallery-content br {
    display: none;
}

/* Tablet */
@media (max-width: 1100px) {
    .ts-gallery-content .gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(2, 260px);
    }

    .ts-gallery-content .gallery-item:first-child {
        grid-row: 1 / span 2;
    }

    .ts-gallery-content .gallery-item:nth-child(4) {
        grid-column: 2;
    }
}

/* Mobile */
@media (max-width: 700px) {
    .ts-gallery-content .gallery {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        gap: 16px;
    }

    .ts-gallery-content .gallery-item,
    .ts-gallery-content .gallery-item:first-child,
    .ts-gallery-content .gallery-item:nth-child(4) {
        grid-column: auto;
        grid-row: auto;

        height: 280px;
        border-radius: 22px;
    }

    .ts-gallery-content .gallery-caption {
        left: 16px;
        right: 16px;
        bottom: 16px;

        padding: 14px 16px;

        font-size: 16px;
        border-radius: 16px;
    }
}

/* ================================
   Gallery lightbox
================================ */

.ts-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 100px;
    background: rgba(8, 9, 13, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.ts-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ts-lightbox__content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: min(1200px, 100%);
    height: 100%;
}

.ts-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 150px);
    border-radius: 22px;
    object-fit: contain;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.45);
}

.ts-lightbox__caption {
    margin: 18px 0 0;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
}

.ts-lightbox__caption:empty {
    display: none;
}

.ts-lightbox__counter {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
}

.ts-lightbox__close,
.ts-lightbox__prev,
.ts-lightbox__next {
    position: absolute;
    z-index: 2;
    display: grid;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.ts-lightbox__close:hover,
.ts-lightbox__prev:hover,
.ts-lightbox__next:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(1.06);
}

.ts-lightbox__close {
    top: 24px;
    right: 24px;
    place-items: center;
    width: 52px;
    height: 52px;
    font-size: 34px;
    line-height: 1;
}

.ts-lightbox__prev,
.ts-lightbox__next {
    top: 50%;
    line-height: normal;
    width: 58px;
    height: 58px;
    font-size: 44px;
    line-height: 1;
    transform: translateY(-50%);
}

.ts-lightbox__prev:hover,
.ts-lightbox__next:hover {
    transform: translateY(-50%) scale(1.06);
}

.ts-lightbox__prev {
    left: 26px;
}

.ts-lightbox__next {
    right: 26px;
}

body.ts-lightbox-open {
    overflow: hidden;
}

.ts-intro li{
    font-size: 20px;
}

/* ========================================
   Premium single post
======================================== */

.ts-single-page {
    background: #fff;
}

.ts-single-hero {
    padding: 90px 0 55px;
    background:
        radial-gradient(circle at top left, rgba(244, 205, 149, 0.24), transparent 38%),
        linear-gradient(180deg, #fffaf4 0%, #ffffff 100%);
}

.ts-single-hero__inner {
    max-width: 980px;
}

.ts-single-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 42px;

    color: #b47a24;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.02em;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.ts-single-back:hover {
    color: #8f5d16;
    transform: translateX(-4px);
}

.ts-single-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;

    margin-bottom: 22px;

    color: #a86f1d;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ts-single-meta__separator {
    opacity: 0.5;
}

.ts-single-title {
    max-width: 920px;
    margin: 0;

    color: #111219;
    font-size: clamp(46px, 7vw, 48px);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.ts-single-lead {
    max-width: 760px;
    margin-top: 30px;

    color: #555862;
    font-size: clamp(20px, 2.2vw, 26px);
    line-height: 1.55;
}

.ts-single-lead p {
    margin: 0;
}

.ts-single-featured {
    margin: 0 0 70px;
}

.ts-single-featured__image {
    display: block;
    width: 100%;
    max-height: 720px;

    object-fit: cover;
    border-radius: 34px;

    box-shadow: 0 30px 90px rgba(17, 18, 25, 0.14);
}

.ts-single-featured figcaption {
    margin-top: 14px;

    color: #777a84;
    font-size: 14px;
    text-align: center;
}

.ts-single-layout {
    display: grid;
    grid-template-columns: 110px minmax(0, 760px);
    justify-content: center;
    gap: 50px;

    padding-bottom: 90px;
}

.ts-single-sidebar__sticky {
    position: sticky;
    top: 120px;
}

.ts-single-sidebar__label {
    display: block;
    margin-bottom: 15px;

    color: #8a8d95;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ts-single-share {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ts-single-share a {
    display: grid;
    place-items: center;

    width: 46px;
    height: 46px;

    border: 1px solid #e7e2db;
    border-radius: 50%;

    background: #fff;
    color: #15161d;

    font-size: 14px;
    font-weight: 800;
    text-decoration: none;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.ts-single-share a:hover {
    border-color: #b9822f;
    background: #b9822f;
    color: #fff;
    transform: translateY(-3px);
}

.ts-single-content {
    color: #2e3037;
    font-size: 19px;
    line-height: 1.85;
}

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

.ts-single-content h2,
.ts-single-content h3,
.ts-single-content h4 {
    color: #111219;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.ts-single-content h2 {
    margin: 2.2em 0 0.8em;
    font-size: clamp(32px, 4vw, 46px);
}

.ts-single-content h3 {
    margin: 2em 0 0.7em;
    font-size: 30px;
}

.ts-single-content p {
    margin: 0 0 1.5em;
}

.ts-single-content a {
    color: #a96d18;
}

.ts-single-content blockquote {
    margin: 50px 0;
    padding: 34px 38px;

    border-left: 5px solid #c48a35;
    border-radius: 0 24px 24px 0;

    background: #fff7ec;
    color: #17181e;

    font-size: 24px;
    font-weight: 650;
    line-height: 1.5;
}

.ts-single-content blockquote p:last-child {
    margin-bottom: 0;
}

.ts-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 22px;
}

.ts-single-content ul,
.ts-single-content ol {
    margin: 0 0 1.6em;
    padding-left: 1.4em;
}

.ts-single-content li {
    margin-bottom: 0.55em;
}

.ts-single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 48px;
    padding-top: 30px;

    border-top: 1px solid #ece8e2;
}

.ts-single-tags a {
    padding: 9px 14px;

    border-radius: 999px;

    background: #f5eee4;
    color: #6f4b18;

    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.ts-single-footer {
    padding: 0 0 90px;
}

.ts-single-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;

    padding-top: 40px;
    border-top: 1px solid #ece8e2;
}

.ts-single-navigation__item span {
    display: block;
    margin-bottom: 10px;

    color: #999ba3;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ts-single-navigation__item a {
    color: #111219;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    text-decoration: none;
}

.ts-single-navigation__item--next {
    text-align: right;
}

.ts-related-posts {
    padding: 90px 0;
    background: #f8f4ee;
}

.ts-related-posts__heading {
    margin-bottom: 38px;
}

.ts-related-posts__heading h2 {
    margin: 10px 0 0;
    color: #111219;
    font-size: clamp(40px, 5vw, 52px);
    line-height: 1;
    letter-spacing: -0.04em;
}

.ts-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.ts-related-card {
    overflow: hidden;

    border-radius: 26px;
    background: #fff;

    box-shadow: 0 22px 60px rgba(17, 18, 25, 0.08);
}

.ts-related-card__image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;

    background: #e9e3da;
}

.ts-related-card__image img,
.ts-related-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ts-related-card__image img {
    transition: transform 0.45s ease;
}

.ts-related-card:hover .ts-related-card__image img {
    transform: scale(1.045);
}

.ts-related-card__body {
    padding: 24px;
}

.ts-related-card__date {
    margin: 0 0 10px;

    color: #b17a28;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ts-related-card h3 {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.2;
}

.ts-related-card h3 a {
    color: #111219;
    text-decoration: none;
}

.ts-related-card__body > p:not(.ts-related-card__date) {
    color: #666973;
    line-height: 1.65;
}

.ts-related-card__link {
    display: inline-flex;
    margin-top: 8px;
    color: #a96d18;
    font-weight: 400;
    text-decoration: none;
}

@media (max-width: 1000px) {
    .ts-single-layout {
        grid-template-columns: 1fr;
        max-width: 780px;
    }
    .ts-single-sidebar {
        order: 2;
    }
    .ts-single-sidebar__sticky {
        position: static;
    }
    .ts-single-sidebar__label {
        display: none;
    }
    .ts-single-share {
        flex-direction: row;
    }
    .ts-related-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .ts-single-hero {
        padding: 60px 0 38px;
    }
    .ts-single-back {
        margin-bottom: 30px;
    }
    .ts-single-title {
        font-size: clamp(42px, 13vw, 64px);
    }
    .ts-single-featured {
        margin-bottom: 44px;
    }
    .ts-single-featured__image {
        min-height: 280px;
        border-radius: 24px;
    }
    .ts-single-layout {
        gap: 30px;
        padding-bottom: 60px;
    }
    .ts-single-content {
        font-size: 17px;
        line-height: 1.75;
    }
    .ts-single-content blockquote {
        margin: 38px 0;
        padding: 26px 24px;
        font-size: 21px;
    }
    .ts-single-navigation {
        grid-template-columns: 1fr;
    }
    .ts-single-navigation__item--next {
        text-align: left;
    }
    .ts-related-posts {
        padding: 65px 0;
    }
    .ts-related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .ts-lightbox {
        padding: 70px 16px 90px;
    }

    .ts-lightbox__image {
        max-height: calc(100vh - 180px);
        border-radius: 16px;
    }

    .ts-lightbox__close {
        top: 14px;
        right: 14px;

        width: 46px;
        height: 46px;
    }

    .ts-lightbox__prev,
    .ts-lightbox__next {
        top: auto;
        bottom: 20px;

        width: 50px;
        height: 50px;

        transform: none;
    }

    .ts-lightbox__prev:hover,
    .ts-lightbox__next:hover {
        transform: scale(1.06);
    }

    .ts-lightbox__prev {
        left: calc(50% - 62px);
    }

    .ts-lightbox__next {
        right: calc(50% - 62px);
    }
}

@media (max-width: 900px) {
  .ts-menu-toggle {
    display: grid;
  }
  .ts-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 76px;
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--ts-shadow);
    padding: 18px;
    display: none;
  }
  .ts-nav.is-open {
    display: block;
  }
  .ts-menu {
    display: grid;
  }
  .ts-brand img {
    width: 230px;
  }
  .ts-hero__wrap,
  .ts-intro__grid,
  .ts-feature__grid,
  .ts-video__grid {
    grid-template-columns: 1fr;
  }
  .ts-hero__card {
    max-width: 380px;
  }
  .ts-day-grid,
  .ts-news-grid {
    grid-template-columns: 1fr;
  }
  .ts-program-card {
    grid-template-columns: 1fr;
  }
  .ts-date {
    min-height: 120px;
  }
  .ts-gallery {
    grid-template-columns: 1fr;
  }
  .ts-gallery__large {
    grid-row: auto;
  }
  .ts-footer__grid {
    grid-template-columns: 1fr;
  }
  .ts-page-hero {
    min-height: 560px;
  }
  .ts-section {
    padding: 70px 0;
  }
}
@media (max-width: 520px) {
  .ts-container {
    width: min(100% - 28px, var(--ts-container));
  }
  .ts-hero--home {
    padding: 52px 0;
  }
  .ts-hero h1,
  .ts-page-hero h1 {
    font-size: 46px;
  }
  .ts-hero__bg:after {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.96),
      rgba(255, 255, 255, 0.9)
    );
  }
  .ts-program-card h3 {
    font-size: 28px;
  }
  .ts-footer__logo {
    width: 240px;
  }
}
