/* realizacie.css - realizácie (agent B, fáza 2): sekcia „Naše realizácie v … okolí“ (stránky Bager <mesto>),
   archív /realizacie/ a stránka realizácie. Predpona .rl-. Hodnoty 1:1 z CSS pôvodného webu (téma bagerorava:
   bagerorava-archiv-css, bagerorava-galeria-css, aio-lok-*, Divi Pixel archív/súvisiace/navigácia; Divi single post). */

/* Poppins 500 kurzíva (pôvodný web ju načítava z Google Fonts - <em> vo výzve realizácie; bez nej syntetická kurzíva) */
@font-face { font-family: 'Poppins'; font-style: italic; font-weight: 500; font-display: swap; src: url(../fonts/poppins-500i-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: italic; font-weight: 500; font-display: swap; src: url(../fonts/poppins-500i-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Naše realizácie v … okolí (pôvodne .aio-lok-realizacie v textovom module 18 px) ---------- */
.rl-lok { --hpb: 10px; --hpbm: 10px; --hpbs: 10px; margin: 46px 0 10px; padding-top: 34px; border-top: 1px solid rgba(33, 33, 33, .12);
  color: var(--dark); font-size: 18px; line-height: 1.6em; text-align: center; }
.rl-lok > .h2 { margin-bottom: 8px; }
.rl-lok > p { margin-bottom: 22px; color: rgba(33, 33, 33, .75); }
.rl-lok-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.rl-lok-k { display: flex; flex-direction: column; overflow: hidden; border-radius: 8px; background: #f7f7f7; transition: box-shadow .2s ease, transform .2s ease; }
.rl-lok-k:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .12); transform: translateY(-2px); }
.rl-lok-img { display: block; line-height: 0; background: #e8e8e8; }
.rl-lok-img img { display: block; width: 100%; height: 150px; object-fit: cover; }
.rl-lok-t { display: block; padding: 14px 16px 18px; }
.rl-lok-t strong { display: block; margin-bottom: 6px; color: #212121; font-size: 16px; line-height: 1.35; }
.rl-lok-k:hover .rl-lok-t strong { color: var(--red); }
.rl-lok-t em { display: block; color: rgba(33, 33, 33, .65); font-size: 14px; font-style: normal; line-height: 1.5; }
.rl-lok > .rl-lok-viac { margin-top: 20px; }
.rl-lok-viac a { font-weight: 600; }
.rl-lok-viac a:hover { text-decoration: underline; }
@media (max-width: 767px) {
  .rl-lok-grid { grid-template-columns: 1fr; }
  .rl-lok-img img { height: 180px; }
}

/* ---------- Spoločné: obal ako Divi #main-content .container (80 %, max 1300 px, 58 px pod hlavičkou) ---------- */
.rl-wrap { position: relative; width: 80%; max-width: 1300px; margin: 0 auto; padding-top: 58px; }
.rl-i { display: inline-block; width: 20px; color: rgba(33, 33, 33, .45); font-size: 15px; }
.rl-meta a { color: rgba(33, 33, 33, .6); }
.rl-meta a:hover { color: var(--red); }

/* ---------- Archív /realizacie/ (Divi Pixel archív „style 3“: karty s fotkou striedavo vpravo / vľavo) ---------- */
.rl-archiv { padding-top: 81px; }            /* 58 px kontajner + 23 px #left-area (≥ 981 px) */
.rl-ah { max-width: 760px; margin: 0 auto 45px; padding: 10px 16px 0; text-align: center; }
.rl-ah h1 { margin: 0 0 14px; padding: 0; color: #212121; font-size: 34px; font-weight: 700; line-height: 1.25; }
.rl-ah p { margin: 0; color: rgba(33, 33, 33, .75); font-size: 17px; line-height: 1.6; }
.rl-card { display: flex; overflow: hidden; margin-bottom: 40px; border-radius: 5px; background: #f7f7f7; box-shadow: 0 10px 30px rgba(44, 61, 73, 0);
  text-align: left; transition: all .6s ease-in-out; }
.rl-card:nth-of-type(odd) { flex-direction: row-reverse; }   /* 1. karta (2. prvok #left-area) má fotku vpravo */
.rl-card:last-of-type { margin-bottom: 0; }
.rl-card:hover { background: #fff; box-shadow: 0 20px 60px rgba(44, 61, 73, .15); }
.rl-card-img { flex-basis: 50%; overflow: hidden; }
.rl-card-img a { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; transition: all .6s ease-in-out; }
.rl-card:hover .rl-card-img a { transform: scale(1.1) rotate(2deg); }
.rl-card-img img { width: 100%; height: 350px; object-fit: cover; vertical-align: bottom; }
.rl-ov { position: absolute; inset: 0; background: rgba(214, 17, 30, .08); transition: all .6s ease-in-out; }
.rl-ov-i { position: absolute; left: 50%; top: 50%; color: #fff; font-size: 30px; line-height: 1; opacity: 0; transform: translate(-50%, -50%); transition: all .6s ease-in-out; }
.rl-card:hover .rl-ov-i { opacity: 1; }
.rl-card-t { position: relative; flex-basis: 50%; padding: 30px 50px; }
.rl-card h2 { padding-bottom: 10px; color: #212121; font-size: 24px; font-weight: 600; line-height: 30px; letter-spacing: 0; transition: all .6s ease-in-out; }
.rl-card h2 a { color: #212121; transition: all .6s ease-in-out; }
.rl-card h2 a:hover { color: var(--red); }
.rl-card-t > p:not(.rl-meta) { color: #212121; }
.rl-archiv .rl-meta { display: flex; flex-wrap: wrap; justify-content: flex-start; margin-bottom: 6px; padding-bottom: 0; color: rgba(33, 33, 33, .6);
  font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: uppercase; }
.rl-archiv .rl-meta > span { display: flex; align-items: center; margin-right: 10px; font-size: 14px; line-height: 1.4em; }
.rl-archiv .rl-cat { margin-right: 10px; }
.rl-archiv .rl-date .rl-i { display: block; }
/* ikona je pôvodne znak ETmodules (::before, line-height 1.4em = 21 px): nad účiarím 0,2 + 960/1024 = 1,1375 em, Poppins 1,05 em
   -> ikonu v riadku zdvihnúť o rozdiel 0,0875 em a kresbu vrátiť dole (na mobile ≤ 481 px sú riadky pod sebou a výška sa sčíta) */
.rl-archiv .rl-i { line-height: 1.4em; }
.rl-archiv .rl-cat .rl-i { vertical-align: .0875em; }
.rl-archiv .rl-i .ico { position: relative; top: .0875em; }
.rl-archiv .rl-cat a { padding-right: 5px; font-size: 12px; }
.rl-more { position: relative; display: flex; align-items: center; justify-content: flex-start; min-height: 50px; margin-top: 15px; }
.rl-btn { position: relative; display: block; overflow: hidden; padding: 15px; border-radius: 100px; background: var(--red); color: #fff;
  font: 400 15px/1 var(--font); letter-spacing: 0; text-align: center; transition: all .3s ease-in-out; }
.rl-btn:hover { background: #a50d17; transform: scale(1.1); }

/* ---------- Stránka realizácie (Divi príspevok + téma bagerorava + Divi Pixel navigácia a súvisiace) ---------- */
/* téma bagerorava: .single-post .et_pb_row { max-width: 1200px !important } platí aj na riadky hlavičky a pätičky (≥ 1500 px užšie) */
.tpl-realizacia .hdr-in, .tpl-realizacia .site-foot .row { max-width: 1200px; }
.rl-post { padding-bottom: 25px; margin-bottom: 60px; overflow-wrap: break-word; }
.rl-head h1 { padding-bottom: 10px; color: #4e4e4e; font-size: 30px; font-weight: 700; line-height: 1.25; }
.rl-single .rl-meta { margin-bottom: 6px; padding-bottom: 15px; font-size: 0; }
.rl-single .rl-meta span { margin-right: 10px; }
.rl-single .rl-meta > span { color: rgba(33, 33, 33, .6); font-size: 14px; }
.rl-single .rl-cat a { padding-right: 5px; }
.rl-hero { display: block; width: 100%; max-width: 760px; height: auto; margin: 26px auto 0; border-radius: 8px; }
.rl-body { padding-top: 30px; color: #212121; }
.rl-body h2 { padding-bottom: 10px; color: #212121; font-size: 34px; font-weight: 700; line-height: 1.4em; }
.rl-body ul { padding: 0 0 23px 1em; list-style: disc; line-height: 26px; }
.rl-body hr { margin: 8px 0; }
.rl-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 24px 0 32px; }
.rl-gal figure { margin: 0; }
.rl-gal a { display: block; overflow: hidden; border-radius: 8px; line-height: 0; cursor: zoom-in; }
.rl-gal img { display: block; width: 100%; height: 220px; object-fit: cover; vertical-align: bottom; transition: transform .35s ease; }
.rl-gal a:hover img { transform: scale(1.05); }
.rl-nav { position: relative; margin-top: 55px; overflow: hidden; }
.rl-nav-row { position: relative; width: 80%; max-width: 1200px; margin: auto; padding: 20px 0; border-top: 1px solid #f2f2f2; }
.rl-prev, .rl-next { display: flex; align-items: center; padding: 10px; border-radius: 50px; background: #f2f2f2; color: #212121;
  font-size: 15px; font-weight: 300; letter-spacing: 0; transition: all .5s ease-in-out; }
.rl-prev { float: left; }
.rl-next { float: right; }
.rl-prev a, .rl-next a { display: flex; align-items: center; padding: 0 5px; color: #212121; transition: all .5s ease-in-out; }
.rl-ni { display: inline-block; color: var(--red); font-size: 20px; line-height: 0; }
.rl-prev .rl-ni { padding-right: 5px; }
.rl-next .rl-ni { padding-left: 5px; }
.rl-prev:hover, .rl-next:hover { background: var(--red); }
.rl-prev:hover a, .rl-next:hover a, .rl-prev:hover .rl-ni, .rl-next:hover .rl-ni { color: #fff; }
.rl-rel { clear: both; width: 100%; padding: 25px 0; }
.rl-rel h3 { width: 100%; margin: 30px 0 26px; padding: 0 30px 10px 0; color: #212121; font-size: 26px; font-weight: 600; line-height: 1.4em; letter-spacing: 0; text-align: center; }
.rl-rel-row { display: flex; }
.rl-rel-k { position: relative; overflow: hidden; width: 31.333%; margin: 0 3% 25px 0; border-radius: 10px; background: #f3f6f4; }
.rl-rel-k:nth-child(3n) { margin-right: 0; }
.rl-rel-k > a { position: relative; display: block; height: 100%; overflow: hidden; }
.rl-rel-img { overflow: hidden; }
.rl-rel-z { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; transition: all .6s ease-in-out; }
.rl-rel-k:hover .rl-rel-z { transform: scale(1.1) rotate(2deg); }
.rl-rel-z img { position: relative; display: block; width: 100%; height: 240px; object-fit: cover; vertical-align: bottom; box-shadow: 0 10px 100px rgb(225, 237, 249); }
.rl-rel-ov { position: absolute; inset: 0; background: rgba(0, 0, 0, .1); }
.rl-rel-b { display: flex; align-items: center; width: 100%; padding: 15px 10px; }
.rl-rel-b h4 { margin: 0; padding: 0 45px 0 0; color: #212121; font-size: 18px; font-weight: 600; line-height: 26px; }
.rl-rel-arr { position: absolute; right: 5px; bottom: 10px; padding: 0 10px; color: rgba(33, 33, 33, .5); font-size: 20px; line-height: 28.8px;
  opacity: 0; transform: translateX(-5px); transition: all .6s ease-in-out; }
.rl-rel-k:hover .rl-rel-arr { opacity: 1; transform: translateX(0); }
/* zväčšenie fotky galérie: okno #lightbox (main.js) vo vzhľade pôvodného okna realizácií (#aio-lb) */
.tpl-realizacia .lb { padding: 0; background: rgba(0, 0, 0, .92); }
.tpl-realizacia .lb img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 6px; box-shadow: none; }
.tpl-realizacia .lb button { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; padding: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .12); font-size: 30px; opacity: 1; transition: background .2s ease; }
.tpl-realizacia .lb button:hover { background: var(--red); }
.tpl-realizacia .lb-close { top: 20px; right: 20px; }
.tpl-realizacia .lb-prev { left: 20px; }
.tpl-realizacia .lb-next { right: 20px; }
.tpl-realizacia .lb-cap { bottom: 22px; color: rgba(255, 255, 255, .75); font-size: 14px; }

@media (max-width: 1100px) {
  .rl-post { margin-bottom: 42px; }      /* Divi .et_pb_post: 60 px, od 1100 px nižšie 42 px */
}
@media (max-width: 980px) {
  .rl-archiv { padding-top: 58px; padding-bottom: 130px; }
  .rl-card-t { padding: 30px; }
  .rl-rel-k { width: 30%; margin-right: 5%; }
}
@media (max-width: 800px) {
  .rl-hero { max-width: 100%; }
}
@media (max-width: 768px) {
  .rl-card { display: block; }
}
@media (max-width: 767px) {
  .rl-archiv { padding-bottom: 90px; }
  .rl-ah { margin-bottom: 30px; }
  .rl-ah h1 { font-size: 26px; }
  .rl-ah p { font-size: 16px; }
  .rl-head h1 { font-size: 23px; }
  .rl-gal { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .rl-gal img { height: 150px; }
  .rl-rel-row { flex-wrap: wrap; }
  .rl-rel-k { width: 100%; margin-right: 0; }
  .tpl-realizacia .lb button { width: 42px; height: 42px; font-size: 24px; }
  .tpl-realizacia .lb-prev { left: 8px; }
  .tpl-realizacia .lb-next { right: 8px; }
}
@media (max-width: 481px) {
  .rl-card-t { padding: 20px; }
  .rl-archiv .rl-meta { display: block; margin: 20px 0; }
  .rl-archiv .rl-meta > span { margin: 10px 0 0; }
}
@media (max-width: 479px) {
  .rl-card h2 { padding-bottom: 0; }
  .rl-body h2 { padding-bottom: 0; font-size: 16px; }
}
