/**
 * Button Reset
 *
 */
/**
 * Size
 *
 */
/**
 * Block Cover
 * Creates a block that covers the full width/height of parent div. Typically used on a :before pseudo element
 */
/**
 * Placeholder Color
 *
 */
/**
 * Clearfix
 *
 */
html {
  scroll-behavior: smooth;
}

.work-gallery {
  --outer-width: calc(100% - var(--scrollbar-width, 0px));
  --inner-width: calc((var(--outer-width) - var(--wp--custom--layout--content)) / 2);
  position: relative;
  display: flex;
  flex-direction: column;
  /* max-width: 1390px; */
  padding: 0px max(var(--wp--custom--layout--page-margin), var(--inner-width));
  margin-left: auto;
  margin-right: auto;
}

.work-gallery.alignwide {
  --inner-width: calc((var(--outer-width) - var(--wp--custom--layout--wide)) / 2);
}

.work-gallery.alignfull {
  max-width: 100vw;
  padding-left: 0px;
  padding-right: 0px;
}

.work-gallery > .gallery {
  display: flex;
  flex-direction: column;
  gap: var(--wp--custom--layout--block-gap);
}

.work-gallery > .gallery__header {
  display: flex;
}

.work-gallery > .gallery__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--space-sm, 1em);
}

.work-gallery__link {
  display: inline-block;
  margin-top: var(--wp--custom--layout--block-gap);
  font-weight: 900;
  text-decoration: none;
  transition: all 0.2s;
}

.work-gallery__link:hover {
  text-decoration: underline;
  opacity: 0.8;
}

/* DENSE GRID */
/* .work-gallery .gallery.dense > :nth-of-type(1) .work-card-media { aspect-ratio: 538/342;  }
.work-gallery .gallery.dense > :nth-of-type(2) .work-card-media { aspect-ratio: 822/799;  }
.work-gallery .gallery.dense > :nth-of-type(3) .work-card-media { aspect-ratio: 538/342;  }
.work-gallery .gallery.dense > :nth-of-type(4) .work-card-media { aspect-ratio: 822/342;  }
.work-gallery .gallery.dense > :nth-of-type(5) .work-card-media { aspect-ratio: 538/342;  } */
@media screen and (min-width: 1000px) {
  .work-gallery > .gallery.dense {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: 1fr 1fr 433px;
    /* grid-auto-rows: 1fr; */
    grid-column-gap: var(--wp--custom--layout--block-gap);
    grid-row-gap: var(--wp--custom--layout--block-gap);
  }
  .work-gallery .gallery.dense > :nth-of-type(1) {
    grid-area: 1/1/2/3;
  }
  .work-gallery .gallery.dense > :nth-of-type(2) {
    grid-area: 1/3/3/6;
  }
  .work-gallery .gallery.dense > :nth-of-type(3) {
    grid-area: 2/1/3/3;
  }
  .work-gallery .gallery.dense > :nth-of-type(4) {
    grid-area: 3/1/4/4;
  }
  .work-gallery .gallery.dense > :nth-of-type(5) {
    grid-area: 3/4/4/6;
  }
}
.editor-styles-wrapper {
  position: relative;
}

.editor-styles-wrapper .is-root-container > .wp-block-stb-work-gallery .work-gallery {
  --outer-width: calc(100% - var(--scrollbar-width, 0px));
  --inner-width: calc((var(--outer-width) - var(--wp--custom--layout--content)) / 2);
  padding-left: var(--inner-width);
  padding-right: var(--inner-width);
}

.editor-styles-wrapper .is-root-container > .wp-block-stb-work-gallery.alignwide .work-gallery {
  --inner-width: calc((var(--outer-width) - var(--wp--custom--layout--wide)) / 2);
}

.editor-styles-wrapper .work-gallery > .gallery.dense {
  display: flex;
  flex-direction: column;
  gap: var(--wp--custom--layout--block-gap);
}

/* 	
	.editor-styles-wrapper	.work-gallery .gallery.dense .acf-innerblocks-container > :nth-of-type(1) .work-card-media { aspect-ratio: 538/342;  }
	.editor-styles-wrapper	.work-gallery .gallery.dense .acf-innerblocks-container > :nth-of-type(2) .work-card-media { aspect-ratio: 822/799;  }
	.editor-styles-wrapper	.work-gallery .gallery.dense .acf-innerblocks-container > :nth-of-type(3) .work-card-media { aspect-ratio: 538/342;  }
	.editor-styles-wrapper	.work-gallery .gallery.dense .acf-innerblocks-container > :nth-of-type(4) .work-card-media { aspect-ratio: 822/342;  }
	.editor-styles-wrapper	.work-gallery .gallery.dense .acf-innerblocks-container > :nth-of-type(5) .work-card-media { aspect-ratio: 538/342;  } */
