/* =====================================================================
   PAGE SECTIONS — the kinds every page is built of
   =====================================================================
   The live pages' make-up (Elementor's sections, columns and widgets),
   as PageBlocks-Service.php prints it; each page's own figures are in
   Pages-Styling.css.

   A SECTION is a band; a boxed one keeps its content to 1500px (1024px
   on a tablet, 767px on a phone). Its COLUMNS sit side by side from
   768px up (their widths in percent) and stack below; with the default
   gap each keeps 10px of room inside. A column's BLOCKS run one under
   the other, 20px apart; a block with a width of its own
   (.sr-width-initial) keeps no room under it, as the live one did.
   ===================================================================== */

/* ---- A contained page's column (the theme's 1200px, 20px each side;
        on a phone 0.54em) -------------------------------------------- */
.sr-contained { max-width: 100%; margin: 0 auto; padding: 0 20px; }
@media (min-width: 922px) { .sr-contained { max-width: 1240px; } }
@media (max-width: 544px) { .sr-contained { padding: 0 0.54em; } }

/* ---- Section, column, block --------------------------------------- */
.sr-section { position: relative; }
.sr-section__backdrop, .sr-section__overlay { position: absolute; inset: 0; }
.sr-section__backdrop { z-index: 0; background-position: 50%; background-size: cover; }
.sr-section__container { position: relative; display: flex; margin-inline: auto; }

/* ---- A GALLERY (PageBlocks-Service.php, `gallery`; the owner's word,
   2026-11-17) ---------------------------------------------------------
   Its pictures lie one over another in a frame at the photos' shape
   (1600 by 739, 500px tall at most), the shown one faded in over half a
   second; a picture of another shape is shown whole (`fit` contain) on a
   pale lilac. Two round frosted buttons over the frame's sides carry the
   islands' BACK chevron, a little lighter when pointed at and pressed in
   when pressed, as the islands' are. */
.sr-gallery { position: relative; }
.sr-gallery__frame {
    position: relative;
    overflow: hidden;
    width: 100%;  /* the full width, the 500px cap taking from its height alone */
    aspect-ratio: 1600 / 739;
    max-height: 500px;
    background-color: color-mix(in srgb, var(--sr-banner) 10%, var(--sr-white));
    touch-action: pan-y;
}
.sr-gallery__slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0s linear 0.5s; }
.sr-gallery__slide.is-current { opacity: 1; visibility: visible; transition: opacity 0.5s ease, visibility 0s; }
.sr-gallery__slide > a { display: block; height: 100%; }
.sr-gallery__image { display: block; width: 100%; max-width: none; height: 100%; object-fit: cover; user-select: none; }
.sr-gallery__arrow {
    position: absolute;
    top: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--sr-heading);
    background-color: color-mix(in srgb, var(--sr-white) 72%, transparent);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 2px 10px color-mix(in srgb, var(--sr-ink) 18%, transparent);
    cursor: pointer;
    translate: 0 -50%;
    transition: background-color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), scale 0.2s ease;
}
.sr-gallery__arrow svg { width: 22px; height: 22px; }
.sr-gallery__arrow--prev { left: 12px; }
.sr-gallery__arrow--next { right: 12px; }
.sr-gallery__arrow:hover { background-color: var(--sr-white); }
.sr-gallery__arrow:active { scale: 0.9; }
@media (max-width: 544px) {
    .sr-gallery__arrow { width: 36px; height: 36px; }
    .sr-gallery__arrow svg { width: 18px; height: 18px; }
    .sr-gallery__arrow--prev { left: 8px; }
    .sr-gallery__arrow--next { right: 8px; }
}

/* ---- A PAGE'S BACKDROP (PageBlocks-Service.php, sr_backdrop; the
   owner's word, 2026-11-17: "it should cover 50% of the totla pages height
   snd the lower it goes, mode fade is involved", and "the background be
   moving slower since its on the background ... prepare the structure of
   it from now") ----------------------------------------------------------
   The picture lies behind the page's content from its top down to
   `--sr-backdrop-reach` of the whole page's height (half; Site-Script.js
   sets its foot there, header and footer counted; without the script, that
   share of the content's height), under everything in it (the
   content is a stacking context of its own, the backdrop at its bottom).
   It covers that box, its `focus` kept in sight. Over the title band the
   band's own lilac, deepened and half see-through, so its white title keeps
   its contrast (and a soft shade under its letters); under the band a
   white veil, so the words read dark on light (`.sr-backdrop__veil`, from
   the band's foot, `--sr-band-h`, Site-Script.js); the band's foot passes
   from the one to the other. A mask fades the whole into the page's white,
   a little at first and more the lower it runs. The picture drifts down
   three tenths of the way the page scrolls once the content's top has
   passed the window's (Site-Script.js), so it seems further off than the
   words: the home page's crest's drift. A new page's backdrop is its
   `backdrop` setting alone. */
