

/* Departments */
.tul-organization-tree .field {
  margin: 0;
}

.tul-organization-tree .department-symbol {
  font-weight: bold;
}

/*.node--type-department.node--view-mode-teaser {*/
/*  background-color: #f1f1f1;*/
/*  border-bottom: none;*/
/*}*/

/*.node--type-department .block {*/
/*  margin: 0;*/
/*}*/

.tul-organization-tree .modal-trigger {
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  -ms-progress-appearance: unset;
  color: #333;
}

.tul-organization-tree .modal-trigger:focus,
.tul-organization-tree .modal-trigger:hover {
  color: var(--politechnika-primary-color);
  text-decoration: none;
}

.tul-organization-tree .field--name-title h2 {
  border-bottom: solid 4px var(--politechnika-primary-color);
  background: #fff;
  margin: 0;
  padding: .5rem 0;
}

.tul-organization-tree .field--name-field-media-image {
  float: left;
  margin-right: 1rem;
}

.tul-organization-tree .field--name-field-person {
  font-size: 1.2rem;
}

.tul-organization-tree .field--name-field-job-title {
  font-size: .9rem;
  color: #696969;
}

.tul-organization-tree .field--name-field-address {
  margin: 1rem 0;
}

.tul-organization-tree .field--name-field-phone .field__item:after,
.tul-organization-tree .field--name-field-fax .field__item:after,
.tul-organization-tree .field--type-email .field__item:after,
.tul-organization-tree .field--name-field-website .field__item:after {
  content: ", ";
}

.tul-organization-tree .field--name-field-phone .field__item:last-child:after,
.tul-organization-tree .field--name-field-fax .field__item:last-child:after,
.tul-organization-tree .field--type-email .field__item:last-child:after,
.tul-organization-tree .field--name-field-website .field__item:last-child:after {
  content: none;
}

.tul-organization-tree .field--name-field-extra {
  margin: 1rem 0;
  font-size: .9rem;
  padding: 1rem;
  border-top: solid 1px #ccc;
  clear: both;
  float: left;
  width: 100%;
}

/* Organization tree */

.tul-organization-tree .tul-organization-tree-level-0 {
  margin: 25px 0;
  border: none;
  font-size: 1rem;
  clear: none;
}
.tul-organization-tree .tul-organization-tree-level-0 > .tul-organization-tree-content > .tul-organization-tree-children {
  background-color: #f1f1f1;
  border-top: solid 4px var(--politechnika-primary-color);
}
.tul-organization-tree > .tul-organization-tree-level-0 [class*="tul-organization-tree-level-"] .tul-organization-tree-popup-link > h2 {
  font-size: 1em !important;
}
.tul-organization-tree .tul-organization-tree-parent {
  color: #333;
}
.tul-organization-tree .tul-organization-tree-level-0 .tul-organization-tree-parent {
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 600;
  font-size: calc(1.3rem + .6vw);
}


.tul-organization-tree > .tul-organization-tree-level-0 > .tul-organization-tree-content > .tul-organization-tree-children > [class*="tul-organization-tree-level-"] {
  margin: 0 15px;
  column-count: 4;
  column-gap: 15px;
}

.tul-organization-tree > .tul-organization-tree-level-0 > .tul-organization-tree-content > .tul-organization-tree-children > [class*="tul-organization-tree-level-"] > .tul-organization-tree-content {
  padding: 0;
  break-inside: avoid;
  display: inline-block;
  width: 100%;
}


.tul-organization-tree > .tul-organization-tree-level-0 > .tul-organization-tree-content > .tul-organization-tree-children > .tul-organization-tree-level-1 > .tul-organization-tree-content .tul-organization-tree-content {
  display: block;
  column-count: 1;
  column-gap: 0;
}


.tul-organization-tree .tul-organization-tree-level-1 > .tul-organization-tree-content > .tul-organization-tree-children,
.tul-organization-tree .tul-organization-tree-level-1 > .tul-organization-tree-content > .tul-organization-tree-children .tul-organization-tree-children{
  margin-left: 15px;
}
.tul-organization-tree .tul-organization-tree-level-0 > .tul-organization-tree-content > .tul-organization-tree-children {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}


.tul-organization-tree .tul-organization-tree-level-1 > .tul-organization-tree-content {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.tul-organization-tree > .tul-organization-tree-level-0 > .tul-organization-tree-content {
  margin-top: 1.6rem;
  margin-bottom: 1.6rem;
}

/*!* Children departments *!*/
/*.block-views-blockdepartments-block-1 .item-list ul {*/
/*  margin: 0 15px;*/
/*  column-count: 4;*/
/*  column-gap: 15px;*/
/*}*/

/*@media screen and (max-width: 767px){*/
/*  .block-views-blockdepartments-block-1 .item-list ul {*/
/*    column-count: 2;*/
/*  }*/
/*}*/

/*.block-views-blockdepartments-block-1 .item-list ul li {*/
/*  padding: 0;*/
/*  break-inside: avoid;*/
/*  display: inline-block;*/
/*  width: 100%;*/
/*}*/

/*.block-views-blockdepartments-block-1 .block-views-blockdepartments-block-1 .item-list ul {*/
/*  display: block;*/
/*  column-count: 1;*/
/*  column-gap: 0;*/
/*}*/

/*.block-views-blockdepartments-block-1 .node--type-department.node--view-mode-teaser {*/
/*  margin: .8rem 0;*/
/*  padding: 0;*/
/*}*/

/*.block-views-blockdepartments-block-1 .block-views-blockdepartments-block-1 .node--type-department.node--view-mode-teaser {*/
/*  margin: .2rem 0;*/
/*}*/

/*.node--type-department.node--view-mode-teaser .node--type-department .field--name-title h2 {*/
/*  border: none;*/
/*  background: none;*/
/*  padding: 0;*/
/*  font-size: 1rem;*/
/*}*/

/*.block-views-blockdepartments-block-1 .block-views-blockdepartments-block-11 .node--type-department.node--view-mode-teaser .field--name-title h2 {*/
/*  font-size: .8rem;*/
/*}*/

.tul-organization-tree-level-1 {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  max-height: 1000px;
  max-height: calc(25px * var(--tul-organization-children-count,20));
}

.tul-organization-tree-level-1>.tul-organization-tree-content  {
  width: 20% !important;
  box-sizing: border-box;
}

.tul-organization-tree-level-1{
}