/* Native blocks: middle homepage sections. No Elementor markup is required. */
.home-about, .home-film, .home-history, .home-team { box-sizing: border-box; margin: 0; color: #7a7a7a; font: 300 19px/1.8 "Alegreya Sans", sans-serif; }
.home-about *, .home-film *, .home-history *, .home-team * { box-sizing: border-box; }
.home-about { padding: 70px 0; }
.home-about .wp-block-columns, .home-history .wp-block-columns { display: grid; grid-template-columns: 40% 60%; gap: 0; max-width: 1080px; margin: 0 auto; align-items: center; }
.home-history .wp-block-columns { grid-template-columns: 60% 40%; }
.home-about .wp-block-column, .home-history .wp-block-column { min-width: 0; margin: 0; }
.home-middle-copy { padding: 20px; align-self: center; }
.home-middle-photo { align-self: center; }
.team-track > .wp-block-group__inner-container, .team-card > .wp-block-group__inner-container { display: contents; }
.home-middle-copy > * { margin-block-start: 0; }
.home-middle-copy p { margin: 0 0 20px; }
.home-about .home-middle-copy p:last-child { margin-bottom: 0; }
.home-middle-copy strong, .home-middle-copy b, .team-note strong { font-weight: 700; }
.home-middle-copy .wp-block-heading { margin: 0 0 20px; padding: 0; color: #e3da44; font: 700 70px/60px "Amatic SC", sans-serif; }
.home-middle-photo .wp-block-image { margin: 0; text-align: center; }
.home-middle-photo img { display: block; width: 100%; height: 500px; object-fit: cover; border-radius: 40px 40px 20px 20px; box-shadow: 0 0 30px rgba(0,0,0,.5); }
.home-film { max-width: 1024px; margin: 0 auto 60px; padding: 10px; }
.home-film iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 42px; box-shadow: 0 10px 27px rgba(0,0,0,.5); background: #000; }
.home-history { padding: 0 0 42px; }
.home-history .home-middle-copy { padding: 20px 20px 0; text-align: right; }
.home-history .wp-block-heading { color: #7a7a7a; font-weight: 400; line-height: 70px; }
.home-team h2 { margin: 0; padding: 0 0 70px; text-align: center; color: #7a7a7a; font: 400 70px/70px "Amatic SC", sans-serif; }
.home-team .team-track { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; max-width: 1200px; margin: 0 auto; }
.home-team { --team-avatar-size: 200px; }
.team-card { display: flow-root; min-width: 0; margin: 0; }
.team-card:nth-child(2), .team-card:nth-child(4) { padding-bottom: 40px; }
.team-card .wp-block-image { width: var(--team-avatar-size); height: var(--team-avatar-size); margin: 50px auto; border-radius: 50%; overflow: hidden; }
.team-card .wp-block-image img { display: block; width: 100%; max-width: 100%; height: 100%; object-fit: cover; object-position: center; }
.team-card h3 { margin: 0; padding: 14px 0; text-align: center; color: #7a7a7a; font: 400 40px/40px "Amatic SC", sans-serif; }
.team-card:first-child h3 { padding-inline: 14px; font-size: 37px; }
.team-note { margin: 0; border-bottom: 1px solid #d4d4d4; font: 300 17px/1 "Alegreya Sans", sans-serif; }
.team-note > summary { padding: 15px 15px 35px; cursor: pointer; list-style: none; text-align: center; }
.team-note > summary::-webkit-details-marker { display: none; }
.team-note > p { margin: 0; padding: 15px; line-height: 1.8; }
.team-note > .has-text-align-justify { text-align: justify; }
.home-team :focus-visible { outline: 2px solid #7a7a7a; outline-offset: 3px; }
.team-controls { display: none; }
.team-card[hidden] { display: none !important; }
@media (min-width: 1025px) {
    .home-team .team-track { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; }
    .home-team .team-card { flex: 0 0 calc(100% / var(--team-desktop-columns,4)); }
}
@media (max-width: 1024px) {
    .home-about, .home-history { padding: 14px; font-size: 15px; }
    .home-about .home-middle-copy p:last-child { margin-bottom: 20px; }
    .home-about .wp-block-columns { max-width: 700px; grid-template-columns: 55% 45%; }
    .home-history .wp-block-columns { max-width: 700px; grid-template-columns: 45% 55%; }
    .home-about .home-middle-copy { padding: 40px 20px 40px 30px; }
    .home-history .home-middle-copy { padding: 40px 30px 40px 20px; }
    .home-middle-copy .wp-block-heading { font-size: 50px; line-height: 50px; margin-bottom: 0; }
    .home-team { --team-avatar-size: 88px; padding: 0 15px; }
    .home-team.is-carousel { --team-avatar-size: 120px; }
    .home-team h2 { padding-bottom: 3px; font-size: 50px; }
    .home-team .team-track { display: block; max-width: 560px; }
    .home-team.is-carousel .team-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; touch-action: pan-x pan-y; }
    .home-team.is-carousel .team-track::-webkit-scrollbar { display: none; }
    .team-card, .team-card:nth-child(2), .team-card:nth-child(4) { margin-bottom: 20px; padding-bottom: 0; }
    .team-card .wp-block-image { margin: 0 auto; }
    .team-card h3, .team-card:first-child h3 { padding: 6px 0; font-size: 37px; line-height: 40px; }
    .team-note { line-height: 1.8; }
    .team-note > summary { padding: 10px 15px; }
    /* Fixed cards; the ordinary section heading is outside the scrolling track. */
    .home-team.is-carousel .team-card { display: flex; flex: 0 0 100%; flex-direction: column; height: 540px; margin: 0; padding: 4px; scroll-snap-align: start; }
    .is-carousel .team-card .wp-block-image { flex: 0 0 auto; line-height: 0; }
    .is-carousel .team-card h3 { flex: 0 0 auto; padding-block: 4px; }
    .is-carousel .team-note { flex: 0 1 auto; min-height: 0; overflow: visible; line-height: 1.35; touch-action: pan-x pan-y; }
    .is-carousel .team-note > summary { padding: 4px 8px; cursor: default; }
    .is-carousel .team-note > p { padding: 6px 8px; line-height: 1.35; }
    .is-carousel .team-controls { display: flex; justify-content: center; align-items: center; gap: 4px; max-width: 560px; margin: 4px auto 20px; }
    .team-controls button { display: inline-flex; justify-content: center; align-items: center; flex: 0 1 44px; min-width: 0; width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 4px; background: #fff; color: #7a7a7a; font: 400 21px/1 "Alegreya Sans", sans-serif; cursor: pointer; }
    .team-controls button[hidden] { display: none; }
    .team-controls .team-dot::before { content: ""; width: 4px; height: 4px; border: 1px solid #7a7a7a; border-radius: 50%; opacity: .55; }
    .team-controls .team-dot[aria-current="true"]::before { background: #7a7a7a; opacity: 1; }
    .team-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (min-width: 700px) and (max-width: 1024px) {
    .home-team.is-carousel .team-track { max-width: 960px; }
    .home-team.is-carousel .team-card { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 1024px) and (max-height: 600px) {
    /* Only short viewports constrain the card and allow an emergency note scroll. */
    .home-team.is-carousel .team-card { height: calc(100svh - 64px); }
    .home-team.is-carousel { --team-avatar-size: 100px; }
    .is-carousel .team-note { overflow-y: auto; overscroll-behavior-y: contain; }
}
@media (max-width: 768px) {
    .home-about, .home-history { font-size: 20px; line-height: 36px; }
    .home-about .wp-block-columns, .home-history .wp-block-columns { display: flex; flex-direction: column; }
    .home-about .home-middle-photo, .home-history .home-middle-photo { width: 100%; padding: 60px; }
    .home-middle-photo img { width: 100%; margin: 0 auto; border-radius: 20px 20px 10px 10px; }
    .home-about .home-middle-copy, .home-history .home-middle-copy { padding: 0; width: 100%; text-align: center; }
    .home-about .home-middle-copy p:last-child { margin-bottom: 20px; }
    .home-middle-copy .wp-block-heading { padding: 25px 0 20px; text-align: center; }
    .home-team h2 { padding-bottom: 0; }
    .home-history .home-middle-photo img { border-radius: 20px 10px 20px 10px; }
}