.sr-has-backdrop {
    --sr-backdrop-tint: color-mix(in srgb, color-mix(in srgb, var(--sr-banner) 76%, var(--sr-ink)) 80%, transparent);
    --sr-backdrop-veil: color-mix(in srgb, var(--sr-white) 72%, transparent);
    --sr-backdrop-veil-deep: color-mix(in srgb, var(--sr-white) 82%, transparent);
    --sr-backdrop-fade: linear-gradient(to bottom, #000 0, rgba(0, 0, 0, 0.92) 18%, rgba(0, 0, 0, 0.68) 42%, rgba(0, 0, 0, 0.38) 66%, rgba(0, 0, 0, 0.12) 86%, transparent 100%);
}
.sr-has-backdrop .sr-content { position: relative; isolation: isolate; }
/* the sections over it see-through, the title band apart, so a section's own white (the services' intro) does not hide it (2026-11-17) */
.sr-has-backdrop #sr-content .sr-section:not(.page-banner) { background-color: transparent; }
.sr-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: -1;
    height: var(--sr-backdrop-reach, 50%);
    overflow: hidden;
    pointer-events: none;
    -webkit-mask-image: var(--sr-backdrop-fade);
    mask-image: var(--sr-backdrop-fade);
}
/* as much taller as it starts higher (`--sr-drift-lead`, Site-Script.js), so its foot stays at the box's */
.sr-backdrop__image { position: absolute; top: 0; left: 0; width: 100%; max-width: none; height: calc(100% + var(--sr-drift-lead, 0px)); object-fit: cover; }
.sr-backdrop__veil {
    position: absolute;
    top: var(--sr-band-h, 0px);
    right: 0;
    bottom: 0;
    left: 0;
    background-image: linear-gradient(to bottom, var(--sr-backdrop-veil) 0, var(--sr-backdrop-veil-deep) 100%);
}
/* SCENES (the contact page): the backdrop holds the window still behind the
   whole page, unmasked, its veil over all of it; its pictures one over
   another, the shown one faded in over 1.2 seconds (none for a visitor who
   asks for less motion). */
/* As tall as the window can ever be (`100lvh`, its toolbars hidden) and on a layer of its own: a phone's address bar
   hiding and showing in a quick scroll changed its height, so the picture was cropped afresh and jumped (the owner,
   2026-11-17: "When I scroll quickly up and down on my movile device the damn background flitch and move too"). */
.sr-backdrop--fixed { position: fixed; bottom: auto; height: 100vh; height: 100lvh; -webkit-mask-image: none; mask-image: none; transform: translateZ(0); backface-visibility: hidden; }
.sr-backdrop--fixed .sr-backdrop__image { opacity: 0; transition: opacity 1.2s ease; }
.sr-backdrop--fixed .sr-backdrop__image.is-current { opacity: 1; }
.sr-backdrop--fixed .sr-backdrop__veil { top: 0; }
/* a picture shown whole (`whole`, the crest), centred with room around it */
.sr-backdrop__image--whole { object-fit: contain; padding: 14vh 10vw; box-sizing: border-box; }
/* the title band's foot fades to nothing over a still backdrop, its veil already over all of it (the owner, 2026-11-17:
   "The fade here is broken compared to the rest": fading to the veil there laid it twice, a white strip over a grey edge) */
.sr-has-backdrop:has(.sr-backdrop--fixed) .page-banner {
    background: linear-gradient(to bottom, var(--sr-backdrop-tint) 0, var(--sr-backdrop-tint) calc(100% - 40px), transparent 100%);
}
@media (prefers-reduced-motion: reduce) { .sr-backdrop--fixed .sr-backdrop__image { transition: none; } }
.sr-has-backdrop .page-banner {
    background: linear-gradient(to bottom, var(--sr-backdrop-tint) 0, var(--sr-backdrop-tint) calc(100% - 40px), var(--sr-backdrop-veil) 100%);
}
.sr-has-backdrop .page-banner :is(h1, .sr-heading) {
    text-shadow: 0 1px 3px color-mix(in srgb, var(--sr-ink) 45%, transparent), 0 0 18px color-mix(in srgb, var(--sr-ink) 25%, transparent);
}
.sr-section--boxed > .sr-section__container { max-width: 1500px; }

