pages-section{
  .section {
    margin-top: 24px;
    display: flex;  
    flex-direction: column;
  }
}


add-section{
    .add{
        position: relative;
      .toggle{
        position:inherit;
        display: flex;
        gap:8px;
        align-items: center;
        padding-bottom: 8px;
        drop-down{
          margin-top: 4px;
        }
        
        &.active{
          a{
            color: var(--prime-act);
          }
        }
      }
      .dropdown{
        left:48px;
        top:32px;
      }
    }
}


cards-section-items{
    .items {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        gap: 24px;
        flex-wrap: wrap;
      
        cards-section-item {
          width: 240px;
          .card {
            height: 100%;
            padding: 12px;
            border: #dedede solid 1px;
          }
        }
    }
}

images-section{
  display: block;

  .mobile{
    display: none;
  }
  .desctop{
    display: flex;
  }
  .close{
    position: absolute;
    top:24px;
    right: 24px;
  }
  
  
  
  .items {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    gap: 8px;
  
    img{  
      border: 1px solid var(--second-dis);
    }
  
    &.tiles{
      .item{
        margin-bottom: 16px;
        img{
          max-height: 273px;
          max-width: 273px; 
        }
      }      
    }
  
    &.full-width{
      display: flex;
      flex-direction: column;
  
      .item{
        max-width: 100%;
        margin-bottom: 32px;
        img{
          max-height: 468px;
          max-width: 100%;
        }
      }      
    }
  
    .item {
      
      position: relative;
  
      img {
        cursor: pointer;
      }
  
      &:last-child {
        margin-bottom: 0;
      }
  
      &.full-width {
        display: flex;
        flex-direction: column;
        img {
          width: 100%;
          height: auto;
        }
      }
    }
  }
  
  .carousel {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content:center;
    gap: 24px;
    .prev, .next {
      cursor: pointer;
      z-index: 1;
      &.prev{
        left:0;
      }
      &.next{
        right:0;
      }
    }
    .center {
      width: 600px;
    }
  }
  
  .slide {
    width: 600px;
    height: 450px;
  
    display: block;
    img {
      object-fit: cover;
      width: 100%;
      height: 100%;
    }
  }
  
  .fullscreen {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    position: fixed;
    align-items: center;
    justify-content: center;
    background-color: rgba(37, 46, 52, 60%);
   
    .content {
      position: fixed;
      display: flex;
      pointer-events: none;
      
      
      width: calc(100vw - 2 * 24px);
      height: calc(100vh - 2 * 24px);
      left: 24px;
      right: 24px;
      *{
        pointer-events:all;
      }
      img {
        object-fit: contain;
        width: 100%;
    height: 100%;
      }
  
      .left {
        width: 72px;
        flex-grow: 0;
        display: flex;
        cursor: pointer;
        align-items: center;
        justify-content: center;
      }
      .right {
        width: 72px;
        flex-grow: 0;
        display: flex;
        cursor: pointer;
        align-items: center;
        justify-content: center;
      }
    }
    .between{
      justify-content:space-between;
    }
    .center{
      justify-content:center;
    }
    .bottom{
      align-items: flex-end;
      gap: 8px;
      .thumbnails{
        position: static;
        display: block;
        width: 72px;
        height: 52px;
        border: 2px solid var(--prime);
  
        img{
          width: 100%;
          height: 100%;
          object-fit:cover;
        };
      };
  
    }
  
  }
  
  @media screen and (max-width: 700px){
    .carousel {
  
      .prev, .next {
        cursor: pointer;
        z-index: 1;
        position: absolute;
        &.prev{
          left: 36px;
          z-index: 2;
        }
        &.next{
          right: 36px;
        }
      }
      .center {
        width: 100%;
        .slide {
          width: calc( 100vw - 80px );
          height: calc( (100vw - 80px) * 0.75 );
  
          img {
  
          }
        }
      }
    }
  }
  @media screen and (max-width: 480px) {
    .desctop{
      display: none !important;
    }
    .mobile{
      display: flex !important;
    }
    .fullscreen {
  
     
      .content {
        position: fixed;
        display: flex;
        pointer-events: none;
        
        
        width:100vw;
        height:100vh;
        left: 0;
        right: 0;
      }
      .prev{
        z-index: 5;
        margin-right: -50px;
      }
      .next{
        z-index: 5;
        margin-left: -50px;
      }
    }
  }
}

publications-list{
  .add a, .publication-read-more{
    display: inline-flex;
    align-items: flex-end;
  }
  
  .items {
    margin: 24px 0;
  }  
  
  publications-list-item {
    display: block;
    padding-bottom: 24px;
    border-top: 1px solid var(--second-dis);
    &:last-child{
      border-bottom: 1px solid var(--second-dis);
    }

    .date{
      color: var(--second);
    }
    

  }
  
}

gellery{
  .poster{
    width: 665px;
    height: 468px;
    max-width: calc( 100vw - 80px);
    max-height: calc( (100vw - 80px ) * 0.7 );
    margin-bottom: 8px;
    border: 1px solid var(--second-dis);
    background-color: var(--second-dis);
  }
  .posters{
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 8px;

    .item{
      width: 72px;
      height: 52px;
      border: 1px solid var(--prime);
      cursor: pointer;
      :hover{
        border-color:  var(--prime-act);
      }
    }
  }
  img{
    object-fit: cover;
    width: 100%;
    height: 100%;
  }
}


video-section{
  .video-box{
    max-width: 720px;
    height: 400px;
    position: relative;
    img{
      cursor:pointer
    }
    .poster{
      object-fit: cover;
      width: 100%;
      height: 100%;   
    }
    .icon{
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      bottom: 0;
      margin: auto;
    }
    iframe{
      width: 100%;
      height: 100%;
      background-color: black;
    }
  }
  
}