@media screen and (min-width: 1000px) {
  .editor-styles-wrapper .work-gallery > .gallery.dense .acf-innerblocks-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-column-gap: var(--wp--custom--layout--block-gap);
    grid-row-gap: var(--wp--custom--layout--block-gap);
  }
  .editor-styles-wrapper .work-gallery .gallery.dense .acf-innerblocks-container > :nth-of-type(1) {
    grid-area: 1/1/2/3;
  }
  .editor-styles-wrapper .work-gallery .gallery.dense .acf-innerblocks-container > :nth-of-type(2) {
    grid-area: 1/3/3/6;
  }
  .editor-styles-wrapper .work-gallery .gallery.dense .acf-innerblocks-container > :nth-of-type(3) {
    grid-area: 2/1/3/3;
  }
  .editor-styles-wrapper .work-gallery .gallery.dense .acf-innerblocks-container > :nth-of-type(4) {
    grid-area: 3/1/4/4;
  }
  .editor-styles-wrapper .work-gallery .gallery.dense .acf-innerblocks-container > :nth-of-type(5) {
    grid-area: 3/4/4/6;
  }
}
/* LOOSE GRID */
.work-gallery {
  margin-left: auto;
  margin-right: auto;
  /* margin-bottom: var(--wp--custom--layout--block-gap); */
}

.work-gallery > .gallery.loose {
  display: flex;
  gap: var(--wp--custom--layout--block-gap);
  margin: auto;
  align-items: start;
}

@media screen and (min-width: 1000px) {
  .work-gallery > .gallery.loose {
    display: grid;
  }
  .work-gallery > .gallery.loose .acf-innerblocks-container {
    display: grid;
    gap: var(--wp--custom--layout--block-gap);
    margin-bottom: var(--space-lg);
  }
}
.gallery__footer {
  margin-left: 0px !important;
  margin-top: 0px;
}

.gallery__footer a {
  margin-top: 0px;
}

:where(.site-main) .work-gallery > .gallery.loose.layout_1 {
  grid-template-columns: repeat(6, 1fr);
}
:where(.site-main) .work-gallery > .gallery.loose.layout_1 > :nth-of-type(1) {
  grid-column: 3 span;
}
:where(.site-main) .work-gallery > .gallery.loose.layout_1 > :nth-of-type(2) {
  grid-column: 3 span;
  grid-row: 2 span;
  /* align-self: stretch;	 */
}
:where(.site-main) .work-gallery > .gallery.loose.layout_1 > :nth-of-type(3) {
  grid-column: 2 span;
  margin-top: 20px;
}
:where(.site-main) .work-gallery > .gallery.loose.layout_1 > :nth-of-type(2) .work-card-media {
  aspect-ratio: 1/1;
}
:where(.site-main) .work-gallery > .gallery.loose.layout_2 {
  grid-template-columns: repeat(10, 1fr);
}
:where(.site-main) .work-gallery > .gallery.loose.layout_2 > :nth-of-type(1) {
  grid-column: 4 span;
  grid-row: 2 span;
  aspect-ratio: 3/4;
  margin-top: 167px;
}
:where(.site-main) .work-gallery > .gallery.loose.layout_2 > :nth-of-type(2) {
  grid-column: 6 span;
}
:where(.site-main) .work-gallery > .gallery.loose.layout_2 > :nth-of-type(3) {
  grid-column: 6/5 span;
  margin-top: 20px;
  justify-self: end;
}
:where(.site-main) .work-gallery > .gallery.loose.layout_4 {
  grid-template-columns: repeat(10, 1fr);
}
:where(.site-main) .work-gallery > .gallery.loose.layout_4 > :nth-of-type(1) {
  grid-column: 4 span;
  grid-row: 2 span;
}
:where(.site-main) .work-gallery > .gallery.loose.layout_4 > :nth-of-type(2) {
  grid-column: 6/3 span;
}
:where(.site-main) .work-gallery > .gallery.loose.layout_4 > :nth-of-type(3) {
  grid-column: 6/5 span;
}

.work-gallery > .gallery.loose.layout_1 .acf-innerblocks-container {
  grid-template-columns: repeat(6, 1fr);
}

.work-gallery > .gallery.loose.layout_1 .acf-innerblocks-container > :nth-of-type(1) {
  grid-column: 3 span;
}

.work-gallery > .gallery.loose.layout_1 .acf-innerblocks-container > :nth-of-type(2) {
  grid-column: 3 span;
  grid-row: 2 span;
  /* align-self: stretch;	 */
}

.work-gallery > .gallery.loose.layout_1 .acf-innerblocks-container > :nth-of-type(3) {
  grid-column: 2 span;
  margin-top: 20px;
}

.work-gallery > .gallery.loose.layout_2 .acf-innerblocks-container {
  grid-template-columns: repeat(10, 1fr);
}

.work-gallery > .gallery.loose.layout_2 .acf-innerblocks-container > :nth-of-type(1) {
  grid-column: 4 span;
  grid-row: 2 span;
  aspect-ratio: 3/4;
  margin-top: 167px;
}

.work-gallery > .gallery.loose.layout_2 .acf-innerblocks-container > :nth-of-type(2) {
  grid-column: 6 span;
}

.work-gallery > .gallery.loose.layout_2 .acf-innerblocks-container > :nth-of-type(3) {
  grid-column: 6/5 span;
  margin-top: 20px;
  justify-self: end;
}

.work-gallery > .gallery.loose.layout_4 .acf-innerblocks-container {
  grid-template-columns: repeat(10, 1fr);
}

.work-gallery > .gallery.loose.layout_4 .acf-innerblocks-container > :nth-of-type(1) {
  grid-column: 4 span;
  grid-row: 2 span;
}

.work-gallery > .gallery.loose.layout_4 .acf-innerblocks-container > :nth-of-type(2) {
  grid-column: 6/3 span;
}

.work-gallery > .gallery.loose.layout_4 .acf-innerblocks-container > :nth-of-type(3) {
  grid-column: 6/5 span;
}
/*# sourceMappingURL=style.css.map */