.sr-column { position: relative; display: flex; min-height: 1px; }
.sr-column__inner { position: relative; display: flex; flex-wrap: wrap; align-content: flex-start; width: 100%; }
/* :where() keeps this at one class, so a page's own room for a column
   (Pages-Styling.css) always wins over the gap. */
:where(.sr-gap-default > .sr-section__container > .sr-column) > .sr-column__inner { padding: 10px; }

@media (min-width: 768px) {
    .sr-col-25  { width: 25%; }
    .sr-col-33  { width: 33.333%; }
    .sr-col-50  { width: 50%; }
    .sr-col-66  { width: 66.666%; }
    .sr-col-100 { width: 100%; }
}
@media (max-width: 1024px) {
    .sr-section__container { flex-wrap: wrap; }
    .sr-section--boxed > .sr-section__container { max-width: 1024px; }
}
@media (max-width: 767px) {
    .sr-column { width: 100%; }
    .sr-section--boxed > .sr-section__container { max-width: 767px; }
}

/* A block's width: the column's, unless the page gives it one of its
   own. :where() keeps these at no weight at all, so a page's width
   (Pages-Styling.css: the services page's two half-width texts) wins. */
:where(.sr-column__inner > .sr-block, .sr-column__inner > .sr-section) { width: 100%; }
:where(.sr-block.sr-width-initial) { max-width: 100%; }
.sr-block { position: relative; }
.sr-block:not(:last-child) { margin-block-end: 20px; }
.sr-block.sr-width-initial:not(:last-child) { margin-block-end: 0; }

/* ---- Heading ------------------------------------------------------ */
/* Its height follows how it looks (`look`, Theme-Styling.css), not its
   level: a second-level heading drawn as a fourth keeps a fourth's. */
.sr-heading { margin: 0; padding: 0; line-height: 1; }
h1.sr-heading, .sr-heading.sr-look-h1 { line-height: 1.4em; }
h2.sr-heading, h3.sr-heading, .sr-heading.sr-look-h2, .sr-heading.sr-look-h3 { line-height: 1.3em; }
.sr-heading.sr-look-h4 { line-height: 1; }

/* ---- Rule: its style, width and colour are the page's ------------- */
.sr-block--divider { --sr-rule-style: none; --sr-rule-width: 1px; --sr-rule-color: currentColor; }
.sr-divider { display: flex; justify-content: center; }  /* a short rule stands under the middle of its title (EVERY TEXT CENTRE-JUSTIFIED) */
.sr-divider__line {
    display: flex;
    margin: 0;
    direction: ltr;
    border-block-start: var(--sr-rule-width) var(--sr-rule-style) var(--sr-rule-color);
}

/* ---- Spacer ------------------------------------------------------- */
.sr-spacer { height: var(--sr-spacer-size); }

/* ---- Picture ------------------------------------------------------ */
.sr-block--image { text-align: center; }
.sr-image-link { display: inline-block; }
.sr-image {
    display: inline-block;
    max-width: 100%;
    height: auto;
    border: none;
    border-radius: 0;
    box-shadow: none;
    vertical-align: middle;
}

/* ---- Button: Georgia on white, the theme's ------------------------ */
.sr-button {
    display: inline-block;
    padding: 15px 24px;
    border: 0 solid var(--sr-white);
    border-radius: 4px;
    background-color: var(--sr-white);
    font-family: Georgia, Times, serif;
    font-weight: 700;
    font-size: 0.9375rem;
    line-height: 1em;
    text-align: center;
    text-decoration: none;
    color: var(--sr-accent);
    fill: var(--sr-accent);
    transition: all 0.3s;
}
.sr-button:hover, .sr-button:focus {
    border-color: var(--sr-button-hover-bg);
    background-color: var(--sr-button-hover-bg);
}
@media (max-width: 921px) { .sr-button { padding: 14px 24px; } }
@media (max-width: 544px) { .sr-button { padding: 12px 22px; } }
.sr-button__inner { display: flex; flex-direction: row; justify-content: center; gap: 5px; }
.sr-button__icon { display: flex; align-items: center; }
.sr-button__icon .sr-icon { display: block; width: auto; height: 1em; }
.sr-button__text { display: inline-block; }

/* ---- Icon list: a mark (14px) and its words ----------------------- */
.sr-icon-list { margin: 0; padding: 0; list-style: none; }
.sr-icon-list__item { position: relative; display: flex; justify-content: center; align-items: center; margin: 0; padding: 0; font-size: inherit; }
.sr-icon-list__icon { position: relative; display: flex; width: 1.25em; font-size: 14px; }
.sr-icon-list__icon .sr-icon { display: block; width: auto; height: 1em; }
.sr-icon-list__text { align-self: center; padding-inline-start: 5px; text-align: center; transition: color 0.3s; }  /* an address, a telephone: centred as a name is */

