/* inner.css — parts of the inner pages that have a script of the theme behind them: the strip of photographs under
   the menu (Owl Carousel in place of the old slider), the photo gallery, the share buttons, the Contact Form 7
   wrappers. Loaded on every template except the home page.
   Every value names its source: a measurement of the live (tools/qa/probe-pair.mjs, 2026-11-12), the saved pages of
   the crawl (inventory/reference-html) or the slider data of the old site. Nothing is copied from the CSS of the old
   slider, gallery or template. */

/* ==========================================================================
   Strip of photographs under the menu
   Measured (page «Ελαιώνες», 1366x768, desktop): #tm-top-hero starts under the 100px navbar and is at least the
   window height minus 100px tall; the slider is as wide as the window, 260px tall (365px × window / 1920), white
   behind the photographs, at the top of the hero; the page container is pulled up over the rest of the hero
   (its margin is a rule of the generated CSS).
   ========================================================================== */
#tm-top-hero.tm-hero-container { position: relative; }
/* the window-high hero exists from 1220px only; in a narrower computer window the hero is as tall as the strip and the
   page follows it directly (tools/qa/page-diff.mjs breakpoints 1200 / 1219 and a probe of the live at 1199, 1024,
   960 with a computer user agent, 2026-11-12: hero 228 / 232 / 195 / 183px, no minimum height) */
@media (min-width: 1220px) {
  #tm-top-hero.tm-hero-container { min-height: calc(100vh - 100px); }
}
/* the section is a flex row of the grid (UIkit classes of the markup): its one cell spans the window; the strip fills it */
#tm-top-hero > section.tm-top-hero > .uk-width-1-1 { display: block; }
.en-strip {
  position: relative;
  overflow: hidden;
  width: 100%;
  /* before the script runs: the proportion of the stage (1920 × 365) */
  height: min(365px, calc(100vw * 365 / 1920));
  background-color: rgb(255, 255, 255);
}
.en-strip .en-strip__slides,
.en-strip .owl-stage-outer,
.en-strip .owl-stage,
.en-strip .owl-item,
.en-strip .en-strip__slide {
  height: 100%;
}
.en-strip .en-strip__slides:not(.owl-loaded) { display: block; }
.en-strip .en-strip__slides:not(.owl-loaded) > .en-strip__slide:nth-child(n+2) { display: none; }
/* photograph: fitted whole in the strip, centred (slide setting bg_fit «contain», bg_position «center center») */
.en-strip__slide {
  background-position: 50% 50%;
  background-size: contain;
  background-repeat: no-repeat;
}
/* change of photograph: 300ms cross-fade (old slider: transition duration 300) */
@keyframes en-strip-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes en-strip-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes en-strip-timer { from { width: 0; } to { width: 100%; } }
.en-strip .owl-item.en-strip-in { animation: en-strip-in 300ms both; }
.en-strip .owl-item.en-strip-out { animation: en-strip-out 300ms both; }
/* timer bar: 5px, rgba(0, 0, 0, 0.15), grows across the top while a photograph is on show (measured) */
.en-strip__timer {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 200;
  width: 0;
  height: 5px;
  background-color: rgba(0, 0, 0, 0.15);
}
.en-strip__timer.is-running { animation: en-strip-timer linear both; }
@media (prefers-reduced-motion: reduce) {
  .en-strip .owl-item,
  .en-strip .en-strip__timer { animation: none !important; }
}

/* ==========================================================================
   Photo gallery (assets/js/gallery.js)
   Source: saved pages «fotografies» of the crawl at 375 / 768 / 1366px and the live screenshot at 1366px:
   tiles 250×209 on rgb(240, 240, 240), grid centred, dots 15px wide, 12px apart, 40px under the grid,
   rgb(134, 151, 145) for the pane on show and rgb(195, 203, 200) for the others.
   ========================================================================== */
.en-gallery {
  position: relative;
  margin: 0 auto;
  max-width: 100%;
  min-width: 150px;
  /* before the script runs: three rows of tiles */
  min-height: 687px;
}
.en-gallery__grid {
  position: absolute;
  top: 0;
  overflow: hidden;
}
.en-gallery__inner {
  position: relative;
  height: 100%;
  transition: transform 0.3s;
}
.en-gallery__tile {
  position: absolute;
  display: block;
  overflow: hidden;
  background-color: rgb(240, 240, 240);
}
.en-gallery__tile img {
  position: absolute;
  display: block;
  max-width: none;
}
/* under the pointer: the photograph darkens and a white magnifier shows in its middle (approved Ν18).
   Source: one-off Playwright probe of the live gallery /el/fotografies, 1366x768, 2026-11-12, pointer on a tile:
   overlay rgba(0, 0, 0, 0.4) over the whole 250x209 tile, icon box 38x38 at left 106 top 86 (the centre), white
   glyph about 28px wide. The glyph here is the magnifier of Font Awesome, not the picture of the old gallery. */
