@import url('./education-motion.0131445062cf1cbf.css');

html[lang="en"] .education-page [lang="pl"],
html[lang="pl"] .education-page [lang="en"],
.edu-gallery-controls[hidden] { display: none; }

.education-page {
  --edu-ink: #171717;
  --edu-muted: #595959;
  --edu-rule: #d3d3d3;
  color: var(--edu-ink);
  background: #fff;
}
.education-hero {
  position: relative;
  isolation: isolate;
  height: calc(100vh - var(--header-height, 114px));
  height: calc(100svh - var(--header-height, 114px));
  min-height: 16rem;
  background: #252525;
  color: #fff;
}
.education-hero img,
.edu-event-photo img,
.edu-gallery-track img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.education-hero img { object-position: var(--hero-position, 50% 50%); }
.education-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgb(0 0 0 / .53), transparent 37%),
              linear-gradient(0deg, rgb(0 0 0 / .36), transparent 31%);
  pointer-events: none;
}
.education-hero .about-section-name,
.edu-jump { z-index: 1; }
.edu-jump[data-relief="hero"] {
  --key-light: rgb(255 255 255 / .3);
  --key-shade: rgb(0 0 0 / .55);
  --key-inner-shade: #a4a4a6;
  --key-depth: 2px;
  position: absolute;
  inset-inline-start: var(--edge);
  bottom: clamp(20px, 4svh, 46px);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 9.75rem;
  min-height: clamp(3rem, 3.6vw, 3.25rem);
  max-width: calc(100% - var(--edge) * 2);
  padding: .75rem clamp(1.75rem, 2.2vw, 2.25rem);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}
