/******************************************************************

Stylesheet: Block Style
Block: Image Grid

******************************************************************/
/******************************************************************

Stylesheet: Variables

Here is where we declare all our variables like colors, fonts,
base values, and defaults. We want to make sure this file ONLY
contains variables that way our files don't get all messy.
No one likes a mess.

******************************************************************/
/*********************
WRAPS
*********************/
/*********************
COLORS
*********************/
/*********************
FONT SIZES
*********************/
/*********************
PADDINGS
*********************/
/*********************
TRANSITIONS
*********************/
.byggemodul.image-grid header.sp-header-section {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}
.byggemodul.image-grid header.sp-header-section > * {
  margin: 0 0 8px;
}
.byggemodul.image-grid header.sp-header-section .sp-section-title {
  font-weight: bold;
  margin-right: auto;
}
.byggemodul.image-grid header.sp-header-section .sp-section-title.no-link {
  width: 100%;
  margin: 0;
  text-align: center;
}
.byggemodul.image-grid header.sp-header-section a.sp-section-link {
  font-size: 18px;
  font-weight: 500;
  margin-left: auto;
  text-decoration: underline;
  color: #000;
}
.byggemodul.image-grid .sp-image-grid {
  display: grid;
  grid-template-rows: auto;
  gap: 16px;
}
@media (min-width: 768px) {
  .byggemodul.image-grid .sp-image-grid {
    gap: 32px;
  }
}
.byggemodul.image-grid .sp-image-grid.mobile-columns-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.byggemodul.image-grid .sp-image-grid.mobile-columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.byggemodul.image-grid .sp-image-grid.mobile-columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.byggemodul.image-grid .sp-image-grid.mobile-columns-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.byggemodul.image-grid .sp-image-grid.mobile-columns-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.byggemodul.image-grid .sp-image-grid.mobile-columns-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.byggemodul.image-grid .sp-image-grid.mobile-columns-7 {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.byggemodul.image-grid .sp-image-grid.mobile-columns-8 {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}
@media (min-width: 481px) {
  .byggemodul.image-grid .sp-image-grid.big-mobile-columns-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .byggemodul.image-grid .sp-image-grid.big-mobile-columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .byggemodul.image-grid .sp-image-grid.big-mobile-columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .byggemodul.image-grid .sp-image-grid.big-mobile-columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .byggemodul.image-grid .sp-image-grid.big-mobile-columns-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .byggemodul.image-grid .sp-image-grid.big-mobile-columns-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .byggemodul.image-grid .sp-image-grid.big-mobile-columns-7 {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
  .byggemodul.image-grid .sp-image-grid.big-mobile-columns-8 {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}
@media (min-width: 768px) {
  .byggemodul.image-grid .sp-image-grid.tablet-columns-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .byggemodul.image-grid .sp-image-grid.tablet-columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .byggemodul.image-grid .sp-image-grid.tablet-columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .byggemodul.image-grid .sp-image-grid.tablet-columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .byggemodul.image-grid .sp-image-grid.tablet-columns-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .byggemodul.image-grid .sp-image-grid.tablet-columns-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .byggemodul.image-grid .sp-image-grid.tablet-columns-7 {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
  .byggemodul.image-grid .sp-image-grid.tablet-columns-8 {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}
@media (min-width: 991px) {
  .byggemodul.image-grid .sp-image-grid.desktop-columns-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .byggemodul.image-grid .sp-image-grid.desktop-columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .byggemodul.image-grid .sp-image-grid.desktop-columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .byggemodul.image-grid .sp-image-grid.desktop-columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .byggemodul.image-grid .sp-image-grid.desktop-columns-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .byggemodul.image-grid .sp-image-grid.desktop-columns-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .byggemodul.image-grid .sp-image-grid.desktop-columns-7 {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
  .byggemodul.image-grid .sp-image-grid.desktop-columns-8 {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}
.byggemodul.image-grid .sp-grid-box {
  text-decoration: none;
}
.byggemodul.image-grid .sp-grid-box .sp-grid-image {
  border: 1px solid #f9f7f1;
  background-color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-bottom: 100%;
  transition: all 0.15s ease-in-out;
}
.byggemodul.image-grid .sp-grid-box .sp-grid-title {
  font-weight: bold;
  margin-top: 8px;
  text-align: center;
}
.byggemodul.image-grid .sp-grid-box:hover .sp-grid-image, .byggemodul.image-grid .sp-grid-box:focus .sp-grid-image {
  border-color: #eae3cd;
  box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.1);
}
.byggemodul.image-grid.padding-none .sp-grid-box {
  padding: 0;
}
.byggemodul.image-grid.image-size-contain .sp-grid-box .sp-grid-image {
  background-size: calc(100% - 32px);
}
.byggemodul.image-grid.cardstyle-rounded .sp-grid-box .sp-grid-image {
  border-radius: 15px;
  box-shadow: 0 3px 9px 0 rgba(0, 0, 0, 0.1);
  border: none;
}
.byggemodul.image-grid.cardstyle-rounded .sp-grid-box:hover .sp-grid-image, .byggemodul.image-grid.cardstyle-rounded .sp-grid-box:focus .sp-grid-image {
  box-shadow: 0 0px 2px 0 rgba(0, 0, 0, 0.1);
  transform: scale(1.03);
}
.byggemodul.image-grid.cardstyle-rounded.image-size-cover .sp-grid-box:hover .sp-grid-image, .byggemodul.image-grid.cardstyle-rounded.image-size-cover .sp-grid-box:focus .sp-grid-image {
  transform: scale(1);
  filter: brightness(0.8);
}
.byggemodul.image-grid.gridgap-double .sp-image-grid {
  gap: 32px;
}
@media (min-width: 768px) {
  .byggemodul.image-grid.gridgap-double .sp-image-grid {
    gap: 54px;
  }
}

body.block-editor-page .byggemodul.image-grid a {
  pointer-events: none;
}