.en-gallery__tile::after {
  content: "\f002";
  display: flex;
  align-items: center;
  justify-content: center;
  font: normal normal normal 30px/1 FontAwesome;
  color: rgb(255, 255, 255);
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s;
}
.en-gallery__tile:hover::after,
.en-gallery__tile:focus::after { opacity: 1; }
.en-gallery:not(.is-ready) .en-gallery__tile { visibility: hidden; }
.en-gallery__bullets {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 15px;
  font-size: 0;
  line-height: 0;
  text-align: center;
}
.en-gallery__bullet {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin: 0 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: rgb(195, 203, 200);
  cursor: pointer;
}
.en-gallery__bullet.is-active { background-color: rgb(134, 151, 145); }

/* ==========================================================================
   Share buttons of the olive pages (rules of the ZOO element «socialbuttons», GNU/GPL): 15px above the row, the
   buttons side by side with 10px between them
   ========================================================================== */
.yoo-zoo.socialbuttons { margin-top: 15px; }
.yoo-zoo.socialbuttons > div { float: left; margin-right: 10px; }
.yoo-zoo.socialbuttons::after { content: ""; display: table; clear: both; }
/* plain share links in place of the buttons the scripts of X and Facebook drew (approved Ν13): the size of those
   buttons (20px high, 11px text), each in the colour of its network */
.en-share {
  display: inline-block;
  height: 20px;
  padding: 0 8px;
  border-radius: 3px;
  font: normal 500 11px/20px Roboto, sans-serif;
  color: rgb(255, 255, 255);
  text-decoration: none;
  white-space: nowrap;
}
.en-share:hover,
.en-share:focus { color: rgb(255, 255, 255); text-decoration: none; opacity: 0.85; }
.en-share--twitter { background-color: rgb(0, 0, 0); }
.en-share--facebook { background-color: rgb(24, 119, 242); }

/* ==========================================================================
   Contact Form 7 wrappers: they take no box of their own, so the form is laid out as the form of the old site
   ========================================================================== */
.contact-form .wpcf7-form-control-wrap { display: contents; }
/* the fieldset Contact Form 7 adds for its hidden fields takes no room… */
.contact-form form#contact-form > fieldset.hidden-fields-container { display: none; }
/* …and is not the first fieldset of the form: the «required fields» row after it is still pulled up 30px, and the
   fieldset after the next one keeps its 20px above (tools/qa/probe-pair.mjs on the live contact page, 1366x768,
   2026-11-12: first row margin-top -30px, second fieldset margin 20px 0) */
.contact-form form#contact-form > fieldset.hidden-fields-container + fieldset > .control-group:first-of-type { margin-top: -30px; }
.contact-form form#contact-form > fieldset:not(.hidden-fields-container) + fieldset { margin: 20px 0; }

/* ==========================================================================
   Embedded map of a text page: never wider than the text column (approved fix Β4; the old page had a 1740px map)
   ========================================================================== */
main#tm-content > article.uk-article > iframe { max-width: 100%; }

/* ==========================================================================
   Certificates page: the two certificates side by side
   Source: tools/qa/probe-pair.mjs on the live page «certifications» (1366x768, 2026-11-12): the list has no bullets
   and no indent; each item floats left with 14px above and below and 16px at the sides (the list itself keeps no
   height, so the round mark that follows sits beside the last item's row as on the old page).
   ========================================================================== */
.certification ul { padding: 0; list-style-type: none; }
.certification li { float: left; padding: 14px 16px; }

/* ==========================================================================
   Contact form, errors (approved Ν21): Contact Form 7 keeps its own way (a sentence under the field and a summary
   under the form), in the red of the old site, on the sentence, the label and the frame of the field. The yellow
   frame of the Contact Form 7 summary becomes the same red.
   Source: inventory/design/components.json, component contact-form, state form-error (label.invalid colour and
   input.invalid / textarea.invalid border colour: rgb(233, 50, 91)).
   ========================================================================== */
.contact-form form#contact-form .wpcf7-not-valid-tip { color: rgb(233, 50, 91); }
.contact-form form#contact-form .control-group:has(.wpcf7-not-valid) label { color: rgb(233, 50, 91); }
.contact-form form#contact-form input.wpcf7-not-valid,
.contact-form form#contact-form textarea.wpcf7-not-valid { border-color: rgb(233, 50, 91); }
.contact-form .wpcf7 form.invalid .wpcf7-response-output,
.contact-form .wpcf7 form.unaccepted .wpcf7-response-output,
.contact-form .wpcf7 form.payment-required .wpcf7-response-output { border-color: rgb(233, 50, 91); color: rgb(233, 50, 91); }

/* ==========================================================================
   Contact form, window 481–533px wide (approved Ν22): the fields with a fixed length made the form 534px wide and
   the page scrolled sideways (tools/qa/width-sweep.mjs, 2026-11-12: «fieldset 40…534» at 481px). In this range only,
   the form shrinks to its column and the fields to the room beside their label. Outside it nothing changes.
   ========================================================================== */
@media (min-width: 481px) and (max-width: 533px) {
    .contact-form form#contact-form fieldset { min-width: 0; }
    .contact-form form#contact-form input,
    .contact-form form#contact-form textarea { box-sizing: border-box; max-width: 100%; }
}
