:root {
    --bg: #4a4a4a;
    --text: #eaeaea;
    --muted: rgba(255,255,255,.65);
  
    --blue: #0b4ea2;
    --blue2: #0a3e83;
  
    --ring-green: #38c24d;
    --ring-blue: #0a4b85;
  
    --shadow: 0 14px 30px rgba(0,0,0,.35);
    --radius: 18px;
  }
  

  .pv-section {
    width:100%;
  }

  .pv-layout {
    width:100%;

    display:flex;
  }

  .pv-main {
    width:70%;

  }

  .pv-header {
    width:100%;

    display:flex; flex-direction: row;
    justify-content: space-between;
  }

  .pvh-title {
    flex:0 0 80%;
  }

  .pvh-actions {
    flex:0 0 20%;
  }


  /* parent container (pv-stage) fills available space */
  .pv-stage{
    width: 100%;
    min-height: 80%;
    padding: 10px;
    box-sizing: border-box;

   
  }
  
  .pv-content-grid{
    width: 90%;
    height: 100%;
    margin: auto;
  
    display: grid;
    grid-template-rows: minmax(90px, 0.22fr) minmax(0, 1fr) minmax(90px, 0.22fr);
    gap: 10px;
  
    min-width: 0;
    min-height: 0;
  }
  
  /* each row wrapper fills its row */
  .pv-row{
    min-width: 0;
    min-height: 0;
    display: grid;
    gap: 10px;
  }
  
  /* TOP + BOTTOM = 2 columns 50/50 */
  .pv-row--top,
  .pv-row--bot{
    grid-template-columns: 1fr 1fr;
  }
  
  /* MIDDLE = 3 columns (left thin, center big, right thin) */
  .pv-row--mid{
    grid-template-columns: minmax(120px, 0.20fr) minmax(0, 1fr) minmax(120px, 0.20fr);
  }
  
  /* demo visuals */
  .cell{
    /*
    background: #d9d9d9;
    border: 1px solid #000;
    */
    padding: 8px;
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
  }


  .pv-stage-image{
    margin: 0 auto;

    width: min(72vw, 520px);
    max-width: 520px;
    min-width: 280px;
    height:100%;

    position: relative;
    display: grid;
    place-items: center;
    
    /*aspect-ratio: 1 / 1;*/
    
  }
  
  .pv-circle-image-1{
    width: 60%;
    /*max-width: 420px;*/
    /*min-width: 240px;*/
    aspect-ratio: 1 / 1;
    overflow: hidden;

    background: #d9d9d9;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    border-radius: 50%;
    border: 6px solid #38c24d;
    
    outline: 4px solid #0a4b85;
    outline-offset: -10px;
  }

  .pv-circle-image-2{
    width: 30%;
    /*
    max-width: 280px;
    min-width: 150px;
    */
    position:absolute;top:5%;right:5%;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    
    border-radius: 50%;
    
    

    border: 6px solid #38c24d;
    outline: 4px solid #0a4b85;
    outline-offset: -10px;

    background: #d9d9d9;
    background-position:center;
    background-size:cover;
    background-repeat: no-repeat;
  }
  
  .pv-info {
    display:flex;
    flex-direction: column;

  }

  .pv-info-title {
    margin:0.5rem 0;
    max-width:300px;

    display:flex;align-items: center;justify-content: center;

    font-size: 1rem;
    line-height: 1.2rem;

    color:rgba(255,255,255,0.9);
  }

.pv-info-data {
  padding:0.5rem 2rem;

  min-width:150px;
  max-width:300px;

  display:flex;align-items: center;justify-content: center;

  background-color:var(--blue2);

  border-bottom-left-radius:50px;
  border-top-right-radius:50px;
}

.pv-description {
  
  height:170px; overflow-y: auto;
  /*
  font-size:clamp(16px, min(2vw, 3.8vh), 16px);
  line-height:clamp(18px, min(2.2vw, 4.0vh), 20px);
  font-weight:400;
  */
  color:rgba(255,255,255,0.9);
}

.realizations-gallery {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(0,0,0,0.65);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 1200;
}

.realizations-gallery--open {
  opacity: 1;
  visibility: visible;
}

.realizations-gallery__dialog {
  background: var(--bg);
  color: var(--text);
  width: 85vw;
  height: 85vh;
  max-height: 95vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  outline: none;
  overflow: hidden;
}

.realizations-gallery__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.realizations-gallery__title {
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.realizations-gallery__close {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--muted);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.realizations-gallery__close:hover,
.realizations-gallery__close:focus {
  background: var(--muted);
  color: #000;
}

.realizations-gallery__grid {
  column-count: 3;
  column-gap: 12px;
  overflow-y: auto;
  padding-right: 6px;
  flex: 1;
  min-height: 0;
}

.realizations-gallery__content {
  display: flex;
  gap: 16px;
  flex: 1;
  min-height: 0;
  height: 100%;
}

.realizations-gallery__preview {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
  padding: 12px;
  overflow: hidden;
}

.realizations-gallery__preview-inner {
  width: 100%;
  height: 100%;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.realizations-gallery__preview-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.realizations-gallery__preview-caption {
  color: var(--text);
  text-align: center;
  font-size: 0.95rem;
}

.realizations-gallery__item.is-selected img {
  outline: 3px solid var(--ring-green);
}

.realizations-gallery__item {
  break-inside: avoid;
  margin-bottom: 12px;
}

.realizations-gallery__item img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.realizations-gallery__empty {
  text-align: center;
  color: var(--muted);
  padding: 24px;
}

body.realizations-gallery-open {
  overflow: hidden;
}
 
@media (max-width: 1023px) {
  .realizations-gallery__grid {
    column-count: 2;
  }
}

@media (max-width: 768px) {
  .realizations-gallery {
    padding: 12px;
  }

  .realizations-gallery__dialog {
    width: 100%;
    height: 90vh;
    max-height: 90vh;
    padding: 16px;
  }

  .realizations-gallery__grid {
    column-count: 2;
  }

  .realizations-gallery__content {
    flex-direction: column;
  }
}

@media (max-width: 1023px) {
  .pv-layout {
    flex-direction: column;
    gap: 16px;
    width: 100%;
    }

    .pv-main
    {
      width: 100%;
      height:100%; min-height:700px;

      display:flex;flex-direction: column;
      justify-content: space-evenly;
    }

    .pv-stage {
      height:100%!important;min-height:680px;
      
    }

    .pv-content-grid {
      height:100%!important;min-height:680px;
      display:flex!important;flex-direction: column;
    }

    .pv-chooser {
      width: 100%;
    }

    .pv-chooser {
      margin-top: 1rem;
    }

    .pv-content-grid {
      width: 100%;
    }
  }


  @media screen and (max-width:520px){

    .pv-chooser {
      height:650px;
    }

  }