/* Προσθήκες του νέου site πάνω στο πρωτότυπο template (χωρίς Joomla/jQuery) */

/* Εναλλασσόμενο φόντο (όπως το jQuery backstretch του παλιού site) */
.backstretch{position:fixed;left:0;top:0;width:100%;height:100%;overflow:hidden;margin:0;padding:0;z-index:-999999}
.backstretch div{position:absolute;inset:0;background-size:cover;background-position:center center;opacity:0;transition:opacity .75s linear}
.backstretch div.on{opacity:1}

/* Μενού κινητού (αντί για το collapse του bootstrap.js) */
.sp-mobile-menu.collapse.in{height:auto;overflow:visible}

/* Υπογραφή 49agency: copyright αριστερά, υπογραφή δεξιά */
#sp-footer-wrapper #sp-footer1{padding:0 25px;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:12px 24px;flex-wrap:wrap}
#sp-footer-wrapper #sp-footer1 .copyright{display:inline-block;text-align:left}
#sp-footer-wrapper .site-credit{display:inline-flex;align-items:center;gap:8px;color:#fff;font-size:14px;opacity:.75;text-decoration:none;transition:opacity .2s}
#sp-footer-wrapper .site-credit:hover{opacity:1;color:#fff}
#sp-footer-wrapper .site-credit img{height:30px;width:auto;max-width:none}
@media (max-width:767px){
  #sp-footer-wrapper #sp-footer1{flex-direction:column;justify-content:center}
  #sp-footer-wrapper #sp-footer1 .copyright{text-align:center}
}

/* Slimbox: θέσεις που υπολογίζει το js */
#lbCenter,#lbBottomContainer{position:fixed}
#lbImage{background-size:contain}

/* Βίντεο YouTube 16:9 (ήταν ενσωματωμένο στο περιεχόμενο του παλιού site) */
.embed-responsive{position:relative;display:block;height:0;padding:0;overflow:hidden}
.embed-responsive-16by9{padding-bottom:56.25%}
.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}

/* Κουμπί «X Post» (στη θέση του widget του Twitter) */
.itemTwitterButton .x-share{display:inline-block;height:20px;padding:0 12px 0 10px;border-radius:9999px;background:#0f1419;color:#fff;font:500 13px/20px "Helvetica Neue",Arial,sans-serif;text-decoration:none;white-space:nowrap;margin-bottom:2px}
.itemTwitterButton .x-share:hover{background:#272c30;color:#fff}
.itemTwitterButton .x-share span{font-weight:700}
/* Interviews: λευκά links αντί για κόκκινα */
.module.interviews .mod-content a{color:#fff}
.module.interviews .mod-content a:hover,.module.interviews .mod-content a:focus{color:#fff;text-decoration:underline}
/* Popup R.I.P. */
.rip-popup{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(0,0,0,.88);opacity:0;transition:opacity .6s ease;box-sizing:border-box}
.rip-popup[hidden]{display:none}
.rip-popup.is-open{opacity:1}
.rip-box{position:relative;width:100%;max-width:820px;max-height:100%;overflow:auto;background:#000;box-shadow:0 20px 60px rgba(0,0,0,.6);border:1px solid rgba(255,255,255,.12)}
.rip-figure{position:relative;margin:0}
.rip-figure img{display:block;width:100%;height:auto;max-width:none}
.rip-figure:after{content:"";position:absolute;left:0;right:0;bottom:0;height:45%;background:linear-gradient(to bottom,rgba(0,0,0,0),rgba(0,0,0,.85));pointer-events:none}
.rip-mark{position:absolute;left:0;right:0;bottom:6%;z-index:1;display:flex;align-items:center;justify-content:center;gap:22px;color:#fff;font-family:Georgia,"Times New Roman",serif;font-size:64px;line-height:1;letter-spacing:.18em;padding-left:.18em;text-shadow:0 2px 14px rgba(0,0,0,.8)}
.rip-line{display:block;width:70px;height:1px;background:rgba(255,255,255,.75)}
.rip-text{padding:22px 24px 26px;text-align:center;color:#fff}
.rip-text p{margin:0;font-family:Georgia,"Times New Roman",serif;font-style:italic;font-size:22px;line-height:1.45}
.rip-text p+p{margin-top:6px;font-size:18px;color:rgba(255,255,255,.7)}
.rip-close{position:absolute;top:10px;right:10px;z-index:2;width:40px;height:40px;border:0;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;font-size:28px;line-height:40px;padding:0;cursor:pointer}
.rip-close:hover,.rip-close:focus{background:rgba(0,0,0,.85)}
body.rip-lock{overflow:hidden}
@media (max-width:767px){
  .rip-popup{padding:12px}
  .rip-mark{font-size:38px;gap:12px}
  .rip-line{width:34px}
  .rip-text{padding:16px 16px 20px}
  .rip-text p{font-size:18px}
  .rip-text p+p{font-size:15px}
}
.rip-figure:before{content:"";position:absolute;top:0;right:0;width:60%;height:55%;background:radial-gradient(ellipse at top right,rgba(0,0,0,.75),rgba(0,0,0,0) 70%);pointer-events:none;z-index:1}
.rip-brand{position:absolute;top:5%;right:4%;z-index:2;display:flex;flex-direction:column;align-items:center;width:24%;filter:drop-shadow(0 2px 8px rgba(0,0,0,.7))}
.rip-brand img{display:block;width:100%;height:auto}
.rip-brand span{margin-top:6px;color:#fff;font-family:Georgia,"Times New Roman",serif;font-style:italic;font-size:20px;letter-spacing:.06em;white-space:nowrap}
.rip-close{right:auto;left:10px}
@media (max-width:767px){.rip-brand{width:30%}.rip-brand span{font-size:12px;margin-top:3px}}
/* Μέγεθος popup: υπολογιστής = 70% του ύψους της οθόνης, κινητό = 80% του πλάτους */
.rip-box{display:flex;flex-direction:column;height:70vh;width:calc((70vh - 112px) * 1.5);max-width:100%;max-height:100%;overflow:hidden}
.rip-figure{flex:1 1 auto;min-height:0;overflow:hidden}
.rip-figure img{height:100%;object-fit:cover}
.rip-figure .rip-brand img{height:auto}
.rip-text{flex:0 0 auto}
.rip-mark{font-size:52px}
@media (max-width:767px){
  .rip-box{width:80vw;height:auto;max-height:100%;overflow:auto}
  .rip-figure{flex:none}
  .rip-figure img{height:auto}
  .rip-mark{font-size:34px}
}