.edu-section {
  width: min(100%, 100rem);
  margin-inline: auto;
  padding: clamp(4rem, 8vw, 8.5rem) var(--edge);
}
.edu-section h2 {
  margin: 0;
  font-size: clamp(2.6rem, 5.2vw, 5.3rem);
  font-weight: 500;
  letter-spacing: -.066em;
  line-height: 1.02;
}
.edu-calendar:focus { outline: none; }
.edu-event-list {
  margin-top: clamp(2rem, 4.7vw, 5rem);
  border-bottom: 1px solid var(--edu-rule);
}
.edu-event {
  --edu-book-space: 9.5rem;
  --edu-row-pad: clamp(1.25rem, 2.45vw, 2.45rem);
  position: relative;
  border-top: 1px solid var(--edu-rule);
}
.edu-event summary {
  display: grid;
  grid-template-columns: minmax(7.5rem, .34fr) minmax(0, 1fr) max-content;
  align-items: start;
  gap: clamp(.85rem, 2.45vw, 2.65rem);
  padding-block: var(--edu-row-pad);
  padding-inline-end: var(--edu-book-space);
  list-style: none;
  cursor: pointer;
}
.edu-event summary::-webkit-details-marker { display: none; }
.edu-event summary:focus-visible,
.edu-gallery-track:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.edu-meta,
.edu-programme { display: grid; align-content: start; gap: .42rem; }
.edu-meta { padding-block-start: .23rem; font-size: .875rem; line-height: 1.48; }
.edu-date { font-weight: 600; }
.edu-date, .edu-place, .edu-event-name, .edu-host { overflow-wrap: anywhere; text-wrap: balance; }
.edu-place, .edu-host { color: var(--edu-muted); }
.edu-event-name {
  max-width: 34ch;
  font-size: clamp(1.22rem, 2.06vw, 2.14rem);
  font-weight: 500;
  line-height: 1.19;
  letter-spacing: -.045em;
}
.edu-host { font-size: .875rem; line-height: 1.6; }
.edu-host > span:first-child { font-weight: 500; }
.edu-toggle,
.edu-booking {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 3rem;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
}
.edu-toggle {
  --key-surface: #fff;
  --key-shade: #b6b7ba;
  --key-inner-shade: #bfc0c3;
  gap: .6rem;
  padding-inline: .85rem;
}
.edu-toggle-icon { position: relative; width: .78rem; height: .78rem; }
.edu-toggle-icon::before,
.edu-toggle-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline: 0;
  height: 1px;
  background: currentColor;
}
.edu-toggle-icon::after { transform: rotate(90deg); transition: transform .2s ease; }
.edu-event details[open] .edu-toggle-icon::after { transform: rotate(0); }
.edu-booking {
  width: fit-content;
  padding: .64rem 1.12rem;
  text-align: center;
}
.edu-booking:disabled { cursor: default; }
.edu-event > .edu-booking {
  position: absolute;
  top: var(--edu-row-pad);
  inset-inline-end: 0;
  max-width: calc(var(--edu-book-space) - .45rem);
}
.edu-event-body {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.5rem, 5vw, 5.5rem);
  padding-block: .35rem clamp(2rem, 4.5vw, 4.5rem);
}
.edu-event-photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: clamp(.5rem, 1.25vw, 1.25rem);
  background: #eee;
}
.edu-event-copy p, .edu-idea-copy p {
  max-width: 61ch;
  margin: 0;
  color: #424242;
  font-size: clamp(1rem, 1.18vw, 1.22rem);
  line-height: 1.72;
  letter-spacing: -.018em;
}
.edu-event-copy p + p, .edu-idea-copy p + p { margin-top: .9em; }
.edu-event-copy .edu-booking { margin-top: 1.5rem; }
.edu-gallery-section { background: #f3f3f2; }
.edu-gallery-layout {
  display: grid;
  grid-template-columns: minmax(0, .54fr) minmax(0, 1fr);
  gap: clamp(2rem, 5.5vw, 6.5rem);
  align-items: center;
}
.edu-idea-copy { margin-top: clamp(1.4rem, 2.7vw, 3rem); }
.edu-gallery-controls { display: flex; gap: .5rem; margin-top: 1.7rem; }
.edu-gallery-controls button {
  --key-surface: #f3f3f2;
  --key-shade: #aeb0b2;
  --key-inner-shade: #aaacae;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
}
.edu-arrow { display: block; position: relative; height: .8rem; width: 1.12rem; }
.edu-arrow::before, .edu-arrow::after { position: absolute; content: ""; }
.edu-arrow::before { inset-inline: 0; top: 50%; border-top: 1px solid currentColor; }
.edu-arrow::after {
  width: .44rem;
  height: .44rem;
  right: 0;
  top: 50%;
  border-block-start: 1px solid currentColor;
  border-inline-end: 1px solid currentColor;
  transform: translateY(-45%) rotate(45deg);
}
[data-gallery-prev] .edu-arrow { transform: rotate(180deg); }
.edu-gallery-track {
  display: flex;
  min-width: 0;
  gap: clamp(.65rem, 1.2vw, 1.2rem);
  margin: 0;
  padding: 0 0 .4rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #aaa transparent;
  list-style: none;
}
.edu-gallery-track > li {
  position: relative;
  flex: 0 0 42%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: clamp(.5rem, 1vw, 1rem);
  background: #e4e4e4;
  scroll-snap-align: start;
}
.edu-gallery-track img { position: absolute; inset: 0; }
.edu-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (hover: hover) {
  .edu-event summary:hover .edu-toggle-label { text-decoration: underline; text-underline-offset: .22em; }
}
@media (min-width: 1800px) { .education-hero { --header-height: 142px; } }
@media (max-width: 1080px) { .education-hero { --header-height: 100px; } }
@media (max-width: 780px) {
  .edu-event summary { grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; padding-inline-end: 0; }
  .edu-meta { grid-column: 1 / -1; min-height: 44px; margin-inline-end: var(--edu-book-space); }
  .edu-event[data-booking-state="upcoming"] .edu-meta { min-height: 6em; }
  .edu-toggle { align-self: start; }
  .edu-gallery-layout { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
  .edu-gallery-track > li { flex-basis: 41%; }
}
@media (max-width: 600px) {
  .education-hero { --header-height: 91px; }
  .education-hero img { object-position: var(--hero-position-mobile, var(--hero-position, 50% 50%)); }
  .edu-event-body { grid-template-columns: minmax(0, 1fr); }
  .edu-gallery-track > li { flex-basis: 73%; }
}
@media (max-width: 460px) {
  .edu-programme { grid-column: 1 / -1; }
  .edu-toggle { grid-column: 1 / -1; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .edu-toggle-icon::after { transition: none; }
}
