/* Masonry unchanged */
.vk-masonry {
  column-gap: 1rem;
}

@media (max-width: 479px) {
  .vk-masonry { column-count: 2; }   /* force 2 even on small phones */
}
@media (min-width: 480px) {
  .vk-masonry { column-count: 2!important; }
}
@media (min-width: 800px) {
  .vk-masonry { column-count: 3; }
}
@media (min-width: 1100px) {
  .vk-masonry { column-count: 4!important; }
}

/* Tile container */
.vk-item {
  display: inline-block;
  width: 100%;
  margin: 0 0 1rem;
  break-inside: avoid;
  text-decoration: none;
}

/* Fixed aspect ratio box (choose one): */
/* Default to 16:9… */
.vk-item__frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9!important;
  overflow: hidden;
  border-radius: .35rem;
}
/* …and on narrow screens you might prefer 9:16: */
@media (max-width: 520px) {
  .vk-item__frame { aspect-ratio: 9 / 16; }
}

/* Image fills the box and is cropped consistently */
.vk-item__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* crop to fill the frame */
  object-position: center;
  display: block;
}

/* Optional hover nicety */
.vk-item:hover .vk-item__frame img { transform: scale(1.02); transition: transform .25s ease; }

/* Submenu toggle button */
.menu-item-aihealue.parent .submenu-toggle {
  z-index:999;
  position:absolute;
  display:inline-block;
  float:left;
  top:0px;
  margin-left: 0.5rem;
  inline-size: 1.25rem;
  block-size: 1.25rem;
  border: none;
  color:black;
  background: transparent;
  cursor: pointer;
}

@media screen and (min-width:1280px) {

/* Submenu toggle button */
.menu-item-aihealue.parent .submenu-toggle {

  right:-50px;

}


.submenu-toggle {
  min-width:50px;
}


}

a.vk-btn {

  font-weight:700;
  
}


@media screen and (max-width:1279px) {

/* Submenu toggle button */
.menu-item-aihealue.parent .submenu-toggle {
height:50px;
width:50px;
  right:0px;

}



}

.menu-item-aihealue.parent .submenu-toggle::before {
  content: '';
  display: inline-block;
  inline-size: 0.5rem;
  block-size: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); /* chevron right */
  transition: transform .2s ease;
}
.menu-item-aihealue.parent .submenu-toggle[aria-expanded="true"]::before {
  transform: rotate(45deg); /* chevron down */
}

/* Keep submenu hidden when [hidden] */
.menu-item-aihealue.parent > .sub-menu[hidden] {
  display: none;
}

/* Optional: indent dropdown a bit */
.menu-item-aihealue.parent > .sub-menu {
  margin: 0.5rem 0 0;
  padding-left: 1rem;
}