/* ---- Map ---------------------------------------------------------- */
.sr-block--map > .sr-block__body { overflow: hidden; }
.sr-map { line-height: 0; }
.sr-map iframe { width: 100%; max-width: 100%; height: 300px; margin: 0; border: none; line-height: 1; }

/* ---- Coming into view --------------------------------------------- */
.sr-js .sr-reveal:not(.sr-revealed) { visibility: hidden; }
.sr-revealed { animation: sr-fade-in 1.25s; }
.sr-revealed.sr-reveal--slow { animation-duration: 2s; }
@keyframes sr-fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    .sr-revealed { animation: none !important; }
}
/* On paper everything shows, scrolled past or not. */
@media print {
    .sr-js .sr-reveal:not(.sr-revealed) { visibility: visible; }
}

/* ---- EVERY TEXT CENTRE-JUSTIFIED (the owner's word, 2026-11-16: "a lot
   of text is not center justified, as I said everything should be"):
   every text of the pages and of the footer is justified, its lines
   flush with both edges and its last line in the middle, so a text of one
   line (a name, an address, a telephone) stands in the middle; every
   title is centred. A list's bullet stands at the start of its item's
   first line rather than in the margin, so an item of one line is
   centred whole, its bullet with it; the list keeps no room at its left
   for the bullets. A part of a page drawn its own way (the cards' and
   the hero's room, the footer's columns) says so in its own sheet. */
:where(#sr-content, .sr-footer) { text-align: justify; text-align-last: center; }
:where(#sr-content, .sr-footer) :where(h1, h2, h3, h4, h5, h6) { text-align: center; text-wrap: balance; }  /* two lines of a like length */
/* over the theme's `ul`, 3em in; and no bullet before an item (the owner's word, 2026-11-17: "Not the paragraphs
   themselves, but the bullet point symbol itself"): a page's list items stand as paragraphs do */
:where(#sr-content) ul { margin-inline-start: 0; list-style-position: inside; list-style-type: none; }

/* ---- THE ROWS ARE EVEN (Site-Script.js; the owner's word, 2026-11-16,
   his portfolio's system "everywhere across the app"): a justified text
   is set by the script line by line, each line a block that never wraps
   (`.sr-even-line`), justified edge to edge over its spaces alone, the
   last in the middle (EVERY TEXT CENTRE-JUSTIFIED, above; the
   portfolio's last line stands at the start); a list item's bullet is
   drawn at the start of its first line (`.sr-even-bullet`, half a letter
   from its first word), as the browser draws it, the item's own mark
   hidden; its words kept whole for a screen reader
   (`.sr-even-text`) unless it holds a link. The lines carry the text's
   words once more, of no height and unseen (`.sr-even-lines::after`, its
   `data-sr-room`), so the text asks the room its words asked before it
   was set. The column the script reads the browser's hyphenation from is
   `.sr-hyphen-probe` (TeX's limits: six letters a word, two before a
   break, three after); a text's pieces are measured in its own type,
   inside it, in `.sr-even-measure`, each piece shaped alone. As the
   portfolio's (nikolaos.kaounas, Sections-Styling.css, Paragraphs). */
.sr-even-lines { display: block; }
.sr-even-lines::after {
    content: attr(data-sr-room);
    display: block;
    height: 0;
    overflow: hidden;
    visibility: hidden;
}
.sr-even-line { display: block; white-space: nowrap; text-align: justify; text-align-last: justify; }
.sr-even-line:last-child { text-align-last: inherit; }  /* the text's own: in the middle */
/* a text of two lines whose first could not be set evenly: both in the middle (Site-Script.js, A TEXT OF TWO
   LINES THAT CANNOT BE SET EVENLY IS CENTRED) */
.sr-even--caption .sr-even-line { text-align-last: center; }
li.sr-even { list-style-type: none; }
.sr-even-bullet { display: inline-block; padding-inline-end: 0.5em; }
.sr-ink .sr-even-bullet { color: var(--sr-text); }  /* a list's bullets keep the theme's grey (Theme-Styling.css) */
.sr-even-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.sr-hyphen-probe {
    position: absolute;
    left: -10000px;
    top: 0;
    width: 1px;
    visibility: hidden;
    pointer-events: none;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    -webkit-hyphens: auto;
    hyphens: auto;
    hyphenate-limit-chars: 6 2 3;
}
.sr-even-measure { position: absolute; left: 0; top: 0; visibility: hidden; pointer-events: none; white-space: nowrap; }
.sr-even-measure > span { display: inline-block; }

/* Author: Nikolaos S. Kaounas */
