#top {
  background: #555555;
}

.home-carousel {
  background: url('../img/hermann_loens_schule_vorplatz-fbd692e3c9353c801a1e096091e2c5bf-14.jpg') center center repeat;
}

.active_navitem {
    background-color: var(--primary-accent);
    color: #ffffff !important;
}

.icon {
    font-size: 40px;
}

td {
    padding-right: 10px;
}

.column > p > img{
    width: 300px;
}

.avatar {
  object-fit: cover;
  vertical-align: middle;
  width: 150px;
  height: 200px;
  border-radius: 50px 20px;
  object-position: top;

}

.navbar ul.nav > li > a {
    text-decoration: none;
}

@media (max-width: 1250px) {
    .bar.background-image-fixed-2 {
      background-attachment: initial;
      min-height: 360px;
    }
}

@media (max-width: 604px) {
    .bar.background-image-fixed-2 {
      background-attachment: initial;
      min-height: 60px;
    }
}





/* Grid-Container */
.imagegrid {
  display: grid;
  grid-gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  align-items: start;
}

/* Each item preserves aspect and allows various sizes */
.imagegrid__item {
  position: relative;
  overflow: hidden;
  background: #f6f6f6;
  border-radius: 6px;
}

a.imagegrid_anchor {
    display: block;
    position: relative;
    top: -250px;
    visibility: hidden;
}

/* Make images responsive and cover without distortion */
.imagegrid__item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .25s ease;
}

/* Hover zoom effect in grid */
.imagegrid__item:hover img {
  transform: scale(1.03);
}

/* Use different row/column spans when author supplies size classes */
.imagegrid__item--large {
  grid-row: span 2;
  grid-column: span 2;
}

/* Lightbox overlay using :target */
.image-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.8);
  z-index: 9999;
  padding: 20px;
}

/* when targeted show */
.image-lightbox:target {
  display: flex;
}

/* Lightbox content */
.image-lightbox__inner {
  max-width: 95%;
  max-height: 95%;
  border-radius: 8px;
  overflow: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,.6);

  display: flex;
    justify-content: center;
    overflow: hidden;
}

/* Lightbox image scaling */
.image-lightbox__inner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-width: calc(100vw - 40px);
  max-height: calc(100vw - 40px);
}

/* Close button (top-right) */
.image-lightbox__close {
  position: absolute;
  right: 18px;
  top: 18px;
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  background: rgba(0,0,0,0.35);
  padding: 6px 10px;
  border-radius: 6px;
}

/* Accessibility: focus styles */
.imagegrid__link:focus,
.image-lightbox__close:focus {
  outline: 3px solid #fff3;
  outline-offset: 2px;
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .imagegrid { grid-gap: 6px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .imagegrid__item--large { grid-row: span 1; grid-column: span 1; }
}