.slick-wide .slick-slide {
  margin-left: 4px; 
}

/* Remove spacing for project gallery slider */
.slick-gallery.slick-wide .slick-slide {
  margin-left: 0;
}

.slick-wide.slick-news .slick-slide {
  width: 284px;
  height: 160px;
}

  @media (min-width: 1704px) {
    .slick-wide.slick-news .slick-slide {
      width: 320px;
      height: 200px; } }

.news {
    margin-top: 4px;
    position: relative;
/*
    margin-left: -40px;
    margin-right: -40px;
*/
    padding-left: 40px;
/*
    padding-right: 40px;
*/
}
.news-label-left {
    line-height: 40px;
    white-space: nowrap;
    position: absolute;
    right: 100%;
    transform-origin: top right 0;
    transform: rotate( 270deg );
    text-align: center;
    margin: 0;
    display: block;
    width: 160px;
    background-color: #131d2b;
    color: white;
    text-transform: uppercase;
}
.news-label-right {
    line-height: 40px;
    white-space: nowrap;
    position: absolute;
    right: 0%;
    transform-origin: top right 0;
    transform: rotate( 90deg );
    text-align: center;
    margin: 0;
    display: block;
    width: 160px;
    background-color: #131d2b;
    color: white;
    text-transform: uppercase;
}
@media (min-width: 1704px) {
.news-label {
    width: 200px;
}
}
.news-carousel {
    margin-right: 40px;
}
@media (max-width: 576px) {
    .news-label-right {
         display: none;
    }
}
@media (max-width: 576px) {
.news-carousel {
    margin-right: 0;
}
}
@media (max-width: 576px) {
.news .slick-muted .slick-slide img {
    filter: none;
}
}

span.teaser {
    display: block;
    width: 100%;
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%);
    position: absolute;
    color: #fff;
    text-shadow: 2px 2px 4px #000;
    text-align: center;
    padding: 0 10px;
    max-height: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 5;
line-clamp: 5;
-webkit-box-orient: vertical;
overflow: hidden;
z-index: 15;
}

/*
a:hover span.teaser {
	top: 0%;
}
*/

span.teaser2 {
    display: block;
    width: 100%;
    position: absolute;
    color: #121D2B;
    text-align: justify;
    /* text-shadow: 2px 2px 4px #000; */
    padding: 0 10px;
}

.news {
    border-bottom: 1px solid #131d2b;
    border-top: 1px solid #131d2b;
}

.footer-elems {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
}

/* Fix for project page slider image heights - 2025-09-29 */
.slick-gallery .slick-slide {
  height: 300px;
}

/* Advanced Aspect Ratio System - 2025-11-13 */

/* Default: landscape mode with cover */
.slick-gallery .slick-slide img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  max-height: none;
  transition: all 0.3s ease;
}

/* Portrait mode with contain */
.slick-gallery .slick-slide img.portrait {
  -o-object-fit: contain;
     object-fit: contain;
}

/* Centering and background for portrait images */
.slick-gallery .slick-slide.has-portrait {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background-color: #ebecee !important;
  overflow: hidden;
}

/* Hybrid mode - letterbox for extreme aspect ratios */
.slick-gallery .slick-slide.has-letterbox {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background-color: #ebecee !important;
  overflow: hidden;
}

/* Ensure cloned slides also get the background */
.slick-gallery .slick-cloned.has-portrait,
.slick-gallery .slick-cloned.has-letterbox {
  background-color: #ebecee !important;
}

/* Loading state - prevent flash of unstyled content */
.slick-gallery .slick-slide img:not(.aspect-detected) {
  opacity: 0.9;
}

.slick-gallery .slick-slide img.aspect-detected {
  opacity: 1;
}

/* Debug overlay - shows aspect ratio info */
.debug-aspect-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 10px 12px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  line-height: 1.6;
  border-radius: 4px;
  z-index: 1000;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  min-width: 140px;
}

.debug-aspect-overlay strong {
  color: #4CAF50;
  font-weight: bold;
  display: inline-block;
  min-width: 75px;
}

/* Highlight hybrid mode in debug */
.has-letterbox .debug-aspect-overlay {
  border: 2px solid #ff9800;
}

.has-letterbox .debug-aspect-overlay strong {
  color: #ff9800;
}

/* Mobile adjustments for debug overlay */
@media (max-width: 767px) {
  .debug-aspect-overlay {
    font-size: 9px;
    padding: 6px 8px;
    min-width: 110px;
  }
  
  .debug-aspect-overlay strong {
    min-width: 60px;
  }
}

@media (min-width: 576px) {
  .slick-gallery .slick-slide {
    height: 300px;
  }
}

@media (min-width: 768px) {
  .slick-gallery .slick-slide {
    height: 350px;
  }
}

@media (min-width: 992px) {
  .slick-gallery .slick-slide {
    height: 400px;
  }
}

@media (min-width: 1440px) {
  .slick-gallery .slick-slide {
    height: 600px;
  }
}

