/* Smile Sweet Sunflower: page sections and blocks.
   Base text, the 12-column grid, sections, and every block type used on the pages.
   Page-specific settings (each section's padding/background, each block's colours and
   sizes) are in the page's own <style>, generated from site/content/pages/<page>.json. */

/* ================================================================ base */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 14px; -webkit-text-size-adjust: 100%; }   /* rem = 14px, as the original theme */
body {
  margin: 0; background: var(--ss-navy); color: var(--ss-paper);
  font: 400 14px/1.7 var(--ss-font-body); -webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; }
img { height: auto; vertical-align: middle; border: 0; }
:where(.ss-main) h1, :where(.ss-main) h2, :where(.ss-main) h3, :where(.ss-main) h4, :where(.ss-main) h5, :where(.ss-main) h6 { margin: 0 0 14px; font-weight: 400; line-height: 1.2; }
:where(.ss-main) h1 { font: 400 75px/1.2 "Patua One", sans-serif; color: var(--ss-sky); }
:where(.ss-main) h2 { font: 400 35px/1.2 "Patua One", sans-serif; color: var(--ss-ink); }
:where(.ss-main) h3 { font: 600 24px/1.2 "Playfair Display", serif; color: var(--ss-peach); }
:where(.ss-main) h4 { font: 500 18px/1.2 "Playfair Display", serif; color: #fff; }
:where(.ss-main) h5 { font: 400 16px/1.2 "Playfair Display", serif; color: #fff; }
:where(.ss-main) h6 { font: 400 14px/1.2 "Playfair Display", serif; color: #fff; }
:where(.ss-main) p, :where(.ss-main) ul, :where(.ss-main) ol, :where(.ss-main) blockquote, :where(.ss-main) hr { margin: 0 0 14px; }
:where(.ss-main) ul, :where(.ss-main) ol, :where(.ss-main) blockquote { padding-left: 14px; }
:where(.ss-main) a { color: var(--ss-peach); text-decoration: none; }
:where(.ss-main) a:hover { color: var(--ss-gray); }
:where(.ss-main) hr { height: 1px; border: 0; background: var(--ss-paper); }
:where(.ss-main) strong, :where(.ss-main) b { font-weight: 700; }
.ss-skip { position: absolute; left: -9999px; top: 8px; z-index: 3000; padding: 10px 16px; background: #fff; color: var(--ss-ink); }
.ss-skip:focus { left: 8px; }

/* ================================================================ grid
   Sections (.ss-section) hold rows (.ss-row > .ss-row__inner) of 12-column cells (.ss-col-N).
   Centred sections: rows up to 1240px wide, ~2.56% gaps between columns.
   Full-width sections: columns are exact twelfths with no gaps.
   992px and narrower: every column takes the full width. */
.ss-layout { width: 100%; }
.ss-row__inner { display: flex; flex-wrap: wrap; width: 100%; }
.ss-col { flex: none; width: 100%; min-width: 0; }
.ss-col-1 { --n: 1; } .ss-col-2 { --n: 2; } .ss-col-3 { --n: 3; } .ss-col-4 { --n: 4; } .ss-col-5 { --n: 5; } .ss-col-6 { --n: 6; }
.ss-col-7 { --n: 7; } .ss-col-8 { --n: 8; } .ss-col-9 { --n: 9; } .ss-col-10 { --n: 10; } .ss-col-11 { --n: 11; } .ss-col-12 { --n: 12; }
@media (min-width: 993px) {
  .ss-col { width: calc(var(--n, 12) * 5.98291% + (var(--n, 12) - 1) * 2.5641%); }
  .ss-row__inner > .ss-col + .ss-col { margin-left: 2.5641%; }
  .ss-section[class*="force-full-width"] > .ss-row__inner > .ss-col { width: calc(var(--n, 12) / 12 * 100%); margin-left: 0; }
}

/* sections: default spacing; per-section settings override these */
.ss-section { padding: 80px 0; }
.ss-section > .ss-row__inner { max-width: 1240px; margin: 0 auto; }
.ss-section[class*="force-full-width"] > .ss-row__inner { max-width: none; }
/* gutters: a column (or a block placed straight in a section) has 20px each side, 10px on tablets/phones;
   columns nested inside a column have none on desktop. Full-width sections have none unless set per section. */
.ss-section .ss-column, .ss-section > .ss-row__inner > .ss-module { padding: 0 20px; }
.ss-section .ss-column .ss-row__inner .ss-column { padding: 0; }
@media (max-width: 992px) {
  .ss-section .ss-column, .ss-section .ss-column .ss-row__inner .ss-column,
  .ss-section > .ss-row__inner > .ss-module { padding: 0 10px !important; }
}
[class*="full-width-section"] > .ss-row__inner > .ss-column:not([class*="-padding"]),
[class*="full-width-section"] > .ss-row__inner > .ss-module:not([class*="-padding"]) { padding: 0 !important; }
@media (max-width: 767px) { .ss-section { padding-top: 40px; padding-bottom: 40px; } }

/* ================================================================ simple blocks */
.ss-block { position: relative; }
.ss-img { max-width: 100%; height: auto; }
.ss-spacer { display: block; height: 0; }
.ss-button { display: inline-block; text-decoration: none; }   /* colours, size and hover are set per button in the page styles */
.ss-empty-space { display: block; }

/* ================================================================ shared: highlighted word in headings
   The <span> in a heading gets a colour band underneath that sweeps in when it scrolls into view
   (colour set per block in the page styles). */
.ss-custom-header--heading span, .ss-page-header__content__inner--title span, .ss-service__content--title span {
  display: inline-block; padding: 0 .125rem; position: relative;
  font: inherit; letter-spacing: inherit; line-height: inherit; text-transform: inherit;
  background-repeat: no-repeat; background-position: left 90%; background-size: 0 25%;
  transition: background-size .9s cubic-bezier(.15, .75, .4, 1);
}
.is-drawn span { background-size: 100% 25% !important; }

/* ================================================================ page banner */
.ss-page-header { position: relative; }
.ss-page-header__bg { position: relative; display: block; width: 100%; overflow: hidden; }
.ss-page-header__bg--image { position: absolute; inset: 0; z-index: 1; background: 50% / cover no-repeat; }
.ss-page-header__bg--image::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ss-page-header__content-wrapper { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; }
.ss-page-header__content-location--top { align-items: flex-start; }
.ss-page-header__content-location--bottom { align-items: flex-end; }
.ss-page-header__content-wrapper__content { display: flex; width: 1240px; max-width: 100%; padding: 0 20px; }
.ss-page-header__content-alignment--left .ss-page-header__content-wrapper__content { justify-content: flex-start; }
.ss-page-header__content-alignment--center .ss-page-header__content-wrapper__content { justify-content: center; text-align: center; }
.ss-page-header__content-alignment--right .ss-page-header__content-wrapper__content { justify-content: flex-end; }
.ss-page-header__content__inner--sub-heading { line-height: 1.4; margin-bottom: 1rem; }
.ss-page-header__content__inner--button-wrapper { display: flex; justify-content: flex-start; }
.ss-page-header__content-alignment--center .ss-page-header__content__inner--button-wrapper { justify-content: center; }
.ss-page-header__content__inner--button { display: inline-flex; align-items: center; align-self: flex-start; transition: all .2s; }
.ss-page-header__content__inner--button svg { width: 12px; height: 12px; margin-left: .5rem; }
@media (max-width: 992px) { .ss-page-header__content-wrapper__content__inner { width: 75% !important; } }
@media (max-width: 768px) {
  .ss-page-header__bg { min-height: 60vw !important; }
  .ss-page-header__content-wrapper__content { padding: 0 10px; }
  .ss-page-header__content-wrapper__content__inner { width: 100% !important; }
  .ss-page-header__content__inner--title { font-size: 48px !important; }
}
@media (max-width: 480px) {
  .ss-page-header__content__inner--title { font-size: 36px !important; }
  .ss-page-header__content__inner--description, .ss-page-header__content__inner--sub-heading { font-size: 18px !important; }
}

/* ================================================================ heading block */
.ss-custom-header { display: flex; }
.ss-custom-header--left { justify-content: flex-start; text-align: left; }
.ss-custom-header--center { justify-content: center; text-align: center; }
.ss-custom-header--right { justify-content: flex-end; text-align: right; }

/* ================================================================ button block */
.ss-button-wrapper { display: flex; }
@media (min-width: 993px) {
  .ss-button-wrapper--left { justify-content: flex-start; }
  .ss-button-wrapper--center { justify-content: center; }
  .ss-button-wrapper--right { justify-content: flex-end; }
}
.ss-main .ss-button-wrapper .ss-button { display: inline-flex; align-items: center; transform: none; transition: all .2s; }
.ss-button-wrapper .ss-button svg { width: 12px; height: 12px; margin-left: .5rem; }

/* ================================================================ card rows shared by icon cards, photo cards, team */
.ss-steps, .ss-services2, .ss-team-members { display: flex; flex-wrap: wrap; }
.ss-steps, .ss-services2 { justify-content: center; }
.ss-steps > div, .ss-services2 > div { width: 100%; margin: 0 0 20px; }
.ss-steps--col2 > div, .ss-services2--col2 > div { width: calc(50% - 10px); margin-right: 20px; }
.ss-steps--col3 > div, .ss-services2--col3 > div { width: calc(33.3333% - 13.3333px); margin-right: 20px; }
.ss-steps--col4 > div, .ss-services2--col4 > div { width: calc(25% - 15px); margin-right: 20px; }
.ss-steps--col2 > div:nth-child(2n), .ss-services2--col2 > div:nth-child(2n),
.ss-steps--col3 > div:nth-child(3n), .ss-services2--col3 > div:nth-child(3n),
.ss-steps--col4 > div:nth-child(4n), .ss-services2--col4 > div:nth-child(4n) { margin-right: 0 !important; }
@media (max-width: 992px) {
  :is(.ss-steps, .ss-services2):is(.ss-steps--col3, .ss-steps--col4, .ss-services2--col3, .ss-services2--col4) > div { width: calc(50% - 10px); margin-right: 20px; }
  :is(.ss-steps, .ss-services2) > div:nth-child(2n) { margin-right: 0 !important; }
  :is(.ss-steps, .ss-services2) > div:nth-child(2n+1) { margin-right: 20px !important; }
}
@media (max-width: 600px) { :is(.ss-steps, .ss-services2) > div { width: 100% !important; margin-right: 0 !important; } }

/* ---------------------------------------------------------------- icon cards (steps) */
.ss-steps__item--count { display: flex; justify-content: center; }
.ss-steps--alignment-left .ss-steps__item--count { justify-content: flex-start; }
.ss-steps__item--count span {
  display: flex; align-items: center; justify-content: center; width: 4rem; height: 4rem; margin-bottom: 1rem;
  border-radius: 50%; transition: transform .2s, box-shadow .2s;
}
.ss-steps__item:hover .ss-steps__item--count span { box-shadow: 0 10px 16px rgba(0, 0, 0, .16); transform: translateY(-3px); }
.ss-steps__item--title { margin-bottom: 1rem; text-align: center; }
.ss-steps__item--description { text-align: center; }
.ss-steps--alignment-left :is(.ss-steps__item--title, .ss-steps__item--description) { text-align: left; }

/* ---------------------------------------------------------------- photo cards (services2): text rises on hover */
.ss-services2__item { position: relative; overflow: hidden; transition: transform .6s cubic-bezier(.05, .2, .1, 1), box-shadow .6s cubic-bezier(.05, .2, .1, 1); }
.ss-services2__item_bg { position: absolute; inset: 0; z-index: 1; background: 50% / cover; transition: transform .6s cubic-bezier(.24, 1, .3, 1); backface-visibility: hidden; }
.ss-services2__item_bg::before, .ss-services2__item_bg::after { content: ""; position: absolute; inset: 0; }
.ss-services2__item_bg::before { z-index: 2; opacity: 0; transition: opacity .4s cubic-bezier(.25, 1, .2, 1); }
.ss-services2__item_bg::after { z-index: 1; }
.ss-services2__item__content { position: relative; z-index: 9; display: flex; width: 100%; height: 100%; min-height: 300px; padding: 3rem 2rem 2rem; }
.ss-services2__item__content__inner { position: relative; display: flex; flex-direction: column; justify-content: flex-end; width: 100%; }
.ss-services2__item__content--icon { margin-bottom: .75rem; }
.ss-services2__item__content--icon svg { width: 40px; height: 40px; }
.ss-services2__item__content--title { line-height: 1.4; margin-bottom: .75rem; transition: color .2s; }
.ss-services2__item__content--icon-title { transition: transform .6s cubic-bezier(.05, .2, .1, 1); }
.ss-services2__item__content--description { position: absolute; left: 0; bottom: 0; margin-top: 10px; opacity: 0; transform: translateY(20px); transition: all .2s; }
.ss-services2__item.ss-services2__item--active { box-shadow: 0 24px 60px rgba(0, 0, 0, .15); transform: translateY(-10px); }
.ss-services2__item.ss-services2__item--active .ss-services2__item_bg { transform: scale(1.15); transition: transform .8s cubic-bezier(.1, .2, .7, 1); }
.ss-services2__item.ss-services2__item--active .ss-services2__item_bg::before { opacity: 1; }
.ss-services2__item.ss-services2__item--active .ss-services2__item__content--icon-title { transform: translateY(calc(-1 * var(--ss-rise, 0px))); }
.ss-services2__item.ss-services2__item--active .ss-services2__item__content--description { opacity: 1; transform: none; transition: opacity .6s cubic-bezier(.05, .2, .1, 1) .15s, transform .6s cubic-bezier(.05, .2, .1, 1) .15s; }

/* ---------------------------------------------------------------- image + text banner (service) */
.ss-service { display: flex; flex-wrap: wrap; }
.ss-service > div { width: 50%; }
.ss-service__content { display: flex; flex-direction: column; justify-content: center; padding: 3rem 6rem; }
.ss-service--right .ss-service__content { order: -1; }
.ss-service__bg { position: relative; display: block; width: 100%; overflow: hidden; }
.ss-service__bg--image { position: absolute; inset: 0; z-index: 1; background: 50% / cover no-repeat; }
.ss-service__bg--image::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ss-service__content__button-wrapper { display: flex; justify-content: flex-start; }
.ss-service__content__button-wrapper--button { display: inline-flex; align-items: center; align-self: flex-start; transition: all .2s; }
.ss-service__content__button-wrapper--button svg { width: 12px; height: 12px; margin-left: .5rem; }
@media (max-width: 992px) { .ss-service__content { padding: 3rem; } }
@media (max-width: 768px) { .ss-service > div { width: 100%; min-height: 50vw !important; } }
@media (max-width: 480px) { .ss-service__content { padding: 2rem 1rem; } }

/* ================================================================ list with icons (custom list) */
.ss-custom-list ul { margin: 0; padding: 0; list-style: none; }
.ss-custom-list ul li { display: flex; align-items: flex-start; padding: .25rem 0; }
.ss-custom-list ul li span { display: flex; line-height: 1; }
.ss-custom-list--text { flex-grow: 1; width: 10%; }
.ss-custom-list--text > a:hover { text-decoration: underline; }
.ss-custom-list ul li .ss-custom-list--icon { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-top: .125rem; border-radius: 50%; flex: none; }
.ss-custom-list ul li svg { width: 12px; height: 12px; }

/* ================================================================ book video (video popup) */
.ss-video-popup { position: relative; }
.ss-video-popup__bg { position: relative; display: block; width: 100%; overflow: hidden; }
.ss-video-popup__bg--image { position: absolute; inset: 0; z-index: 1; background: 50% / cover no-repeat; }
.ss-video-popup__bg--image::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ss-video-popup__content { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.ss-video-popup__open-popup-link {
  display: flex; align-items: center; justify-content: center; width: 80px; height: 80px; margin-bottom: 1.5rem;
  border: 2px solid #fff; border-radius: 50%; transition: transform .25s;
}
.ss-video-popup__open-popup-link:hover { transform: scale(1.08); }
.ss-video-popup__open-popup-link svg { width: 18px; height: 18px; margin-left: 4px; }
.ss-video-popup__open-popup-link svg path { fill: #fff; }
.ss-popup { display: none; }

/* video lightbox (opened by blocks.js) */
.ss-lightbox { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 4vw; background: rgba(11, 11, 11, .85); }
.ss-lightbox[hidden] { display: none; }
.ss-lightbox__frame { position: relative; width: min(1000px, 100%); aspect-ratio: 16 / 9; background: #000; }
.ss-lightbox__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ss-lightbox__frame img { display: block; max-width: 100%; max-height: 85vh; margin: auto; }
.ss-lightbox__frame--image { aspect-ratio: auto; width: auto; background: none; }
.ss-lightbox__close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; padding: 0; font-size: 30px; line-height: 44px;
  color: #fff; background: none; border: 0; cursor: pointer;
}
.ss-lightbox__nav { position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; color: #fff; background: rgba(0, 0, 0, .35); border: 0; border-radius: 50%; cursor: pointer; font-size: 24px; }
.ss-lightbox__nav--prev { left: 12px; } .ss-lightbox__nav--next { right: 12px; }

/* ================================================================ project grid (portfolio) */
.ss-portfolio { min-height: 1rem; }
.ss-portfolio__wrapper { display: flex; flex-wrap: wrap; }
.ss-portfolio__cell { position: relative; width: 25%; }
.ss-portfolio--col1 .ss-portfolio__cell { width: 100%; }
.ss-portfolio--col2 .ss-portfolio__cell { width: 50%; }
.ss-portfolio--col3 .ss-portfolio__cell { width: 33.333%; }
.ss-portfolio--col5 .ss-portfolio__cell { width: 20%; }
@media (max-width: 992px) { .ss-portfolio .ss-portfolio__cell { width: 50% !important; } }
@media (max-width: 768px) { .ss-portfolio .ss-portfolio__cell { width: 100% !important; margin-bottom: 10px !important; } }
.ss-portfolio__item__inner { position: relative; }
.ss-portfolio__bg { position: absolute; display: block; width: 100%; height: 100%; overflow: hidden; }
.ss-portfolio__bg--image { position: absolute; inset: 0; z-index: 1; background: 50% / cover no-repeat; transition: transform .4s cubic-bezier(.05, .2, .1, 1); }
.ss-portfolio__bg--image::after { content: ""; position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity .4s cubic-bezier(.05, .2, .1, 1); }
.ss-portfolio__item:hover .ss-portfolio__bg--image { transform: scale(1.1); }
.ss-portfolio__item:hover .ss-portfolio__bg--image::after { opacity: 1; }
.ss-portfolio__link { position: absolute; inset: 0; z-index: 9; }
.ss-portfolio__content { position: relative; z-index: 1; display: flex; align-items: flex-end; padding: 1.5rem; }
.ss-portfolio__content__inner { width: 100%; }
.ss-portfolio__content__inner--title { display: flex; align-items: center; margin: .25rem 0; line-height: 1.2; }
.ss-portfolio__content__inner--title > div { flex-grow: 1; }
.ss-portfolio__content__inner--title svg { width: 24px; height: 24px; margin: 0 0 -7px; opacity: 0; transition: all .2s; }
.ss-portfolio__item:hover .ss-portfolio__content__inner--title svg { opacity: 1; }

/* ================================================================ team */
.ss-team-members { flex-wrap: wrap; }
.ss-team-members > div { width: 100%; margin: 0 0 60px; }
.ss-team-members--col2 > div { width: calc(50% - 30px); margin-right: 60px; }
.ss-team-members--col3 > div { width: calc(33.333% - 40px); margin-right: 60px; }
.ss-team-members--col4 > div { width: calc(25% - 45px); margin-right: 60px; }
.ss-team-members--col2 > div:nth-child(2n), .ss-team-members--col3 > div:nth-child(3n), .ss-team-members--col4 > div:nth-child(4n) { margin-right: 0 !important; }
@media (max-width: 992px) { .ss-team-members { justify-content: center; } }
@media (max-width: 600px) { .ss-team-members > div { width: 100% !important; margin-right: 0 !important; } }
.ss-team-member__image__wrapper { position: relative; }
.ss-team-member__image { display: block; margin-bottom: 1rem; overflow: hidden; line-height: 0; transition: transform .8s cubic-bezier(.05, .2, .1, 1); }
.ss-team-member__image__inner { transition: transform .8s cubic-bezier(.05, .2, .1, 1); }
.ss-team-member:hover .ss-team-member__image { transform: scale(.95); }
.ss-team-member:hover .ss-team-member__image__inner { transform: scale(1.15); }
.ss-team-member__image img { width: 100%; }

/* ================================================================ timeline */
.ss-timeline ul { clear: both; margin: 0; padding: 0; list-style: none; }
.ss-timeline ul::after { content: ""; display: block; clear: both; }
.ss-timeline li { width: 47%; margin-bottom: 3rem; }
.ss-timeline li:nth-child(odd) { float: left; }
.ss-timeline li:nth-child(2n) { float: right; }
.ss-timeline__second-column-margin--true li:nth-of-type(2) { margin-top: 8rem; }
.ss-timeline .ss-timeline__item { overflow: hidden; border-radius: 5px; box-shadow: 0 30px 90px rgba(0, 0, 0, .14); }
.ss-timeline .ss-timeline__item--image { display: block; overflow: hidden; }
.ss-timeline .ss-timeline__item--image img { display: block; max-width: 100%; height: auto; transition: transform .7s cubic-bezier(.2, 1, .22, 1); backface-visibility: hidden; }
.ss-timeline .ss-timeline__item:hover .ss-timeline__item--image img { transform: scale(1.07); }
.ss-timeline__item__content { display: flex; flex-wrap: wrap; padding: 2rem; }
.ss-timeline__item__content--date { width: 20%; padding-bottom: .5rem; line-height: 1.2; }
.ss-timeline__item__content--date span { display: inline-flex; border-bottom: 2px solid; }
.ss-timeline__item__content__inner { flex-grow: 1; width: 80%; }
.ss-timeline__item__content__inner--title { line-height: 1.2; }
.ss-timeline__item__content__inner--description { margin-top: 1rem; }
@media (max-width: 1024px) { .ss-timeline__item__content--date { width: 25%; } .ss-timeline__item__content__inner { width: 75%; } }
@media (max-width: 992px) { .ss-timeline__item__content { padding: 1.5rem; } .ss-timeline__second-column-margin--true li:nth-of-type(2) { margin-top: 4rem; } }
@media (max-width: 768px) {
  .ss-timeline li { width: 100%; float: none !important; margin-bottom: 2rem; }
  .ss-timeline__second-column-margin--true li:nth-of-type(2) { margin-top: 0; }
  .ss-timeline__item__content--date { width: 15%; } .ss-timeline__item__content__inner { width: 85%; }
}
@media (max-width: 480px) { .ss-timeline__item__content--date { width: 25%; } .ss-timeline__item__content__inner { width: 75%; } }
@media (max-width: 375px) { .ss-timeline__item__content--date, .ss-timeline__item__content__inner { width: 100%; } }

/* ================================================================ logo row (swipeable, scrolls by itself) */
.ss-logo-carousel { min-height: 1rem; }
.ss-logo-carousel__inner, .ss-logo-carousel__wrapper {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
}
.ss-logo-carousel__inner::-webkit-scrollbar, .ss-logo-carousel__wrapper::-webkit-scrollbar { display: none; }
/* each logo's slot (the direct child of the scrolling row) takes 1/cols of the row */
.ss-logo-carousel__wrapper__item { flex: 0 0 25%; scroll-snap-align: start; }
.ss-logo-carousel--cols-2 .ss-logo-carousel__wrapper__item { flex-basis: 50%; }
.ss-logo-carousel--cols-3 .ss-logo-carousel__wrapper__item { flex-basis: 33.333%; }
.ss-logo-carousel--cols-5 .ss-logo-carousel__wrapper__item { flex-basis: 20%; }
.ss-logo-carousel--cols-6 .ss-logo-carousel__wrapper__item { flex-basis: 16.666%; }
@media (max-width: 992px) { .ss-logo-carousel__wrapper__item { flex-basis: 33.333% !important; } }
@media (max-width: 768px) { .ss-logo-carousel__wrapper__item { flex-basis: 50% !important; } }
@media (max-width: 480px) { .ss-logo-carousel__wrapper__item { flex-basis: 100% !important; } }
.ss-logo-carousel__item__inner { position: relative; display: flex; justify-content: center; margin: 1rem; }
.ss-logo-carousel__item__inner--image { display: flex; }
.ss-logo-carousel__item__inner--image img { width: 100%; height: 100%; object-fit: contain; }
.ss-logo-carousel__item__inner--link { position: absolute; inset: 0; z-index: 1; }

/* ================================================================ contact: form block and map block */
.ss-custom-form { position: relative; z-index: 9; }
@media (max-width: 992px) { .ss-custom-form { padding-left: 0 !important; padding-right: 0 !important; } }
.ss-google-map { position: relative; display: flex; flex-wrap: wrap; }
.ss-google-map > div { width: 100%; }
.ss-google-map:not(.ss-google-map--only_map) > div { width: 50%; }
@media (max-width: 768px) { .ss-google-map:not(.ss-google-map--only_map) > div { width: 100%; } }
.ss-google-map__content { display: flex; flex-direction: column; justify-content: center; padding: 3rem 6rem; }
.ss-google-map__content--title { line-height: 1.2; }
.ss-google-map__content--title, .ss-google-map__content--description { margin-bottom: 1rem; }
.ss-google-map__content--details { margin: .5rem 0 0; padding: 0; list-style: none; }
.ss-google-map__content--details li { display: flex; margin-top: .5rem; }
.ss-google-map__content--details svg { width: 18px; height: 18px; margin: .25rem .75rem 0 0; flex: none; }
.ss-google-map--content_left .ss-google-map__content { align-items: flex-end; order: -1; }
.ss-google-map iframe { display: block; width: 100%; border: 0; }
@media (max-width: 768px) { .ss-google-map__content { align-items: center; } }
@media (max-width: 480px) { .ss-google-map__content { padding: 2rem 1rem; } }

/* ================================================================ previous / next page cards */
.ss-prev-next-pages { display: flex; flex-wrap: wrap; }
.ss-prev-next-pages > div { position: relative; display: flex; align-items: center; justify-content: center; width: 50%; overflow: hidden; }
@media (max-width: 768px) { .ss-prev-next-pages > div { width: 100%; } }
.ss-prev-next-pages__bg { position: absolute; display: block; width: 100%; height: 100%; overflow: hidden; }
.ss-prev-next-pages__bg--image { position: absolute; inset: 0; z-index: 1; background: 50% / cover no-repeat; transition: transform .4s cubic-bezier(.05, .2, .1, 1); }
.ss-prev-next-pages__bg--image::after { content: ""; position: absolute; inset: 0; z-index: 1; opacity: .3; transition: opacity .4s cubic-bezier(.05, .2, .1, 1); }
.ss-prev-next-pages > div:hover .ss-prev-next-pages__bg--image { transform: scale(1.1); }
.ss-prev-next-pages > div:hover .ss-prev-next-pages__bg--image::after { opacity: .8; }
.ss-prev-next-pages__link { position: absolute; inset: 0; z-index: 101; }
.ss-prev-next-pages__prev__content, .ss-prev-next-pages__next__content {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; min-height: 300px; padding: 1rem;
  transition: transform .4s cubic-bezier(.05, .2, .1, 1);
}
.ss-prev-next-pages__content--title { display: flex; align-items: center; }
.ss-prev-next-pages__content--title svg { width: 24px; height: 24px; margin: 0 0 -7px; opacity: 0; transition: all .2s; }
@media (min-width: 993px) {
  .ss-prev-next-pages__prev:hover .ss-prev-next-pages__prev__content { transform: translateX(24px); }
  .ss-prev-next-pages__next:hover .ss-prev-next-pages__next__content { transform: translateX(-24px); }
  .ss-prev-next-pages > div:hover .ss-prev-next-pages__content--title svg { opacity: 1; }
}
@media (max-width: 992px) { .ss-prev-next-pages__content--title svg { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .ss-custom-header--heading span, .ss-page-header__content__inner--title span, .ss-service__content--title span { transition: none; }
  .ss-services2__item, .ss-services2__item *, .ss-portfolio__bg--image, .ss-prev-next-pages *, .ss-team-member *, .ss-timeline img { transition: none !important; }
}

/* ================================================================ image gallery (click to view larger) */
.ss-gallery { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: var(--gap, 10px); margin: 0; padding: 0; list-style: none; }
.ss-gallery li { margin: 0; }
.ss-gallery__item { display: block; width: 100%; padding: 0; overflow: hidden; background: none; border: 0; cursor: zoom-in; }
.ss-gallery__item img { display: block; width: 100%; height: auto; aspect-ratio: var(--ratio, 1 / 1); object-fit: cover; transition: transform .4s ease; }
.ss-gallery__item:hover img, .ss-gallery__item:focus-visible img { transform: scale(1.04); }
@media (max-width: 767px) { .ss-gallery { grid-template-columns: repeat(var(--cols-phone, 1), minmax(0, 1fr)); } }

/* ================================================================ slider (swipe, arrows, dots, autoplay) */
.ss-slider { position: relative; }
.ss-slider__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.ss-slider__track::-webkit-scrollbar { display: none; }
.ss-slider__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; text-align: center; }
.ss-slider__slide img { display: block; width: 100%; height: auto; max-height: min(70vh, 640px); margin: 0 auto; object-fit: contain; }
.ss-slider__slide figcaption { padding: 10px 50px 0; font-size: 14px; }
.ss-slider__arrow {
  position: absolute; top: calc(50% - 40px); z-index: 2; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; color: var(--ss-ink); background: rgba(255, 255, 255, .85); border: 0; border-radius: 50%; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}
.ss-slider__arrow svg { width: 16px; height: 16px; }
.ss-slider__arrow--prev { left: 8px; } .ss-slider__arrow--next { right: 8px; }
.ss-slider__controls { display: flex; align-items: center; justify-content: center; gap: 6px; padding-top: 12px; }
.ss-slider__dot { width: 12px; height: 12px; padding: 0; background: rgba(255, 255, 255, .45); border: 0; border-radius: 50%; cursor: pointer; }
.ss-slider__dot[aria-current="true"] { background: var(--ss-peach); }
.ss-slider__pause { width: 32px; height: 32px; margin-left: 8px; padding: 0; color: #fff; background: rgba(255, 255, 255, .2); border: 0; border-radius: 50%; cursor: pointer; font-size: 12px; }

/* ================================================================ embeds (map, book previews, video) */
.ss-embed { position: relative; width: 100%; }
.ss-embed iframe { display: block; width: 100%; max-width: 100%; border: 0; }
/* ================================================================ publication viewer (books, magazine features)
   Pages are images in /media/publications. With the script: one page or a two-page spread at a time,
   arrows, page count, tap to enlarge. Without it: a swipeable strip of pages. */
.ss-book { position: relative; padding: 16px 0 8px; background: #2f2f2f; border-radius: 4px; }
.ss-book__pages { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 16px; }
.ss-book__pages img { flex: none; height: min(70vh, 640px); width: auto; scroll-snap-align: center; box-shadow: 0 4px 18px rgba(0, 0, 0, .4); background: #fff; }
.ss-book.is-ready .ss-book__pages { justify-content: center; gap: 0; overflow: visible; padding: 0 64px; }
.ss-book.is-ready .ss-book__pages img { display: none; cursor: zoom-in; }
.ss-book.is-ready .ss-book__pages img.is-shown { display: block; }
.ss-book.is-ready .ss-book__pages img { height: auto; max-height: min(70vh, 640px); max-width: 100%; }
.ss-book.is-ready .ss-book__pages img.is-shown:has(+ img.is-shown),
.ss-book.is-ready .ss-book__pages img.is-shown + img.is-shown { max-width: 50%; }
.ss-book__bar { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 12px 0 4px; color: #fff; font: 600 14px var(--ss-font-ui); }
.ss-book__nav {
  position: absolute; top: calc(50% - 40px); z-index: 2; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; color: var(--ss-ink); background: rgba(255, 255, 255, .9); border: 0; border-radius: 50%; cursor: pointer;
}
.ss-book__nav[disabled] { opacity: .35; cursor: default; }
.ss-book__nav svg { width: 16px; height: 16px; }
.ss-book__nav--prev { left: 10px; } .ss-book__nav--next { right: 10px; }
@media (max-width: 767px) {
  .ss-book.is-ready .ss-book__pages { padding: 0 8px; }
  .ss-book.is-ready .ss-book__pages img { height: auto; width: 100%; max-width: 100%; }
  .ss-book__nav { top: auto; bottom: 6px; }
}

/* ================================================================ 404 page */
.ss-error { max-width: 640px; margin: 0 auto; padding: 120px 20px; text-align: center; }
.ss-error__code { font: 400 120px/1 "Patua One", sans-serif; color: var(--ss-sky); }
.ss-error h1 { font-size: 48px; color: var(--ss-peach); }
.ss-error p { font-size: 18px; }
.ss-error__actions { margin-top: 28px; }
.ss-error__actions .ss-button {
  padding: 12px 24px; font: 600 15px/1.2 var(--ss-font-ui); color: var(--ss-navy); background: var(--ss-sky);
  border: 2px solid var(--ss-navy); border-radius: 30px;
}
.ss-error__actions .ss-button:hover { color: var(--ss-peach); background: var(--ss-navy); }
@media (max-width: 767px) { .ss-error { padding: 72px 20px; } .ss-error__code { font-size: 88px; } .ss-error h1 { font-size: 34px; } }

/* ================================================================ Lében: "At the Garden" section
   Sized to match the original Adobe Publish Online embed: the reader is a 518 × 366 dark panel
   with one page (or a two-page spread) centred in it, next to the cover in a slightly narrower
   column, with the pair centred on the page. Keyed to the reader's block id so it stays put
   if the page's section numbers change. */
.ss-section:has(#ss-w-w1775925779394) { padding-right: 0 !important; }   /* drop the leftover 248px right padding */
@media (min-width: 993px) {
  .ss-section:has(#ss-w-w1775925779394) > .ss-row__inner { max-width: 1062px !important; }
  .ss-section:has(#ss-w-w1775925779394) > .ss-row__inner > .ss-col-7 { width: 44.26%; }   /* 458px cover */
  .ss-section:has(#ss-w-w1775925779394) > .ss-row__inner > .ss-col-5 {   /* 518px reader, 54px from the cover frame */
    width: 55.74%; margin-left: 0; padding-left: 54px !important;
    /* reader sits at the bottom of its column, lifted by the height of the button area under the cover,
       so its bottom edge lines up with the bottom of the cover's white frame */
    justify-content: flex-end !important; padding-bottom: 138px;
  }
}
#ss-w-w1775925779394 .ss-book {
  width: 100%; max-width: 518px; aspect-ratio: 518 / 366; margin: 0 auto; padding: 8px 0;
  display: flex; flex-direction: column; justify-content: center;
}
#ss-w-w1775925779394 .ss-book.is-ready .ss-book__pages { padding: 0 60px; }
#ss-w-w1775925779394 .ss-book.is-ready .ss-book__pages img { max-height: calc(min(518px, 100vw - 20px) * 366 / 518 - 16px); }
#ss-w-w1775925779394 .ss-book__nav { top: calc(50% - 22px); }
#ss-w-w1775925779394 .ss-book__bar {   /* page count tucked in the corner so the page keeps the full height */
  position: absolute; right: 12px; bottom: 8px; padding: 0; font-size: 12px; font-weight: 600; opacity: .8;
}
@media (max-width: 767px) {   /* phones: a full-width page is easier to read; the panel grows to fit it */
  #ss-w-w1775925779394 .ss-book { aspect-ratio: auto; max-width: 420px; padding: 12px 0 8px; }
  #ss-w-w1775925779394 .ss-book.is-ready .ss-book__pages { padding: 0 8px; }
  #ss-w-w1775925779394 .ss-book.is-ready .ss-book__pages img { max-height: none; }
  #ss-w-w1775925779394 .ss-book__bar { position: static; min-height: 56px; padding: 0; font-size: 13px; }   /* row tall enough for the arrows */
  #ss-w-w1775925779394 .ss-book__nav { top: auto; bottom: 4px; }
}

/* ================================================================ image galleries: room between artworks
   The space grows with the screen (12px on phones up to 24px on wide screens) and is the same
   inside a gallery, between galleries side by side, and between galleries stacked on smaller screens. */
:root { --ss-gallery-gap: clamp(12px, 1.7vw, 24px); }
.ss-gallery { gap: var(--ss-gallery-gap); }
.ss-section:has(.ss-gallery)[class*="full-width-section"] > .ss-row__inner {
  gap: var(--ss-gallery-gap); flex-wrap: nowrap;
}
.ss-section:has(.ss-gallery)[class*="full-width-section"] > .ss-row__inner > .ss-col { flex: var(--n, 12) 1 0; width: auto; margin-left: 0; }   /* keeps each column's share */
@media (max-width: 992px) {
  .ss-section:has(.ss-gallery)[class*="full-width-section"] > .ss-row__inner { flex-direction: column; }
  .ss-section:has(.ss-gallery)[class*="full-width-section"] > .ss-row__inner > .ss-col { flex: none; width: 100%; }
}
@media (max-width: 767px) {   /* keep the artwork off the screen edges */
  .ss-section:has(.ss-gallery)[class*="full-width-section"] { padding-left: 12px !important; padding-right: 12px !important; }
}
