.format-grid .format-tilt {
  min-width: 0;
  container-type: inline-size;
  perspective: 1000px;
}
.format-grid .format-tilt:last-child {
  grid-column: 1 / -1;
  width: min(100%, 730px);
  justify-self: center;
}
.format-grid .format-card {
  height: 100%;
  min-height: 59.5cqi;
  max-width: none;
  grid-template-columns: minmax(0, 54fr) minmax(0, 46fr);
}
.format-poster {
  position: relative;
  overflow: hidden;
  background: #171411;
}
.format-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
}
.format-poster .format-photo-uncensored {
  scale: 1.07;
  transform-origin: right center;
  object-position: right center;
}
.format-grid .format-copy h2 {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(22px, 5.1cqi, 36px);
}
.detail-poster {
  display: block;
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
  object-position: var(--photo-position, center 15%);
}
.format-detail-hero .hand-note {
  width: fit-content;
  max-width: 100%;
  margin: 5px 3% 26px auto;
  transform: translateY(-.65em) rotate(-5deg);
  transform-origin: right center;
  text-align: right;
  text-wrap: balance;
}
[data-format="bez-cenzury"] .format-detail-hero .hand-note {
  margin-right: 7%;
  transform: translateY(-.2em) rotate(-5deg);
}
.format-detail-fact {
  font-weight: 700;
  margin: 0 0 20px;
}
.format-detail-hero .detail-poster {
  max-width: none;
}
.format-tilt :is(.format-poster, .corporate-teaser-image) img {
  filter: grayscale(1);
}
.format-tilt:focus-within :is(.format-poster, .corporate-teaser-image) img {
  filter: grayscale(0);
}
.format-tilt:focus-within > :is(.format-card, .corporate-teaser-image) {
  border-color: var(--gold);
}
.formats-page .corporate-teaser {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 26px;
}
.corporate-teaser-copy {
  text-align: left;
}
.corporate-teaser-heading {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 52px;
}
.corporate-teaser-heading h2 {
  margin-bottom: 0;
}
.corporate-teaser-copy .hand-note {
  position: absolute;
  top: 100%;
  left: calc(48% + 1.25em);
  margin: 0;
  white-space: nowrap;
  transform: translateY(calc(-54% - .22em)) rotate(-10deg);
  transform-origin: 72% center;
}
.corporate-teaser .corporate-teaser-copy p {
  margin-inline: 0;
}
.corporate-teaser-visual {
  width: min(86%, 575px);
  justify-self: center;
  display: grid;
  gap: 22px;
  justify-items: center;
}
.corporate-teaser-visual .format-tilt {
  width: 100%;
  perspective: 1000px;
}
.corporate-teaser-visual .corporate-teaser-image {
  width: 100%;
  aspect-ratio: 1 / .595;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.corporate-teaser-visual .corporate-teaser-image img {
  height: 100%;
  aspect-ratio: auto;
  object-position: center top;
}
.corporate-teaser-visual .button {
  min-width: min(280px, 100%);
}
@media (hover: hover) and (pointer: fine) {
  .format-tilt:hover :is(.format-poster, .corporate-teaser-image) img {
    filter: grayscale(0);
  }
  .format-tilt:hover > :is(.format-card, .corporate-teaser-image) {
    border-color: #a28a51;
    box-shadow: 0 0 22px #ffe45224, 0 16px 35px #0008;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .format-tilt :is(.format-poster, .corporate-teaser-image) img {
    transition: filter .3s ease;
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .format-tilt > :is(.format-card, .corporate-teaser-image) {
    transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transition: transform .2s ease-out, box-shadow .3s ease, border-color .3s ease;
  }
  .format-tilt.is-pointed {
    position: relative;
    z-index: 1;
  }
}
@media (max-width: 1080px) {
  .corporate-teaser-copy .hand-note {
    right: -.85em;
    left: auto;
    transform: translateY(-38%) rotate(-8deg);
    transform-origin: right center;
  }
}
@media (max-width: 760px) {
  .format-grid .format-tilt:last-child { grid-column: auto; }
  .formats-page .corporate-teaser { grid-template-columns: 1fr; }
  .corporate-teaser-visual { width: min(100%, 575px); }
  .corporate-teaser-copy .hand-note { right: 0; }
}
@media (max-width: 480px) {
  .format-grid .format-card { grid-template-columns: 1fr; }
  .format-grid .format-copy { padding: 20px; }
  .format-poster { aspect-ratio: 1.3; }
  .format-poster img { object-position: center top; }
}
