/* GPI ticket block: align outer edge with film gallery */
.single-cinema_movies #gpi-tickets {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

/* Mobile: keep cinema logos and session links inside each card */
@media (max-width: 767px) {
  #gpi-tickets .cinema-city .cinema-link {
    box-sizing: border-box;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    gap: 8px !important;
    min-width: 0 !important;
    width: 100% !important;
  }
  #gpi-tickets .cinema-city .cinema-link img {
    min-width: 0 !important;
    max-width: 100% !important;
    justify-self: start;
  }
  #gpi-tickets .cinema-city .cinema-link .gpi-ticket-go {
    position: static !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    justify-self: end;
    white-space: nowrap;
  }
}

/* Coming soon: subtle poster zoom and title color on hover */
:is(#greitai-kinuose, #soon-in-cinemas) .vc_grid-item .vc_gitem-zone-a .vc_gitem-zone-img {
  transition: transform 500ms ease-in-out, filter 500ms ease-in-out;
  transform-origin: center center;
}
:is(#greitai-kinuose, #soon-in-cinemas) .vc_grid-item .vc_custom_heading > div {
  transition: color 300ms ease-in-out;
}
@media (hover: hover) and (pointer: fine) {
  :is(#greitai-kinuose, #soon-in-cinemas) .vc_grid-item:hover .vc_gitem-zone-a .vc_gitem-zone-img,
  :is(#greitai-kinuose, #soon-in-cinemas) .vc_grid-item:focus-within .vc_gitem-zone-a .vc_gitem-zone-img {
    transform: scale(1.04);
    filter: brightness(1.07);
  }
  :is(#greitai-kinuose, #soon-in-cinemas) .vc_grid-item:hover .vc_custom_heading > div,
  :is(#greitai-kinuose, #soon-in-cinemas) .vc_grid-item:focus-within .vc_custom_heading > div {
    color: #e5df00;
  }
}
@media (prefers-reduced-motion: reduce) {
  :is(#greitai-kinuose, #soon-in-cinemas) .vc_grid-item .vc_gitem-zone-a .vc_gitem-zone-img,
  :is(#greitai-kinuose, #soon-in-cinemas) .vc_grid-item .vc_custom_heading > div {
    transition: none;
  }
}

/* News article: desktop editorial layout */
@media (min-width: 768px) {
  body.single-post .inside-page-header {
    box-sizing: border-box;
    width: calc(100% - 64px);
    max-width: 1200px;
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 32px auto 0;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
  }
  body.single-post #content {
    box-sizing: border-box;
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding: 46px 24px 80px;
  }
  body.single-post #content article {
    max-width: 850px;
    margin: 0 auto;
    text-align: left;
  }
  body.single-post #content article h1 {
    font-size: clamp(32px, 3vw, 44px);
    line-height: 1.22;
    letter-spacing: -0.015em;
    margin: 0 0 32px;
  }
  body.single-post #content article p {
    font-size: 18px;
    line-height: 1.75;
    margin: 0 0 26px;
    text-align: left;
  }
  body.single-post #content article p:first-of-type {
    font-size: 20px;
    line-height: 1.65;
    color: #e8e7e9;
  }
  body.page-template-inside-blog .inside-page-header {
    height: 210px;
    background-position: center;
  }
}

/* News cards: consistent excerpts and hover interaction */
:is(#naujienos, .page-template-inside-blog) .vc_grid-item .vc_gitem-animated-block {
  overflow: hidden;
}
:is(#naujienos, .page-template-inside-blog) .vc_grid-item .vc_gitem-zone-img {
  transition: transform 500ms ease-in-out, filter 500ms ease-in-out;
  transform-origin: center center;
}
:is(#naujienos, .page-template-inside-blog) .vc_grid-item .vc_gitem-post-data-source-post_title a {
  transition: color 300ms ease-in-out;
}
:is(#naujienos, .page-template-inside-blog) .vc_grid-item .vc_gitem-post-data-source-post_title h4 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.page-template-inside-blog .news-post .vc_gitem-post-data-source-post_excerpt p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
@media (hover: hover) and (pointer: fine) {
  :is(#naujienos, .page-template-inside-blog) .vc_grid-item:hover .vc_gitem-zone-img,
  :is(#naujienos, .page-template-inside-blog) .vc_grid-item:focus-within .vc_gitem-zone-img {
    transform: scale(1.04);
    filter: brightness(1.07);
  }
  :is(#naujienos, .page-template-inside-blog) .vc_grid-item:hover .vc_gitem-post-data-source-post_title a,
  :is(#naujienos, .page-template-inside-blog) .vc_grid-item:focus-within .vc_gitem-post-data-source-post_title a {
    color: #e5df00 !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  :is(#naujienos, .page-template-inside-blog) .vc_grid-item .vc_gitem-zone-img,
  :is(#naujienos, .page-template-inside-blog) .vc_grid-item .vc_gitem-post-data-source-post_title a {
    transition: none;
  }
}