/* Project description block - below project info bar */
.project-description {
  padding: 6px 0 0.75rem 4px;
  background-color: #ffffff;
  font-size: 14px;
  font-weight: normal;
  text-align: justify;
}

/* Structured description content (headings, paragraphs, bullets, CTA) */
.project-description p {
  margin: 0;
}
.project-description h3 {
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 1rem 0 0;
  color: #131d2b;
}
.project-description ul {
  margin: 0;
  padding-left: 1.1rem;
}
.project-description li {
  margin-bottom: 0;
}
.project-description .cta {
  margin-top: 1rem;
  font-style: italic;
}
.project-description .cta a {
  color: #445267;
  font-weight: bold;
  text-decoration: underline;
}

/* Move section header text 10px to the right, add letter spacing */
section .h .hc {
  padding-left: calc(.25rem + 10px);
  letter-spacing: 0.1em;
}

/* Increase gap between portfolio category rows */
section {
  margin-bottom: .75rem;
}

/* Increase gap between portfolio category images */
.slick-muted.slick-wide .slick-slide {
  margin-left: 12px;
  width: 272px; /* 284 - 12px margin */
}
@media (min-width: 576px) {
  .slick-muted.slick-wide .slick-slide {
    width: 343px; /* 355 - 12px margin */
  }
}

/* Remove desaturation and blue overlay from portfolio category images */
.slick-muted .slick-slide img {
  -webkit-filter: none;
          filter: none;
}
.slick-muted .slick-slide:before {
  background: transparent;
}

/* Hover overlay for the "news"-style carousels (.slick-muted): same full-card
   translucent navy veil as the portfolio category grid (category.php). The
   client+name label no longer floats as un-backed centered text that can
   overflow short thumbnails; it now fills the whole thumbnail, centered, wraps,
   with the PPAE navy veil and tighter line spacing (no font-size change).
   Affects: homepage News band, portfolio-page category bands, and the
   project-page "similar projects" band (all .slick-muted). Does NOT affect the
   homepage feature carousel (#slick-main) or the Services band (.news2 .teaser).
   Revert: remove this block + restore ?v in includes/top.php. */
.slick-muted .slick-slide:hover span.info {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  top: 0;
  left: 0;
  -webkit-transform: none;
  -o-transform: none;
  transform: none;
  width: 100%;
  height: 100%;
  padding: 12px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  background: rgba(19, 29, 43, 0.6);
  color: #fff;
  text-shadow: 2px 2px 4px #000;
  text-align: center;
  line-height: 1.2;
  overflow: hidden;
  position: absolute;
}

/* Mobile fix for project page slider - 2025-11-06 */
@media (max-width: 767px) {
  .slick-gallery.slick-wide .slick-slide {
    margin-left: 0;
  }
  .slick-gallery div img {
    max-width: 100%;
    width: 100%;
  }
}

/* Footer category links (Rezidential, Industrial, etc): same hover effect as
   the top menu - text color fades from solid navy to 70% opacity, with a
   smooth transition. Revert: restore css/main-xtra.rev0.css. */
.nav-footer .nav-link {
  transition: color 0.15s ease-in-out;
}
.nav-footer .nav-link:hover,
.nav-footer .nav-link:focus {
  color: rgba(19, 29, 43, 0.7);
}

/* Enlarge the PPAE logo by 20% (60px -> 72px). logo.png is 773x236, far higher
   resolution than needed at this size, so it stays sharp. Revert: restore
   css/main-xtra.rev0.css. */
.navbar img,
.navbar-light img {
  height: 72px;
}

/* Move the PP square (logo-overlay) on the feature carousel 10px lower
   (top 10px -> 20px). Revert: restore css/main-xtra.rev0.css. */
#slick-main .logo-overlay {
  top: 20px;
}

/* Shrink only the PP graphic inside the square by 20% (background-size: 80%),
   while keeping the .logo element at its original footprint so the square keeps
   its previous height. Revert: restore css/main-xtra.rev0.css. */
#slick-main .logo-overlay .logo {
  background-size: 80%;
}

/* Move the navbar "current page" underline and the "current language" (Ro/En)
   underline up by 5px. The base rule (main.css) draws a 3px border-bottom 8px
   below the link text (padding-bottom:8px; margin-bottom:-3px). Reducing the
   bottom padding to 3px raises the line 5px; bumping margin-bottom to +2px keeps
   the link's total height the same (3+3+2 == 8+3-3) so the text doesn't shift.
   Revert: restore css/main-xtra.rev0.css. */
.navbar .active a,
.navbar-light .active a,
.navbar a.active,
.navbar-light a.active {
  padding-bottom: 3px;
  margin-bottom: 2px;
}

/* Move the footer category menu (REZIDENTIAL, INDUSTRIAL, ...) up 10px, and the
   footer info line (email / physical address / copyright) up 10px as well.
   Revert: restore css/main-xtra.rev0.css. */
.nav-footer {
  margin-top: -10px;
}
footer {
  margin-top: -10px;
}

